@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text);
  line-height: var(--text-lh);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-top: 44px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-light); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1em; max-width: var(--measure); color: var(--ink); font-size: var(--text); line-height: var(--text-lh); }
.lede { font-size: 1.125rem; line-height: var(--text-lh); color: var(--muted); max-width: 52ch; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}
.section { padding: 56px 0; }
.section-sm { padding: 40px 0; }
@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .section-sm { padding: 56px 0; }
}
.section-alt { background: var(--brand-soft); }
.section-brand { background: var(--brand); color: var(--footer-text); }
.section-brand h2, .section-brand h3 { color: var(--white); }
.section-brand p { color: var(--footer-muted); }
.section-brand a { color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 44px;
  z-index: 100;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-lite);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 251, 252, 0.98);
  box-shadow: 0 8px 28px rgba(25, 25, 25, 0.06);
  border-bottom-color: transparent;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding-block: 10px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
}
.brand-mark img {
  width: 56px; height: 56px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 4px;
}
.brand-mark__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.brand-mark__sub { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.nav-desktop { display: none; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-desktop a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 11px;
  border-radius: 8px;
  transition: color .24s ease, background .24s ease;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--white); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--brand); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--brand);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  padding: 12px 20px 20px;
  background: var(--paper);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 14px 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1040px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .brand-mark img { width: 68px; height: 68px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px;
  border-radius: 999px; font-family: var(--font-sans);
  font-size: 0.95rem; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease, border-color .24s ease, color .24s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--brand); color: var(--cta-ink); border-color: var(--brand);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--brand-light); color: var(--white); }
.btn--dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost {
  background: transparent; color: var(--brand); border-color: var(--border);
}
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn--ghost-light {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 60vh;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--paper) 88%);
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  padding: 56px 0 88px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; min-height: calc(60vh - 40px); }
}
.hero + .section { padding-top: 40px; }
.hero__copy h1 { margin-bottom: 16px; }
.hero__photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lite);
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero__badge {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(250, 251, 252, 0.95);
  color: var(--brand);
  font-size: 0.78rem; font-weight: 700;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--border-lite);
  box-shadow: var(--shadow-lite);
}

/* Cards / grids */
.trust-grid, .service-grid, .problem-grid, .area-grid, .value-grid {
  display: grid; gap: 20px;
}
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .area-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (min-width: 1000px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .value-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .problem-grid { gap: 24px; }
}
.card, .trust-card, .service-card, .problem-card, .area-card, .value-card {
  background: var(--white);
  border: 1px solid var(--border-lite);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 26px;
  box-shadow: var(--shadow-lite);
}
.service-card h3, .trust-card h3, .value-card h3, .area-card h3 { margin-bottom: 10px; color: var(--brand); }
.service-card p, .trust-card p, .value-card p, .area-card p, .problem-card p {
  margin: 0; font-size: 1rem; line-height: var(--text-lh); color: var(--muted);
}
.problem-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 24px;
}
.problem-card__icon {
  flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
}

/* Split media */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--flip > :first-child { order: 2; }
}
.split__media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-lite);
  aspect-ratio: 4/3;
  background: var(--paper-2);
  border: 1px solid var(--border-lite);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Gallery — full mosaic (not skinny auto-fit tiles) */
