/* ==========================================================================
   Green Rhino Landscaping — base stylesheet
   Style: premium-minimal / boutique B&B feel
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colors — brand green pulled from the rhino mark */
  --color-bg:           #FAFAF7;
  --color-bg-soft:      #EFF3ED;
  --color-bg-warm:      #F5EFE3;
  --color-bg-deep:      #0F1A14;
  --color-text:         #0F0F0A;
  --color-text-muted:   #6B6B62;
  --color-accent:       #2D7C4F;
  --color-accent-hover: #235F3D;
  --color-accent-soft:  #5BA572;
  --color-accent-deep:  #14401E;
  --color-bronze:       #B8854F;
  --color-line:         #E5E2D9;
  --color-line-soft:    #EFEDE5;

  /* Typography — Apple-style single-stack, SF Pro on Apple, Inter elsewhere */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --font-display: var(--font-sans);
  --font-serif:   var(--font-sans);

  /* Type scale — bigger, bolder display sizes for Apple feel */
  --fs-display: clamp(2.75rem, 7vw, 5.5rem);
  --fs-h1:      clamp(2.25rem, 5vw, 4rem);
  --fs-h2:      clamp(1.75rem, 3.4vw, 2.75rem);
  --fs-h3:      clamp(1.25rem, 2vw, 1.5rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.75rem;

  /* Spacing scale (8px base) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  /* Layout */
  --max-w-narrow:   720px;
  --max-w-content:  1080px;
  --max-w-wide:     1320px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  180ms;
  --dur-base:  320ms;
  --dur-slow:  600ms;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--color-accent);
}

/* ---------- Typography (Apple-style: single sans, bold, tight) ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0 0 var(--sp-3);
  color: var(--color-text);
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

.display {
  font-family: var(--font-sans);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0 0 var(--sp-4);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  margin: 0 0 var(--sp-2);
}

.eyebrow--light  { color: rgba(255, 255, 255, 0.85); }
.eyebrow--bronze { color: var(--color-bronze); }

p {
  margin: 0 0 var(--sp-3);
  max-width: 65ch;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w-content);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}

.container--wide   { max-width: var(--max-w-wide); }
.container--narrow { max-width: var(--max-w-narrow); }

.section {
  padding-block: var(--sp-7);
}

.section--tight { padding-block: var(--sp-5); }

@media (min-width: 768px) {
  .container { padding-inline: var(--sp-4); }
  .section { padding-block: var(--sp-8); }
}

/* ---------- Site nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) var(--sp-3);
  max-width: var(--max-w-wide);
  margin-inline: auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.site-logo img {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
}

.site-footer .site-logo img {
  height: 56px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  padding-block: var(--sp-1);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* Dropdown */
.has-dropdown { position: relative; }

.has-dropdown > .nav-link::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-right: 0.4em;
  margin-bottom: 0.2em;
  vertical-align: middle;
}

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 200px;
  padding: var(--sp-2);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              visibility var(--dur-base);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: var(--sp-1) var(--sp-2);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.dropdown a:hover {
  background: var(--color-bg-soft);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: var(--sp-1);
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease);
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: relative;
}

.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after  { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav-list {
    position: fixed;
    inset: 64px 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--sp-4) var(--sp-3);
    background: var(--color-bg);
    border-top: 1px solid var(--color-line);
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease);
    overflow-y: auto;
  }

  .site-nav.is-open .nav-list { transform: translateX(0); }

  .nav-list > li {
    width: 100%;
    border-bottom: 1px solid var(--color-line);
  }

  .nav-link {
    display: block;
    padding: var(--sp-2) 0;
    font-size: 1rem;
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: 0;
    padding: 0 0 var(--sp-2) var(--sp-3);
    background: transparent;
  }

  .has-dropdown > .nav-link::before { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-ghost:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.btn-link:hover {
  color: var(--color-accent);
}

.btn-link::after {
  content: "→";
  transition: transform var(--dur-fast) var(--ease);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Hero split (homepage) ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 70vh;
}

@media (min-width: 768px) {
  .hero-split { grid-template-columns: 1fr 1fr; min-height: 88vh; }
}

.hero-split__half {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 56vh;
  padding: var(--sp-5) var(--sp-4);
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.hero-split__half::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(20, 20, 15, 0.2) 0%,
    rgba(20, 20, 15, 0.45) 50%,
    rgba(20, 20, 15, 0.8) 100%);
  z-index: 1;
  transition: background var(--dur-base) var(--ease);
  pointer-events: none;
}

.hero-split__half:hover::after {
  background: linear-gradient(180deg,
    rgba(20, 20, 15, 0.1) 0%,
    rgba(20, 20, 15, 0.35) 50%,
    rgba(20, 20, 15, 0.7) 100%);
}

.hero-split__title { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4); }
.hero-split__sub   { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }

