:root {
  color-scheme: light dark;
  --navy: #102c4c;
  --navy-deep: #091d33;
  --navy-soft: #274766;
  --accent: #b9322b;
  --accent-strong: #98251f;
  --paper: #f5f7f8;
  --surface: #fcfdfd;
  --surface-blue: #e8eff4;
  --ink: #10263b;
  --muted: #516678;
  --line: rgba(16, 44, 76, 0.16);
  --white: #fbfcfd;
  --shadow: 0 24px 70px rgba(9, 29, 51, 0.14);
  --radius: 16px;
  --radius-small: 12px;
  --content: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1b29;
    --surface: #11283a;
    --surface-blue: #17334a;
    --ink: #eef4f7;
    --muted: #b6c6d1;
    --line: rgba(222, 235, 243, 0.17);
    --white: #f7fafb;
    --shadow: 0 24px 70px rgba(2, 10, 18, 0.34);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 100;
  padding: 10px 16px; color: var(--white); background: var(--navy-deep);
  border-radius: var(--radius-small);
}
.skip-link:focus { top: 16px; }
.preview-bar {
  padding: 7px 18px; color: rgba(247, 250, 251, .82); background: var(--navy-deep);
  font-size: 11px; letter-spacing: .09em; text-align: center; text-transform: uppercase;
}
.site-header {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(18px);
}
.nav-shell {
  width: min(calc(100% - 40px), var(--content)); min-height: 76px; margin: 0 auto;
  display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 157px; height: 65px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; justify-content: center; align-items: center; gap: 27px; }
.nav-links a {
  position: relative; padding: 24px 0 22px; color: var(--muted); font-size: 13px;
  font-weight: 750; letter-spacing: .015em; text-decoration: none; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; right: 0; bottom: 18px; left: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 240ms var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.header-call, .button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 19px; border: 1px solid transparent; border-radius: 999px;
  font-size: 14px; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform 260ms var(--ease), background-color 180ms ease, border-color 180ms ease, box-shadow 260ms var(--ease);
}
.header-call, .button-primary { color: var(--white); background: var(--accent); }
.header-call:hover, .button-primary:hover { background: var(--accent-strong); box-shadow: 0 12px 28px rgba(152, 37, 31, .22); transform: translateY(-2px); }
.button-secondary { color: var(--navy); background: var(--white); border-color: rgba(16, 44, 76, .22); }
.button-secondary:hover { border-color: var(--navy); transform: translateY(-2px); }
.button-quiet { color: var(--ink); border-color: var(--line); background: transparent; }
.button:active, .header-call:active { transform: translateY(1px) scale(.98); }
.nav-toggle { display: none; }
.shell { width: min(calc(100% - 48px), var(--content)); margin: 0 auto; }

.hero { padding: 42px 0 74px; overflow: hidden; }
.hero-grid { min-height: min(680px, calc(100dvh - 125px)); display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 54px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 15px; color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 720px; margin: 0; font-size: clamp(3rem, 6.2vw, 5.7rem); line-height: .96; letter-spacing: -.058em; }
.hero-lede { max-width: 555px; margin: 25px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.45; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: 9% -8% -7% 15%; background: var(--surface-blue); border-radius: var(--radius); transform: rotate(3deg); }
.hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-note { position: absolute; right: -20px; bottom: 28px; width: min(290px, 60%); padding: 17px 19px; color: var(--white); background: var(--navy); border-radius: var(--radius-small); box-shadow: var(--shadow); }
.hero-note strong { display: block; font-size: 17px; }
.hero-note span { display: block; margin-top: 3px; color: rgba(247,250,251,.76); font-size: 13px; }
.identity-rail { padding: 0 0 34px; }
.identity-rail-inner {
  display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 16px 44px rgba(9, 29, 51, .08);
}
.identity-rail a {
  min-height: 86px; display: flex; flex-direction: column; justify-content: center;
  padding: 18px 24px; border-right: 1px solid var(--line); text-decoration: none;
  transition: color 220ms ease, background-color 220ms ease;
}
.identity-rail a:last-child { border-right: 0; }
.identity-rail a:hover, .identity-rail a:focus-visible { color: var(--accent); background: var(--surface-blue); }
.identity-rail strong { font-size: 17px; line-height: 1.2; }
.identity-rail span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.identity-rail .identity-phone { color: var(--white); background: var(--navy); }
.identity-rail .identity-phone span { color: rgba(247,250,251,.68); }
.identity-rail .identity-phone:hover, .identity-rail .identity-phone:focus-visible { color: var(--white); background: var(--accent); }

