/* ==========================================================================
   Alderview Landscape — site styles
   Direction: "plan-set editorial" — ruled ledger headers, staggered figure
   grids with offset backing plates, asymmetric feature sections.
   Palette: lake slate, warm sand, cream, near-black
   Type: Playfair Display (display) / Figtree (body + utility small-caps)
   Note: the --green vars are kept for compatibility but hold slate blue
   ========================================================================== */

:root {
  --green: #3b5a6e;
  --green-dark: #28404f;
  --charcoal: #1b2228;
  --beige: #e9e3d3;
  --beige-light: #f4f0e6;
  --ink: #1c1c1c;
  --white: #ffffff;
  --grey: #5f5f5c;
  --line: #d8d2c2;
  --line-ink: rgba(28, 28, 28, 0.55);
  --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

/* editorial serif for display headings */
h1, h2,
.card-panel h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

/* small uppercase kicker above headings */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
}
.section-dark .eyebrow { color: #97aebc; }
.split-text .eyebrow { margin-bottom: 12px; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-white {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-white:hover { background: var(--beige); border-color: var(--beige); }
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* arrow slides in on hover */
.btn::after {
  content: '\2192';
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  vertical-align: middle;
  transform: translateX(-8px);
  transition: max-width 0.3s ease, opacity 0.3s ease, transform 0.3s ease, margin-left 0.3s ease;
}
.btn:hover::after,
.btn:focus-visible::after {
  max-width: 22px;
  opacity: 1;
  transform: translateX(0);
  margin-left: 10px;
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8fb3c7;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo img { width: 72px; height: 72px; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s;
}
.main-nav a:hover { opacity: 0.75; }

/* solid header variant (pages without photo behind nav) */
.header-solid { position: relative; background: var(--white); }
.header-solid .main-nav a { color: var(--ink); text-shadow: none; }
.header-solid .nav-toggle span { background: var(--ink); }

/* dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 8px;
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  min-width: 250px;
  padding: 10px 0;
  list-style: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0s linear 0.3s;
}
/* invisible bridge across the gap so the menu stays open while the cursor crosses it */
.dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.dropdown a {
  display: block;
  padding: 10px 24px;
  color: var(--ink) !important;
  text-shadow: none !important;
  font-size: 15px;
}
.dropdown a:hover { background: var(--beige-light); opacity: 1; }

/* mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 60;
}
.nav-toggle span {
  width: 28px; height: 2px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}

/* --------------------------------------------------------------------------
   Hero — left-anchored text over slowly crossfading photos
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-slides img.is-active {
  opacity: 1;
  animation: hero-zoom 10s ease-out forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.18) 60%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 160px 24px 100px;
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 80px);
  font-weight: 500;
  letter-spacing: -2px;
  margin-bottom: 24px;
  max-width: 800px;
}
.hero p {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 300;
  max-width: 560px;
  margin: 0 0 40px;
}

/* page hero (subpages) */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5));
}
.page-hero .container {
  position: relative;
  padding-top: 160px;
  padding-bottom: 70px;
  width: 100%;
}
.page-hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 500;
  letter-spacing: -1px;
}
.page-hero p {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 300;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Sections & ledger headings
   The section head reads like a title block on a plan sheet: serif headline
   left, note right, hairline rule beneath the full row.
   -------------------------------------------------------------------------- */
.section { padding: 100px 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 6px 64px;
  align-items: end;
  border-bottom: 1px solid var(--line-ink);
  padding-bottom: 26px;
  margin-bottom: 60px;
}
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
.section-head h2 {
  grid-column: 1;
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 400;
  margin: 0;
}
.section-head p {
  grid-column: 2;
  color: #333;
  margin: 0;
  padding-bottom: 6px;
}
/* legacy "center" variant folds into the ledger row */
.section-head.center {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.bg-beige { background: var(--beige); }
.bg-beige-light { background: var(--beige-light); }

/* dark section variant */
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark .section-head { border-bottom-color: rgba(255, 255, 255, 0.28); }
.section-dark .section-head p { color: #d7e2e9; }

/* --------------------------------------------------------------------------
   Testimonials — staggered column rhythm on the dark sheet
   -------------------------------------------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  align-items: start;
}
.quote-card {
  border-left: 1px solid #7fa3ba;
  padding: 6px 0 6px 28px;
}
.quote-card blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 22px;
}
.quote-card cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #bfd3e0;
}
.quote-card cite span {
  display: block;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: none;
  font-size: 14px;
  margin-top: 4px;
  color: #97aebc;
}

/* --------------------------------------------------------------------------
   Feature sections — asymmetric editorial split with an offset backing plate
   behind the photo (replaces the old 50/50 flush split)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: center;
  padding: 110px max(24px, calc((100vw - 1240px) / 2));
}
.split-text {
  grid-column: 1 / span 5;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}
.split-media {
  grid-column: 7 / -1;
  grid-row: 1;
  position: relative;
  min-height: 0;
}
/* media-first variant (photo on the left) */
.split > .split-media:first-child { grid-column: 1 / span 6; }
.split > .split-media:first-child ~ .split-text { grid-column: 8 / -1; }

.split-text h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 400;
  margin-bottom: 26px;
}
.split-text p { margin-bottom: 18px; color: #333; }
.split-text .btn { align-self: flex-start; margin-top: 16px; }

.split-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
/* offset backing plate */
.split-media::before {
  content: '';
  position: absolute;
  top: 34px; right: -22px; bottom: -34px; left: 36px;
  background: var(--beige-light);
}
.split > .split-media:first-child::before {
  right: 36px; left: -22px;
}
.bg-beige .split-media::before,
.bg-beige-light .split-media::before { background: var(--white); }

/* collage variant: big photo with a smaller framed print overlapping it */
.split-media.stacked { min-height: 0; }
.split-media.stacked::before { display: none; }
.split-media.stacked img:first-child {
  width: 86%;
  margin-left: auto;
  aspect-ratio: 4 / 4.3;
  top: 0; bottom: auto;
}
.split-media.stacked img:last-child {
  position: absolute;
  width: 56%;
  left: -6%;
  bottom: -64px;
  top: auto;
  aspect-ratio: 4 / 3.1;
  height: auto;
  border: 10px solid var(--white);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
}
.split > .split-media.stacked:first-child img:first-child { margin-left: 0; margin-right: auto; }
.split > .split-media.stacked:first-child img:last-child { left: auto; right: -6%; }
/* room for the overlapping print */
.split:has(.stacked) { padding-bottom: 190px; }

.cta-band {
  background: var(--beige);
  padding: 84px 0;
}
.cta-band .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 6px 64px;
  align-items: center;
}
.cta-band h2 {
  grid-column: 1;
  grid-row: 1 / 3;
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 0;
}
.cta-band p { grid-column: 2; margin: 0 0 20px; color: #333; }
.cta-band .btn { grid-column: 2; justify-self: start; }

/* --------------------------------------------------------------------------
   Project figures (work page, home, design page)
   Photos read as numbered figures: image, hairline rule, serif caption.
   Even figures drop down a half-step for the staggered plan-sheet rhythm.
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 44px;
  align-items: start;
}
.project-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
}
.project-card img {
  width: 100%;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
}
.card-panel {
  background: none;
  border-top: 1px solid var(--line-ink);
  margin-top: 18px;
  padding: 14px 2px 0;
  flex: 1;
}
.card-panel h3 {
  font-size: 23px;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Gallery mosaic — rows of three at shifting widths, like pinned site photos
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: clamp(180px, 40vw, 300px);
  gap: 18px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Process steps — a true sequence, set as ruled entries in two columns
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px 72px;
  max-width: 1040px;
}
.step {
  border-top: 1px solid var(--line-ink);
  padding-top: 20px;
}
.step-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1;
  margin-bottom: 12px;
}
.step-num::before { content: 'Step '; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: #333; }

/* --------------------------------------------------------------------------
   Services grid (construction page) — ruled figure labels
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 28px;
  align-items: start;
}
.service-card {
  text-decoration: none;
  color: var(--ink);
  background: none;
}
.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-top: 12px;
  padding: 11px 2px 0;
  border-top: 1px solid var(--line-ink);
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   Benefit / difference blocks
   -------------------------------------------------------------------------- */
.blocks-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 72px;
}
.block {
  border-top: 1px solid var(--line-ink);
  padding-top: 18px;
}
.block h3 {
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 10px;
  border-bottom: none;
  display: block;
}
.block p { color: #333; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 760px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid #b9b6ac;
  background: var(--white);
}
.form-grid textarea { min-height: 130px; resize: vertical; }
.form-note { margin-top: 16px; color: var(--green); font-weight: 500; width: 100%; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: #d7e2e9;
  padding: 70px 0 30px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}
.site-footer .logo img { width: 84px; height: 84px; }
.footer-brand p { margin-top: 18px; max-width: 300px; }
.site-footer h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #d7e2e9; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-phone {
  display: inline-block;
  font-size: 22px;
  color: var(--white) !important;
  font-weight: 500;
  margin-bottom: 16px;
}
.social-row { display: flex; gap: 16px; margin-top: 10px; }
.social-row a {
  display: inline-flex;
  width: 42px; height: 42px;
  border: 1px solid #46647a;
  align-items: center;
  justify-content: center;
}
.social-row svg { width: 18px; height: 18px; fill: #d7e2e9; }
.social-row a:hover { background: var(--green); }
.footer-bottom {
  border-top: 1px solid #32495a;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: #97aebc;
}
.footer-bottom a { color: #97aebc; }

/* --------------------------------------------------------------------------
   Snow page highlight list
   -------------------------------------------------------------------------- */
.highlights {
  list-style: none;
  margin: 24px 0;
}
.highlights li {
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.highlights li::before {
  content: '';
  position: absolute;
  left: 4px; top: 20px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* trusted partners */
.partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 56px;
  align-items: center;
}
.partner-row span {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #98958a;
  text-transform: uppercase;
}

/* job card */
.job-card {
  border: 1px solid var(--line-ink);
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 860px;
}
.job-card h3 { font-size: 24px; }
.job-card p { color: var(--grey); }

/* blog */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 44px;
  align-items: start;
}
.post-card { text-decoration: none; color: var(--ink); display: block; }
.post-card img { width: 100%; aspect-ratio: 3 / 2.4; object-fit: cover; }
.post-card time {
  display: block;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey);
  border-top: 1px solid var(--line-ink);
  margin-top: 16px;
  padding-top: 14px;
  margin-bottom: 6px;
}
.post-card h3 { font-size: 21px; font-weight: 500; }
.post-card:hover h3 { color: var(--green); }

/* prose (policy pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose p, .prose li { color: #333; margin-bottom: 14px; }
.prose ul { padding-left: 22px; }

/* contact page */
.contact-list { list-style: none; margin-top: 10px; max-width: 860px; }
.contact-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 40px;
  align-items: baseline;
}
.contact-list .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  display: block;
}
.contact-list a, .contact-list .val {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
}
.contact-list a:hover { color: var(--green); }

