/* style.css — Pergola Services design system
   Brand: elevated outdoor living / shade structures / luxury backyard transformations.
   Palette: warm woods + charcoal/navy dusk tones + amber-terracotta accent (distinct
   from the sister brand's orange, but in the same premium-outdoor family). */

:root,
[data-theme='light'] {
  /* Type scale — fluid clamp() */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.6rem + 6.4vw, 6.75rem);

  /* Spacing — 4px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces — warm ivory / sand */
  --color-bg: #f7f3ec;
  --color-surface: #fffdf9;
  --color-surface-2: #fbf7f0;
  --color-surface-offset: #efe7d8;
  --color-surface-offset-2: #e6dcc7;
  --color-surface-dynamic: #ded2b6;
  --color-divider: #e2d8c4;
  --color-border: #d8cbaf;

  /* Text — deep charcoal-brown */
  --color-text: #241f19;
  --color-text-muted: #6b6156;
  --color-text-faint: #a89c8b;
  --color-text-inverse: #f9f4ea;

  /* Primary — deep navy-charcoal (structure, trust) */
  --color-primary: #14232f;
  --color-primary-hover: #0d1820;
  --color-primary-active: #060b0f;
  --color-primary-highlight: #d4dde3;

  /* Accent — warm amber-terracotta (CTA) */
  --color-accent: #c8703b;
  --color-accent-hover: #b25e2c;
  --color-accent-active: #954c22;
  --color-accent-highlight: #f0dcc9;

  /* Success / warning / error */
  --color-success: #4c7a3b;
  --color-success-hover: #3a5f2c;
  --color-success-highlight: #dbe6d2;
  --color-warning: #9c6a17;
  --color-warning-highlight: #ecdcb9;
  --color-error: #a13a2c;
  --color-error-highlight: #ecd3cd;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.08);
  --shadow-md: 0 6px 16px oklch(0.2 0.02 60 / 0.12);
  --shadow-lg: 0 16px 40px oklch(0.15 0.02 60 / 0.22);

  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1280px;
  --content-full: 100%;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'General Sans', 'Inter', sans-serif;
}

/* DARK MODE */
[data-theme='dark'] {
  --color-bg: #14100c;
  --color-surface: #191410;
  --color-surface-2: #1d1712;
  --color-surface-offset: #221b15;
  --color-surface-offset-2: #2a2118;
  --color-surface-dynamic: #33291d;
  --color-divider: #2c2419;
  --color-border: #3a2f22;

  --color-text: #efe7da;
  --color-text-muted: #b2a693;
  --color-text-faint: #7d7263;
  --color-text-inverse: #1a1510;

  --color-primary: #9fb4c4;
  --color-primary-hover: #c2d2dc;
  --color-primary-active: #dbe5ea;
  --color-primary-highlight: #263340;

  --color-accent: #e08a4f;
  --color-accent-hover: #ec9d63;
  --color-accent-active: #f3ae7c;
  --color-accent-highlight: #4a2f1c;

  --color-success: #8bbf72;
  --color-success-highlight: #2b3a24;
  --color-warning: #d3a441;
  --color-warning-highlight: #40331a;
  --color-error: #dd8a76;
  --color-error-highlight: #422a23;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #14100c;
    --color-surface: #191410;
    --color-surface-2: #1d1712;
    --color-surface-offset: #221b15;
    --color-surface-offset-2: #2a2118;
    --color-surface-dynamic: #33291d;
    --color-divider: #2c2419;
    --color-border: #3a2f22;
    --color-text: #efe7da;
    --color-text-muted: #b2a693;
    --color-text-faint: #7d7263;
    --color-text-inverse: #1a1510;
    --color-primary: #9fb4c4;
    --color-primary-hover: #c2d2dc;
    --color-primary-active: #dbe5ea;
    --color-primary-highlight: #263340;
    --color-accent: #e08a4f;
    --color-accent-hover: #ec9d63;
    --color-accent-active: #f3ae7c;
    --color-accent-highlight: #4a2f1c;
  }
}

/* ============ LAYOUT PRIMITIVES ============ */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.wrap--narrow {
  max-width: var(--content-default);
}
section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-20));
}

/* ============ SKIP LINK ============ */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  z-index: 200;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.6);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-6);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.logo svg {
  width: 40px;
  height: 40px;
}
.logo__text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--color-text);
}
.logo__text span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
}
.nav__links a:hover {
  color: var(--color-accent);
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav__phone {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--color-accent);
  color: #fffaf3;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  border-color: oklch(from var(--color-border) l c h / 0.9);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn--light {
  background: #fffaf3;
  color: var(--color-primary);
}
.btn--light:hover {
  background: #fff;
}
.btn--block {
  width: 100%;
}
.btn--lg {
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-base);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    oklch(0.12 0.02 250 / 0.88) 0%,
    oklch(0.14 0.02 250 / 0.62) 42%,
    oklch(0.16 0.03 60 / 0.28) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
  max-width: 720px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0dcc9;
  margin-bottom: var(--space-5);
}
.hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--color-accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: var(--space-6);
}
.hero h1 em {
  font-style: italic;
  color: #f0c095;
}
.hero__sub {
  font-size: var(--text-lg);
  color: #ece4d6;
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  font-size: var(--text-xs);
  color: #d9cdb9;
}
.hero__trust strong {
  color: #fff;
  font-weight: 700;
}

