@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --navy: #102f4b;
  --navy-deep: #09243a;
  --blue-soft: #dce8ef;
  --yellow: #efbb3d;
  --yellow-soft: #f4dfa4;
  --paper: #f3f1ec;
  --white: #fffefa;
  --ink: #173650;
  --muted: #697984;
  --line: rgba(16,47,75,.14);
  --success: #2b704c;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-move: cubic-bezier(.77, 0, .175, 1);
  --container: 1210px;
  --display: "DM Sans", "Trebuchet MS", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --demo-notice-h: 2.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, blockquote { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1; letter-spacing: -.055em; }
h1 { margin-bottom: 27px; font-size: clamp(3.2rem, 7.7vw, 7rem); }
h1 em { color: var(--yellow-soft); font-family: Georgia, serif; font-weight: 400; }
h2 { margin-bottom: 22px; font-size: clamp(2.25rem, 4.2vw, 4rem); }
h3 { margin-bottom: 12px; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.04em; }
p { color: var(--muted); }
.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.section { padding: clamp(76px, 9vw, 122px) 0; }
.skip-link { position: fixed; top: -80px; left: 14px; z-index: 30; padding: 12px 18px; border-radius: 999px; background: white; box-shadow: 0 14px 40px rgba(9,36,58,.18); }
.skip-link:focus { top: 14px; }

