/* Shield Contractors: site styles */
:root {
  /* Theme: warm grey and charcoal, white header */
  --ink: #2b2b2b;         /* charcoal: dark sections, headings */
  --ink-2: #353535;
  --paper: #ffffff;
  --sand: #ecebe8;        /* warm light grey panels */
  --sand-2: #e2e0dc;
  --line: #d6d3ce;
  --text: #2a2a2a;
  --muted: #5c5c5c;
  --gold: #2b2b2b;        /* accent: rules, buttons (charcoal on light) */
  --gold-ink: #6b6660;    /* small accent text on light (eyebrows) */
  --gold-soft: #c4c4c4;   /* accent text on dark */
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Urbanist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --head-font: var(--serif);
  --head-weight: 600;
  --head-track: -.005em;
  --on-gold: #ffffff;             /* text on accent buttons */
  --gold-on-dark: #ffffff;        /* accent inside dark sections */
  --on-gold-dark: #2b2b2b;
  --header-bg: #ffffff;
  --header-fg: #111111;
  --header-accent: #555555;
  --header-btn-bg: #2b2b2b;
  --header-btn-fg: #ffffff;
  --header-line: #e6e6e6;
  --logo-light: none;             /* black logo on the white header */
  --logo-dark: block;
  --logo-light-solid: var(--logo-light);
  --logo-dark-solid: var(--logo-dark);
  --header-fg-solid: var(--header-fg);
  --header-accent-solid: var(--header-accent);
  --frost-reed: 22px;    /* width of each frosted-glass reed on light grey sections */
  --frost-light: .55;    /* reed highlight strength */
  --frost-dark: .035;    /* reed shadow strength */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --cut: clamp(28px, 5vw, 72px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }   /* never allow sideways scrolling on phones */
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.7 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head-font); font-weight: var(--head-weight); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: var(--head-track); }
/* Inside dark sections the accent flips (e.g. black buttons become white) */
.hero, .page-hero, .feature, .cta-band, .aside, .site-footer { --gold: var(--gold-on-dark); --on-gold: var(--on-gold-dark); }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sand { background: var(--sand); }
.center { text-align: center; }

/* Gold rule under headings, the site's signature detail */
.rule { display: block; width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 0 28px; }
.center .rule, .rule.center { margin-left: auto; margin-right: auto; }
.eyebrow { font: 600 .8rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { opacity: .88; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { display: inline-block; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.text-link:hover { color: var(--gold-ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); color: var(--header-fg); box-shadow: 0 1px 0 var(--header-line); --gold: var(--header-btn-bg); --on-gold: var(--header-btn-fg); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo { height: 52px; width: auto; }
.logo-dark { display: var(--logo-dark, none); }
.logo-light { display: var(--logo-light, block); }
.site-footer { --logo-dark: none; --logo-light: block; }
.site-footer .logo { height: 60px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 600 1.55rem/1 var(--head-font); letter-spacing: .14em; text-transform: uppercase; }
.brand-sub { font: 500 .66rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--header-accent); margin-top: 5px; }
.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 10px 14px; color: var(--header-fg); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav > ul > li > a:not(.btn):hover, .site-nav a.is-active:not(.btn) { color: var(--header-accent); }
.site-nav .nav-phone a { color: var(--header-accent); font-weight: 600; letter-spacing: .02em; }
.site-nav .nav-cta { margin-left: 8px; }
.site-nav .nav-cta .btn { padding: 12px 20px; color: var(--on-gold); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 250px; list-style: none; margin: 0; padding: 10px 0; background: var(--header-bg); border: 1px solid var(--header-line); box-shadow: 0 18px 40px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 9px 20px; font-size: .92rem; }
.sub a:hover { background: rgba(127,127,127,.1); color: var(--header-accent); }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; background: none; border: 0; color: var(--header-fg); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-open .bars { background: transparent; }
.nav-open .bars::before { top: 0; transform: rotate(45deg); }
.nav-open .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--header-bg); padding: 12px var(--gutter) 40px; overflow-y: auto; display: none; }
  .nav-open .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid rgba(127,127,127,.18); }
  .site-nav a { padding: 15px 0; font-size: 1.1rem; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 10px 14px; }
  .sub a { padding: 8px 0; color: var(--header-fg); opacity: .75; }
  .site-nav .nav-cta { margin: 24px 0 0; border: 0; }
  .site-nav .nav-cta .btn { width: 100%; }
}

