/* style.css — Capital Tile & Stone design system */

/* ===== FONT IMPORTS ===== */
/* Fontshare: Boska (display serif) for headings, Switzer (sans) for body */

/* ===== DESIGN TOKENS ===== */
:root {
  /* 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, 1rem + 6vw, 6.5rem);

  /* 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;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.625rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

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

  /* Fonts */
  --font-display: 'Fraunces', 'Cormorant', Georgia, serif;
  --font-body: 'General Sans', 'Work Sans', Helvetica, Arial, sans-serif;
}

/* ===== COLOR — LIGHT (default): clean white surfaces + logo-green accent ===== */
:root,
[data-theme='light'] {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f6faf6;
  --color-surface-offset: #eef6ee;
  --color-surface-offset-2: #e2eee1;
  --color-surface-dynamic: #cfe4cd;
  --color-divider: #e2ebe1;
  --color-border: #d3e2d1;

  --color-text: #1c2620;
  --color-text-muted: #56675a;
  --color-text-faint: #8a998a;
  --color-text-inverse: #ffffff;

  /* Primary accent — logo green (darkened for WCAG AA text contrast, 6.1:1 on white) */
  --color-primary: #217038;
  --color-primary-hover: #1a5a2c;
  --color-primary-active: #144722;
  --color-primary-highlight: #e1f0e1;

  /* Secondary deep green-charcoal (used for dark blocks, footer) */
  --color-ink: #182219;
  --color-ink-2: #243125;

  --color-success: #217038;
  --color-success-highlight: #dde7d3;
  --color-warning: #b3701f;
  --color-warning-highlight: #f3e4c8;
  --color-error: #9c3b30;
  --color-error-highlight: #ecd6d1;

  --shadow-sm: 0 1px 2px oklch(0.25 0.03 150 / 0.08);
  --shadow-md: 0 4px 16px oklch(0.25 0.03 150 / 0.10);
  --shadow-lg: 0 16px 40px oklch(0.25 0.03 150 / 0.16);
}

/* ===== COLOR — DARK: deep green-charcoal surfaces + brighter green accent ===== */
[data-theme='dark'] {
  --color-bg: #16211a;
  --color-surface: #1c2a21;
  --color-surface-2: #213026;
  --color-surface-offset: #26362b;
  --color-surface-offset-2: #2e4033;
  --color-surface-dynamic: #3c5245;
  --color-divider: #33453a;
  --color-border: #3c4f42;

  --color-text: #e8f0e6;
  --color-text-muted: #a9bfa8;
  --color-text-faint: #748971;
  --color-text-inverse: #16211a;

  --color-primary: #6fcf8a;
  --color-primary-hover: #86dba0;
  --color-primary-active: #58b571;
  --color-primary-highlight: #24402c;

  --color-ink: #0e150f;
  --color-ink-2: #16211a;

  --color-success: #6fcf8a;
  --color-success-highlight: #33402a;
  --color-warning: #d3934e;
  --color-warning-highlight: #47371f;
  --color-error: #d4796a;
  --color-error-highlight: #452925;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 4px 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: #ffffff;
    --color-surface: #ffffff;
    --color-surface-2: #f6faf6;
    --color-surface-offset: #eef6ee;
    --color-surface-offset-2: #e2eee1;
    --color-surface-dynamic: #cfe4cd;
    --color-divider: #e2ebe1;
    --color-border: #d3e2d1;
    --color-text: #1c2620;
    --color-text-muted: #56675a;
    --color-text-faint: #8a998a;
    --color-text-inverse: #ffffff;
    --color-primary: #217038;
    --color-primary-hover: #1a5a2c;
    --color-primary-active: #144722;
    --color-primary-highlight: #e1f0e1;
    --color-ink: #182219;
    --color-ink-2: #243125;
    --shadow-sm: 0 1px 2px oklch(0.25 0.03 150 / 0.08);
    --shadow-md: 0 4px 16px oklch(0.25 0.03 150 / 0.10);
    --shadow-lg: 0 16px 40px oklch(0.25 0.03 150 / 0.16);
  }
}

/* ===== TYPOGRAPHY ===== */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
}

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

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== LAYOUT ===== */
.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);
}

main {
  overflow-x: hidden;
}

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

