:root {
  --teal: #2da8a8;
  --coral: #e07a6a;
  --navy: #1b3060;
  --green: #6b8a3e;
  --cream: #fdfaf6;
  --warm-gray: #f5f0ea;
  --amber: #c8922a;
  --ink: #223047;
  --muted: #667286;
  --white: #fff;
  --shadow: 0 18px 45px rgba(27, 48, 96, .13);
  --soft-shadow: 0 12px 28px rgba(27, 48, 96, .09);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  color: var(--navy);
  line-height: 1.16;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.35rem; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 1000;
  padding: .7rem 1rem; border-radius: 999px; background: var(--navy); color: var(--white);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(253, 250, 246, .9);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(27, 48, 96, .12);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 900; color: var(--navy); }
.brand img { height: 58px; width: auto; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(13,22,39,.16)); }
.brand span { display: none; }
.nav-toggle {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border: 0; border-radius: 999px;
  color: var(--navy); background: rgba(255,255,255,.9); box-shadow: var(--soft-shadow); cursor: pointer;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 22px; height: 2px; border-radius: 99px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.nav-open .hamburger { transform: rotate(45deg); }
.nav-open .hamburger::before { transform: translateY(7px) rotate(90deg); }
.nav-open .hamburger::after { opacity: 0; }
.nav-menu {
  position: absolute; top: calc(100% - 8px); left: 16px; right: 16px;
  display: grid; gap: .25rem; padding: 1rem;
  border-radius: var(--radius); background: rgba(253, 250, 246, .98); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
}
.nav-open .nav-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-menu a {
  position: relative; padding: .7rem .85rem; border-radius: 10px;
  color: var(--navy); font-weight: 900;
}
.nav-menu a:not(.nav-cta)::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .42rem; height: 2px;
  border-radius: 999px; background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--teal); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex; justify-content: center; align-items: center;
  color: var(--white) !important; background: var(--teal); box-shadow: 0 10px 24px rgba(45,168,168,.25);
}
.nav-cta.active {
  box-shadow: 0 10px 24px rgba(45,168,168,.25), inset 0 -4px 0 rgba(255,255,255,.55);
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 48px; padding: .82rem 1.25rem; border: 2px solid transparent; border-radius: 999px;
  font-weight: 900; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--teal); box-shadow: 0 14px 28px rgba(45,168,168,.28); }
.button-light { color: var(--white); border-color: rgba(255,255,255,.85); background: rgba(255,255,255,.1); }
.button-outline { color: var(--teal); border-color: var(--teal); background: transparent; }

.section { padding: 76px 0; }
.section-soft { background: var(--warm-gray); }
.section-title { max-width: 760px; margin-bottom: 2rem; }
.section-title p, .lead { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-flex; margin-bottom: .8rem; color: var(--teal);
  font-size: .84rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}

.hero, .page-hero {
  position: relative; display: grid; color: var(--white);
  background-image: linear-gradient(rgba(13,22,39,.32), rgba(13,22,39,.44)), var(--hero-image);
  background-position: center; background-size: cover; overflow: hidden;
}
.hero { min-height: 100vh; padding: 118px 0 74px; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 120px;
  background: linear-gradient(to top, var(--cream), rgba(253,250,246,0)); pointer-events: none;
}
.hero .container, .page-hero .container { position: relative; z-index: 1; display: grid; align-items: center; }
.hero-content { max-width: 860px; }
.hero-logo {
  width: min(260px, 72vw); margin-bottom: 1.5rem; padding: .75rem 1rem;
  border-radius: var(--radius); background: rgba(255,255,255,.92); box-shadow: var(--shadow);
}
.hero h1, .page-hero h1 { color: var(--white); text-wrap: balance; }
.hero p, .page-hero p { max-width: 700px; margin-top: 1rem; color: rgba(255,255,255,.93); font-size: clamp(1.12rem, 2vw, 1.45rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.page-hero { min-height: 390px; padding: 132px 0 66px; }

.cards-grid, .service-grid, .testimonial-grid, .services-list, .steps, .timeline, .contact-layout { display: grid; gap: 1.25rem; }
.feature-card, .service-preview, .service-card, .testimonial-card, .form-card, .contact-card, .timeline-item {
  border-radius: var(--radius); background: var(--white); box-shadow: var(--soft-shadow);
}
.feature-card, .service-preview, .testimonial-card { padding: 1.45rem; }
.icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem;
  border-radius: 14px; color: var(--white); background: var(--teal); font-size: 1.35rem;
}
.feature-card:nth-child(2) .icon, .service-preview:nth-child(2) .icon, .service-preview:nth-child(5) .icon { background: var(--coral); }
.feature-card:nth-child(3) .icon, .service-preview:nth-child(3) .icon, .service-preview:nth-child(6) .icon { background: var(--green); }

.quote-band {
  overflow: hidden; border-radius: var(--radius); padding: clamp(1.6rem, 5vw, 3.2rem);
  color: var(--white); background: var(--teal); box-shadow: var(--shadow);
}
.quote-band blockquote {
  margin: 0; font-family: "Lora", Georgia, serif; font-size: clamp(1.45rem, 3.2vw, 2.45rem); line-height: 1.35;
}
.quote-band cite, .testimonial-card cite {
  display: block; margin-top: 1rem; font-style: normal; font-weight: 900;
}
.quote-band cite { color: rgba(255,255,255,.9); }
.testimonial-card { border-left: 5px solid var(--teal); }
.testimonial-card cite { color: var(--navy); }

.split { display: grid; gap: 2rem; align-items: center; }
.portrait-wrap { position: relative; }
.portrait { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.portrait-round { aspect-ratio: 1; border-radius: 50%; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .72rem 1rem;
  border-radius: 999px; color: var(--navy); background: var(--white); box-shadow: var(--soft-shadow); font-weight: 900;
}
.portrait-wrap .badge { position: absolute; right: 16px; bottom: 16px; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--teal); font-weight: 900; }

.service-preview { border: 1px solid rgba(27,48,96,.08); }
.service-preview .icon { width: 44px; height: 44px; margin-bottom: .8rem; font-size: 1.15rem; }
.service-card {
  position: relative; overflow: hidden; padding: 1.55rem; border: 1px solid rgba(27,48,96,.08);
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--bar, var(--teal)); }
.service-card .icon { background: var(--bar, var(--teal)); }

