/* Better Tomorrow Behavioral Health - matched to reference palette */
@import url("https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap");

:root {
  --primary: #03347a;
  --secondary: #1d1d1d;
  --text: #000000;
  --accent: #6cc543;
  --accent-soft: #6cc543;
  --navy: #253750;
  --soft-blue: #edf1fc;
  --white: #ffffff;
  --gray: #f0f0f0;
  --green-dark: #37880e;
  --warm: #ffbc7d;
  --muted: #5a6574;
  --dashed: #c9cdd4;
  --shadow: 0 18px 50px rgba(3, 52, 122, 0.12);
  --radius: 18px;
  --container: 1180px;
  --font: "Urbanist", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea,
select,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Top bar */
.topbar {
  background: var(--primary);
  color: var(--white);
  font-size: 0.92rem;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
}

.topbar a:hover {
  color: var(--accent-soft);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(3, 52, 122, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo img {
  height: 62px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.nav__links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--primary);
}

.nav__links a.is-active::after,
.nav__links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
}

.nav__toggle {
  display: none;
  border: 0;
  background: var(--soft-blue);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.35rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: #6cc543;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(108, 197, 67, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 14px 30px rgba(108, 197, 67, 0.45);
}

.btn--outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn--dark {
  background: var(--primary);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(3, 52, 122, 0.88) 0%, rgba(37, 55, 80, 0.55) 48%, rgba(3, 52, 122, 0.35) 100%),
    url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1800&q=80")
      center/cover no-repeat;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero__content {
  padding: 5.5rem 0 4.5rem;
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.45rem;
  max-width: min(100%, 34rem);
  margin: 0 0 1rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(3, 52, 122, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: var(--font);
  font-size: clamp(0.92rem, 2.2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.25;
  backdrop-filter: blur(6px);
}

.hero__eyebrow span {
  white-space: nowrap;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 700;
}

.hero h1 span {
  color: var(--accent-soft);
}

.hero p {
  margin: 0 0 1.75rem;
  max-width: 540px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
}

/* Section base */
.section {
  padding: 5rem 0;
}

.section--soft {
  background:
    var(--soft-blue);
}

.section--gray {
  background: var(--gray);
}

.section--navy {
  background:
    linear-gradient(135deg, #03347a, #253750 70%),
    var(--primary);
  color: var(--white);
}

.section__label {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.section--navy .section__label {
  color: var(--accent-soft);
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.section--navy .section__title {
  color: var(--white);
}

.section__lead {
  margin: 0 0 2rem;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section--navy .section__lead {
  color: rgba(255, 255, 255, 0.85);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: #333;
}

.view-link {
  color: #333;
  font-weight: 600;
  white-space: nowrap;
}

.view-link:hover {
  color: var(--primary);
}

.dashed {
  border: 0;
  border-top: 1.5px dashed var(--dashed);
  margin: 0 0 1.75rem;
}

/* Insurance - green bar + auto-scrolling white logo cards */
.insurance {
  padding: 1.15rem 0;
  background: #6cc543;
  overflow: hidden;
}

.insurance__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.insurance__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  margin: 0;
  flex-shrink: 0;
  z-index: 2;
}

.insurance__label::after {
  content: "";
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.75);
}

.insurance__track-wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.insurance__track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  animation: insurance-marquee 32s linear infinite;
}

.insurance__track:hover {
  animation-play-state: paused;
}

.ins-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  min-width: 132px;
  padding: 0.45rem 0.85rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.ins-logo img {
  height: 44px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

@keyframes insurance-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Feature row - navy band */
.features-band {
  background: linear-gradient(135deg, #03347a, #00285f);
  padding: 3.25rem 0;
  color: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.feature__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--white);
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  font-size: 1.55rem;
}

.feature__icon svg {
  display: block;
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  color: var(--white);
}

.feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}

/* About */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split--reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.media-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
  background: var(--soft-blue);
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(3, 52, 122, 0.45));
}

.badge-float {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  background: var(--white);
  color: var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: floaty 4s ease-in-out infinite;
}

/* Services explorer - sidebar + detail (reference layout) */
.services-explorer {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 1.75rem;
  align-items: start;
}

.services-side {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(3, 52, 122, 0.1);
  overflow: hidden;
}

.services-side__title {
  margin: 0;
  padding: 1.05rem 1.2rem;
  background: #6cc543;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font);
}

.services-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-menu__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  border: 0;
  border-bottom: 1px solid #eceff3;
  background: transparent;
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.services-menu__btn i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(108, 197, 67, 0.14);
  color: var(--green-dark);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.services-menu__btn:hover,
.services-menu__btn.is-active {
  background: #f4faf0;
  color: var(--green-dark);
}

.services-menu__btn.is-active i {
  background: var(--accent);
  color: var(--white);
}

.services-detail {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(3, 52, 122, 0.08);
  overflow: hidden;
}

.services-detail__media {
  position: relative;
  min-height: 280px;
  max-height: 360px;
  overflow: hidden;
}

.services-detail__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 360px;
  object-fit: cover;
}

.services-detail__body {
  padding: 2rem 2rem 2.25rem;
}

.services-detail__body h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  color: var(--primary);
  font-weight: 700;
}