.hero-split__half > * { position: relative; z-index: 2; }

.hero-split__eyebrow {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.85;
  margin-bottom: var(--sp-2);
}

.hero-split__title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 var(--sp-2);
  color: #fff;
}

.hero-split__sub {
  max-width: 36ch;
  font-size: 1.0625rem;
  line-height: 1.55;
  opacity: 0.9;
  margin: 0 0 var(--sp-3);
}

.hero-split__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: border-color var(--dur-fast) var(--ease);
}

.hero-split__half:hover .hero-split__cta {
  border-color: #fff;
}

/* ---------- Cards (service tiles) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-3);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(20, 20, 15, 0.25);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.05);
}

.card__body {
  padding: var(--sp-3);
}

.card__title {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 500;
  margin: 0 0 var(--sp-1);
}

.card__excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Gallery (sub-page galleries) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-2);
}

.gallery__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-soft);
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.gallery__item:hover img { transform: scale(1.04); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1fr 1.4fr; gap: var(--sp-6); }
}

.contact-info h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 var(--sp-2);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-3);
}

.contact-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.9375rem;
}

.contact-list li:last-child { border-bottom: 0; }

.contact-list__label {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  padding-top: 3px;
}

.contact-form {
  padding: var(--sp-4);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
}

.contact-form h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 var(--sp-3);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--sp-3);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field { margin-bottom: 0; }
  .field-row { margin-bottom: var(--sp-3); }
}

.field label {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-1);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-text);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: var(--fs-small);
  margin: var(--sp-2) 0;
}

/* ---------- Process steps ---------- */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .process-list { grid-template-columns: repeat(3, 1fr); }
}

.process-step {
  position: relative;
  padding: var(--sp-3) 0 0;
  border-top: 1px solid var(--color-line);
}

.process-step__num {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-bronze);
  margin-bottom: var(--sp-1);
  letter-spacing: 0.04em;
}

.process-step__title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  margin: 0 0 var(--sp-1);
}

.process-step__body {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Team ---------- */
.team-banner {
  margin: 0 auto;
  max-width: 100%;
  background: var(--color-bg-soft);
  overflow: hidden;
}

.team-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  max-width: 880px;
  margin-inline: auto;
}

@media (min-width: 600px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); max-width: none; }
}

.team-card {
  padding: var(--sp-4);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
}

.team-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-bg-soft);
  margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-3);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.team-card:hover .team-card__photo img { transform: scale(1.04); }

.team-card--crew .team-card__photo img {
  object-position: 22% center;
}

.team-card__name {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  margin: 0 0 var(--sp-1);
}

.team-card__role {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-bronze);
  margin: 0 0 var(--sp-2);
}

.team-card__bio {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Partner row ---------- */
.partner-row {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: var(--sp-4);
}

@media (min-width: 720px) {
  .partner-row { grid-template-columns: repeat(4, 1fr); }
}

.partner-row li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-row img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease);
}

.partner-row img:hover {
  filter: none;
  opacity: 1;
}

/* ---------- Construction procedures (hardscape page) ---------- */
.procedures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
  counter-reset: proc;
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0 0;
}

.procedures > li {
  counter-increment: proc;
  position: relative;
  padding: var(--sp-3);
  border: 1px solid var(--color-line);
  background: var(--color-bg);
}

.procedures > li::before {
  content: counter(proc, decimal-leading-zero);
  display: block;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  color: var(--color-bronze);
  margin-bottom: var(--sp-1);
}

.procedures h4 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 var(--sp-1);
}

.procedures p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 15, 0.94);
  padding: var(--sp-3);
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
  cursor: default;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  top: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.lightbox__close {
  top: var(--sp-3);
  right: var(--sp-3);
  font-size: 1.75rem;
}

.lightbox__nav--prev {
  left: var(--sp-3);
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: var(--sp-3);
  transform: translateY(-50%);
}

.lightbox__caption {
  position: absolute;
  bottom: var(--sp-3);
  left: 0;
  right: 0;
  text-align: center;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.1em;
}

/* ---------- Filter bar (portfolio) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.filter-bar button {
  background: transparent;
  border: 1px solid var(--color-line);
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.filter-bar button:hover {
  border-color: var(--color-text);
}

.filter-bar button.is-active {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

/* ---------- Feature banner (full-bleed image + overlay text) ---------- */
.feature-banner {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  padding: var(--sp-7) 0;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.feature-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(15, 26, 20, 0.7) 0%,
    rgba(15, 26, 20, 0.45) 50%,
    rgba(15, 26, 20, 0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

.feature-banner__title { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); }
.feature-banner__lead  { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }

.feature-banner > * { position: relative; z-index: 2; }

.feature-banner__title {
  color: #fff;
  max-width: 22ch;
  margin: 0 0 var(--sp-3);
}

.feature-banner__lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
  margin: 0 0 var(--sp-3);
}