/* ============ SECTION HEADERS ============ */
.section-head {
  max-width: 640px;
  margin-bottom: var(--space-12);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.section-head--center .eyebrow {
  justify-content: center;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--color-accent);
}
h2.title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
h3.subtitle {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
}
.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

/* ============ BENEFITS ============ */
.benefits {
  background: var(--color-surface-offset);
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-1);
  border-top: 1px solid var(--color-border);
}
.benefit {
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.benefit:nth-child(4n) {
  border-right: none;
}
.benefit__num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.benefit h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.benefit p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============ GALLERY ============ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--space-4);
}
.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow-sm);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.gallery__item--large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 580px;
}
.gallery__item--wide {
  grid-column: span 2;
}
.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: var(--space-6);
  background: linear-gradient(to top, oklch(0.1 0.02 60 / 0.85), transparent);
  color: #fff;
}
.gallery__caption h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.gallery__caption p {
  font-size: var(--text-xs);
  color: #e7dcc9;
}

/* ============ PROCESS ============ */
.process {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
[data-theme='dark'] .process,
.process {
  color: #f4ecdf;
}
.process .eyebrow,
.process h2.title {
  color: #fff;
}
.process .lede {
  color: #cdd6dc;
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}
.process__step {
  position: relative;
  padding-top: var(--space-8);
  border-top: 2px solid oklch(1 0 0 / 0.18);
}
.process__step-num {
  position: absolute;
  top: -22px;
  left: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent-hover, #e08a4f);
  background: var(--color-primary);
  padding-right: var(--space-2);
}
.process__step h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: #fff;
}
.process__step p {
  font-size: var(--text-sm);
  color: #c7d0d7;
}

/* ============ TRUST / SOCIAL PROOF ============ */
.trust {
  background: var(--color-surface);
}
.trust__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
}
.stat span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.testimonials {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.testimonial {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.testimonial__stars {
  color: var(--color-accent);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  letter-spacing: 0.1em;
}
.testimonial p {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.testimonial footer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ============ LEAD FORM ============ */
.lead {
  background: var(--color-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lead__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.lead__copy .eyebrow {
  color: #f0c095;
}
.lead__copy h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: #fff;
  margin-bottom: var(--space-5);
}
.lead__copy p {
  color: #d3dae0;
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
}
.lead__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.lead__points li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: #e5eaee;
}
.lead__points svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  margin-top: 2px;
}
.form-card {
  background: #fffaf3;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  border-top: 4px solid var(--color-accent);
}
.form-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}
.form-card > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.field {
  margin-bottom: var(--space-4);
}
.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: var(--text-base);
  color: var(--color-text);
}
.field input:focus,
.field select:focus {
  border-color: var(--color-accent);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}
