/* ==========================================================================
   Darsee & Son — Design Tokens
   Concept: "Forest & Stone" — clean modern Pacific Northwest landscaping.
   ========================================================================== */

:root,
[data-theme='light'] {
  /* Surfaces — cool stone/green-tinted neutrals */
  --color-bg: #f6f7f4;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcfa;
  --color-surface-offset: #eef1ec;
  --color-surface-offset-2: #e4e8e0;
  --color-surface-dynamic: #dbe1d6;
  --color-divider: #dde2d8;
  --color-border: #cdd4c7;

  /* Text */
  --color-text: #17201a;
  --color-text-muted: #5b665d;
  --color-text-faint: #98a294;
  --color-text-inverse: #f7f8f5;

  /* Primary accent — Forest Green */
  --color-primary: #1f5d40;
  --color-primary-hover: #16442e;
  --color-primary-active: #103522;
  --color-primary-highlight: #d3e3d9;

  /* Warning (Terra) */
  --color-warning: #8a4b23;
  --color-warning-hover: #6b3a1a;
  --color-warning-active: #4d2a13;
  --color-warning-highlight: #e3d3c6;

  /* Error */
  --color-error: #a23b32;
  --color-error-hover: #7d2d26;
  --color-error-active: #5a201a;
  --color-error-highlight: #e2d0cd;

  /* Success */
  --color-success: #3f7d3a;
  --color-success-hover: #2e5f2a;
  --color-success-active: #1f421c;
  --color-success-highlight: #d5e5d0;

  /* Gold — used sparingly for the star-rating badge */
  --color-gold: #b3872b;
  --color-gold-highlight: #ecdfc4;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --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.03 150 / 0.07);
  --shadow-md: 0 4px 14px oklch(0.2 0.03 150 / 0.09);
  --shadow-lg: 0 16px 40px oklch(0.2 0.03 150 / 0.14);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;

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

[data-theme='dark'] {
  --color-bg: #10140f;
  --color-surface: #161c14;
  --color-surface-2: #1a2118;
  --color-surface-offset: #1d251b;
  --color-surface-offset-2: #232c20;
  --color-surface-dynamic: #2b3527;
  --color-divider: #293024;
  --color-border: #3a4433;
  --color-text: #e4e8de;
  --color-text-muted: #9caa96;
  --color-text-faint: #63705f;
  --color-text-inverse: #161c14;

  --color-primary: #63b384;
  --color-primary-hover: #7fc79a;
  --color-primary-active: #9adbb1;
  --color-primary-highlight: #22352a;

  --color-warning: #c98956;
  --color-warning-hover: #d9a075;
  --color-warning-active: #e6b48f;
  --color-warning-highlight: #3c3025;

  --color-error: #d47b6f;
  --color-error-hover: #de958a;
  --color-error-active: #e7ada4;
  --color-error-highlight: #3a2925;

  --color-success: #79b56f;
  --color-success-hover: #93c78a;
  --color-success-active: #abd9a3;
  --color-success-highlight: #253425;

  --color-gold: #d8ae5f;
  --color-gold-highlight: #3a3220;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #10140f;
    --color-surface: #161c14;
    --color-surface-2: #1a2118;
    --color-surface-offset: #1d251b;
    --color-surface-offset-2: #232c20;
    --color-surface-dynamic: #2b3527;
    --color-divider: #293024;
    --color-border: #3a4433;
    --color-text: #e4e8de;
    --color-text-muted: #9caa96;
    --color-text-faint: #63705f;
    --color-text-inverse: #161c14;
    --color-primary: #63b384;
    --color-primary-hover: #7fc79a;
    --color-primary-active: #9adbb1;
    --color-primary-highlight: #22352a;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
  }
}

/* Type scale */
:root {
  --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.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --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;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--color-primary);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: var(--text-xl);
  margin-block: var(--space-3) var(--space-4);
}
.section-lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}