.services-detail__body p {
  margin: 0 0 1rem;
  color: #3d4654;
  font-size: 1.02rem;
  line-height: 1.7;
}

.services-detail__cta h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.35rem;
  color: var(--primary);
}

.services-detail__cta p {
  margin: 0 0 1.25rem;
}

.services-detail__cta a.phone {
  color: var(--primary);
  font-weight: 700;
}

.section--explorer {
  background: #f5f6f8;
}

/* Services - card mosaic (homepage teaser) */
.services-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 168px;
  padding: 1.35rem 1.25rem;
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(237, 241, 252, 0.95)),
    var(--white);
  border: 1px solid rgba(3, 52, 122, 0.08);
  box-shadow: 0 10px 28px rgba(3, 52, 122, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #6cc543;
}

.service-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 197, 67, 0.45);
  box-shadow: 0 16px 36px rgba(3, 52, 122, 0.12);
}

.service-tile__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(108, 197, 67, 0.14);
  color: var(--primary);
  font-size: 1.35rem;
}

.service-tile h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--secondary);
}

.service-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.service-tile__link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.service-tile:hover .service-tile__link {
  color: var(--green-dark);
}

.services-cta-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.dual-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.service-card {
  border-radius: 22px;
  padding: 2rem;
  background: var(--white);
  border: 1px solid rgba(3, 52, 122, 0.08);
  box-shadow: 0 10px 30px rgba(3, 52, 122, 0.06);
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: var(--primary);
}

.service-card p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.service-card ul {
  margin-bottom: 1.25rem;
}

.service-card li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.45rem;
  color: var(--navy);
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Philosophy / mission */
.mission-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.mission-copy,
.mission-box {
  border-radius: 22px;
  padding: 2rem;
}

.mission-copy {
  background: var(--white);
  box-shadow: var(--shadow);
}

.mission-stack {
  display: grid;
  gap: 1rem;
}

.mission-box {
  background: linear-gradient(160deg, var(--primary), #0a4aa0);
  color: var(--white);
}

.mission-box h3 {
  margin: 0 0 0.6rem;
  color: var(--accent-soft);
}

.mission-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Why choose */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
  margin: 1.5rem 0 0;
}

.check-grid li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 600;
  color: var(--navy);
}

.check-grid li::before {
  content: "OK";
  color: var(--white);
  background: var(--accent);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Form */
.form-panel {
  background: var(--white);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow);
  color: var(--navy);
}

.form-panel h3 {
  margin: 0 0 0.35rem;
  color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d7dce5;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: #fbfcff;
  color: var(--navy);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(108, 197, 67, 0.45);
  border-color: var(--accent);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid rgba(3, 52, 122, 0.1);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.price-card {
  background: var(--white);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(3, 52, 122, 0.08);
  text-align: center;
}

.price-card.is-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.price-card h3 {
  margin: 0 0 0.5rem;
  color: var(--primary);
}

.price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0.5rem 0;
}

.price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

/* Page hero (inner) */
.page-hero {
  padding: 4.5rem 0 3.5rem;
  background:
    linear-gradient(120deg, rgba(3, 52, 122, 0.92), rgba(37, 55, 80, 0.85)),
    url("https://images.unsplash.com/photo-1559757148-5c350d0d3c56?auto=format&fit=crop&w=1600&q=80")
      center/cover no-repeat;
  color: var(--white);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -1px;
}