.section { padding: 92px 0; }
.section-compact { padding: 60px 0; }
.surface { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2, .split-copy h2, .cta-band h2, .page-hero h1 { margin: 0; font-size: clamp(2.25rem, 4.5vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
.section-head p, .split-copy > p, .page-intro > p { max-width: 680px; margin: 18px 0 0; color: var(--muted); }
.service-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.service-feature, .service-list, .detail-panel, .contact-panel { border-radius: var(--radius); }
.service-feature { min-height: 410px; padding: 38px; color: var(--white); background: var(--navy); display: flex; flex-direction: column; justify-content: flex-end; }
.service-feature h3 { max-width: 520px; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.03; letter-spacing: -.04em; }
.service-feature p { max-width: 520px; margin: 16px 0 0; color: rgba(247,250,251,.74); }
.service-list { padding: 10px 32px; background: var(--surface-blue); }
.service-row { padding: 24px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row h3 { margin: 0; font-size: 19px; }
.service-row p { margin: 5px 0 0; color: var(--muted); font-size: 15px; }
.text-link { display: inline-flex; margin-top: 28px; color: var(--accent); font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.split { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 72px; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-copy { max-width: 570px; }
.claim-list { margin: 28px 0 0; padding: 0; list-style: none; }
.claim-list li { position: relative; padding: 12px 0 12px 30px; color: var(--muted); border-bottom: 1px solid var(--line); }
.claim-list li::before { content: ""; position: absolute; top: 22px; left: 0; width: 13px; height: 3px; background: var(--accent); }
.warranty { margin-top: 28px; padding: 26px; color: var(--white); background: var(--navy); border-radius: var(--radius); }
.warranty strong { display: block; font-size: 25px; }
.warranty p { margin: 6px 0 0; color: rgba(247,250,251,.76); }
.process-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.process-main { padding: 42px; background: var(--surface-blue); border-radius: var(--radius); }
.process-main h2 { max-width: 700px; margin: 0; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.05em; }
.process-main p { max-width: 680px; margin: 18px 0 0; color: var(--muted); }
.process-side { display: grid; gap: 18px; }
.process-item { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.process-item h3 { margin: 0; font-size: 18px; }
.process-item p { margin: 7px 0 0; color: var(--muted); font-size: 15px; }

.cta-band { padding: 46px; color: var(--white); background: var(--navy); border-radius: var(--radius); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.cta-band h2 { max-width: 700px; }
.cta-band p { margin: 12px 0 0; color: rgba(247,250,251,.76); }
.cta-band .button-row { margin: 0; justify-content: flex-end; }
.cta-band .button-secondary { color: var(--navy); }

.page-hero { padding: 72px 0 62px; }
.page-intro { max-width: 850px; }
.fact-strip { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fact-strip div { padding: 20px; background: var(--surface-blue); border-radius: var(--radius-small); }
.fact-strip strong { display: block; color: var(--navy-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.fact-strip span { display: block; margin-top: 4px; font-weight: 750; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.detail-panel { min-height: 250px; padding: 32px; background: var(--surface); border: 1px solid var(--line); }
.detail-panel:nth-child(2), .detail-panel:nth-child(3) { background: var(--surface-blue); border-color: transparent; }
.detail-panel h2, .detail-panel h3 { margin: 0; font-size: 26px; line-height: 1.15; }
.detail-panel p { margin: 12px 0 0; color: var(--muted); }
.detail-panel ul { margin: 17px 0 0; padding-left: 20px; color: var(--muted); }
.wide-image { width: 100%; max-height: 430px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 20px; }
.contact-panel { padding: 32px; background: var(--surface-blue); }
.contact-panel h2 { margin: 0; font-size: 27px; }
.contact-panel p { color: var(--muted); }
.contact-details { margin: 24px 0 0; padding: 0; list-style: none; }
.contact-details li { margin: 0 0 14px; }
.contact-details a { color: var(--accent); font-weight: 800; }
.estimate-form { padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 49px; padding: 12px 14px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-small); outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.form-note, .form-status { color: var(--muted); font-size: 13px; }
.form-status { min-height: 22px; margin-top: 10px; }

.site-footer { padding: 66px 0 88px; color: var(--white); background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 56px; }
.footer-grid h2 { margin: 0; font-size: 25px; }
.footer-grid p { max-width: 490px; color: rgba(247,250,251,.68); }
.footer-heading { margin: 0 0 14px !important; color: var(--white) !important; font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; color: rgba(247,250,251,.72); }
.footer-links li { margin-bottom: 9px; }
.footer-links a { text-underline-offset: 4px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(247,250,251,.15); color: rgba(247,250,251,.5); font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }
.mobile-actions { display: none; }

[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-copy > *, .motion-ready .hero-media, .motion-ready .page-intro > * { animation: entrance 700ms var(--ease) both; }
  .motion-ready .hero-copy > *:nth-child(2), .motion-ready .page-intro > *:nth-child(2) { animation-delay: 80ms; }
  .motion-ready .hero-copy > *:nth-child(3), .motion-ready .page-intro > *:nth-child(3) { animation-delay: 150ms; }
  .motion-ready .hero-copy > *:nth-child(4), .motion-ready .page-intro > *:nth-child(4) { animation-delay: 220ms; }
  .motion-ready .hero-media { animation-delay: 110ms; }
  .motion-ready [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 650ms var(--ease) var(--reveal-delay, 0ms), transform 650ms var(--ease) var(--reveal-delay, 0ms); }
  .motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
}
@keyframes entrance { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .nav-shell { grid-template-columns: 1fr auto auto; }
  .nav-links { position: fixed; inset: 108px 0 auto; z-index: 45; display: none; padding: 20px 24px 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 13px 0; font-size: 17px; }
  .nav-links a::after { bottom: 7px; }
  .nav-toggle { position: relative; width: 46px; height: 46px; display: block; padding: 0; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); }
  .nav-toggle::before, .nav-toggle::after, .nav-toggle span { content: ""; position: absolute; inset: 0; display: block; width: 18px; height: 2px; margin: auto; border-radius: 2px; background: currentColor; transform-origin: center; transition: transform 220ms var(--ease), opacity 180ms ease; }
  .nav-toggle::before { transform: translateY(-6px); }
  .nav-toggle::after { transform: translateY(6px); }
  .nav-toggle[aria-expanded="true"] span { opacity: 0; }
  .nav-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 42px; }
  .hero-grid { padding-top: 30px; }
  .hero-copy { max-width: 700px; }
  .hero-media { max-width: 650px; }
  .hero-media img { aspect-ratio: 16 / 11; }
  .service-layout, .process-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .button-row { justify-content: flex-start; }
}

@media (max-width: 700px) {
  body { padding-bottom: 66px; font-size: 16px; }
  .preview-bar { padding: 6px 12px; font-size: 9px; line-height: 1.35; }
  .nav-shell { width: calc(100% - 28px); min-height: 69px; grid-template-columns: 1fr auto; gap: 9px; }
  .brand img { width: 126px; height: 52px; }
  .header-call { display: none; }
  .nav-links { top: 91px; }
  .shell { width: calc(100% - 32px); }
  .hero { padding: 20px 0 52px; }
  .hero-grid { min-height: auto; gap: 35px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); line-height: .96; }
  .hero-lede { margin-top: 19px; font-size: 18px; }
  .hero-actions { margin-top: 23px; }
  .button { width: 100%; }
  .hero-media::before { inset: 8% -3% -5% 12%; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-note { right: 12px; bottom: -20px; width: calc(100% - 24px); }
  .identity-rail { padding: 8px 0 28px; }
  .identity-rail-inner { grid-template-columns: 1fr 1fr; }
  .identity-rail a { min-height: 78px; padding: 15px 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .identity-rail a:nth-child(2), .identity-rail a:nth-child(4) { border-right: 0; }
  .identity-rail a:nth-child(3), .identity-rail a:nth-child(4) { border-bottom: 0; }
  .section { padding: 64px 0; }
  .section-compact { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2, .split-copy h2, .cta-band h2, .page-hero h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .service-feature { min-height: 330px; padding: 28px; }
  .service-list { padding: 4px 23px; }
  .split { gap: 36px; }
  .process-main { padding: 29px; }
  .process-main h2 { font-size: 2.55rem; }
  .cta-band { padding: 29px; gap: 25px; }
  .cta-band .button-row { width: 100%; }
  .page-hero { padding: 50px 0 42px; }
  .fact-strip, .detail-grid, .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .detail-panel { min-height: auto; padding: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel, .estimate-form { padding: 25px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { display: grid; }
  .mobile-actions { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; height: 66px; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -12px 30px rgba(9,29,51,.22); }
  .mobile-actions a { display: grid; place-items: center; color: var(--white); background: var(--navy); font-size: 14px; font-weight: 850; text-decoration: none; }
  .mobile-actions a:last-child { background: var(--accent); }
}

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