:root {
  --ink: #1b2227;
  --navy: #223039;
  --navy-deep: #111a20;
  --paper: #f3efe8;
  --cream: #faf8f4;
  --sand: #d9cabb;
  --bronze: #a26f4b;
  --muted: #697075;
  --line: rgba(27,34,39,.16);
  --white: #fff;
  --sans: 'DM Sans', sans-serif;
  --display: 'Manrope', sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 18px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 20px; }
:focus-visible { outline: 3px solid #e2b78e; outline-offset: 4px; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  padding: 0 clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.24);
  background: rgba(12,21,27,.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .25s, box-shadow .25s;
}
.site-header.scrolled { position: fixed; background: rgba(17,26,32,.97); box-shadow: 0 10px 30px rgba(0,0,0,.18); border-color: transparent; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; }
.brand-mark svg { width: 100%; height: 100%; overflow: visible; }
.brand-mark .logo-roof, .brand-mark .logo-home { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark text { fill: currentColor; font: 800 22px var(--display); }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font: 800 15px var(--display); letter-spacing: .18em; }
.brand small { margin-top: 6px; font-size: 8px; letter-spacing: .38em; }
.site-header nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); font-weight: 700; font-size: 13px; }
.site-header nav a { padding: 9px 0; border-bottom: 1px solid transparent; }
.site-header nav a:hover { border-color: #fff; }
.nav-phone { color: #eadfd5; }
.menu-toggle { display: none; width: 44px; padding: 8px; border: 0; background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 7px 0; background: #fff; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #253039 url('assets/pool-cage-hero.png') center 48% / cover no-repeat;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,17,22,.84) 0%, rgba(9,17,22,.55) 43%, rgba(9,17,22,.06) 76%), linear-gradient(0deg, rgba(9,17,22,.62) 0%, transparent 55%); }
.hero-copy { position: relative; z-index: 1; width: min(920px, 90vw); padding: 150px clamp(24px, 7vw, 120px) clamp(64px, 9vh, 110px); }
.kicker { margin: 0; font-size: 10px; letter-spacing: .22em; font-weight: 800; color: var(--bronze); }
.hero .kicker { color: #ead2bd; }
.hero h1, .work h2, .contact h2 { margin: 22px 0; font: 700 clamp(58px, 8.8vw, 132px)/.86 var(--display); letter-spacing: -.07em; }
.hero h1 { max-width: 850px; }
.hero h1 em, .work h2 em, .contact h2 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
.hero-copy > p { max-width: 620px; margin: 0; color: rgba(255,255,255,.92); font-size: clamp(17px, 1.55vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-button { min-height: 52px; padding: 14px 23px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.78); border-radius: 999px; font-weight: 800; font-size: 14px; transition: transform .2s, background .2s, color .2s; }
.hero-button:hover { transform: translateY(-2px); }
.hero-button-primary { background: #fff; color: var(--navy-deep); }
.hero-button-primary:hover { background: #ead8c8; }
.hero-button-secondary { background: rgba(15,25,31,.28); color: #fff; backdrop-filter: blur(7px); }
.hero-button-secondary:hover { background: rgba(255,255,255,.15); }

.work { padding: clamp(82px, 10vw, 145px) clamp(24px, 7vw, 120px); background: var(--paper); color: var(--ink); }
.work-heading { max-width: 1000px; margin: 0 auto 58px; text-align: center; }
.work .kicker { color: var(--bronze); }
.work-summary { max-width: 720px; margin: 24px auto 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); }
.work h2 { margin: 22px 0 0; font-size: clamp(50px, 6.4vw, 96px); text-align: center; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.project { position: relative; min-height: min(48vw, 560px); overflow: hidden; border-radius: 2px; background: #26343d; box-shadow: 0 18px 45px rgba(27,34,39,.12); }
.project-wide { grid-column: 1 / -1; min-height: min(62vw, 720px); }
.project img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .7s, filter .4s; }
.project:hover img { transform: scale(1.025); filter: brightness(.92); }
.project::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(7,13,17,.9)); }
.project-label { position: absolute; z-index: 2; left: clamp(22px, 3vw, 40px); right: 22px; bottom: clamp(22px, 3vw, 38px); }
.project-label small, .project-label strong { display: block; }
.project-label small { color: #fff; font-size: 9px; text-transform: uppercase; letter-spacing: .18em; text-shadow: 0 2px 12px rgba(0,0,0,.72); }
.project-label strong { margin-top: 7px; color: #fff; font: 700 clamp(22px, 2.5vw, 36px) var(--display); letter-spacing: -.035em; text-shadow: 0 2px 18px rgba(0,0,0,.82); }
.feedback { padding: clamp(64px, 8vw, 110px) clamp(24px, 7vw, 120px); background: var(--sand); scroll-margin-top: 88px; }
.feedback-heading { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.feedback-heading .kicker { color: #745239; }
.feedback-heading h2 { margin: 12px 0; font: 700 clamp(42px, 5.5vw, 76px)/.95 var(--display); letter-spacing: -.055em; }
.feedback-heading > p:last-child { margin: 0; color: #5f5147; font-size: 17px; }
.review-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
.review-form, .review-board { padding: clamp(24px, 3vw, 38px); border-radius: 26px; background: var(--cream); box-shadow: 0 16px 40px rgba(69,47,31,.1); }
.review-form { display: block; }
.star-rating { margin: 0 0 18px; padding: 0; border: 0; }
.star-rating legend { margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.star-rating > div { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.star-rating input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating label { display: block; margin: 0; color: #c9c0b7; font-size: 38px; line-height: 1; cursor: pointer; transition: color .15s, transform .15s; }
.star-rating label:hover { transform: scale(1.08); }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #c27c3d; }
.review-form .action-link { width: 100%; min-height: 54px; border-radius: 999px; background: var(--navy); }
.review-board-heading { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.review-board-heading h3 { margin: 10px 0 0; font: 700 clamp(28px, 3vw, 40px)/1.05 var(--display); letter-spacing: -.045em; }
.review-list { display: grid; gap: 14px; margin-top: 20px; }
.review-empty { margin: 0; padding: 24px; border: 1px dashed #b9a798; border-radius: 18px; color: #6a5a4e; text-align: center; }
.review-card { padding: 20px; border-radius: 18px; background: #fff; }
.review-card-stars { color: #b86f32; letter-spacing: .08em; }
.review-card p { margin: 10px 0; }
.review-card footer { min-height: 0; padding: 0; display: flex; justify-content: space-between; gap: 15px; background: transparent; color: var(--ink); }
.review-card footer strong { font-size: 13px; }
.review-card footer small { color: var(--muted); }

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5vw; padding: clamp(62px, 7vw, 96px) clamp(24px, 7vw, 120px); background: var(--navy); color: var(--white); scroll-margin-top: 88px; }
.contact-copy { align-self: center; text-align: center; }
.contact .kicker { color: #d6b69b; }
.contact h2 { font-size: clamp(48px, 5.4vw, 76px); }
.contact-intro { max-width: 500px; margin: -4px auto 0; color: #d8dfe3; font-size: 18px; }
.contact-actions { width: min(100%, 470px); display: grid; gap: 12px; margin: 34px auto 0; }
.contact-actions a { padding: 16px 24px; display: block; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; background: rgba(255,255,255,.05); transition: background .2s, transform .2s; }
.contact-actions a:hover { background: rgba(255,255,255,.1); }
.contact-actions small, .contact-actions strong { display: block; }
.contact-actions small { margin-bottom: 6px; color: #d5c7ba; font-size: 9px; letter-spacing: .18em; }
.contact-actions strong { font: 700 clamp(17px, 1.8vw, 24px) var(--display); overflow-wrap: anywhere; }
.service-area { margin-top: 23px; color: #d5dcdf; font-size: 13px; text-align: center; }
.quote-form { align-self: start; padding: clamp(26px, 3.2vw, 42px); border-radius: 30px; background: var(--cream); color: var(--ink); box-shadow: 0 25px 60px rgba(5,12,16,.24); }
.form-heading { margin-bottom: 24px; text-align: center; }
.form-heading h3 { margin: 10px 0 7px; font: 700 clamp(28px, 3vw, 42px)/1.05 var(--display); letter-spacing: -.045em; }
.form-heading > p:last-child { margin: 0; color: var(--muted); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 800; }
label span { color: var(--muted); font-weight: 500; }
input, select, textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid #d9d4cc; border-radius: 15px; background: #fff; color: var(--ink); font-size: 16px; outline: none; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(162,111,75,.12); }
.submit-line { width: 100%; min-height: 60px; margin-top: 8px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--bronze); color: #fff; font-weight: 800; cursor: pointer; }
.submit-line:hover { background: #805538; }
.action-link { min-height: 48px; align-self: end; padding: 11px 16px; border: 0; background: var(--navy); color: #fff; font-weight: 800; cursor: pointer; }
.form-result { margin-top: 18px; padding: 20px; border-radius: 18px; background: #fff; color: var(--ink); }
.form-result p { margin: 5px 0 13px; color: var(--muted); font-size: 12px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.result-actions a, .result-actions button { min-height: 46px; padding: 10px 17px; border: 1px solid var(--navy); border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; cursor: pointer; }
.result-actions button { background: transparent; color: var(--navy); }

footer { min-height: 180px; padding: 40px clamp(24px, 7vw, 120px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; background: #0d1418; color: #fff; }
footer p { color: #aeb8bf; font-size: 12px; text-align: right; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s, transform .65s; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .project img { transition: none; }
}
@media (max-width: 920px) {
  .site-header nav { position: absolute; inset: 88px 0 auto; display: none; flex-direction: column; align-items: flex-start; padding: 28px; background: rgba(17,26,32,.98); }
  .site-header nav.open { display: flex; }
  .menu-toggle { display: block; }
  .contact { grid-template-columns: 1fr; }
  .work-summary { max-width: 620px; }
  .review-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { height: 76px; padding: 0 20px; }
  .site-header nav { inset: 76px 0 auto; }
  .brand-mark { width: 40px; height: 40px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 8px; letter-spacing: .3em; }
  .hero {
    min-height: 100svh;
    background-size: cover;
    background-position: 58% center;
    background-repeat: no-repeat;
    background-color: #162229;
  }
  .hero::before { background: linear-gradient(0deg, rgba(8,15,19,.94) 0%, rgba(8,15,19,.58) 55%, rgba(8,15,19,.12) 100%); }
  .hero-copy { width: 100%; min-height: 100svh; padding: 106px 20px 30px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero h1 { margin: 14px 0 15px; font-size: clamp(48px, 14.5vw, 61px); }
  .hero-copy > p { max-width: 340px; font-size: 15px; line-height: 1.45; }
  .hero-actions { display: grid; width: min(100%, 330px); margin-top: 22px; padding-top: 0; gap: 9px; }
  .hero-button { width: 100%; }
  .hero-button { min-height: 48px; padding: 11px 18px; }
  .work { padding: 54px 20px; }
  .contact { gap: 32px; padding: 54px 20px; }
  .contact h2 { margin: 16px 0; font-size: 44px; }
  .contact-intro { max-width: 340px; font-size: 16px; }
  .contact-actions { margin-top: 28px; }
  .contact-actions a { padding: 14px 20px; }
  .service-area { margin-top: 19px; }
  .work h2 { font-size: 40px; }
  .work-summary { margin-top: 16px; font-size: 15px; }
  .work-heading { margin-bottom: 30px; }
  .project-grid { grid-template-columns: 1fr; gap: 12px; }
  .project, .project-wide { grid-column: auto; min-height: 380px; max-height: 48vh; }
  .project-label strong { font-size: 25px; }
  .feedback { padding: 54px 20px; }
  .feedback-heading { margin-bottom: 28px; }
  .feedback-heading h2 { font-size: 42px; }
  .feedback-heading > p:last-child { font-size: 15px; }
  .review-form, .review-board { padding: 22px 18px; border-radius: 22px; }
  .star-rating label { font-size: 34px; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 24px 18px; border-radius: 24px; }
  .form-heading { margin-bottom: 20px; }
  input, select, textarea { min-height: 50px; }
  footer { grid-template-columns: 1fr; }
  footer p { text-align: left; }
}