.footer-cta, .approach { color: rgba(255,255,255,.86); background: var(--navy); }
.footer-cta { padding: 56px 0; }
.footer-cta h2, .approach h2, .approach h3 { color: var(--white); }
.footer-cta .container { display: grid; gap: 1.25rem; align-items: center; }
.approach .section-title p { color: rgba(255,255,255,.78); }
.step {
  padding: 1.4rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  background: rgba(255,255,255,.08);
}
.step-number {
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: .85rem;
  border-radius: 50%; color: var(--navy); background: var(--teal); font-weight: 900;
}

.site-footer { padding: 42px 0 30px; color: rgba(255,255,255,.82); background: #13254e; }
.footer-grid { display: grid; gap: 1.5rem; text-align: center; }
.footer-brand { display: grid; justify-items: center; gap: .75rem; }
.footer-brand img { height: 52px; width: auto; filter: drop-shadow(0 5px 12px rgba(0,0,0,.18)); }
.footer-brand strong { display: block; color: var(--white); font-family: "Lora", Georgia, serif; font-size: 1.25rem; }
.footer-links, .footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.2rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.copyright { margin-top: 1.5rem; text-align: center; color: rgba(255,255,255,.68); font-size: .95rem; }

.pills { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.pill { display: inline-flex; padding: .52rem .82rem; border-radius: 999px; color: var(--navy); background: var(--warm-gray); font-weight: 900; }
.pill:nth-child(2), .pill:nth-child(5) { color: #7a342d; background: #f8e4df; }
.pill:nth-child(3) { color: #2f4a16; background: #eaf1dc; }
.pill:nth-child(4) { color: #0d6262; background: #def4f2; }
.timeline-item { padding: 1.25rem 1.25rem 1.25rem 1.55rem; border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; }
.timeline-item:nth-child(2) { border-left-color: var(--coral); }
.timeline-item:nth-child(3) { border-left-color: var(--green); }

.contact-layout { align-items: start; }
.form-card, .contact-card { padding: clamp(1.25rem, 4vw, 2rem); }
.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { color: var(--navy); font-weight: 900; }
.field input, .field textarea {
  width: 100%; border: 1px solid rgba(27,48,96,.16); border-radius: var(--radius-sm);
  padding: .88rem 1rem; color: var(--ink); background: var(--cream); font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(45,168,168,.14); }
.field input.invalid, .field textarea.invalid, .consent.invalid { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(224,122,106,.13); }
.consent {
  display: flex; gap: .7rem; align-items: flex-start; padding: .85rem;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--warm-gray); font-size: .96rem;
}
.consent input { margin-top: .25rem; accent-color: var(--teal); }
.success-message { display: none; margin-top: 1rem; padding: 1rem; border-radius: var(--radius-sm); color: #254315; background: #eaf4df; font-weight: 900; }
.success-message.visible { display: block; }
.error-message {
  color: #7a342d;
  background: #f8e4df;
}
.contact-list { display: grid; gap: 1rem; margin: 1.25rem 0 1.75rem; }
.contact-row { display: grid; grid-template-columns: 42px 1fr; gap: .85rem; align-items: center; }
.contact-row .icon { width: 42px; height: 42px; margin: 0; font-size: 1.1rem; }
.contact-row .icon {
  color: var(--ink);
  background: #e7f6f4;
  box-shadow: none;
}
.contact-row span { display: block; color: var(--muted); font-size: .92rem; font-weight: 900; }
.contact-row a, .contact-row strong { color: var(--navy); font-weight: 900; word-break: break-word; }
.contact-note { display: grid; grid-template-columns: 74px 1fr; gap: 1rem; align-items: center; padding-top: 1.25rem; border-top: 1px solid rgba(27,48,96,.1); }
.contact-note img { aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: var(--soft-shadow); }

.reveal { transform: translateY(18px); opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { transform: translateY(0); opacity: 1; }

@media (min-width: 640px) {
  .brand span { display: none; }
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 500px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; display: flex; align-items: center; gap: .35rem; padding: 0;
    border-radius: 0; background: transparent; box-shadow: none; opacity: 1; pointer-events: auto; transform: none;
  }
  .nav-menu a { padding: .55rem .65rem; }
  .nav-menu a:not(.nav-cta)::after { left: .65rem; right: .65rem; }
  .nav-cta { padding-inline: 1.05rem !important; }
  .site-header:not(.scrolled) .nav-menu a:not(.nav-cta) {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(13,22,39,.28);
  }
  .site-header:not(.scrolled) .nav-menu a.active {
    color: var(--teal);
    text-shadow: none;
  }
}
@media (min-width: 820px) {
  .split { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
  .split.reverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .footer-cta .container, .footer-grid { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; align-items: center; text-align: left; }
  .footer-brand { justify-items: start; }
  .footer-links, .footer-contact { justify-content: flex-start; }
  .testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); }
}
@media (max-width: 560px) {
  .container { width: min(100% - 24px, var(--container)); }
  .section { padding: 56px 0; }
  .hero-actions .button { width: 100%; }
  .portrait-wrap .badge { position: static; margin-top: -1.2rem; margin-left: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { transform: none; opacity: 1; }
}