.page-hero p {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.site-footer {
  background: #021f4a;
  color: rgba(255, 255, 255, 0.88);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h4 {
  margin: 0 0 1rem;
  color: var(--white);
}

.site-footer a:hover {
  color: var(--accent-soft);
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 280px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.92rem;
}

.socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

/* ========== Site motion (calm, professional) ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.hero__content > * {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__content > *:nth-child(1) { animation-delay: 0.1s; }
.hero__content > *:nth-child(2) { animation-delay: 0.25s; }
.hero__content > *:nth-child(3) { animation-delay: 0.4s; }
.hero__content > *:nth-child(4) { animation-delay: 0.55s; }

.page-hero .container {
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-header {
  transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(3, 52, 122, 0.12);
  background: rgba(255, 255, 255, 0.97);
}

.feature__icon {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature:hover .feature__icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  animation: iconPulse 1.6s ease-in-out infinite;
}

.ins-logo {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ins-logo:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.media-frame img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-frame:hover img {
  transform: scale(1.04);
}

.price-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(108, 197, 67, 0.45);
}

.mission-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(3, 52, 122, 0.25);
}

.faq-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
  box-shadow: 0 10px 28px rgba(3, 52, 122, 0.08);
}

.faq-item p {
  animation: fadeSlide 0.35s ease;
}

.services-detail__media img {
  transition: opacity 0.45s ease, transform 0.6s ease;
}

.services-detail__media.is-switching img {
  opacity: 0.35;
  transform: scale(1.03);
}

.services-detail__body article {
  animation: fadeSlide 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-menu__btn {
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, padding-left 0.25s ease;
}

.services-menu__btn:hover {
  transform: translateX(4px);
}

.services-menu__btn.is-active {
  transform: translateX(6px);
}

.socials a {
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.socials a:hover {
  transform: translateY(-3px);
  background: #6cc543;
  color: #fff;
}

.form-panel {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn:hover::after {
  transform: translateX(120%);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #03347a;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.25s ease;
  box-shadow: 0 10px 24px rgba(3, 52, 122, 0.28);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: #6cc543;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes heroZoom {
  from {
    background-size: 100% auto;
  }
  to {
    background-size: 108% auto;
  }
}

@keyframes iconPulse {
  0%,
  100% {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 12px 28px rgba(108, 197, 67, 0.35);
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .hero__content > * {
    opacity: 1;
    transform: none;
  }

  .insurance__track {
    animation: none;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }

  .section {
    padding: 3.75rem 0;
  }

  .hero {
    min-height: min(78vh, 700px);
    animation: none;
  }

  .hero__content {
    padding: 4rem 0 3.25rem;
    max-width: 100%;
  }

  .services-explorer {
    grid-template-columns: minmax(240px, 300px) 1fr;
    gap: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .mission-grid,
  .split,
  .split--reverse {
    gap: 2rem;
  }
}

/* Tablet / small laptop */
@media (max-width: 960px) {
  .nav__toggle {
    display: grid;
    place-items: center;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(3, 52, 122, 0.1);
    display: none;
    animation: fadeSlide 0.3s ease;
    max-height: calc(100vh - 80px);
    overflow: auto;
  }

  .nav__links.is-open {
    display: flex;
  }

  .feature-grid,
  .services-mosaic,
  .services-explorer,
  .split,
  .split--reverse,
  .dual-cards,
  .mission-grid,
  .check-grid,
  .pricing-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    grid-template-columns: auto 1fr;
  }

  .insurance__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .insurance__label {
    font-size: 0.95rem;
    white-space: normal;
  }

  .insurance__label::after {
    display: none;
  }

  .insurance__track {
    animation-duration: 24s;
  }

  .price-card.is-featured {
    transform: none;
  }

  .section-head,
  .services-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-detail__body {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .topbar__inner {
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
  }
}

@media (max-width: 900px) {
  .services-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 72vh;
    align-items: center;
  }

  .hero__content {
    padding: 3.25rem 0 2.75rem;
  }

  .hero__eyebrow {
    border-radius: 16px;
    padding: 0.65rem 0.9rem;
    justify-content: center;
    text-align: center;
  }

  .hero__eyebrow span {
    white-space: normal;
    display: inline;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-row {
    width: 100%;
  }

  .btn-row .btn {
    width: 100%;
  }

  .services-mosaic,
  .footer-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .logo img {
    height: 48px;
  }

  .ins-logo {
    height: 56px;
    min-width: 112px;
  }

  .ins-logo img {
    height: 36px;
  }

  .page-hero {
    padding: 3rem 0 2.5rem;
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .services-side__title {
    font-size: 1.05rem;
    padding: 0.95rem 1rem;
  }

  .services-menu__btn {
    font-size: 0.92rem;
    padding: 0.85rem 1rem;
  }

  .back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 44px;
    height: 44px;
  }

  .topbar__inner {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 420px) {
  .hero__eyebrow span {
    display: block;
    width: 100%;
    white-space: normal;
  }

  .feature__icon {
    width: 52px;
    height: 52px;
  }
}