.gallery-section { padding-top: 24px; }
.container--gallery {
  max-width: min(1240px, 100%);
}
.gallery-mosaic {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (min-width: 720px) {
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (min-width: 960px) {
  .gallery-mosaic {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--paper-2);
  box-shadow: var(--shadow-lite);
  border: 1px solid var(--border-lite);
}
.gallery-item--feature {
  aspect-ratio: 16/10;
}
.gallery-item--tall {
  aspect-ratio: 3/4;
}
@media (min-width: 960px) {
  .gallery-item--feature {
    grid-column: span 2;
    aspect-ratio: 16/10;
  }
  .gallery-item--tall {
    aspect-ratio: 3/4;
  }
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(25,25,25,0.72));
  letter-spacing: 0.01em;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item:hover img { transform: none; }
}

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  font: inherit; color: var(--ink);
}
.field textarea { padding: 14px 16px; min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(62,96,223,0.15);
}
.cm-card {
  background: var(--white);
  border: 1px solid var(--border-lite);
  border-radius: calc(var(--radius) + 6px);
  padding: 36px 32px;
  box-shadow: var(--shadow-lite);
}
.phone-xl {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--brand);
  margin: 12px 0 20px;
}
.phone-xl a { text-decoration: none; color: inherit; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--footer-text);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.site-footer a { color: var(--footer-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h4 {
  color: var(--brand-mid);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer p, .site-footer li { color: var(--footer-muted); font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.82rem; color: #888;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}
.site-footer .brand-mark img {
  background: var(--white);
}


/* Sticky mobile call bar */
.mobile-callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--brand);
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 28px rgba(25,25,25,0.18);
}
.mobile-callbar__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}
.mobile-callbar .btn {
  min-height: 48px;
  width: 100%;
  font-size: 0.9rem;
  box-shadow: none;
}
.mobile-callbar .btn--ghost-light {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
@media (max-width: 860px) {
  .mobile-callbar { display: block; }
  body { padding-bottom: 78px; }
  .header-actions .btn--primary {
    padding: 10px 14px;
    min-height: 44px;
    font-size: 0.82rem;
  }
  .brand-mark__text { display: none; }
}

/* Contact layout */
.contact-layout {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

/* Home quote strip */
.quote-strip {
  background: var(--white);
  border: 1px solid var(--border-lite);
  border-radius: calc(var(--radius) + 6px);
  padding: 36px 32px;
  box-shadow: var(--shadow-lite);
}
.quote-strip .field { margin-bottom: 12px; }
@media (min-width: 720px) {
  .quote-strip__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }
  .quote-strip__grid .field--full { grid-column: 1 / -1; }
}

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.note { font-size: 0.88rem; color: var(--muted); }
.page-hero {
  padding: 56px 0 32px;
  background: linear-gradient(180deg, var(--brand-soft), var(--paper));
  border-bottom: 1px solid var(--border-lite);
}
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.pill-list li {
  background: var(--white);
  border: 1px solid var(--border-lite);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-lite);
}

/* === Fluidity + water polish === */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Section shells never get .reveal — backgrounds/waves stay fixed */
main > section.reveal,
main > section.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Card / gallery micro-motion */
.service-card,
.area-card,
.value-card,
.trust-card,
.problem-card,
.gallery-item {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.service-card:hover,
.area-card:hover,
.value-card:hover,
.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(62, 96, 223, 0.12);
  border-color: rgba(62, 96, 223, 0.16);
}
.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(62, 96, 223, 0.10);
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  box-shadow: 0 10px 28px rgba(62, 96, 223, 0.28);
}
.pill-list li {
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}
.pill-list li:hover {
  border-color: rgba(62, 96, 223, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(62, 96, 223, 0.08);
}
.site-footer a {
  transition: color .24s ease;
}

/* Hero Three.js water canvas */
.hero__water {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__water canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}
.hero__water-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(20, 168, 196, 0.22), transparent 60%),
    linear-gradient(165deg, #9fd8e4 0%, #d5eef3 45%, var(--paper) 100%);
  opacity: 0.9;
}
.hero.has-water .hero__water-fallback { display: none; }
.hero.has-water-fallback .hero__water canvas { display: none; }
.hero.has-water .hero__copy,
.hero.has-water .hero__photo {
  position: relative;
  z-index: 2;
}
/* Frosted/light panel so dark type reads over turquoise water (water stays visible around it) */
.hero.has-water .hero__copy {
  padding: 32px 30px 28px;
  border-radius: 22px;
  /* Near-solid card so type doesn’t wash out over bright water */
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(25, 25, 25, 0.05);
  box-shadow: 0 18px 48px rgba(25, 25, 25, 0.12);
  max-width: 36rem;
}
.hero.has-water .hero__copy h1 {
  color: #0f172a;
  font-weight: 800;
}
.hero.has-water .hero__copy .eyebrow {
  color: #1d4ed8;
  font-weight: 800;
  opacity: 1;
}
.hero.has-water .hero__copy .lede,
.hero.has-water .hero__copy .note,
.hero.has-water .hero__copy p {
  color: #1e293b;
  opacity: 1;
}
.hero.has-water .hero__badge {
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.2);
  font-weight: 800;
}
/* Solid secondary button for contrast over animated water */
.hero.has-water .hero__copy .btn--ghost {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 2px 12px rgba(25, 25, 25, 0.1);
}
.hero.has-water .hero__copy .btn--ghost:hover {
  background: #f4f6fb;
  color: var(--brand);
}
.hero.has-water .hero__photo {
  box-shadow: 0 18px 50px rgba(25, 25, 25, 0.12), 0 12px 36px rgba(20, 168, 196, 0.16);
  z-index: 2;
}
/* Soft left-side veil — readability without killing the turquoise water */
.hero.has-water::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(250, 251, 252, 0.28) 0%,
    rgba(250, 251, 252, 0.18) 38%,
    rgba(20, 168, 196, 0.06) 100%
  );
}





/* Section rhythm: white / light blue / image / white / dark blue */
.section-paper { background: var(--white, #fff); }
.section-alt { background: var(--brand-soft); }
.section-brand { background: var(--brand); color: var(--footer-text); }
.section-photo {
  position: relative;
  background-color: var(--brand-dark, #243A8F);
  background-image: var(--section-photo);
  background-size: cover;
  background-position: center;
  color: var(--white);
  isolation: isolate;
}
.section-photo__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,58,143,0.72) 0%, rgba(36,58,143,0.88) 100%);
  z-index: 0;
  pointer-events: none;
}
.section-photo__inner { position: relative; z-index: 1; }
.section-photo h2,
.section-photo h3 { color: var(--white); }
.eyebrow--on-dark { color: #c1ccf5; }
.lede--on-dark { color: rgba(255,255,255,0.88); max-width: 52ch; }
.value-card--glass {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.value-card--glass h3 { color: #fff; }
.value-card--glass p { color: rgba(255,255,255,0.86); }




/* Seamless section seams: paint previous color onto the TOP of the next section */
.section { position: relative; }
.wave-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 56px;
  line-height: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.wave-top svg {
  display: block;
  width: 100%;
  height: 56px;
  animation: none !important;
  transform: none !important;
}
.wave-top path { fill: var(--wave-prev, #fff); }
.wave-top--paper { --wave-prev: var(--white, #ffffff); }
.wave-top--soft { --wave-prev: var(--brand-soft); }
.wave-top--photo { --wave-prev: var(--brand-dark, #243A8F); }
.wave-top--brand { --wave-prev: var(--brand); }

/* Make room under the absolute wave so copy isn’t covered */
.section:has(> .wave-top) {
  padding-top: 88px; /* 56 wave + content air */
}
@media (min-width: 768px) {
  .section:has(> .wave-top) {
    padding-top: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .service-card:hover,
  .area-card:hover,
  .value-card:hover,
  .trust-card:hover,
  .problem-card:hover,
  .gallery-item:hover,
  .pill-list li:hover {
    transform: none;
  }
.hero__water canvas { display: none !important; }
  .hero__water-fallback { display: block !important; }
}