/* Breadcrumbs */
.crumbs { background: var(--sand); border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 auto; padding: 12px var(--gutter); max-width: var(--wrap); font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Hero (home) */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; color: #fff; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.hero-media, .hero-media img, .hero-media .img-missing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { z-index: 0; }   /* keep the overlay behind the text */

/* Light grey frosted glass on text-only sections: fine grain + faint vertical reeds + soft top light */
.section-sand, .panel, .form-card, .crumbs {
  background-color: var(--sand);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,var(--frost-light)) 0 1px, rgba(255,255,255,0) 6px,
      rgba(0,0,0,0) calc(var(--frost-reed) - 6px), rgba(0,0,0,var(--frost-dark)) var(--frost-reed)),
    linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 55%);
}
.crumbs { background-image: none; }
/* Cards sitting on frosted sections read as clear glass panes */
.section-sand .card { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.25) 40%, rgba(10,10,10,.8) 100%); }
.hero-content { position: relative; padding-top: 120px; padding-bottom: clamp(64px, 10vw, 120px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: var(--gold-soft); }
.hero p { max-width: 560px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.88); }
.hero .rule { margin-top: 6px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 36px 0 0; font-size: .92rem; color: rgba(255,255,255,.8); }
.hero-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--gold); margin-right: 10px; vertical-align: middle; transform: rotate(45deg); }

/* Full-screen centred hero (home) with the header floating over it */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; box-shadow: none; transition: background .3s, box-shadow .3s;
  --header-fg: #fff; --header-accent: rgba(255,255,255,.82); --gold: var(--gold-on-dark); --on-gold: var(--on-gold-dark); --logo-light: block; --logo-dark: none; }
.home.scrolled .site-header, .home.nav-open .site-header { background: var(--header-bg); box-shadow: 0 1px 0 var(--header-line);
  --header-fg: var(--header-fg-solid); --header-accent: var(--header-accent-solid); --gold: var(--header-btn-bg); --on-gold: var(--header-btn-fg); --logo-light: var(--logo-light-solid); --logo-dark: var(--logo-dark-solid); }