.form-success.is-visible {
  display: block;
}
.form-success svg {
  width: 56px;
  height: 56px;
  color: var(--color-success);
  margin: 0 auto var(--space-4);
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.form-success p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.form-card.is-submitted .lead-form {
  display: none;
}
.form-error {
  display: none;
  font-size: var(--text-xs);
  color: var(--color-error);
  background: var(--color-error-highlight);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}
.form-error.is-visible {
  display: block;
}

/* ============ COUNTY PAGE PATTERNS ============ */
.county-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.county-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.county-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, oklch(0.12 0.02 250 / 0.9), oklch(0.14 0.02 250 / 0.55));
}
.county-hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  max-width: 760px;
}
.breadcrumb {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: #d9cdb9;
  margin-bottom: var(--space-6);
}
.breadcrumb a {
  color: #d9cdb9;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #fff;
}
.county-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.4rem + 3.5vw, 4.25rem);
  color: #fff;
  margin-bottom: var(--space-5);
}
.county-hero__sub {
  font-size: var(--text-lg);
  color: #ece4d6;
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

.content-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: start;
}
.content-split h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.content-split h2:not(:first-child) {
  margin-top: var(--space-10);
}
.content-split p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.content-split ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.content-split ul li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text);
}
.content-split ul li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  margin-top: 3px;
}
.local-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.local-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.local-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.faq {
  border-top: 1px solid var(--color-border);
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-6);
}
.faq-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.faq-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============ ABOUT PAGE ============ */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.about-hero img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}
.contact-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.contact-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
}
.contact-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  margin-top: 2px;
}
.contact-list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}
.contact-list a:hover {
  color: var(--color-accent);
}
.service-area-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}
.service-area-list h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.service-area-list p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--color-primary);
  color: #d9cdb9;
  padding-block: var(--space-16) var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.footer__brand .logo__text {
  color: #fff;
}
.footer__brand .logo__text span {
  color: var(--color-accent);
}
.footer__brand p {
  font-size: var(--text-sm);
  color: #b9ad98;
  margin-top: var(--space-4);
  max-width: 32ch;
}
.footer h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer a {
  color: #d9cdb9;
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer a:hover {
  color: #fff;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  color: #a89c88;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ============ COOKIE CONSENT BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: var(--space-3);
  right: var(--space-3);
  left: auto;
  z-index: 150;
  background: var(--color-primary);
  color: #f4ecdf;
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
  max-width: 380px;
  transform: translateY(140%);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner p {
  font-size: var(--text-xs);
  color: #d9cdb9;
  margin: 0;
  line-height: 1.4;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}
.cookie-banner .btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}
.cookie-banner .btn--ghost {
  background: transparent;
  border-color: oklch(from #f4ecdf l c h / 0.45);
  color: #f4ecdf;
}
.cookie-banner .btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============ DARK MODE TOGGLE ============ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefit:nth-child(4n) {
    border-right: 1px solid var(--color-border);
  }
  .benefit:nth-child(2n) {
    border-right: none;
  }
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-12);
  }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery__item--large {
    grid-column: span 2;
    min-height: 380px;
  }
  .trust__grid,
  .lead__grid,
  .content-split,
  .about-hero,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav__links,
  .nav__phone,
  .nav__cta .btn--primary {
    display: none;
  }
  .header__row {
    gap: var(--space-2);
  }
  .nav {
    gap: var(--space-2);
  }
  .nav__cta {
    gap: var(--space-2);
  }
  .nav-toggle {
    display: flex;
    width: 40px;
    height: 40px;
  }
  .logo svg {
    width: 32px;
    height: 32px;
  }
  .logo__text {
    font-size: var(--text-sm);
  }
  .logo__text span {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  .benefits__grid,
  .process__grid,
  .gallery__grid,
  .service-area-list,
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .benefit {
    border-right: none !important;
  }
  .gallery__item--large,
  .gallery__item--wide {
    grid-column: span 1;
    min-height: 300px;
  }
  .stat-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 92vh;
  }
  .hero__content {
    padding-block: var(--space-16);
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    left: var(--space-3);
    right: var(--space-3);
    max-width: none;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--color-bg);
  display: none;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
}
.nav-drawer.is-open {
  display: flex;
}
.nav-drawer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-10);
}
.nav-drawer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  list-style: none;
}
.nav-drawer a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
}
.nav-drawer .btn {
  margin-top: var(--space-8);
}

/* ============ BLOG ============ */
.blog-hero {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-12);
  text-align: center;
}
.blog-hero .eyebrow {
  justify-content: center;
}
.blog-hero .title {
  font-size: var(--text-2xl);
}
.blog-hero .lede {
  margin-inline: auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-2);
}
.blog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.blog-card__date {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.25;
  color: var(--color-text);
}
.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
}
.blog-card__readmore {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  margin-top: var(--space-2);
}

/* ---- Article page ---- */
.article-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.article-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.12 0.02 250 / 0.35), oklch(0.1 0.02 250 / 0.88));
}
.article-hero__content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-10) clamp(var(--space-10), 6vw, var(--space-16));
  max-width: 880px;
}
.article-hero__meta {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  font-size: var(--text-xs);
  color: #d9cdb9;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem);
  color: #fff;
  max-width: 20ch;
}

.article-body {
  max-width: 720px;
  margin-inline: auto;
}
.article-body .answer-lede {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface-2);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}
.article-body h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.article-body p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  max-width: 72ch;
}
.article-body ul,
.article-body ol {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-6);
  padding-left: var(--space-6);
  color: var(--color-text-muted);
}
.article-body ul {
  padding-left: 0;
}
.article-body ul li {
  display: flex;
  gap: var(--space-3);
  color: var(--color-text);
}
.article-body ul li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  margin-top: 3px;
}
.article-body ol {
  padding-left: var(--space-6);
}
.article-body ol li {
  color: var(--color-text);
  padding-left: var(--space-2);
}
.article-body strong {
  color: var(--color-text);
}
.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: oklch(from var(--color-accent) l c h / 0.35);
}
.article-body a:hover {
  text-decoration-color: var(--color-accent);
}
.article-body table {
  width: 100%;
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.article-body table th,
.article-body table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.article-body table th {
  background: var(--color-surface-2);
  font-weight: 600;
  color: var(--color-text);
}
.article-body table tr:last-child td {
  border-bottom: none;
}
.article-figure {
  margin: var(--space-8) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-figure img {
  width: 100%;
  height: auto;
}
.article-figure figcaption {
  padding: var(--space-3) 0 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.article-callout {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-8) 0;
}
.article-callout h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.article-callout p {
  margin-bottom: 0;
  font-size: var(--text-sm);
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: var(--space-8);
}
.article-back svg {
  width: 16px;
  height: 16px;
}
.article-cta {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-12);
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.article-cta p {
  max-width: 56ch;
  margin-inline: auto var(--space-6);
}
.article-cta .btn-row {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}
.design-idea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin: var(--space-8) 0 var(--space-10);
}
.design-idea-grid figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.design-idea-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.design-idea-grid figcaption {
  padding: var(--space-3) 0 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .design-idea-grid {
    grid-template-columns: 1fr;
  }
  .article-hero h1 {
    max-width: none;
  }
}