/* ---------- Section with photo background ---------- */
.section--photo-bg {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.section--photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 20, 0.82), rgba(15, 26, 20, 0.88));
  z-index: 1;
  pointer-events: none;
}

.section--photo-bg > * { position: relative; z-index: 2; }

.section--photo-bg h2,
.section--photo-bg h3,
.section--photo-bg h4 { color: #fff; }
.section--photo-bg .lead { color: rgba(255, 255, 255, 0.85); }
.section--photo-bg .muted { color: rgba(255, 255, 255, 0.7); }

/* ---------- Section with deep brand-green background ---------- */
.section--brand {
  background: var(--color-bg-deep);
  color: #fff;
}

.section--brand h2,
.section--brand h3,
.section--brand h4 { color: #fff; }
.section--brand .eyebrow { color: var(--color-accent-soft); }
.section--brand .lead { color: rgba(255, 255, 255, 0.82); }
.section--brand .muted { color: rgba(255, 255, 255, 0.6); }

/* ---------- Photo strip (horizontal mini-gallery) ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

@media (min-width: 600px) {
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .photo-strip { grid-template-columns: repeat(6, 1fr); }
}

.photo-strip__cell {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.photo-strip__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.photo-strip__cell:hover img { transform: scale(1.07); }

/* ---------- City cards (Recent Work) ---------- */
.city-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 720px) {
  .city-cards { grid-template-columns: repeat(3, 1fr); }
}

.city-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-3);
  color: #fff;
  text-decoration: none;
  background-size: cover;
  background-position: center;
}

.city-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 26, 20, 0) 20%,
    rgba(15, 26, 20, 0.55) 50%,
    rgba(15, 26, 20, 0.88) 75%,
    rgba(15, 26, 20, 0.97) 100%);
  z-index: 1;
  pointer-events: none;
}

.city-card__inner {
  position: relative;
  z-index: 2;
}

.city-card__label {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #A8E0BC;
  margin: 0 0 var(--sp-1);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.city-card__title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-7) 0 var(--sp-6);
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(20, 20, 15, 0.25) 0%,
    rgba(20, 20, 15, 0.5) 50%,
    rgba(20, 20, 15, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.page-hero h1,
.page-hero .display { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4); }
.page-hero .lead    { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }

.page-hero > * { position: relative; z-index: 2; }

.page-hero h1 {
  color: #fff;
  margin-bottom: var(--sp-2);
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
}

.page-hero .eyebrow { color: rgba(255, 255, 255, 0.7); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: var(--sp-5) 0 var(--sp-4);
  background: var(--color-bg);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.site-footer h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin: 0 0 var(--sp-2);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}

.site-footer li { margin-bottom: var(--sp-1); }

.site-footer__bottom {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* ---------- Design & Build (homepage) ---------- */
.design-build {
  display: block;
}

.design-build__copy {
  text-align: center;
  max-width: var(--max-w-narrow);
  margin-inline: auto;
}

.design-build__copy h2 { margin-bottom: var(--sp-3); }
.design-build__copy p { margin-inline: auto; }

.design-build__pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

@media (min-width: 720px) {
  .design-build__pair { grid-template-columns: repeat(3, 1fr); }
}

.design-build__photo {
  margin: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
}

.design-build__photo > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease);
}

.design-build__photo > div {
  overflow: hidden;
}

.design-build__photo:hover > img { transform: scale(1.04); }

.design-build__photo figcaption {
  padding: 0.75rem 1rem;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-align: center;
  color: var(--color-text);
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-line);
}

/* ---------- Featured grid (portfolio hero work) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}

@media (min-width: 720px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .featured-grid { grid-template-columns: repeat(3, 1fr); }
}

.featured-grid__item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-soft);
  cursor: zoom-in;
}

.featured-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.featured-grid__item:hover img { transform: scale(1.05); }

/* ---------- Before & After ---------- */
.ba-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

@media (min-width: 880px) {
  .ba-list { grid-template-columns: repeat(3, 1fr); }
}

.ba-card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ba-card img {
  width: 100%;
  height: auto;
  display: block;
}

.ba-card__caption {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  text-align: center;
  border-top: 1px solid var(--color-line);
}

/* ---------- Process photo strip (homepage) ---------- */
.process-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin-top: var(--sp-5);
}

@media (min-width: 720px) {
  .process-strip { grid-template-columns: repeat(3, 1fr); }
}

.process-strip__cell {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.process-strip__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-strip__cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,15,0) 55%, rgba(20,20,15,0.7));
  pointer-events: none;
}

.process-strip__label {
  position: absolute;
  bottom: var(--sp-2);
  left: var(--sp-2);
  right: var(--sp-2);
  z-index: 2;
  color: #fff;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