/* --------------------------------------------------------------------------
   Scroll reveal (class added by JS; no-JS users see everything)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Photo lightbox (gallery grids)
   -------------------------------------------------------------------------- */
.gallery-grid img {
  cursor: zoom-in;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-grid img:hover {
  transform: scale(1.025);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  z-index: 1;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 16, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 90vw);
  max-height: 84vh;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  padding: 14px;
  opacity: 0.85;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 18px; right: 24px; font-size: 42px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  .hero-slides img { transition: none; }
  .hero-slides img.is-active { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-grid img:hover { transform: none; }
}

/* utility */
.mt-40 { margin-top: 40px; }
.center { text-align: center; }

/* ==========================================================================
   Wide-screen rhythm: staggered figures + gallery mosaic
   (kept out of the mobile flow so small screens stack cleanly)
   ========================================================================== */
@media (min-width: 821px) {
  /* staggered testimonial columns */
  .quote-card:nth-child(2) { margin-top: 48px; }
  .quote-card:nth-child(3) { margin-top: 96px; }

  /* mosaic: rows of three at widths 5-4-3, then 3-4-5 */
  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(220px, 24vw, 340px);
  }
  .gallery-grid img:nth-child(6n + 1) { grid-column: span 5; }
  .gallery-grid img:nth-child(6n + 2) { grid-column: span 4; }
  .gallery-grid img:nth-child(6n + 3) { grid-column: span 3; }
  .gallery-grid img:nth-child(6n + 4) { grid-column: span 3; }
  .gallery-grid img:nth-child(6n + 5) { grid-column: span 4; }
  .gallery-grid img:nth-child(6n)     { grid-column: span 5; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-grid { gap: 30px; }
  .split { column-gap: 18px; }
  .split-text { grid-column: 1 / span 6; }
  .split-media { grid-column: 8 / -1; }
  .split > .split-media:first-child { grid-column: 1 / span 5; }
  .split > .split-media:first-child ~ .split-text { grid-column: 7 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--green-dark);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 55;
  }
  .main-nav.open { display: flex; }
  .main-nav ul {
    flex-direction: column;
    gap: 26px;
    text-align: center;
  }
  .main-nav a { font-size: 22px; color: var(--white); text-shadow: none; }
  .nav-open .nav-toggle span { background: var(--white); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    box-shadow: none;
    min-width: 0;
    padding: 6px 0 0;
  }
  .dropdown::before { display: none; }
  .dropdown a { color: #bfd3e0 !important; font-size: 17px !important; padding: 6px 0; }
  .has-dropdown > a::after { display: none; }

  .hero-inner { padding: 140px 24px 70px; }

  .section { padding: 60px 0; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 40px;
  }
  .section-head p { grid-column: 1; padding-bottom: 0; }

  .split {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    row-gap: 44px;
  }
  .split-text,
  .split-media,
  .split > .split-media:first-child,
  .split > .split-media:first-child ~ .split-text {
    grid-column: 1;
    grid-row: auto;
  }
  .split.media-first-mobile .split-media { order: -1; }
  .split-media::before { top: 20px; right: -12px; bottom: -12px; left: 20px; }
  .split-media.stacked img:first-child { width: 100%; }
  .split-media.stacked img:last-child,
  .split > .split-media.stacked:first-child img:last-child {
    width: 52%;
    left: 0;
    right: auto;
    bottom: -40px;
    border-width: 6px;
  }
  .split:has(.stacked) { padding-bottom: 120px; }

  .cta-band .container { grid-template-columns: 1fr; gap: 10px; }
  .cta-band h2 { grid-row: auto; margin-bottom: 6px; }
  .cta-band p { grid-column: 1; }
  .cta-band .btn { grid-column: 1; margin-top: 8px; }

  .projects-grid { grid-template-columns: 1fr; gap: 44px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 36vw; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .blocks-2col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .post-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