p {
  max-width: 68ch;
}
p.wide {
  max-width: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-primary:active {
  background: var(--color-primary-active);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: oklch(from var(--color-text) l c h / 0.22);
}
.btn-secondary:hover {
  background: var(--color-surface-offset);
  border-color: oklch(from var(--color-text) l c h / 0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  padding-inline: var(--space-2);
}
.btn-ghost:hover {
  color: var(--color-primary-hover);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-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-text) l c h / 0.08);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header--hidden {
  transform: translateY(-100%);
}
.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  flex-shrink: 0;
}
.brand svg {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.brand-name em {
  font-style: normal;
  color: var(--color-primary);
}

.main-nav {
  display: none;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.main-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding-block: var(--space-2);
  position: relative;
}
.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: var(--color-text);
}
.main-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + var(--space-3));
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-panel a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.nav-dropdown-panel a:hover {
  background: var(--color-surface-offset);
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.header-phone svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.icon-btn:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.theme-toggle-btn {
  position: relative;
}
.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon {
  display: flex;
}
.theme-toggle-btn .icon-moon {
  display: none;
}
[data-theme='dark'] .theme-toggle-btn .icon-sun {
  display: none;
}
[data-theme='dark'] .theme-toggle-btn .icon-moon {
  display: flex;
}

.menu-toggle {
  display: inline-flex;
}
.header-cta {
  display: none;
}

@media (min-width: 960px) {
  .main-nav {
    display: block;
  }
  .header-phone {
    display: inline-flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--color-bg);
  z-index: 90;
  padding: var(--space-6) var(--space-5) var(--space-10);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
}
.mobile-nav a,
.mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-1);
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 500;
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav details[open] summary svg {
  transform: rotate(180deg);
}
.mobile-nav summary svg {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}
.mobile-nav .sublist {
  padding-left: var(--space-4);
}
.mobile-nav .sublist a {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 400;
  border-bottom: none;
  padding-block: var(--space-3);
}
.mobile-nav-cta {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.mobile-nav-cta a.btn {
  border-bottom: none;
}
.mobile-nav-cta a.btn-primary {
  color: var(--color-text-inverse);
}
.mobile-nav-cta a.btn-secondary {
  color: var(--color-text);
}
@media (min-width: 960px) {
  .mobile-nav {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
  padding-block: clamp(var(--space-12), 9vw, var(--space-24));
}
.hero-copy .eyebrow {
  margin-bottom: var(--space-5);
}
.hero h1 {
  font-size: var(--text-3xl);
  line-height: 1.05;
  margin-bottom: var(--space-5);
}
.hero-copy p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
}
.trust-stars {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.trust-stars strong {
  color: var(--color-text);
}
.trust-stars .stars {
  color: var(--color-gold);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.star-icon {
  flex-shrink: 0;
}
.star-icon--half {
  opacity: 0.4;
}
.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media-badge {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  background: oklch(from var(--color-surface) l c h / 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-md);
}
.hero-media-badge svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.hero-media-badge .label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
}
.hero-media-badge strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* Simple page hero (interior pages) */
.page-hero {
  padding-block: clamp(var(--space-12), 7vw, var(--space-20)) clamp(var(--space-8), 5vw, var(--space-12));
}
.page-hero h1 {
  font-size: var(--text-2xl);
  margin-block: var(--space-3) var(--space-4);
  max-width: 22ch;
}
.page-hero p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
}
.page-hero-media {
  margin-top: var(--space-10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.page-hero-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* ==========================================================================
   Feature rows (services) — asymmetric, alternating
   ========================================================================== */

.feature-row {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding-block: clamp(var(--space-10), 6vw, var(--space-16));
  border-top: 1px solid var(--color-divider);
}
.feature-row:first-of-type {
  border-top: none;
}
.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-index {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  display: block;
}
.feature-copy h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.feature-copy p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.feature-list {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.feature-list svg {
  width: 17px;
  height: 17px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (min-width: 860px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
  }
  .feature-row.reverse .feature-media {
    order: 2;
  }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-md);
}

/* Area cards grid on homepage */
.area-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .area-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.area-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 200px;
}
.area-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.area-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.area-card .btn-ghost {
  align-self: flex-start;
}

/* Value / about narrative blocks */
.value-block {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.value-block:first-of-type {
  border-top: none;
  padding-top: 0;
}
.value-block h3 {
  font-size: var(--text-lg);
}
.value-block p {
  color: var(--color-text-muted);
}

/* ==========================================================================
   Testimonial / trust band
   ========================================================================== */

.trust-band {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.trust-band-inner {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
.trust-rating {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.trust-rating .score {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  line-height: 1;
}
.trust-rating .stars {
  color: var(--color-gold);
  font-size: var(--text-lg);
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.trust-rating .meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
@media (min-width: 760px) {
  .trust-band-inner {
    grid-template-columns: auto 1fr auto;
  }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
  columns: 1;
  column-gap: var(--space-5);
}
@media (min-width: 640px) {
  .gallery-grid {
    columns: 2;
  }
}
@media (min-width: 1000px) {
  .gallery-grid {
    columns: 3;
  }
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.gallery-item img {
  width: 100%;
  display: block;
}
.gallery-caption {
  padding: var(--space-4);
  background: var(--color-surface);
}
.gallery-caption h3 {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.gallery-caption p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
.cta-band h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.cta-band p {
  color: oklch(from var(--color-text-inverse) l c h / 0.82);
  max-width: 46ch;
}
.cta-band .btn-primary {
  background: var(--color-text-inverse);
  color: var(--color-primary-active);
}
.cta-band .btn-primary:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.9);
}
.cta-band .btn-secondary {
  border-color: oklch(from var(--color-text-inverse) l c h / 0.4);
  color: var(--color-text-inverse);
}
.cta-band .btn-secondary:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.12);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
@media (min-width: 760px) {
  .cta-band {
    grid-template-columns: 1.3fr auto;
  }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-field .hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 400;
}
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  min-height: 48px;
  color: var(--color-text);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-primary);
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.checkbox-field input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 3px;
  accent-color: var(--color-primary);
}
.checkbox-field label {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}
.checkbox-field label a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}
.form-success {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-primary-highlight);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-5);
}
.form-success.is-visible {
  display: flex;
}
.form-success svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.form-success h3 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}
.form-success p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.contact-methods {
  display: grid;
  gap: var(--space-4);
}
.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.contact-method .icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method .icon-wrap svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}
.contact-method a {
  font-weight: 600;
  color: var(--color-text);
}
.contact-method .label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/10;
  background: var(--color-surface-offset);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-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;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-brand .brand {
  margin-bottom: var(--space-4);
}
.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 34ch;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: grid;
  gap: var(--space-3);
  list-style: none;
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-col a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

/* Legal pages */
.legal-content {
  display: grid;
  gap: var(--space-5);
}
.legal-content h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
}
.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.legal-content ul {
  display: grid;
  gap: var(--space-2);
  padding-left: var(--space-6);
  list-style: disc;
}
.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-updated {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ==========================================================================
   Utility
   ========================================================================== */

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  z-index: 200;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: var(--space-4);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}
.badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

hr.divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin-block: var(--space-10);
}
