/* Self-hosted Poppins (latin). No requests to Google. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }

/* ===== Colours: change them here, once ===== */
:root {
  --black: #0E0E0E;
  --charcoal: #161616;
  --graphite: #2A2A2A;
  --steel-grey: #6B6B6B;
  --light-grey: #F3F3F1;
  --white: #FFFFFF;
  --yellow: #FFC20E;
  --yellow-hover: #E6AE00;
  --yellow-text: #8A6A00;
  --text: #111111;

  --font-head: "Poppins", "Montserrat", Arial, sans-serif;
  --font-body: "Poppins", "Open Sans", Arial, sans-serif;
  --radius: 4px;
  --max: 1200px;
  --topbar-h: 44px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--yellow);
  color: var(--black);
  transition: background .15s, transform .15s, color .15s;
}
.btn:hover { background: var(--yellow-hover); transform: translateY(-2px); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--graphite); }
.btn-sm { padding: 11px 20px; font-size: 13px; }

/* ===== Header (sticky: both tiers) ===== */
.site-header { position: sticky; top: 0; z-index: 100; }
.topbar { background: var(--black); color: #d8d8d8; font-size: 13px; height: var(--topbar-h); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 100%; gap: 16px; }
.topbar-left { display: flex; gap: 26px; align-items: center; }
.topbar a, .topbar span.item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar .icon { color: var(--yellow); }
.topbar .phone { color: var(--yellow); font-weight: 600; font-size: 15px; }

.navbar { background: var(--charcoal); border-bottom: 3px solid var(--yellow); height: var(--nav-h); }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.logo { display: block; height: 100%; padding: 4px 0; }
.logo img { height: 100%; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  color: var(--white); text-decoration: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 0 14px; height: 100%;
}
.nav-link .icon { font-size: 12px; transition: transform .15s; }
.nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link { color: var(--yellow); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--white); border-top: 3px solid var(--yellow);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .15s, transform .15s, visibility 0s linear .25s;
  padding: 8px 0;
}
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown, .nav-item.open > .dropdown {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav-item:hover > .nav-link .icon, .nav-item.open > .nav-link .icon { transform: rotate(180deg); }
.dropdown a {
  display: block; padding: 10px 22px; color: var(--black); text-decoration: none;
  font-size: 14px; font-weight: 400; transition: padding .12s, color .12s;
}
.dropdown a:hover, .dropdown a:focus-visible { color: var(--yellow-text); padding-left: 30px; }
.nav-cta { margin-left: 8px; }
.burger { display: none; background: none; border: 0; color: var(--white); font-size: 30px; cursor: pointer; padding: 6px; }
.mobile-head { display: none; }

@media (max-width: 1100px) {
  .burger { display: block; }
  .nav-cta-desktop { display: none; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100%);
    flex-direction: column; align-items: stretch; gap: 0; height: auto;
    background: var(--charcoal); padding: 20px 0 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s; z-index: 200;
  }
  .nav.open { transform: none; }
  .mobile-head { display: flex; flex-direction: column; gap: 14px; padding: 8px 24px 20px; border-bottom: 1px solid var(--graphite); }
  .mobile-head .phone { color: var(--yellow); font-weight: 600; font-size: 22px; text-decoration: none; }
  .mobile-close { align-self: flex-end; background: none; border: 0; color: var(--white); font-size: 28px; cursor: pointer; }
  .nav-item { display: block; height: auto; border-bottom: 1px solid var(--graphite); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 24px; height: auto; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border-top: 0; background: var(--black); display: none; min-width: 0;
  }
  .nav-item.open > .dropdown { display: block; }
  .nav-item:hover > .dropdown:not(.x) { opacity: 1; }
  .dropdown a { color: var(--white); padding: 12px 36px; }
  .dropdown a:hover { color: var(--yellow); padding-left: 44px; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 150; display: none; }
  .scrim.show { display: block; }
}
@media (max-width: 720px) {
  .topbar-left .area { display: none; }
  .topbar .wrap { justify-content: space-between; }
  :root { --nav-h: 66px; }
}