.home.nav-open .site-header { background: var(--header-bg); }
.hero-full { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; }
.hero-full .hero-media { overflow: hidden; }
.hero-full .hero-media img { animation: heroZoom 24s ease-out both; transform-origin: 50% 60%; }
.hero-full .hero-media::after { background: rgba(10,10,10,.5); }
.hero-full .hero-center { text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.hero-center { position: relative; padding: 120px var(--gutter) 80px; max-width: 900px; }
.hero-full h1 { max-width: none; font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 500; letter-spacing: .005em; margin-bottom: .35em; }
.hero-full .rule { width: 60px; margin: 0 auto 30px; }
.hero-full p { margin: 0 auto; max-width: 560px; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.7; color: rgba(255,255,255,.9); }
.hero-scroll { position: absolute; bottom: calc(var(--cut) + 18px); left: 50%; width: 22px; height: 22px; margin-left: -11px; border-right: 1.5px solid rgba(255,255,255,.7); border-bottom: 1.5px solid rgba(255,255,255,.7); transform: rotate(45deg); animation: heroCue 2.4s ease-in-out infinite; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes heroCue { 0%, 100% { opacity: .4; translate: 0 0; } 50% { opacity: 1; translate: 0 6px; } }

/* Page header (inner pages) */
.page-hero { position: relative; color: #fff; background: var(--ink); padding: clamp(80px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.page-hero .hero-media::after { background: linear-gradient(90deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.55) 60%, rgba(10,10,10,.35) 100%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.4rem); max-width: 18ch; }
.page-hero p { max-width: 620px; color: rgba(255,255,255,.86); font-size: 1.15rem; }
.page-hero .eyebrow { color: var(--gold-soft); }

/* Split panel: text + image with a cut corner */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.panel { padding: clamp(40px, 6vw, 80px); clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cut-img { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); overflow: hidden; }
.cut-img img, .cut-img .img-missing { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cut-img.wide img, .cut-img.wide .img-missing { aspect-ratio: 3 / 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .cut-img img, .cut-img .img-missing { aspect-ratio: 4 / 3; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); list-style: none; margin: 0; padding: 0; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: var(--sand); transition: box-shadow .6s var(--ease), transform .6s var(--ease); }
.card:hover { box-shadow: 0 26px 50px rgba(20,20,20,.14); transform: translateY(-18px); }
.card-img { margin: 18px 18px 0; clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%); overflow: hidden; }
.card-img img, .card-img .img-missing { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body::before { content: ""; width: 26px; height: 3px; background: var(--gold); margin-bottom: 18px; }
.card h3 { font-size: 1.65rem; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--muted); font-size: 1rem; }
.card .text-link { margin-top: auto; align-self: flex-start; font-size: .92rem; }
.card-meta { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; margin-bottom: 8px; }
.cards:has(> li:nth-child(8):last-child) { grid-template-columns: repeat(4, 1fr); }
.cards:has(> li:nth-child(8):last-child) .card h3 { font-size: 1.45rem; }
@media (max-width: 1100px) { .cards:has(> li:nth-child(8):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* Feature band: dark image with text */
.feature { position: relative; color: #fff; background: var(--ink); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.feature .hero-media::after { background: linear-gradient(90deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.6) 55%, rgba(10,10,10,.2) 100%); }
.feature .wrap { position: relative; padding-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(72px, 10vw, 130px); }
.feature h2 { color: #fff; max-width: 14ch; }
.feature p { max-width: 520px; color: rgba(255,255,255,.86); }
.feature-box { max-width: 1100px; margin: 0 auto; }

/* Numbered steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 22px; }
.steps li::before { content: "0" counter(step); display: block; font: 600 2.4rem/1 var(--head-font); color: var(--gold); margin-bottom: 12px; }
.steps h3 { font-size: 1.4rem; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Ticks list */
.ticks { list-style: none; padding: 0; columns: 2; column-gap: 40px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; break-inside: avoid; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
@media (max-width: 640px) { .ticks { columns: 1; } }

/* Long-form text */
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--gold-ink); }
.prose a.btn { color: inherit; }

/* Layout with sidebar */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); background: var(--ink); color: #fff; padding: 34px; clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%); }
.aside h2 { color: #fff; font-size: 1.9rem; }
.aside p { color: rgba(255,255,255,.8); font-size: .98rem; }
.aside .btn { width: 100%; margin-top: 8px; }
.aside .aside-phone { display: block; font: 600 1.6rem/1.2 var(--head-font); color: var(--gold-soft); text-decoration: none; margin: 4px 0 14px; }
.aside ul { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .95rem; }
.aside li { margin-bottom: 8px; }
.aside li a { color: rgba(255,255,255,.85); text-decoration: none; }
.aside li a:hover { color: var(--gold-soft); }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 1.35rem/1.3 var(--head-font); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--sans); color: var(--gold-ink); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 0 22px; color: var(--muted); }

/* Areas */
.area-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.area-links a { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 500; transition: .2s; }
.area-links a:hover { border-color: var(--gold); color: var(--gold-ink); }
.place-list { columns: 3; column-gap: 32px; list-style: none; padding: 0; color: var(--muted); }
.place-list li { margin-bottom: 6px; }
@media (max-width: 700px) { .place-list { columns: 2; } }

/* Finished-project tiles (home) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; padding: 0; margin: 0; }
.tiles a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; background: var(--ink); }
.tiles img, .tiles .img-missing { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.tiles a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); }
.tiles span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-size: .85rem; letter-spacing: .04em; color: rgba(255,255,255,.82); }
.tiles strong { display: block; font: var(--head-weight) 1.3rem/1.15 var(--head-font); letter-spacing: 0; color: #fff; margin-bottom: 4px; }
.tiles a:hover img { transform: scale(1.05); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } .tiles a { aspect-ratio: 4 / 3; } }

/* Project gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.gallery li { margin: 0; }
.gallery figure { margin: 0; }
.gallery img, .gallery .img-missing { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-size: .88rem; color: var(--muted); padding: 10px 2px 0; line-height: 1.5; }
.gallery .tall img { aspect-ratio: 3 / 4; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.project { padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.project:last-of-type { border-bottom: 0; }
.project-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); margin-bottom: 36px; }
.project-head dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0 0; font-size: .95rem; }
.project-head dt { color: var(--gold-ink); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; padding-top: 3px; }
.project-head dd { margin: 0; }
@media (max-width: 860px) { .project-head { grid-template-columns: 1fr; } }
.project-index { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.project-index a { font-size: .9rem; color: rgba(255,255,255,.85); text-decoration: none; border: 1px solid rgba(255,255,255,.25); padding: 7px 14px; }
.project-index a:hover { border-color: var(--gold); color: var(--gold-soft); }

/* Quote/CTA band */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .split { align-items: start; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); }
.cta-band .big-phone { display: inline-block; font: 600 clamp(1.9rem, 3.4vw, 2.6rem)/1.1 var(--head-font); color: var(--gold-soft); text-decoration: none; margin: 6px 0 20px; }
.cta-band .ticks li::before { border-color: var(--gold-soft); }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 13px 14px; min-height: 50px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.form .hp { position: absolute; left: -9999px; }
.form .small { font-size: .85rem; color: var(--muted); margin: 0; }
.cta-band .form label { color: rgba(255,255,255,.9); }
.cta-band .form .small { color: rgba(255,255,255,.65); }
.cta-band .form .small a { color: var(--gold-soft); }
.form-card { padding: clamp(28px, 4vw, 48px); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; text-align: center; }
.stats strong { display: block; font: 600 clamp(2.4rem, 4vw, 3.4rem)/1 var(--head-font); color: var(--ink); }
.stats span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Reviews */
.quote { background: var(--sand); padding: 34px; margin: 0; }
.quote p { font: 500 1.35rem/1.45 var(--head-font); color: var(--ink); }
.quote footer { font-size: .9rem; color: var(--muted); }

/* Featured project */
.project-featured { border-bottom: 0; padding-top: clamp(64px, 8vw, 110px); }
.project-featured > .eyebrow { margin-bottom: 18px; }
.featured-hero { margin: 0 0 56px; overflow: hidden; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.featured-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.featured-hero figcaption { font-size: .9rem; color: var(--muted); padding-top: 10px; }
.story-title { margin-bottom: 22px; }
.story { counter-reset: none; }
.story figcaption b { display: block; color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.feature-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .feature-split { grid-template-columns: 1fr; } }

/* Review cards */
.reviews-cards .card { background: #fff; border: 1px solid var(--line); }
.section-sand .reviews-cards .card { background: rgba(255,255,255,.78); border-color: transparent; }
.review { margin: 0; padding: 30px 30px 28px; display: flex; flex-direction: column; height: 100%; }
.review .stars { color: var(--ink); letter-spacing: .18em; font-size: 1rem; margin-bottom: 14px; }
.review p { font: 500 1.22rem/1.5 var(--head-font); color: var(--ink); }
.review footer { margin-top: auto; padding-top: 10px; font-size: .9rem; color: var(--muted); letter-spacing: .02em; }
.review-cta { justify-content: center; }

/* Accreditation badges */
.badges-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.badges-inner { display: flex; align-items: center; gap: 28px 48px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 34px; }
.badges-inner .eyebrow { margin: 0; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 26px 44px; list-style: none; margin: 0; padding: 0; }
.badges li { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--muted); }
.badges img { height: 52px; width: auto; filter: grayscale(1) contrast(1.05); opacity: .9; transition: filter .3s, opacity .3s; }
.badges li:hover img { filter: none; opacity: 1; }
.badge-google a { display: flex; flex-direction: column; text-decoration: none; line-height: 1.3; }
.badge-google strong { color: var(--ink); font-size: 1.05rem; letter-spacing: .04em; }

/* Image placeholder (shown when a photo is missing) */
.img-missing { width: 100%; aspect-ratio: 3 / 2; background: repeating-linear-gradient(135deg, #2a2926 0 14px, #252421 14px 28px); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 80px 0 0; margin-top: 0; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 340px; margin-top: 20px; }
.footer-phone a { font: 600 1.6rem/1 var(--head-font); color: var(--gold-soft); text-decoration: none; }
.footer-contact { margin-top: 14px !important; font-size: .9rem; }
.footer-contact li { margin-bottom: 6px; }
.footer-contact a { border-bottom: 1px solid rgba(255,255,255,.2); }
.footer-title { font: 600 .8rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin: 8px 0 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { text-decoration: none; color: inherit; }
.site-footer a:hover { color: var(--gold-soft); }
.social { margin-top: 22px !important; display: flex; gap: 16px; flex-wrap: wrap; }
.social a { font-size: .88rem; border-bottom: 1px solid rgba(255,255,255,.25); }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 60px; padding-top: 22px; padding-bottom: 26px; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Comfortable tap targets on touch screens (44px+) */
@media (max-width: 960px) {
  .aside ul li { margin: 0; }
  .aside li a, .ticks li a, .site-footer li a, .crumbs a { display: inline-block; padding: 10px 0; }
  .site-footer li { margin-bottom: 0; }
  .ticks li { margin-bottom: 6px; }
  .area-links a, .project-index a { min-height: 44px; display: inline-flex; align-items: center; }
  .aside .aside-phone { padding: 8px 0; }
  .text-link { padding: 10px 0 4px; }
  .social a { display: inline-block; padding: 10px 0; }
  .footer-phone a { display: inline-block; padding: 8px 0; }
}

/* WhatsApp: green is WhatsApp's own colour, so people recognise it instantly */
:root { --wa: #25d366; --wa-ink: #0b3d1f; }
.wa-icon { width: 20px; height: 20px; flex: none; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px 13px 16px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .3s var(--ease), box-shadow .3s; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.26); }
.wa-float .wa-icon { width: 24px; height: 24px; }
.has-host-badge .wa-float { bottom: calc(var(--host-badge, 76px) + 10px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { opacity: .9; }
.btn-wa .wa-icon { width: 18px; height: 18px; }

/* Sticky Call + WhatsApp bar on phones */
.contact-bar { display: none; }
@media (max-width: 700px) {
  .wa-float { display: none; }
  .contact-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; transition: transform .35s var(--ease), opacity .35s; }
  .contact-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 14px; font-weight: 700; letter-spacing: .03em; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
  .cb-call { background: var(--gold); color: var(--on-gold); }
  .cb-wa { background: var(--wa); color: #fff; }
  .contact-bar.is-hidden { transform: translateY(130%); opacity: 0; pointer-events: none; }
  .has-host-badge .contact-bar { bottom: var(--host-badge, 76px); }
  .nav-open .contact-bar { display: none; }
  .site-footer { padding-bottom: 76px; }
}

/* Motion: elements are tagged by site.js (so nothing is hidden without JS).
   a-rise = headings rise in, a-fade = content fades up, a-zoom = images settle from 120%,
   a-line = accent rules draw in. Animations use fill "backwards" so hover effects still work after. */
:root { --ease: cubic-bezier(.19, 1, .22, 1); }
.a-rise:not(.in), .a-fade:not(.in), .a-zoom:not(.in) { opacity: 0; }
.a-line:not(.in) { transform: scaleX(0); }
.a-rise.in { animation: aRise 1.2s var(--ease) var(--d, 0s) backwards; }
.a-fade.in { animation: aFade 1.1s var(--ease) var(--d, 0s) backwards; }
.a-zoom.in { animation: aZoom 1.8s var(--ease) var(--d, 0s) backwards; }
.a-line.in { animation: aLine 1.1s var(--ease) calc(var(--d, 0s) + .25s) backwards; }
.center .a-line, .a-line.center { transform-origin: center; }
.a-line { transform-origin: left; }
@keyframes aRise { from { opacity: 0; transform: translateY(90px); } to { opacity: 1; transform: none; } }
@keyframes aFade { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes aZoom { from { opacity: 0; transform: scale(1.2); } to { opacity: 1; transform: scale(1); } }
@keyframes aLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cut-img, .card-img, .gallery figure > :first-child, .tiles a { overflow: hidden; }
.gallery img { transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }

/* Brick transition between pages: the page itself is revealed in brick-shaped pieces.
   A plain cover (page colour) is split into bricks in running bond; each brick lifts away
   to show that piece of the new page, course by course from the bottom up, so the page
   is "built". Leaving a page does the reverse: it is covered brick by brick. */
.brickwall { position: fixed; inset: 0; z-index: 200; display: none; overflow: hidden; pointer-events: none; }
html.bw .brickwall, .brickwall.live { display: block; }
html.bw .brickwall:not(.live) { background: var(--paper); }
.brickwall.live { pointer-events: auto; }
.brick { position: absolute; width: 101px; height: 41px; background: var(--paper); will-change: transform, opacity; }
.brick.out { animation: brickOut .26s cubic-bezier(.5, 0, .9, .4) var(--bd) forwards; }
.brick.in { animation: brickIn .22s cubic-bezier(.1, .6, .3, 1) var(--bd) backwards; }
@keyframes brickOut { 0% { opacity: 1; transform: none; } 55% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes brickIn { from { opacity: 0; transform: translateY(10px); } }

/* Calm mode (visitor has "reduce motion" on): gentle fades only, no movement or zoom */
.calm .a-rise.in, .calm .a-fade.in, .calm .a-zoom.in { animation: aCalm 1s ease var(--d, 0s) backwards; }
.calm .a-line:not(.in), .calm .a-line.in { transform: none; animation: none; }
.calm .hero-full .hero-media img, .calm .hero-scroll { animation: none; }
.calm .card:hover, .calm .card:hover .card-img img, .calm .tiles a:hover img, .calm .gallery figure:hover img { transform: none; }
@keyframes aCalm { from { opacity: 0; } to { opacity: 1; } }
