:root {
  color-scheme: light;
  --page: #FAF9F6;
  --soft: #F1EDE5;
  --navy: #102C3C;
  --accent: #287C91;
  --muted: #53636a;
  --rule: #d7d9d5;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--navy);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: clip; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: clip; background: var(--page); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, p, figure { margin-top: 0; }
img { max-width: 100%; }
.skip-link { position: fixed; z-index: 20; top: .5rem; left: .5rem; padding: .7rem 1rem; color: #fff; background: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: fixed; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

.site-header { position: relative; z-index: 2; width: min(1600px, 100%); min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 auto; padding: .65rem clamp(1.25rem, 6vw, 6rem); background: var(--page); }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { display: block; width: 3.25rem; height: 3.25rem; flex: 0 0 auto; object-fit: contain; }
.brand > span { display: grid; gap: .18rem; }
.brand strong { font-size: .86rem; font-weight: 740; letter-spacing: .025em; line-height: 1.15; text-transform: uppercase; }
.brand small { color: var(--muted); font-size: .6rem; font-weight: 600; letter-spacing: .075em; text-transform: uppercase; }
.header-contact { display: flex; align-items: center; gap: .35rem; }
.header-icon-link { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; color: var(--navy); text-decoration: none; transition: color .16s ease, background-color .16s ease; }
.header-icon-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.header-icon-link:hover { color: var(--accent); background: rgb(40 124 145 / 6%); }
.header-icon-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.hero { position: relative; width: 100%; height: clamp(620px, 82svh, 900px); min-height: 75svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; color: #fff; background: #385560; }
.hero-media { position: absolute; z-index: -2; inset: 0; display: block; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }
.hero::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(8 30 41 / 62%) 0%, rgb(8 30 41 / 42%) 34%, rgb(8 30 41 / 12%) 57%, transparent 76%), linear-gradient(0deg, rgb(8 30 41 / 14%), transparent 28%); content: ""; }
.hero-content { width: min(1600px, 100%); margin: 0 auto; padding: 2rem clamp(1.25rem, 6vw, 6rem); animation: hero-enter .75s cubic-bezier(.2,.65,.3,1) both; }
.hero-copy { width: min(54vw, 790px); }
.announcement { margin: 0 0 1.15rem; color: #f1ede5; font-size: .72rem; font-weight: 650; letter-spacing: .12em; line-height: 1.45; }
h1 { max-width: 20ch; margin: 0 0 1.1rem; font-size: clamp(3rem, 5.5vw, 5rem); font-weight: 620; letter-spacing: -.045em; line-height: 1.03; text-wrap: balance; }
h1 span { display: block; }
.hero-lede { max-width: 36rem; margin-bottom: 1.6rem; color: rgb(255 255 255 / 96%); font-size: clamp(1.05rem, 1.3vw, 1.23rem); line-height: 1.58; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.button { min-height: 3.5rem; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; padding: .85rem 1.35rem; font-size: .81rem; font-weight: 680; letter-spacing: .035em; text-align: center; text-decoration: none; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { border: 1px solid #fff; background: #fff; color: var(--navy); }
.button-primary:hover { border-color: #194c60; color: #fff; }
.button-secondary { border: 1px solid rgb(255 255 255 / 88%); background: rgb(8 30 41 / 46%); color: #fff; }
.button-secondary:hover { background: #fff; color: var(--navy); }

.work-section { width: min(1440px, 100%); margin: 0 auto; padding: clamp(2.5rem, 3.5vw, 3.75rem) clamp(1rem, 5.5vw, 5rem) clamp(2.25rem, 3vw, 3rem); }
.section-heading { margin: 0 0 1.2rem; }
.section-heading h2 { margin-bottom: .45rem; font-size: clamp(1.75rem, 2.65vw, 2.2rem); font-weight: 620; letter-spacing: -.035em; line-height: 1.14; text-wrap: balance; }
.section-heading > p { margin-bottom: 0; color: #465b63; font-size: 1rem; line-height: 1.55; }
.project-gallery { display: block; width: min(100%, 1170px); margin: 0 auto; }
.project-gallery picture { display: block; }
.project-gallery img { display: block; width: 100%; height: auto; }
.service-areas { margin: .95rem 0 0; padding-top: .7rem; border-top: 1px solid var(--rule); color: var(--navy); font-size: .95rem; line-height: 1.55; }

.estimate-section { background: var(--soft); }
.estimate-inner { width: min(820px, 100%); margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 5vw, 2.5rem) clamp(1.75rem, 3vw, 2.35rem); }
.form-heading { margin-bottom: .8rem; }
.form-heading h2 { margin: 0 0 .35rem; color: var(--navy); font-size: clamp(1.55rem, 2.4vw, 1.9rem); font-weight: 620; letter-spacing: -.03em; line-height: 1.18; }
.form-heading p { max-width: 39rem; margin: 0; color: #465b63; font-size: .96rem; line-height: 1.5; }
.estimate-form fieldset { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .9rem; margin: 0; padding: 0; border: 0; }
.form-field { min-width: 0; display: grid; gap: .28rem; }
.form-field-wide { grid-column: 1 / -1; }
.estimate-form label { color: var(--navy); font-size: .83rem; font-weight: 620; line-height: 1.35; }
.estimate-form label span:not(.optional) { color: var(--accent); }
.estimate-form .optional { margin-left: .24rem; color: var(--muted); font-size: .72rem; font-weight: 480; }
.estimate-form input, .estimate-form select, .estimate-form textarea { width: 100%; min-height: 2.8rem; padding: .6rem .72rem; border: 1px solid #89969a; border-radius: 0; background: #fff; color: var(--navy); font-size: .96rem; line-height: 1.4; }
.estimate-form textarea { min-height: 3.65rem; resize: vertical; }
.estimate-form fieldset:disabled { opacity: 1; }
.estimate-form fieldset:disabled input, .estimate-form fieldset:disabled select, .estimate-form fieldset:disabled textarea { background: #f8f7f4; color: #637177; cursor: not-allowed; }
.estimate-form input:focus-visible, .estimate-form select:focus-visible, .estimate-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--navy); }
.estimate-submit { min-height: 2.9rem; grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: space-between; margin-top: .25rem; padding: .7rem .9rem; border: 1px solid var(--navy); background: var(--navy); color: #fff; font-size: .75rem; font-weight: 680; letter-spacing: .035em; }
.estimate-submit:disabled { opacity: .58; cursor: not-allowed; }
.form-status { margin: .75rem 0 0; color: #465b63; font-size: .86rem; line-height: 1.5; }
.site-footer { padding: .8rem 1rem 1rem; background: var(--soft); color: var(--muted); font-size: .75rem; line-height: 1.45; text-align: center; }
.button-primary:hover { background: #194c60; }
.header-icon-link:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@keyframes hero-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 2300px) and (min-height: 1100px) {
  .hero { height: min(84svh, 1200px); }
}
@media (max-width: 800px) {
  .site-header { min-height: 68px; padding: .55rem 1rem; }
  .brand img { width: 2.85rem; height: 2.85rem; }
  .brand strong { font-size: .81rem; }
  .brand small { font-size: .53rem; }
  .header-contact { gap: .25rem; }
  .hero { height: 76svh; min-height: 570px; max-height: 760px; align-items: flex-end; }
  .hero-media img { object-position: 53% center; }
  .hero::before { background: linear-gradient(0deg, rgb(8 30 41 / 74%) 0%, rgb(8 30 41 / 51%) 43%, rgb(8 30 41 / 9%) 100%); }
  .hero-content { padding: 2rem 1.45rem 4.3rem; }
  .hero-copy { width: auto; }
  h1 { max-width: 12.5ch; margin-bottom: .85rem; font-size: clamp(2.55rem, 7vw, 3.45rem); letter-spacing: -.04em; line-height: 1.04; }
  .hero-lede { max-width: 34rem; margin-bottom: 1.2rem; font-size: 1rem; }
  .work-section { padding: 2rem 1rem 1.8rem; }
  .estimate-inner { padding: 2rem 1rem 1.75rem; }
}
@media (max-width: 500px) {
  .site-header { min-height: 62px; gap: .5rem; padding: .45rem .7rem; }
  .brand { gap: .45rem; }
  .brand img { width: 2.45rem; height: 2.45rem; }
  .brand strong { font-size: .71rem; letter-spacing: .02em; }
  .brand small { font-size: .47rem; letter-spacing: .055em; }
  .header-contact { gap: .1rem; }
  .header-icon-link svg { width: 20px; height: 20px; }
  .hero { height: 76svh; min-height: 550px; max-height: 700px; }
  .hero-media img { object-position: 55% center; }
  .hero-content { padding: 1.5rem 1rem 4rem; }
  .announcement { margin-bottom: .85rem; font-size: .64rem; letter-spacing: .12em; }
  h1 { max-width: 12.5ch; margin-bottom: .75rem; font-size: clamp(2.2rem, 8.7vw, 2.85rem); letter-spacing: -.038em; line-height: 1.06; }
  .hero-lede { max-width: 33rem; margin-bottom: 1rem; font-size: .96rem; line-height: 1.5; }
  .hero-actions { gap: .55rem; }
  .button { min-height: 3.15rem; padding: .72rem .85rem; font-size: .72rem; }
  .work-section { padding: 1.8rem .85rem 1.55rem; }
  .section-heading { margin-bottom: .9rem; }
  .section-heading h2 { font-size: clamp(1.65rem, 6vw, 1.9rem); }
  .section-heading > p { font-size: .93rem; }
  .service-areas { margin-top: .75rem; padding-top: .6rem; font-size: .84rem; }
  .estimate-inner { padding: 1.75rem .85rem 1.45rem; }
  .estimate-form fieldset { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .form-field-wide, .estimate-submit { grid-column: auto; }
  .form-heading { margin-bottom: .7rem; }
  .form-heading h2 { font-size: 1.45rem; }
  .form-heading p { font-size: .92rem; }
  .form-status { margin-top: .65rem; font-size: .84rem; }
  .estimate-form input, .estimate-form select { min-height: 3.15rem; }
  .estimate-form textarea { min-height: 4.5rem; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: .48rem; }
  .brand { gap: .32rem; }
  .brand img { width: 2.15rem; height: 2.15rem; }
  .brand strong { font-size: .63rem; }
  .brand small { font-size: .4rem; letter-spacing: .035em; }
  .header-contact { gap: 0; }
  .header-icon-link { width: 44px; height: 44px; }
  .hero-content { padding-inline: .82rem; }
  h1 { font-size: clamp(2.1rem, 8.4vw, 2.45rem); }
  .hero-actions { align-items: stretch; flex-direction: column; width: min(100%, 21rem); }
  .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
