/* ==========================================================================
   Busy B Landscaping — Design Tokens & Component Styles
   ========================================================================== */

:root {
  /* ---- Fluid type scale ---- */
  --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, 4.5rem);
  --text-hero: clamp(2.75rem, 1rem + 5.5vw, 5.5rem);

  /* ---- 4px spacing system ---- */
  --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;

  /* ---- Radius ---- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

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

  /* ---- Content widths ---- */
  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* ---- Fonts ---- */
  --font-display: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

/* ==========================================================================
   Light mode (default) — warm off-white / stone neutrals, amber accent
   ========================================================================== */
:root,
[data-theme='light'] {
  --color-bg: #f8f4ec;
  --color-surface: #fefcf7;
  --color-surface-2: #ffffff;
  --color-surface-offset: #f1ebdd;
  --color-surface-offset-2: #e9e1cd;
  --color-surface-dynamic: #ded3b8;
  --color-divider: #e3dac6;
  --color-border: #d8cbac;

  --color-text: #241f16;
  --color-text-muted: #6b6152;
  --color-text-faint: #a89d87;
  --color-text-inverse: #fdf9ef;

  /* Primary accent — brand amber/orange, darkened for AA text contrast on warm bg */
  --color-primary: #9c5810;
  --color-primary-hover: #85480c;
  --color-primary-active: #6d3a0a;
  --color-primary-highlight: #f3ddb9;
  --color-primary-on: #ffffff;

  --color-success: #3f7a3d;
  --color-success-highlight: #d9e9d3;
  --color-error: #a3372c;
  --color-error-highlight: #f1d8d3;

  --shadow-sm: 0 1px 2px oklch(0.3 0.03 60 / 0.08);
  --shadow-md: 0 4px 14px oklch(0.3 0.03 60 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.3 0.03 60 / 0.16);

  --hero-overlay: linear-gradient(
    180deg,
    oklch(0.12 0.02 50 / 0.55) 0%,
    oklch(0.1 0.02 50 / 0.72) 55%,
    oklch(0.08 0.02 50 / 0.9) 100%
  );
}

/* ==========================================================================
   Dark mode — deep charcoal base, warm amber glow (brand default feel)
   ========================================================================== */
[data-theme='dark'] {
  --color-bg: #171614;
  --color-surface: #1c1a17;
  --color-surface-2: #211e1a;
  --color-surface-offset: #221f1a;
  --color-surface-offset-2: #2a2621;
  --color-surface-dynamic: #34302a;
  --color-divider: #2c2823;
  --color-border: #3c362d;

  --color-text: #ece6d8;
  --color-text-muted: #a89d89;
  --color-text-faint: #766c5c;
  --color-text-inverse: #241f16;

  /* Primary accent — brighter amber highlight for dark surfaces */
  --color-primary: #f2a93b;
  --color-primary-hover: #fdab43;
  --color-primary-active: #fec47e;
  --color-primary-highlight: #4a3a20;
  --color-primary-on: #241a08;

  --color-success: #7fbf6a;
  --color-success-highlight: #2c3a26;
  --color-error: #e08872;
  --color-error-highlight: #3d2621;

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

  --hero-overlay: linear-gradient(
    180deg,
    oklch(0.05 0.01 50 / 0.35) 0%,
    oklch(0.04 0.01 50 / 0.65) 55%,
    oklch(0.03 0.01 50 / 0.9) 100%
  );
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #171614;
    --color-surface: #1c1a17;
    --color-surface-2: #211e1a;
    --color-surface-offset: #221f1a;
    --color-surface-offset-2: #2a2621;
    --color-surface-dynamic: #34302a;
    --color-divider: #2c2823;
    --color-border: #3c362d;
    --color-text: #ece6d8;
    --color-text-muted: #a89d89;
    --color-text-faint: #766c5c;
    --color-text-inverse: #241f16;
    --color-primary: #f2a93b;
    --color-primary-hover: #fdab43;
    --color-primary-active: #fec47e;
    --color-primary-highlight: #4a3a20;
    --color-primary-on: #241a08;
    --color-success: #7fbf6a;
    --color-success-highlight: #2c3a26;
    --color-error: #e08872;
    --color-error-highlight: #3d2621;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.45);
    --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);
    --hero-overlay: linear-gradient(
      180deg,
      oklch(0.05 0.01 50 / 0.35) 0%,
      oklch(0.04 0.01 50 / 0.65) 55%,
      oklch(0.03 0.01 50 / 0.9) 100%
    );
  }
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--default {
  max-width: var(--content-default);
}
.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.section--tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-16));
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}