.section-head {
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-16));
  max-width: 60ch;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  flex-shrink: 0;
}
.brand svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.logo-mark {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-mark-dark {
  display: none;
}
[data-theme="dark"] .logo-mark-light {
  display: none;
}
[data-theme="dark"] .logo-mark-dark {
  display: block;
}
.logo-icon-mark {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text small {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

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

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

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text);
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-desktop { display: flex; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--color-bg);
  z-index: 200;
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
}
.mobile-menu .btn {
  margin-top: var(--space-6);
}
.mobile-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text);
}
.mobile-close:hover {
  background: var(--color-surface-offset);
}

/* ===== 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;
  min-height: 44px;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  background: var(--color-primary-active);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid 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.35);
}
.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-5) var(--space-8);
  font-size: var(--text-base);
}
.btn-on-dark {
  background: var(--color-primary);
  color: #fff;
}
.btn-on-dark.btn-secondary {
  background: transparent;
  color: #f6f1ea;
  border: 1px solid oklch(1 0 0 / 0.3);
}
.btn-on-dark.btn-secondary:hover {
  background: oklch(1 0 0 / 0.08);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    color-mix(in oklab, var(--color-ink) 88%, transparent) 0%,
    color-mix(in oklab, var(--color-ink) 62%, transparent) 42%,
    color-mix(in oklab, var(--color-ink) 20%, transparent) 75%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-12) var(--space-5);
  width: 100%;
}
.hero-inner {
  max-width: 640px;
}
.hero .eyebrow {
  color: #e3b98a;
}
.hero h1 {
  font-size: var(--text-hero);
  color: #fbf5ec;
  margin-block: var(--space-5);
  line-height: 1.03;
}
.hero p.lede {
  color: #e8e0d3;
  font-size: var(--text-lg);
  max-width: 50ch;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-12);
  padding: var(--space-5) var(--space-6);
  background: color-mix(in oklab, var(--color-ink) 62%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: var(--radius-lg);
}
.hero-meta-item {
  color: #f1ece2;
}
.hero-meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.hero-meta-item span {
  font-size: var(--text-xs);
  color: #e9dfcb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Interior page hero (smaller) */
.page-hero {
  position: relative;
  padding-block: clamp(var(--space-20), 14vw, var(--space-32)) clamp(var(--space-12), 6vw, var(--space-16));
  background: var(--color-ink);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 85% 0%, color-mix(in oklab, var(--color-primary) 30%, transparent), transparent 70%);
  opacity: 0.5;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.page-hero .eyebrow { color: #e3b98a; }
.page-hero h1 {
  color: #fbf5ec;
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
  max-width: 34ch;
}
.page-hero p {
  color: #d8cdb9;
  max-width: 56ch;
  margin-top: var(--space-4);
  font-size: var(--text-base);
}

/* ===== CARDS / GRIDS ===== */
.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.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-8);
  transition:
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive),
    border-color var(--transition-interactive);
}
a.card:hover,
.card.hoverable:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: oklch(from var(--color-primary) l c h / 0.3);
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition:
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.service-card-body h3 {
  font-size: var(--text-lg);
}
.service-card-body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  flex: 1;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--space-2);
}
.service-card:hover .service-card-link svg {
  transform: translateX(3px);
}
.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-interactive);
}

/* ===== PROCESS / WHY-CHOOSE ===== */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.process-item:first-child { border-top: none; }
.process-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
}
.process-item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.process-item p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ===== TESTIMONIALS ===== */
.testimonial-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-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--color-text);
}
.testimonial-quote::before {
  content: '\201C';
  color: var(--color-primary);
}
.testimonial-quote::after {
  content: '\201D';
  color: var(--color-primary);
}
.testimonial-attribution {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ===== PULL QUOTE ===== */
.pull-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.3;
  max-width: 42ch;
  color: var(--color-text);
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-primary);
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--color-ink);
  color: #f6f1ea;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 100% 20%, color-mix(in oklab, var(--color-primary) 35%, transparent), transparent 70%);
}
.cta-band-content { position: relative; z-index: 1; max-width: 46ch; }
.cta-band h2 {
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-3);
}
.cta-band p {
  color: #d8cdb9;
}
.cta-band-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ===== FULL BLEED IMAGE ===== */
.full-bleed {
  width: 100%;
}
.full-bleed img {
  width: 100%;
  height: clamp(280px, 46vw, 560px);
  object-fit: cover;
}