/* ===== Section basics ===== */
section { position: relative; }
.pad { padding: 100px 0; }
.bg-grey { background: var(--light-grey); }
.bg-dark { background: var(--charcoal); color: var(--white); }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--yellow-text); margin-bottom: 14px;
}
.eyebrow::before { content: "| "; } .eyebrow::after { content: " |"; }
.bg-dark .eyebrow { color: var(--yellow); }
.h2 { font-size: clamp(30px, 4vw, 46px); }
.link-arrow { font-family: var(--font-head); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.link-arrow:hover { color: var(--yellow-text); }

/* Fence-paling texture for dark sections */
.paling {
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 38px);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ===== 1. Hero ===== */
.hero {
  min-height: calc(100vh - var(--topbar-h) - var(--nav-h));
  min-height: calc(100svh - var(--topbar-h) - var(--nav-h));
  min-height: calc(100dvh - var(--topbar-h) - var(--nav-h));
  display: flex; align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(14,14,14,.82) 0%, rgba(14,14,14,.55) 60%, rgba(14,14,14,.35) 100%),
    url("images/projects/web/01-thornbury-builder-paling-lattice.webp") center 55% / cover no-repeat;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); max-width: 880px; margin-bottom: 22px; }
.hero .sub { color: var(--yellow); font-family: var(--font-head); font-weight: 500; font-size: clamp(18px, 2vw, 24px); margin-bottom: 36px; }

/* ===== 2. Services ===== */
.services-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 50px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.photo-card {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
  color: var(--white); text-decoration: none; background: var(--graphite);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,14,14,.85) 0%, rgba(14,14,14,0) 55%); }
.photo-card .title {
  position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1;
  font-family: var(--font-head); font-weight: 600; font-size: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.photo-card .title .icon { color: var(--yellow); font-size: 24px; transition: transform .2s; }
.photo-card:hover img { transform: scale(1.05); }
.photo-card:hover .title .icon { transform: translateX(6px); }
.photo-card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow); z-index: 2; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.photo-card:hover::before { transform: scaleX(1); }

/* ===== 3. About ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-photo { aspect-ratio: 4 / 4.4; border-radius: var(--radius); overflow: hidden; position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--yellow); }
.about p.lead { margin: 22px 0 28px; font-size: 17px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-bottom: 34px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; line-height: 1.45; }
.ticks .icon { flex: none; width: 22px; height: 22px; padding: 3px; margin-top: 1px; background: var(--yellow); color: var(--black); border-radius: 50%; stroke-width: 3; }

/* ===== 4. Standard ===== */
.standard-head { max-width: 640px; margin-bottom: 56px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.point { background: var(--graphite); padding: 34px 30px; border-radius: var(--radius); border-top: 3px solid transparent; transition: border-color .2s, transform .2s; }
.point:hover { border-top-color: var(--yellow); transform: translateY(-4px); }
.point .icon { font-size: 40px; color: var(--yellow); stroke-width: 1.5; margin-bottom: 20px; }
.point h3 { font-size: 19px; margin-bottom: 8px; }
.point p { color: #cfcfcf; }

/* ===== 5. Projects ===== */
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.center { text-align: center; margin-top: 48px; }

/* ===== 6. Feedback ===== */
.feedback { text-align: center; }
.feedback .wrap { max-width: 900px; }
.quote-mark { font-family: var(--font-head); font-weight: 600; font-size: 90px; line-height: .6; color: var(--yellow); height: 44px; }
.review-stage { display: grid; }
.review { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .4s; }
.review.active { opacity: 1; visibility: visible; }
.review blockquote { margin: 0 0 28px; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.55; font-weight: 300; }
.review .who { font-family: var(--font-head); font-weight: 600; }
.review .who span { color: var(--steel-grey); font-weight: 400; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--black); background: transparent; padding: 0; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--yellow); border-color: var(--yellow); }