.section-head {
  margin-bottom: var(--space-12);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-on);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  background: var(--color-primary-active);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: oklch(from var(--color-text-inverse) l c h / 0.4);
}
[data-theme='light'] .btn-secondary,
:root:not([data-theme]) .btn-secondary {
  color: var(--color-text-inverse);
}
.btn-secondary:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.12);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.86);
  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--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.brand-word span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav-desktop {
  display: none;
}
.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-desktop a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
}
.nav-desktop a:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.call-btn {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
  flex-shrink: 0;
}
.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-4) var(--space-5) var(--space-6);
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav a:last-of-type {
  border-bottom: none;
}
.mobile-nav .btn {
  margin-top: var(--space-4);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: block;
  }
  .call-btn {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  max-height: 980px;
  display: flex;
  align-items: center;
  color: var(--color-text-inverse);
  overflow: hidden;
}
.hero {
  --color-text-inverse: #fdf9ef;
  --hero-accent: #fdab43;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(var(--space-20), 10vw, var(--space-24));
  max-width: 44rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-accent);
  margin-bottom: var(--space-5);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1rem + 4.8vw, 4.5rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 24px oklch(0 0 0 / 0.35);
}
.hero-title em {
  font-style: normal;
  color: var(--hero-accent);
}

.hero-sub {
  font-size: var(--text-lg);
  color: oklch(from var(--color-text-inverse) l c h / 0.88);
  max-width: 42ch;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-actions .btn {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}

/* ==========================================================================
   Services
   ========================================================================== */
.service-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.service-group-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: oklch(from var(--color-primary) l c h / 0.4);
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}
.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Service Area
   ========================================================================== */
.area-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .area-layout {
    grid-template-columns: 1.1fr 1fr;
  }
}

.area-map {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
}
.area-map svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  color: var(--color-primary);
}

.area-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 480px) {
  .area-list {
    grid-template-columns: 1fr;
  }
}

.area-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
}
.area-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.area-region-note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   About / Why Choose Us
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 700px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-item {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.trust-item:first-child,
.trust-item:nth-child(2) {
  border-top: 1px solid var(--color-divider);
}

.trust-icon {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: var(--space-1);
}

.trust-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.trust-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-4);
  background: linear-gradient(180deg, transparent, oklch(0.05 0.01 50 / 0.82));
  color: #fdf9ef;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Contact / Quote form + FAQ
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
}
@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 560px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field input,
.field select,
.field textarea {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  min-height: 44px;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-card {
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.contact-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.contact-phone-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.contact-phone-link svg {
  width: 22px;
  height: 22px;
}

/* FAQ mini-chat */
.faq-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.faq-widget h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.faq-widget > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.faq-chat-window {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: var(--space-4);
  padding-right: var(--space-1);
}

.faq-bubble {
  max-width: 88%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.faq-bubble--bot {
  background: var(--color-surface-offset);
  color: var(--color-text);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-sm);
}
.faq-bubble--user {
  background: var(--color-primary);
  color: var(--color-primary-on);
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
  font-weight: 600;
}

.faq-presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.faq-preset-btn {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text);
  min-height: 36px;
}
.faq-preset-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.faq-preset-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  color: var(--color-text);
  text-decoration: none;
}
.footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
}

.footer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 34ch;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-primary-on);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  z-index: 200;
  font-weight: 700;
  font-size: var(--text-sm);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

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

h1 {
  font-size: var(--text-hero);
}

/* ==========================================================================
   Grid overflow safety net
   Bare `1fr` grid tracks default to minmax(auto, 1fr), which lets a track
   grow past its container to fit intrinsic content width. Forcing min-width
   0 on all direct grid children prevents horizontal overflow on narrow
   viewports across every grid in this stylesheet.
   ========================================================================== */
.service-grid > *,
.area-layout > *,
.area-list > *,
.trust-grid > *,
.about-layout > *,
.gallery-grid > *,
.contact-layout > *,
.form-row > *,
.footer-grid > * {
  min-width: 0;
}