/* ===== FEATURE SPLIT (asymmetric two column) ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ===== LISTS ===== */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.check-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--color-text);
}
.check-list svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== SERVICE AREAS ===== */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.area-tag {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
a.area-tag:hover,
a.area-tag:focus-visible {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ===== TEAM ===== */
.team-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.team-initial {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.team-card h3 { font-size: var(--text-lg); }
.team-role {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.team-card p.desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* ===== FAQ ACCORDION ===== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.accordion-item {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}
.accordion-trigger:hover {
  color: var(--color-primary);
}
.accordion-trigger svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform var(--transition-interactive);
}
.accordion-item[data-open="true"] .accordion-trigger svg {
  transform: rotate(45deg);
}
.accordion-panel {
  height: 0;
  overflow: hidden;
  transition: height 0.3s var(--ease-in-out);
}
.accordion-panel-inner {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.accordion-panel-inner p + p { margin-top: var(--space-3); }
.accordion-panel-inner ul {
  margin-top: var(--space-2);
  padding-left: var(--space-5);
}
.accordion-panel-inner li {
  list-style: disc;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.accordion-panel-inner strong { color: var(--color-text); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info-item {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.contact-info-item:first-child { border-top: none; padding-top: 0; }
.contact-info-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-item h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.contact-info-item a,
.contact-info-item p {
  font-size: var(--text-base);
  color: var(--color-text);
}
.contact-info-item a:hover {
  color: var(--color-primary);
}

.form-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-row label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: var(--text-base);
  min-height: 44px;
}
.form-row textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 560px) {
  .form-two { grid-template-columns: 1fr; }
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
.form-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ===== CONTACT FORM PHOTO UPLOAD ===== */
.photo-upload-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  display: block;
  margin-bottom: var(--space-2);
}
.photo-upload-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.photo-dropzone {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  padding: var(--space-4);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.photo-dropzone:hover,
.photo-dropzone:focus-visible,
.photo-dropzone.is-dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.photo-dropzone svg {
  flex-shrink: 0;
  color: var(--color-primary);
}
.photo-dropzone-text {
  font-size: var(--text-sm);
  color: var(--color-text);
}
.photo-dropzone-text strong {
  color: var(--color-primary);
}
.photo-input-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.photo-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.photo-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-thumb-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--color-ink) 55%, transparent);
}
.photo-thumb-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid color-mix(in oklab, white 40%, transparent);
  border-top-color: white;
  animation: photo-spin 0.7s linear infinite;
}
@keyframes photo-spin {
  to { transform: rotate(360deg); }
}
.photo-thumb-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--color-error) 75%, transparent);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: center;
  padding: var(--space-1);
}
.photo-thumb-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: color-mix(in oklab, var(--color-ink) 70%, transparent);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  font-size: 14px;
  padding: 0;
}
.photo-thumb-remove:hover {
  background: var(--color-error);
}
.photo-upload-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-2);
  display: none;
}
.photo-upload-error.is-visible {
  display: block;
}
.form-submit-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid color-mix(in oklab, white 40%, transparent);
  border-top-color: white;
  animation: photo-spin 0.7s linear infinite;
  margin-right: var(--space-2);
  vertical-align: -2px;
}

/* ===== MAP PLACEHOLDER-FREE STATIC BLOCK ===== */
.map-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/10;
}
.map-block iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-ink);
  color: #cfc4b0;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
}
.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid oklch(1 0 0 / 0.1);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer-brand svg {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
}
.logo-mark-footer {
  height: 40px;
  width: auto;
}
.footer p.footer-desc {
  color: #ab9f8a;
  font-size: var(--text-sm);
  max-width: 32ch;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #efe6d6;
  margin-bottom: var(--space-4);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  font-size: var(--text-sm);
  color: #b9ae99;
}
.footer-links 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-6);
  font-size: var(--text-xs);
  color: #96897a;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-legal-links a {
  color: #96897a;
}
.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--color-primary-highlight);
  text-decoration: underline;
}

/* ===== LEGAL / LONG-FORM CONTENT PAGES ===== */
.legal-content {
  max-width: 720px;
  margin-inline: auto;
}
.legal-content .legal-updated {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}
.legal-content h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}
.legal-content h2:first-of-type {
  margin-top: 0;
}
.legal-content h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}
.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.legal-content ul {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.legal-content li {
  list-style: disc;
}
.legal-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--color-surface-2);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}
.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--color-primary-hover);
}

/* ===== SCROLL REVEAL (opacity-only, no CLS) ===== */
.reveal {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}
@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  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); }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ===== UTILITIES ===== */
.text-muted { color: var(--color-text-muted); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.surface-alt { background: var(--color-surface-offset); }
.text-center { text-align: center; }
