:root {
  --blue: #0d3772;
  --blue-2: #174f9c;
  --sky: #2f80d0;
  --ink: #172033;
  --muted: #5e6b7d;
  --line: #dfe6ef;
  --soft: #f4f7fb;
  --white: #ffffff;
  --dark: #0b1d35;
  --shadow: 0 22px 55px rgba(13, 55, 114, .10);
  --radius: 24px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--dark); color: var(--white); }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 999; background: #fff; padding: 10px 14px; }
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(223,230,239,.86);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { width: 205px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.main-nav a { text-decoration: none; transition: color .2s ease; }
.main-nav a:hover { color: var(--sky); }
.nav-cta { color: #fff !important; background: var(--blue); padding: 12px 19px; border-radius: 999px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { display: block; height: 2px; margin: 6px 0; background: var(--blue); transition: .2s ease; }

.hero { min-height: 710px; position: relative; display: grid; align-items: center; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; background: url('../images/wood-deck-after.jpg') center 46% / cover no-repeat; transform: scale(1.015); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,24,48,.90) 0%, rgba(8,37,74,.78) 44%, rgba(10,42,83,.30) 76%, rgba(10,42,83,.12) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 50px; padding-bottom: 50px; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--sky); font-size: 13px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: #8fc5ff; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(48px, 7vw, 82px); line-height: .98; letter-spacing: -.05em; }
.hero-copy { max-width: 670px; margin: 28px 0 0; font-size: 18px; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--sky); color: #fff; }
.button-primary:hover { background: #246fae; }
.button-secondary { border: 1px solid rgba(255,255,255,.50); color: #fff; background: rgba(255,255,255,.08); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 45px; font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hero-trust span { position: relative; }
.hero-trust span:not(:last-child)::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; right: -16px; top: 8px; background: #8fc5ff; }

.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
h2 { margin: 0; font-size: clamp(34px, 4.3vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.intro-copy { font-size: 17px; color: var(--muted); }
.intro-copy p:first-child { margin-top: 0; }
.section-heading { max-width: 720px; margin-bottom: 46px; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; }
.heading-row { max-width: none; display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; }
.heading-row > p { margin: 0; }
.section-heading-light > p:last-child { color: rgba(255,255,255,.65); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 260px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c9d9ed; }
.service-number { color: var(--sky); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.service-card h3 { margin: 38px 0 10px; font-size: 23px; letter-spacing: -.02em; }
.service-card p { margin: 0; color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 285px; gap: 18px; }
.gallery-card { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #d7dfeb; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); grid-column: span 4; }
.gallery-card.gallery-large { grid-column: span 8; grid-row: span 2; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-card:hover img { transform: scale(1.035); }
.gallery-card figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 999px; background: rgba(9,29,52,.78); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 750; }

.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); }
.process-grid li { min-height: 235px; padding: 28px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.process-grid span { color: #79baff; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.process-grid h3 { margin: 34px 0 7px; font-size: 22px; }
.process-grid p { margin: 0; color: rgba(255,255,255,.62); }

.why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: center; }
.why-copy > p:not(.section-kicker) { color: var(--muted); font-size: 17px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.feature-list div { padding: 18px 0; border-top: 1px solid var(--line); }
.feature-list strong, .feature-list span { display: block; }
.feature-list span { margin-top: 4px; color: var(--muted); font-size: 14px; }
.testimonial { margin: 0; padding: 46px; background: var(--blue); color: #fff; border-radius: 30px; box-shadow: var(--shadow); }
.quote-mark { display: block; font: 700 72px/1 Georgia, serif; color: #76baff; }
.testimonial p { margin: 6px 0 25px; font-size: 21px; line-height: 1.55; }
.testimonial footer { color: rgba(255,255,255,.66); font-size: 13px; }

.contact { padding-top: 20px; }
.contact-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; padding: 54px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(135deg,#f8fbff,#eef5ff); }
.contact-card p:not(.section-kicker) { color: var(--muted); }
.contact-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.button-wide { width: 100%; }
.text-link { text-decoration: none; padding: 12px 2px; border-bottom: 1px solid #cad8ea; font-size: 14px; font-weight: 750; }

.site-footer { padding: 58px 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 35px; align-items: center; }
.footer-brand img { width: 170px; height: auto; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 13px; }
.copyright { text-align: right; }

@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .main-nav { position: absolute; top: 86px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .menu-toggle { display: block; }
  .hero { min-height: 660px; }
  .hero h1 { max-width: 680px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(6,24,48,.92), rgba(8,37,74,.72)); }
  .intro-grid, .heading-row, .why-grid, .contact-card { grid-template-columns: 1fr; gap: 34px; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 360px; }
  .gallery-card, .gallery-card.gallery-large { grid-column: auto; grid-row: auto; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .copyright { text-align: left; }
}

@media (max-width: 620px) {
  :root { --container: min(100% - 28px, 1180px); }
  .header-inner { min-height: 76px; }
  .brand img { width: 172px; }
  .main-nav { top: 76px; left: 14px; right: 14px; }
  .hero { min-height: 650px; }
  .hero-content { padding-top: 34px; }
  .hero h1 { font-size: clamp(43px, 14vw, 64px); }
  .hero-copy { font-size: 16px; }
  .hero-trust span:not(:last-child)::after { display: none; }
  .button { width: 100%; }
  .service-grid, .gallery-grid, .process-grid, .feature-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 420px; }
  .service-card { min-height: 220px; }
  .testimonial { padding: 34px 28px; }
  .contact-card { padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
