:root {
  --navy: #06275d;
  --navy-dark: #011b42;
  --blue: #0754d8;
  --green: #07952b;
  --green-dark: #02751e;
  --lime: #a9e900;
  --text: #061f55;
  --muted: #415273;
  --line: #dfe7f1;
  --soft: #f3f7fb;
  --white: #ffffff;
  --shadow: 0 16px 36px rgba(6, 31, 85, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(760px 560px at 5% -2%, rgba(7, 149, 43, 0.13), transparent 62%),
    radial-gradient(820px 620px at 100% 10%, rgba(13, 85, 220, 0.13), transparent 62%),
    radial-gradient(720px 680px at -8% 55%, rgba(13, 85, 220, 0.1), transparent 60%),
    radial-gradient(780px 640px at 108% 92%, rgba(7, 149, 43, 0.12), transparent 62%);
}

body.menu-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(6, 31, 85, 0.05);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.98);
  }
}

.navbar {
  width: min(1280px, calc(100% - 80px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand img {
  width: 168px;
  height: auto;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  color: #03194a;
  padding: 31px 0 28px;
  white-space: nowrap;
}

.nav-links a.active {
  color: var(--green);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 38px;
  height: 2px;
  background: var(--green);
  transform: translateX(-50%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

section[id],
footer[id] {
  scroll-margin-top: 100px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.phone-pill,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.phone-pill {
  padding: 0 18px;
  border: 1px solid #85d99b;
  color: var(--text);
}

.phone-pill svg {
  width: 18px;
  color: var(--green);
  fill: var(--green);
  stroke-width: 0;
}

.btn {
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(7, 149, 43, 0.2);
}

.btn-primary {
  padding: 0 24px;
  color: var(--white);
  background: linear-gradient(135deg, #0aaa30, #018a22);
}

.btn-secondary,
.btn-outline {
  color: var(--text);
  background: var(--white);
  border-color: #a4d7b2;
}

.btn-large {
  min-width: 178px;
  min-height: 43px;
}

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 30%, rgba(255,255,255,0.15) 58%, rgba(255,255,255,0) 100%),
    radial-gradient(circle at 55% 45%, rgba(255, 231, 198, 0.7), transparent 34%),
    #f5f5f2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 41% 45%, rgba(16, 95, 38, 0.28) 0 5px, transparent 6px 100%),
    radial-gradient(circle at 40% 55%, rgba(16, 95, 38, 0.25) 0 10px, transparent 11px 100%);
  filter: blur(6px);
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  padding: 52px 0 76px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1,
.section-intro h2 {
  margin: 0;
  color: var(--text);
  font-size: 54px;
  font-weight: 900;
  line-height: 1.08;
}

.hero h1 {
  max-width: 430px;
}

.hero h1 span,
.section-intro h2 span {
  color: var(--green);
}

.hero-copy {
  max-width: 430px;
  margin: 20px 0 28px;
  color: var(--text);
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 27px;
  flex-wrap: wrap;
}

.hero-family {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
  width: min(62vw, 820px);
  min-height: 430px;
  object-fit: cover;
  object-position: right bottom;
}

.feature-strip {
  position: relative;
  z-index: 5;
  width: min(1220px, calc(100% - 96px));
  min-height: 112px;
  margin: -42px auto 0;
  padding: 24px 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  color: var(--white);
  background: rgba(6, 27, 66, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(3, 25, 74, 0.28);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.feature-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  align-items: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.34);
}

.feature-item:hover .feature-icon {
  transform: scale(1.08);
}

.feature-item:first-child {
  padding-left: 8px;
}

.feature-item:last-child {
  border-right: 0;
  padding-right: 8px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: var(--lime);
  border: 2px solid var(--lime);
  border-radius: 50%;
  transition: transform 220ms ease;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 900;
}

.feature-item p {
  max-width: 184px;
  margin: 0;
  font-size: 13px;
}

.section-pad {
  width: min(1220px, calc(100% - 96px));
  margin: 0 auto;
  padding: 44px 0 34px;
}

.services {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 42px;
  align-items: start;
}

.section-intro h2 {
  max-width: 315px;
  font-size: 31px;
  line-height: 1.16;
}

.section-intro p:not(.eyebrow) {
  margin: 13px 0 18px;
  color: var(--text);
  font-size: 14px;
}

.btn-outline {
  min-width: 184px;
  min-height: 41px;
  padding: 0 20px;
}

.service-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  background:
    radial-gradient(520px 340px at 4% -12%, rgba(7, 149, 43, 0.16), transparent 68%),
    radial-gradient(520px 360px at 98% 112%, rgba(13, 85, 220, 0.15), transparent 68%);
}

.service-card,
.quote-card,
.about-point,
.faq-item {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(6, 31, 85, 0.1);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease,
    border-color 220ms ease;
}

.service-card:hover,
.service-card:focus-within,
.quote-card:hover,
.quote-card:focus-within,
.about-point:hover,
.about-point:focus-within,
.faq-item:hover,
.faq-item:focus-within {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(7, 149, 43, 0.4);
  box-shadow: 0 24px 48px rgba(6, 31, 85, 0.18);
}

.service-card {
  position: relative;
  z-index: 1;
  min-height: 260px;
  padding: 30px 32px 26px;
}

.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  transform: translateY(-2px) scale(1.08);
}

.service-card:hover a span,
.service-card:focus-within a span {
  padding-left: 18px;
}

.service-icon {
  display: inline-flex;
  width: 51px;
  height: 51px;
  margin-bottom: 21px;
  align-items: center;
  justify-content: center;
  transition: transform 220ms ease;
}

.service-icon svg {
  width: 50px;
  height: 50px;
}

.green {
  color: var(--green);
}

.blue {
  color: #0d55dc;
}

.service-card h3,
.step-card h3,
.person h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.service-card p {
  margin: 13px 0 24px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.service-card a {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.service-card a span {
  padding-left: 12px;
  transition: padding-left 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card:hover,
  .service-card:focus-within,
  .service-icon,
  .quote-card:hover,
  .quote-card:focus-within,
  .about-point:hover,
  .about-point:focus-within,
  .faq-item:hover,
  .faq-item:focus-within,
  .step-card,
  .step-card:hover,
  .step-card:focus-within,
  .step-icon,
  .stats article:hover,
  .feature-item:hover .feature-icon,
  .quote-card:hover .quote-mark,
  .quote-card:focus-within .quote-mark,
  .quote-card:hover .person img,
  .quote-card:focus-within .person img {
    transform: none;
  }
}

/* Keep panels readable where backdrop-filter is unsupported. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .service-card,
  .quote-card,
  .about-point,
  .faq-item {
    background: var(--white);
  }

  .steps,
  .stats {
    background: #e6f0fb;
  }

  .feature-strip {
    background: #062b66;
  }

  .apply {
    background: #04143a;
  }

  .step-icon {
    background: var(--white);
  }
}

.steps {
  width: min(1220px, calc(100% - 96px));
  margin: 0 auto;
  padding: 36px 32px 38px;
  display: grid;
  grid-template-columns: 275px 1fr;
  gap: 42px;
  align-items: center;
  background: rgba(202, 224, 247, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(6, 31, 85, 0.08);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.with-line::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  margin-left: 9px;
  vertical-align: middle;
  background: var(--green);
}

.steps-intro h2 {
  max-width: 255px;
}

.steps-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.steps-track::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 85px;
  right: 92px;
  border-top: 2px dotted #1f72e9;
}

.step-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  transition: transform 220ms ease;
}

.step-card:hover,
.step-card:focus-within {
  transform: translateY(-5px);
}

.step-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(6, 31, 85, 0.12);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.step-card:hover .step-icon,
.step-card:focus-within .step-icon {
  transform: scale(1.08);
  box-shadow: 0 14px 28px rgba(6, 31, 85, 0.16);
}

.step-icon svg {
  width: 38px;
  height: 38px;
}

.step-title {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 9px;
  align-items: center;
}

.step-title span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.step-card p {
  margin: 8px 0 0 34px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.testimonials {
  position: relative;
  display: grid;
  grid-template-columns: 275px 1fr;
  gap: 42px;
  align-items: center;
}

.testimonial-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  background:
    radial-gradient(520px 340px at 4% -12%, rgba(7, 149, 43, 0.16), transparent 68%),
    radial-gradient(520px 360px at 98% 112%, rgba(13, 85, 220, 0.15), transparent 68%);
}

.quote-card {
  position: relative;
  z-index: 1;
  min-height: 215px;
  padding: 26px 23px 22px;
}

.quote-card:hover .quote-mark,
.quote-card:focus-within .quote-mark {
  transform: translateY(-2px) scale(1.12);
}

.quote-card:hover .person img,
.quote-card:focus-within .person img {
  transform: scale(1.08);
}

.quote-mark {
  display: block;
  height: 30px;
  color: var(--green);
  font-size: 44px;
  font-weight: 900;
  line-height: 0.7;
  transition: transform 220ms ease;
}

.quote-card p {
  min-height: 72px;
  margin: 0 0 19px;
  color: var(--text);
  font-size: 13px;
}

.person {
  display: flex;
  align-items: center;
  gap: 15px;
}

.person img {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.person span {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 12px;
}

.stats {
  width: min(1220px, calc(100% - 96px));
  margin: 0 auto 30px;
  padding: 29px 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(202, 224, 247, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(6, 31, 85, 0.08);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.stats article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 50px;
  border-right: 1px solid #ccd9e8;
  transition: transform 220ms ease;
}

.stats article:hover {
  transform: translateY(-4px);
}

.stats article:last-child {
  border-right: 0;
}

.stats svg {
  width: 45px;
  height: 45px;
  color: var(--green);
}

.stats strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 12px;
}

.footer {
  padding: 31px 0 19px;
  color: var(--white);
  background: linear-gradient(135deg, #062f68, #011b42);
}

.footer-grid,
.footer-bottom {
  width: min(1180px, calc(100% - 96px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-grid > div {
  padding-left: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-grid > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.footer-brand img {
  display: block;
  width: 178px;
  height: auto;
}

.footer p,
.footer a {
  color: var(--white);
  font-size: 13px;
}

.footer-brand p {
  max-width: 220px;
  margin: 25px 0 16px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease,
    color 200ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-3px);
  color: var(--navy-dark);
  background: var(--lime);
  border-color: var(--lime);
}

.footer h3 {
  margin: 5px 0 14px;
  font-size: 14px;
}

.footer-grid a {
  display: block;
  margin-bottom: 9px;
}

.contact-list p {
  display: flex;
  gap: 11px;
  margin: 0 0 11px;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 19px;
}

.footer-credit {
  color: rgba(255, 255, 255, 0.75);
}

.footer-credit .heart {
  color: #ff5a7a;
}

.footer-credit a {
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-credit a:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.social-links svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.about {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 42px;
  align-items: start;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.about-point {
  padding: 24px 22px;
}

.about-point svg {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  color: var(--green);
}

.about-point h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.about-point p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.faqs {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 42px;
  align-items: start;
}

.faq-item {
  margin-bottom: 12px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 22px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--green);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

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

.faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.apply {
  width: min(1220px, calc(100% - 96px));
  margin: 0 auto 34px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
  color: var(--white);
  background: rgba(4, 20, 52, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(3, 25, 74, 0.3);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.apply .eyebrow {
  color: var(--lime);
}

.apply h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
}

.apply h2 span {
  color: var(--lime);
}

.apply-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.apply-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.apply-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

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

.apply-form input,
.apply-form select {
  height: 42px;
  padding: 0 13px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 8px;
}

.apply-form input:focus,
.apply-form select:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(169, 233, 0, 0.35);
}

.apply-form button {
  grid-column: 1 / -1;
  min-height: 46px;
  margin-top: 4px;
}

.legal {
  width: min(860px, calc(100% - 96px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.legal h1 {
  margin: 6px 0 8px;
  color: var(--text);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
}

.legal-updated {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.legal-body h2 {
  margin: 32px 0 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.legal-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-body a {
  color: var(--green);
  font-weight: 700;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.menu-toggle,
.toast,
.app-tabbar {
  display: none;
}

.toast.show {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: block;
  padding: 13px 18px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .navbar {
    width: min(1040px, calc(100% - 48px));
    gap: 18px;
  }

  .brand img {
    width: 156px;
  }

  .nav-panel {
    gap: 18px;
  }

  .nav-links {
    gap: 15px;
    font-size: 12px;
  }

  .phone-pill {
    display: none;
  }

  .hero-content,
  .section-pad,
  .feature-strip,
  .steps,
  .stats,
  .apply,
  .footer-grid,
  .footer-bottom {
    width: min(1040px, calc(100% - 56px));
  }

  .hero {
    min-height: 390px;
  }

  .hero-content {
    padding: 42px 0 52px;
  }

  .hero h1 {
    max-width: 390px;
    font-size: 46px;
  }

  .hero-copy {
    max-width: 365px;
    font-size: 16px;
  }

  .hero-family {
    width: min(62vw, 690px);
    min-height: 390px;
  }

  .feature-strip {
    padding: 22px 24px;
  }

  .feature-item {
    grid-template-columns: 54px 1fr;
    gap: 14px;
    padding: 0 14px;
  }

  .feature-icon {
    width: 54px;
    height: 54px;
  }

  .feature-item h3 {
    font-size: 13px;
  }

  .feature-item p {
    font-size: 12px;
  }

  .services {
    grid-template-columns: 240px 1fr;
    gap: 30px;
  }

  .service-card {
    padding: 24px 22px 22px;
  }

  .steps,
  .testimonials,
  .about,
  .faqs {
    grid-template-columns: 245px 1fr;
  }
}

@media (max-width: 900px) {
  .navbar,
  .hero-content,
  .section-pad,
  .feature-strip,
  .steps,
  .stats,
  .apply,
  .footer-grid,
  .footer-bottom {
    width: min(930px, calc(100% - 40px));
  }

  .nav-panel {
    gap: 18px;
  }

  .nav-links {
    gap: 16px;
  }

  .phone-pill {
    display: none;
  }

  .hero-family {
    width: 64vw;
  }

  .feature-strip,
  .services,
  .steps,
  .testimonials,
  .stats,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about,
  .faqs,
  .apply {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .about-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about .section-intro h2,
  .faqs .section-intro h2 {
    max-width: 100%;
  }

  .feature-item:nth-child(2) {
    border-right: 0;
  }

  .feature-item:nth-child(n + 3) {
    margin-top: 20px;
  }

  .service-grid,
  .testimonial-grid,
  .steps-track {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-intro h2 {
    max-width: 420px;
  }

  .steps-track::before {
    display: none;
  }

  .footer-grid > div {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .navbar {
    min-height: 72px;
  }

  .brand img {
    width: 140px;
  }

  .menu-toggle {
    position: relative;
    z-index: 25;
    width: 42px;
    height: 42px;
    display: grid !important;
    place-content: center;
    gap: 5px;
    background: var(--white);
    border: 1px solid #dce8f1;
    border-radius: 8px;
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
  }

  .nav-panel {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    z-index: 24;
    display: none;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    padding: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }

  body.menu-open .nav-panel {
    display: block;
  }

  .nav-links,
  .nav-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
  }

  .nav-links a.active::after {
    left: 0;
    bottom: 5px;
    transform: none;
  }

  .nav-actions {
    margin-top: 16px;
  }

  .phone-pill {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    background: var(--white);
  }

  .hero::before {
    display: none;
  }

  .hero-content {
    padding: 36px 0 28px;
  }

  .hero h1 {
    max-width: 340px;
    font-size: 38px;
  }

  .hero-copy {
    max-width: 310px;
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-large {
    width: min(100%, 230px);
  }

  .hero-family {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    background: #f5f5f2;
  }

  .feature-strip,
  .services,
  .steps,
  .testimonials,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    margin-top: 0;
    border-radius: 0;
  }

  .feature-item {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .feature-item:first-child {
    padding-left: 0;
  }

  .feature-item:last-child {
    border-bottom: 0;
  }

  .service-grid,
  .testimonial-grid,
  .steps-track,
  .about-points,
  .apply-form {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .apply {
    padding: 28px 22px;
  }

  .section-intro h2 {
    max-width: 100%;
    font-size: 25px;
  }

  .steps {
    padding: 30px 22px;
  }

  .step-icon {
    margin-left: 0;
  }

  .stats article {
    justify-content: flex-start;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid #ccd9e8;
  }

  .stats article:last-child {
    border-bottom: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .navbar,
  .hero-content,
  .section-pad,
  .feature-strip,
  .steps,
  .stats,
  .apply,
  .footer-grid,
  .footer-bottom {
    width: calc(100% - 28px);
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-buttons {
    gap: 12px;
  }

  .btn-large,
  .btn-outline {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------
   Mobile app-style shell: bottom tab bar + native-feeling chrome (<= 760px)
   --------------------------------------------------------------------------- */
@media (max-width: 760px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
    -webkit-tap-highlight-color: transparent;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.82);
  }

  .app-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding: 9px 6px calc(9px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 -12px 34px rgba(6, 31, 85, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(26px) saturate(190%);
    -webkit-backdrop-filter: blur(26px) saturate(190%);
  }

  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .app-tabbar {
      background: rgba(255, 255, 255, 0.97);
    }
  }

  .app-tabbar .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: color 160ms ease, transform 160ms ease;
  }

  .app-tabbar .tab svg {
    width: 22px;
    height: 22px;
  }

  .app-tabbar .tab.active {
    color: var(--green);
  }

  .app-tabbar .tab:active {
    transform: scale(0.92);
  }

  .app-tabbar .tab-cta {
    color: var(--green);
  }

  .app-tabbar .tab-cta svg {
    width: 54px;
    height: 54px;
    padding: 15px;
    margin-top: -26px;
    color: var(--white);
    background: linear-gradient(135deg, #0aaa30, #018a22);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(7, 149, 43, 0.45);
  }

  .toast.show {
    left: 16px;
    right: 16px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    text-align: center;
  }

  .legal {
    padding-top: 36px;
  }

  /* Compact, app-style footer sheet */
  .footer {
    margin-top: 10px;
    padding: 30px 0 24px;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(180deg, #063577, #01184a);
  }

  .footer-grid,
  .footer-bottom {
    width: calc(100% - 44px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .footer-brand,
  .footer-grid .contact-list {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-brand img {
    margin: 0 auto 4px;
    width: 168px;
  }

  .footer-brand p {
    max-width: 300px;
    margin: 16px auto 14px;
  }

  .social-links {
    justify-content: center;
    gap: 14px;
  }

  .footer h3 {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
  }

  .footer-grid a {
    margin-bottom: 11px;
  }

  .contact-list {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .contact-list p {
    justify-content: center;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    text-align: center;
  }

  .footer-bottom .legal-links {
    justify-content: center;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .app-tabbar .tab,
  .app-tabbar .tab:active {
    transition: none;
    transform: none;
  }
}