/* ===== 7. Footing guide ===== */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article { display: block; text-decoration: none; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid #e3e3df; transition: transform .2s, box-shadow .2s; }
.article:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.1); }
.article .diagram { background: var(--charcoal); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.article .diagram svg { width: 100%; height: 100%; }
.article .body { padding: 24px 26px 28px; }
.article h3 { font-size: 20px; margin-bottom: 8px; }
.article p { color: var(--steel-grey); font-size: 15px; }

/* ===== 8. Quote ===== */
.quote { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; align-items: start; }
.quote h2 { margin-bottom: 30px; }
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; letter-spacing: .5px; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-weight: 400; font-size: 16px; padding: 13px 14px;
  background: var(--graphite); color: var(--white); border: 1px solid #444; border-radius: var(--radius);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }
.field .err { display: none; color: #ff8d7a; font-size: 13px; margin-top: 4px; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ff8d7a; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg { display: none; padding: 14px 16px; border-radius: var(--radius); font-weight: 400; }
.form-msg.ok { display: block; background: rgba(255,194,14,.15); border: 1px solid var(--yellow); }
.form-msg.bad { display: block; background: rgba(255,141,122,.15); border: 1px solid #ff8d7a; }
.hp { position: absolute; left: -9999px; }
.contact-side { padding-top: 56px; }
.contact-side .big-phone { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(34px, 4vw, 46px); color: var(--yellow); text-decoration: none; margin-bottom: 26px; }
.contact-side li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-side .icon { color: var(--yellow); font-size: 22px; margin-top: 4px; }
.contact-side a { text-decoration: none; }
.contact-side a:hover { color: var(--yellow); }

/* ===== 9. Footer ===== */
.footer { background: var(--black); color: #cfcfcf; padding: 80px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 50px; padding-bottom: 60px; }
.footer img.flogo { width: 150px; margin-bottom: 18px; }
.footer h4 { color: var(--white); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }
.footer li { margin-bottom: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer .fphone { color: var(--yellow); font-weight: 600; font-size: 20px; display: inline-block; margin-bottom: 8px; }
.footer-area { border-top: 1px solid var(--graphite); padding: 22px 0; font-size: 13.5px; color: #a8a8a8; }
.footer-bottom { border-top: 1px solid var(--graphite); padding: 22px 0; font-size: 13.5px; color: #8f8f8f; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ===== Floating message button + panel ===== */
.chat-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 120;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--black); font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .15s, background .15s;
}
.chat-btn:hover { background: var(--yellow-hover); transform: scale(1.06); }
.chat-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 130; width: 380px; max-height: calc(100dvh - 130px);
  display: flex; flex-direction: column; background: var(--white); border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.chat-head { background: var(--charcoal); color: var(--white); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-weight: 600; border-bottom: 3px solid var(--yellow); }
.chat-head button { background: none; border: 0; color: var(--white); font-size: 24px; cursor: pointer; }
.chat-body { padding: 18px 20px 20px; overflow-y: auto; }
.chat-body .intro { color: var(--steel-grey); font-size: 14px; margin-bottom: 14px; }
.chat-body .field label { color: var(--text); font-size: 12.5px; }
.chat-body .field input, .chat-body .field textarea, .chat-body .field select { background: var(--white); color: var(--text); border-color: #cfcfcc; padding: 10px 12px; }
.chat-body .form { gap: 11px; }
.chat-body .field textarea { min-height: 84px; }
.chat-body .note { font-size: 12.5px; color: var(--steel-grey); margin-top: 12px; }
.chat-body .btn { width: 100%; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote { grid-template-columns: 1fr; gap: 40px; }
  .contact-side { padding-top: 0; }
}
@media (max-width: 900px) {
  .pad { padding: 70px 0; }
  .services-intro, .about { grid-template-columns: 1fr; gap: 30px; }
  .cards3, .points, .articles { grid-template-columns: 1fr; }
  .photo-card { aspect-ratio: 16 / 11; }
  .hero { background-position: center 40%; }
}
@media (max-width: 560px) {
  .ticks, .row2, .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  .chat-panel { inset: 0; width: 100%; max-height: none; border-radius: 0; }
  .chat-btn { right: 16px; bottom: 16px; }
}

/* ===== Sub-page hero ===== */
.page-hero { background-color: var(--charcoal); color: var(--white); padding: 90px 0 70px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 14px; }
.page-hero p { color: #cfcfcf; font-size: 17px; }
.crumbs { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #a8a8a8; margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span { color: var(--yellow); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ===== Projects gallery ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  padding: 11px 20px; border-radius: var(--radius); cursor: pointer;
  background: var(--white); color: var(--black); border: 2px solid var(--black); transition: background .15s, color .15s;
}
.filter-btn:hover { background: var(--light-grey); }
.filter-btn[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  display: flex; flex-direction: column; text-align: left; padding: 0; font: inherit; cursor: pointer;
  background: var(--white); border: 1px solid #e3e3df; border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.1); }
.project-card .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--graphite); }
.project-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .ph img { transform: scale(1.05); }
.project-card .body { padding: 22px 24px 26px; }
.project-card .meta { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--yellow-text); margin-bottom: 8px; }
.project-card h3 { font-size: 19px; margin-bottom: 8px; }
.project-card p { color: var(--steel-grey); font-size: 15px; line-height: 1.6; }
.no-results { text-align: center; color: var(--steel-grey); }
.project-card[hidden] { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(14,14,14,.92); overflow-y: auto; padding: 40px 24px; }
.lightbox[hidden] { display: none; }
.lb-inner { position: relative; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.lb-photo { background: var(--black); display: flex; align-items: center; justify-content: center; min-height: 360px; }
.lb-photo img { width: 100%; height: 100%; max-height: 82dvh; object-fit: contain; }
.lb-text { padding: 40px 36px; max-height: 82dvh; overflow-y: auto; }
.lb-text h2 { font-size: 26px; margin-bottom: 12px; }
.lb-note { margin-bottom: 18px; }
.lb-text h3 { font-size: 16px; margin: 20px 0 8px; }
.lb-text ul { list-style: disc; padding-left: 20px; margin-bottom: 8px; }
.lb-text li { margin-bottom: 8px; font-size: 14.5px; line-height: 1.6; }
.lb-text .btn { margin-top: 22px; }
.lb-close, .lb-nav {
  position: absolute; z-index: 2; border: 0; cursor: pointer; border-radius: 50%;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--black); font-size: 22px;
}
.lb-close:hover, .lb-nav:hover { background: var(--yellow-hover); }
.lb-close { top: 14px; right: 14px; }
.lb-nav { top: 50%; margin-top: -22px; }
.lb-prev { left: 14px; transform: rotate(180deg); }
.lb-next { left: calc(55% - 58px); }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
  .lb-inner { grid-template-columns: 1fr; }
  .lb-text { max-height: none; padding: 28px 22px; }
  .lb-next { left: auto; right: 14px; }
  .lb-photo { min-height: 0; }
  .lb-photo img { max-height: 60dvh; }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 0; }
  .lb-inner { border-radius: 0; min-height: 100%; }
}

/* ===== Guide pages ===== */
.guide-head { max-width: 760px; margin-bottom: 44px; }
.guide-head .answer { margin-top: 18px; font-size: 17px; }
.guide-text { max-width: 760px; margin-top: 34px; }
.fine { font-size: 13.5px; color: var(--steel-grey); margin-top: 28px; max-width: 760px; }
.fine a { color: var(--text); }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.soil-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide-card { background: var(--white); border: 1px solid #e3e3df; border-radius: var(--radius); overflow: hidden; }
.guide-card svg { width: 100%; height: auto; display: block; }
.guide-card h3 { font-size: 20px; padding: 22px 26px 0; }
.guide-card.light h3 { font-size: 18px; padding: 20px 22px 6px; }
.guide-card.light p { padding: 0 22px 24px; color: var(--steel-grey); font-size: 15px; line-height: 1.6; }
.guide-card dl { margin: 0; padding: 12px 26px 26px; display: grid; gap: 2px; }
.guide-card dt { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--yellow-text); margin-top: 10px; }
.guide-card dd { margin: 0; font-size: 15px; line-height: 1.6; }
.wind-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wind-wrap figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid #e3e3df; }
.wind-wrap svg { width: 100%; height: auto; display: block; }
.wind-wrap figcaption { padding: 16px 20px 20px; font-size: 15px; }
.rec { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.rec-form { gap: 18px; }
.rec-out { background: var(--graphite); border-top: 3px solid var(--yellow); border-radius: var(--radius); padding: 30px; }
.rec-out h3 { font-size: 22px; margin-bottom: 18px; }
.rec-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid #444; }
.rec-label { font-size: 12px; font-family: var(--font-head); font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--yellow); padding-top: 3px; }
.rec-val { font-weight: 400; }
.rec-why { margin: 18px 0 10px; color: #d6d6d6; }
.rec-note { font-size: 14px; color: #a8a8a8; margin-bottom: 20px; }
.faq-wrap { max-width: 860px; }
.faq details { border-bottom: 1px solid #dcdcd8; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-family: var(--font-head); font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--yellow-text); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 40px 22px 0; }
.faq a { color: var(--text); }
@media (max-width: 1000px) { .soil-grid { grid-template-columns: 1fr 1fr; } .rec { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .post-grid, .wind-wrap { grid-template-columns: 1fr; } .rec-row { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 560px) { .soil-grid { grid-template-columns: 1fr; } }
.post-grid .guide-card svg { height: 210px; background: var(--charcoal); }

/* ===== Who we work with ===== */
.client-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.client { background: var(--white); border: 1px solid #e3e3df; border-top: 4px solid var(--yellow); border-radius: var(--radius); padding: 32px 30px 34px; }
.client h3 { font-size: 24px; margin-bottom: 8px; }
.client > p { color: var(--steel-grey); margin-bottom: 18px; }
.ticks1 { margin-bottom: 14px; }
.ticks1 li { position: relative; padding-left: 28px; margin-bottom: 10px; font-weight: 400; line-height: 1.55; }
.ticks1 li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 3px solid var(--yellow-text); border-bottom: 3px solid var(--yellow-text); transform: rotate(-45deg); }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.steps4 li { background: var(--white); padding: 30px 26px; border-radius: var(--radius); border-top: 3px solid var(--black); }
.steps4 .num { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; background: var(--yellow); color: var(--black); border-radius: 50%; font-family: var(--font-head); font-weight: 600; margin-bottom: 16px; }
.steps4 h3 { font-size: 19px; margin-bottom: 8px; }
.steps4 p { color: var(--steel-grey); font-size: 15px; line-height: 1.6; }
.cred { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.cred-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; font-size: 17px; }
.cred-list .icon { color: var(--yellow); font-size: 26px; margin-top: 2px; }
.cap-box { background: var(--graphite); border-top: 3px solid var(--yellow); border-radius: var(--radius); padding: 34px 32px; }
.cap-box h3 { font-size: 22px; margin-bottom: 10px; }
.cap-box p { color: #d0d0d0; margin-bottom: 22px; }
.photos-line { font-size: 14px; color: #bdbdbd; }
@media (max-width: 1000px) { .steps4 { grid-template-columns: 1fr 1fr; } .cred { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 760px) { .client-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .steps4 { grid-template-columns: 1fr; } }
.cred-list { margin-top: 28px; }

/* ===== Service and info pages ===== */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; max-width: 900px; }
.about-photo svg { width: 100%; height: 100%; display: block; }
.more-link { margin-top: 36px; }
.more-link .link-arrow { color: var(--white); }
.map-wrap { margin-top: 10px; border-radius: var(--radius); overflow: hidden; border: 1px solid #e3e3df; aspect-ratio: 16 / 7; background: var(--light-grey); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 760px) { .cols2 { grid-template-columns: 1fr; } .map-wrap { aspect-ratio: 4 / 3; } }

/* ===== Ask us anything: compact card (desktop) and small bar (phones) ===== */
.chat-btn { bottom: calc(24px + env(safe-area-inset-bottom)); right: calc(24px + env(safe-area-inset-right)); transition: transform .25s, background .15s; }
.chat-panel { width: 340px; right: calc(24px + env(safe-area-inset-right)); bottom: calc(96px + env(safe-area-inset-bottom)); }
.chat-head { padding: 4px 4px 4px 18px; min-height: 52px; }
.chat-head button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.chat-body { padding: 14px 18px 18px; }
.chat-body .form { gap: 9px; }
.chat-body .field textarea { min-height: 64px; }
.chat-body .note a, .privacy-line a, .photos-line a { color: inherit; text-decoration: underline; }
.privacy-line { font-size: 13px; color: #bdbdbd; line-height: 1.5; }
.chat-body .privacy-line { color: var(--steel-grey); text-align: center; }
.photos-line { font-size: 14px; color: #bdbdbd; }
.ask-bar { display: none; }
.thanks { background: rgba(255,194,14,.12); border: 1px solid var(--yellow); border-radius: var(--radius); padding: 24px 26px; }
.thanks h3 { font-size: 20px; margin-bottom: 6px; }
.chat-body .thanks { background: var(--light-grey); color: var(--text); }
.thanks a { color: inherit; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .chat-panel, .ask-bar, .chat-btn { transition: none !important; } }

/* ===== Text us photos (phones) ===== */
.sms-link { display: none; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 2px solid var(--yellow); border-radius: var(--radius); color: var(--yellow); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; justify-self: start; }
@media (max-width: 760px), (hover: none) and (pointer: coarse) { .sms-link { display: inline-flex; } }

/* ===== Legal pages, link lists ===== */
.legal { max-width: 760px; }
.legal h2 { font-size: 24px; margin: 38px 0 12px; }
.legal p { margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--text); }
.link-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; max-width: 900px; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 18px; background: var(--white); border: 1px solid #e3e3df; border-left: 4px solid var(--yellow); border-radius: var(--radius); text-decoration: none; font-family: var(--font-head); font-weight: 600; }
.link-list a:hover { background: var(--light-grey); }
.link-list .icon { color: var(--yellow-text); }
@media (max-width: 600px) { .link-list { grid-template-columns: 1fr; } }

/* ===== Tap targets (44px) ===== */
.btn-sm { min-height: 44px; display: inline-flex; align-items: center; }
.filter-btn { min-height: 44px; }
.burger { min-width: 44px; min-height: 44px; }
.mobile-close { min-width: 44px; min-height: 44px; }
.crumbs a { display: inline-block; padding: 12px 0; }
.footer li { margin-bottom: 0; }
.footer li a { display: inline-block; padding: 10px 0; }
.footer .fphone { padding: 8px 0; }
.footer-bottom a { display: inline-block; padding: 10px 0; }
.dots { gap: 0; }
.dots button { width: 44px; height: 44px; border: 0; background: none; position: relative; }
.dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--black); }
.dots button[aria-current="true"] { background: none; }
.dots button[aria-current="true"]::before { background: var(--yellow); border-color: var(--yellow); }
.lightbox { overscroll-behavior: contain; padding-top: calc(40px + env(safe-area-inset-top)); padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.lb-photo { touch-action: pan-y; }
.lb-close, .lb-nav { min-width: 44px; min-height: 44px; }
.cap-box .btn, .cred-list a { min-height: 44px; }

/* ===== Phones ===== */
@media (max-width: 600px) {
  .chat-panel { inset: 0; width: 100%; max-height: none; height: 100%; border-radius: 0; right: 0; bottom: 0; }
  .chat-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .ask-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 125; background: var(--charcoal); border-top: 3px solid var(--yellow); padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform .3s; }
  .ask-bar[hidden] { display: none; }
  .ask-bar.show { transform: none; }
  .ask-bar-open { flex: 1; min-height: 44px; background: none; border: 0; color: var(--white); font: inherit; font-weight: 500; font-size: 15px; text-align: left; padding: 0 16px; cursor: pointer; }
  .ask-bar-x { width: 44px; height: 44px; background: none; border: 0; color: var(--white); font-size: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  body.has-ask-bar .chat-btn { transform: translateY(-52px); }
  .chat-btn { right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .footer-bottom { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .lightbox { padding-left: 0; padding-right: 0; }
}
.topbar-left a, .topbar .phone { min-height: 44px; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; }
.contact-side a:not(.big-phone) { display: inline-block; padding: 8px 0; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
@media (min-width: 601px) {
  .chat-body .form { grid-template-columns: 1fr 1fr; column-gap: 10px; }
  .chat-body .form .full, .chat-body .form .form-msg, .chat-body .form .btn, .chat-body .form .privacy-line { grid-column: 1 / -1; }
  .chat-body .field label { margin-bottom: 3px; }
  .chat-body .field input, .chat-body .field select, .chat-body .field textarea { padding: 9px 10px; }
  .chat-body .field textarea { min-height: 52px; }
}
.topbar .phone { white-space: nowrap; }
@media (max-width: 720px) { .topbar span.item.area { display: none; } }

/* ===== Mobile menu stacking fix =====
   The header is sticky, so it is its own stacking layer. While the menu is open the whole header
   (menu panel + dark overlay) is lifted above the page, the message button and the "Ask us anything" bar. */
body.menu-open .site-header { z-index: 400; }
@media (max-width: 1100px) {
  .scrim { z-index: 150; -webkit-tap-highlight-color: transparent; }
  .nav { visibility: hidden; transition: transform .25s, visibility 0s linear .25s; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .nav.open { visibility: visible; transition: transform .25s, visibility 0s; }
}
@media (prefers-reduced-motion: reduce) { .nav, .nav.open { transition: none; } }