.site-header { position: absolute; top: var(--demo-notice-h); left: 0; right: 0; z-index: 10; padding: 18px; }
.nav-shell { width: min(100%, 1310px); min-height: 70px; margin-inline: auto; padding: 8px 9px 8px 13px; position: relative; z-index: 2; display: flex; align-items: center; gap: 27px; border: 1px solid rgba(255,255,255,.62); border-radius: 999px; background: rgba(255,254,250,.94); box-shadow: 0 17px 54px rgba(9,36,58,.16), inset 0 1px 0 white; backdrop-filter: blur(18px); }
.brand { min-width: max-content; display: inline-flex; align-items: center; gap: 11px; }
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { font-family: var(--display); font-size: 1.04rem; letter-spacing: -.04em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: .59rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.brand-mark { position: relative; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); overflow: hidden; }
.brand-mark::before, .brand-mark::after, .brand-mark i { content: ""; position: absolute; background: var(--yellow); transform: skewX(-18deg); }
.brand-mark::before { width: 9px; height: 25px; left: 16px; top: 5px; }
.brand-mark::after { width: 9px; height: 25px; right: 15px; bottom: 4px; }
.brand-mark i { width: 20px; height: 8px; left: 11px; top: 18px; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.desktop-nav a { color: #486172; font-size: .82rem; font-weight: 650; }
.nav-phone { padding-left: 21px; display: grid; border-left: 1px solid var(--line); line-height: 1.15; }
.nav-phone small { color: var(--muted); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-phone strong { margin-top: 4px; font-size: .77rem; }
.button { min-height: 53px; padding: 0 9px 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 999px; cursor: pointer; font-size: .82rem; font-weight: 750; transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out), transform 150ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); transition: transform 180ms var(--ease-out); }
.button--nav { min-height: 50px; background: var(--navy); color: white; box-shadow: 0 13px 30px rgba(16,47,75,.2); }
.button--primary { background: var(--yellow); color: var(--navy-deep); box-shadow: 0 15px 36px rgba(0,0,0,.2); }
.button--primary > span { background: var(--navy); color: white; }
.button--ghost { padding: 0 21px; border: 1px solid rgba(255,255,255,.35); background: rgba(8,35,56,.28); color: white; }
.button--submit { width: 100%; background: var(--navy); color: white; }
.menu-button { display: none; width: 46px; height: 46px; margin-left: auto; position: relative; border: 0; border-radius: 50%; background: var(--navy); cursor: pointer; }
.menu-button span { position: absolute; left: 14px; width: 18px; height: 1px; background: white; transition: transform 200ms var(--ease-out); }
.menu-button span:first-child { transform: translateY(-4px); }
.menu-button span:last-child { transform: translateY(4px); }
.menu-button[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 12px; z-index: 1; padding: 108px 22px 24px; display: flex; flex-direction: column; border-radius: 31px; background: rgba(243,241,236,.97); box-shadow: 0 28px 90px rgba(9,36,58,.26); backdrop-filter: blur(22px); opacity: 0; pointer-events: none; transform: scale(.98); transform-origin: top right; transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out); }
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: scale(1); }
.mobile-menu a { padding: 17px 3px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: clamp(1.6rem, 7vw, 2.4rem); letter-spacing: -.05em; }
.mobile-menu a span { color: #ae7b09; font-family: var(--body); font-size: .67rem; letter-spacing: .1em; }
.mobile-menu .mobile-menu__cta { margin-top: auto; justify-content: center; border: 0; border-radius: 999px; background: var(--navy); color: white; font-family: var(--body); font-size: .82rem; font-weight: 750; }
.instant .mobile-menu, .instant .menu-button span { transition-duration: 1ms !important; }

.hero { min-height: 830px; position: relative; display: flex; align-items: stretch; background: var(--navy); color: white; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,35,56,.98) 0%, rgba(8,35,56,.94) 31%, rgba(8,35,56,.58) 53%, rgba(8,35,56,.06) 77%), linear-gradient(0deg, rgba(8,35,56,.28), transparent 38%); }
.hero-inner { position: relative; display: flex; align-items: center; }
.hero-copy { width: min(55%, 690px); padding: 151px 0 80px; }
.eyebrow { margin-bottom: 18px; color: var(--yellow); font-size: .67rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow--dark { color: #a97508; }
.hero h1 { max-width: 710px; }
.hero-lede { max-width: 610px; margin-bottom: 29px; color: #c2d2dc; font-size: clamp(1.02rem, 1.55vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }

.signal-strip { padding: 23px 0; background: var(--yellow); }
.signal-strip .container { display: grid; grid-template-columns: repeat(5, 1fr); }
.signal-strip p { margin: 0; padding: 0 21px; display: flex; align-items: center; justify-content: center; gap: 9px; border-right: 1px solid rgba(16,47,75,.2); color: var(--navy); font-size: .72rem; font-weight: 700; }
.signal-strip p:last-child { border: 0; }
.signal-strip span { font-size: .57rem; opacity: .65; }

.services { background: var(--paper); }
.section-heading { max-width: 1020px; margin-bottom: 38px; }
.section-heading h2 { max-width: none; margin-bottom: 0; font-size: clamp(2.25rem, 3.7vw, 3.5rem); white-space: nowrap; }
.section-heading > p { max-width: 920px; margin: 17px 0 0; font-size: .98rem; text-wrap: pretty; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { padding: 23px 25px 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 3px solid var(--yellow); border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px rgba(9,36,58,.045); }
.service-card__top { margin-bottom: 21px; display: flex; align-items: center; justify-content: space-between; }
.service-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--navy); font-size: 1.4rem; }
.service-number { color: #82929d; font-size: .63rem; font-weight: 750; letter-spacing: .1em; }
.service-card small { color: #a97508; font-size: .64rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.service-card h3 { margin: 7px 0 10px; font-size: clamp(1.45rem, 1.7vw, 1.85rem); }
.service-card p { margin-bottom: 0; font-size: .86rem; }
.service-details { margin: 20px 0 0; padding: 15px 0 0; display: grid; gap: 7px; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: .73rem; }
.service-details li { display: flex; gap: 8px; }
.service-details li::before { content: ""; width: 5px; height: 5px; margin-top: .56em; flex: 0 0 auto; border-radius: 50%; background: var(--yellow); }

.reviews { background: var(--white); }
.review-heading { margin-bottom: 42px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.review-heading h2 { max-width: none; margin-bottom: 0; font-size: clamp(2.25rem, 3.6vw, 3.5rem); white-space: nowrap; }
.review-score { display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 11px; }
.review-score strong { grid-row: span 2; font-family: var(--display); font-size: 2.6rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.review-score span { color: #d89e17; font-size: .73rem; letter-spacing: .06em; }
.review-score small { color: var(--muted); font-size: .66rem; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review-grid blockquote { min-height: 0; margin: 0; padding: 24px; position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.review-grid blockquote > p { margin: 0 0 24px; color: var(--navy); font: 400 1.15rem/1.5 Georgia, serif; }
.review-grid footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review-grid footer > div { display: grid; gap: 2px; }
.review-grid footer strong { font-size: .76rem; }
.review-grid footer > div span { color: var(--muted); font-size: .66rem; }
.review-avatar { width: 40px; height: 40px; flex: 0 0 auto; display: block; border-radius: 50%; background-image: url("assets/review-avatars-jpg-lossless.webp"); background-repeat: no-repeat; background-size: 400% 400%; border: 1px solid var(--line); }
.review-avatar--10 { background-position: 33.333% 66.667%; }
.review-avatar--11 { background-position: 66.667% 66.667%; }
.review-avatar--12 { background-position: 100% 66.667%; }
.reviews-disclosure { margin: 1.25rem 0 0; font-size: .72rem; color: var(--muted); max-width: 36rem; }
.estimate-form .field { display: grid; gap: 5px; margin-bottom: 13px; }
.estimate-form .field > label, .estimate-form .field > span { font-size: .67rem; font-weight: 750; }
.optional { color: var(--muted); font-weight: 600; }
.field-error { display: block; min-height: 0; color: #a43d32; font-size: .72rem; line-height: 1.25; }
.field-error:empty { display: none; }
.field [aria-invalid="true"] { border-color: #a43d32; }
.form-status.is-error { background: #fff0ee; color: #a43d32; }
.form-status.is-pending { background: #eef2f5; color: var(--navy); }
.button:active { transform: scale(0.97); }
.button:disabled { opacity: .72; cursor: wait; }

.estimate { background: var(--navy); color: white; }
.estimate-shell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(54px, 7vw, 96px); align-items: center; }
.estimate-copy h2 { max-width: 610px; }
.estimate-copy > p:not(.eyebrow) { max-width: 500px; color: #bdced8; }
.estimate-contact { margin-top: 34px; display: grid; gap: 17px; }
.estimate-contact a, .estimate-contact p { margin: 0; display: grid; }
.estimate-contact small { color: #91a9b8; font-size: .61rem; text-transform: uppercase; letter-spacing: .09em; }
.estimate-contact strong { color: white; font-size: .82rem; }
.form-bezel { width: 100%; padding: 7px; border: 1px solid rgba(255,255,255,.19); border-radius: 30px; background: rgba(255,255,255,.07); box-shadow: 0 27px 70px rgba(3,20,33,.22); }
.estimate-form { padding: clamp(24px, 3vw, 32px); border-radius: 23px; background: var(--white); color: var(--navy); }
.estimate-form label { margin: 0; display: block; }
.estimate-form label > span { font-size: .67rem; font-weight: 750; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.field-row label { min-width: 0; }
input, textarea { width: 100%; min-height: 51px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f5f3ee; outline: 0; transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { border-color: #b17d07; box-shadow: 0 0 0 3px rgba(239,187,61,.18); }
input:user-invalid { border-color: #a43d32; }
.form-status { display: none; margin: 13px 0 0; padding: 11px 13px; border-radius: 11px; background: #e4efe8; color: var(--success); font-size: .75rem; font-weight: 650; }
.form-status.is-visible { display: block; }

.footer { padding: 42px 0 0; background: var(--navy-deep); color: white; }
.footer-grid { padding-bottom: 31px; display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: center; }
.brand--footer .brand-mark { background: var(--yellow); }
.brand--footer .brand-mark::before, .brand--footer .brand-mark::after, .brand--footer .brand-mark i { background: var(--navy); }
.brand--footer small, .footer address, .footer span { color: #98aebd; }
.footer address { font-size: .71rem; font-style: normal; line-height: 1.55; text-align: right; }
.back-to-top { position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 11; min-height: 48px; padding: 7px 16px 7px 7px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(16,47,75,.14); border-radius: 999px; background: rgba(255,254,250,.94); color: var(--navy); box-shadow: 0 14px 38px rgba(9,36,58,.18); backdrop-filter: blur(16px); cursor: pointer; font-size: .72rem; font-weight: 750; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px); transition: opacity 180ms var(--ease-out), visibility 180ms var(--ease-out), transform 220ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.back-to-top i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); font-size: 1rem; }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mobile-dock { display: none; }

html.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); transition-delay: var(--delay, 0ms); }
html.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(239,187,61,.58); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover { color: #a97508; }
  .button:hover { transform: translateY(-2px); }
  .button:hover > span { transform: translate(2px, -2px); }
  .service-card { transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
  .service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(9,36,58,.08); }
  .back-to-top:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(9,36,58,.23); }
}
.button:active, .mobile-dock a:active, .back-to-top:active { transform: scale(.97); }

@media (max-width: 950px) {
  .desktop-nav, .nav-phone, .button--nav { display: none; }
  .menu-button { display: block; }
  .hero { min-height: 880px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(8,35,56,.98) 0%, rgba(8,35,56,.87) 53%, rgba(8,35,56,.2) 100%), linear-gradient(0deg, rgba(8,35,56,.48), transparent 45%); }
  .hero-copy { width: min(72%, 680px); }
  .estimate-shell { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estimate-copy { max-width: 650px; }
  .review-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .review-heading h2 { white-space: normal; text-wrap: balance; }
  .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 88px 0; }
  .site-header { padding: 9px; }
  .nav-shell { min-height: 62px; padding: 7px 8px 7px 9px; }
  .brand-mark { width: 39px; height: 39px; }
  .hero { min-height: 780px; }
  .hero-image { object-position: 66% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(8,35,56,.97), rgba(8,35,56,.72)), linear-gradient(0deg, rgba(8,35,56,.58), transparent 50%); }
  .hero-copy { width: 100%; padding: 128px 0 80px; }
  h1 { font-size: clamp(3.1rem, 15vw, 4.6rem); }
  h2 { font-size: clamp(2.35rem, 11vw, 3.25rem); }
  .section-heading h2 { font-size: clamp(2.25rem, 11vw, 3.25rem); white-space: normal; text-wrap: balance; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .signal-strip .container { grid-template-columns: 1fr; }
  .signal-strip p { padding: 11px 0; justify-content: flex-start; border-right: 0; border-bottom: 1px solid rgba(16,47,75,.16); }
  .service-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; gap: 24px; }
  .footer address { text-align: left; }
  .footer { padding-top: 36px; }
  .footer-grid { padding-bottom: 27px; }
  .back-to-top { right: 12px; bottom: 80px; }
  .mobile-dock { position: fixed; z-index: 12; right: 8px; bottom: 8px; left: 8px; min-height: 58px; padding: 5px; display: grid; grid-template-columns: .7fr 1.3fr; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(255,254,250,.94); box-shadow: 0 13px 42px rgba(9,36,58,.21); backdrop-filter: blur(16px); }
  .mobile-dock a { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-size: .72rem; font-weight: 750; transition: transform 150ms var(--ease-out); }
  .mobile-dock a:last-child { background: var(--navy); color: white; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .mobile-menu, .menu-button span { transition-duration: .01ms; }
  .button, .service-card, .mobile-dock a, .back-to-top { transform: none !important; }
}

/* Shared demo, form-privacy, and legal-footer styles */
.demo-notice {
  position: relative;
  z-index: 1000;
  padding: 0.62rem 1rem;
  border-bottom: 1px solid #d8b84f;
  color: #403612;
  background: #fff3c4;
  font: 700 0.82rem/1.4 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

.demo-notice a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.form-legal-note {
  margin: 0.85rem 0 0;
  color: inherit;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.78;
}

.form-legal-note a {
  color: inherit;
  font-weight: 750;
  text-underline-offset: 0.16em;
}

.legal-footer-bar {
  display: flex;
  width: min(calc(100% - 36px), var(--container));
  margin-inline: auto;
  padding: 1rem 0 calc(1.35rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(152, 174, 189, .28);
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: inherit;
  font: 600 0.78rem/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.legal-footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.5rem;
}

.legal-footer-bar a {
  color: #c5d2db;
  text-underline-offset: 0.16em;
  transition: color 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .legal-footer-bar a:hover { color: var(--yellow); }
}

@media (max-width: 680px) {
  .legal-footer-bar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .legal-footer-meta { justify-content: flex-start; }
}
