/* AUTOsist shared base for modern pages. */

:root {
  /* Typography */
  --as-font-heading: 'Lato', Helvetica, Arial, sans-serif;
  --as-font-body: 'Poppins', sans-serif;

  /* Brand Colors */
  --as-color-primary-red: #ca4441;
  --as-color-primary-red-hover: #b33936;
  --as-color-secondary-teal: #53777a;
  --as-color-secondary-teal-hover: #446467;
  --as-color-kicker-red: #d75b59;

  /* Text */
  --as-color-hero-heading: #0f172a;
  --as-color-heading-dark: #1a202c;
  --as-color-hero-text: #475569;
  --as-color-body-text: #4a5568;
  --as-color-muted: #6b7280;

  /* Backgrounds and Borders */
  --as-bg-white: #ffffff;
  --as-bg-subtle-blue: #f5f8fe;
  --as-bg-light-red: #fef2f2;
  --as-border: #e2e8f0;
  --as-border-light-red: #fecaca;
}

/* END: Design Tokens */

/* START: Page Wrapper */
.as-page {
  font-family: var(--as-font-body);
  color: var(--as-color-body-text);
  line-height: 1.6;
}

.as-page a:focus-visible,
.as-page button:focus-visible {
  outline: 2px solid var(--as-color-primary-red);
  outline-offset: 2px;
}

/* END: Page Wrapper */

/* START: Section */
.as-section {
  padding: 85px 0 70px;
  background-color: var(--as-bg-white);
}

.as-section-blue {
  background-color: var(--as-bg-subtle-blue);
}

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .as-section {
    padding: 65px 0 50px;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .as-section {
    padding: 50px 0 35px;
  }
}

/* END: Section */

/* START: Section Header */
.as-section-header {
  max-width: 820px;
  margin: 0 auto 55px;
  text-align: center;
}

.as-kicker {
  display: inline-block;
  font-family: var(--as-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--as-color-kicker-red);
  margin-bottom: 12px;
}

.as-title,
.as-section-title {
  font-family: var(--as-font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--as-color-heading-dark);
  margin: 0 0 16px;
}

.as-subtitle,
.as-section-subtitle {
  font-family: var(--as-font-body);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--as-color-body-text);
  max-width: 700px;
  margin: 0 auto;
}

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .as-title,
  .as-section-title {
    font-size: 30px;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .as-section-header {
    margin-bottom: 30px;
  }

  .as-title,
  .as-section-title {
    font-size: 24px;
    line-height: 1.35;
  }
}

/* END: Section Header */

/* START: Buttons */
.as-btn {
  display: inline-block;
  font-family: var(--as-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  padding: 10px 22px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* The site stylesheet turns every focused link red and underlined (a:focus), so the button states are set here */
.as-btn:hover,
.as-btn:focus,
.as-btn:active {
  color: #ffffff;
  text-decoration: none;
}

.as-btn:hover {
  transform: translateY(-1px);
}

.as-btn-red {
  background-color: var(--as-color-primary-red);
}

.as-btn-red:hover {
  background-color: var(--as-color-primary-red-hover);
  box-shadow: 0 4px 12px rgba(202, 68, 65, 0.25);
}

.as-btn-teal {
  background-color: var(--as-color-secondary-teal);
}

.as-btn-teal:hover {
  background-color: var(--as-color-secondary-teal-hover);
  box-shadow: 0 4px 12px rgba(83, 119, 122, 0.25);
}

/* END: Buttons */
