/* =========================================================
   D's Auto Repair — Mobile-first stylesheet
   Warm-luxury, calm, minimal. Single accent (muted gold).
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Colors (off-white base) */
  --bg:            #F6F2EC;
  --bg-soft:       #EFE9DF;
  --surface:       #FFFFFF;
  --text:          #1B1B1B;
  --text-muted:    #6B6356;
  --accent:        #B08D57;
  --accent-soft:   #C9A87A;
  --border:        rgba(27, 27, 27, 0.08);
  --border-strong: rgba(27, 27, 27, 0.14);
  --on-dark:       #F4EFE7;
  --on-dark-muted: #C9C2B5;

  /* Spacing — 8px scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 128px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Shadow — used sparingly */
  --shadow-sm: 0 1px 2px rgba(27, 27, 27, 0.04);
  --shadow-md: 0 8px 24px rgba(27, 27, 27, 0.06);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur:  180ms;

  /* Layout */
  --max:    1200px;
  --max-tx: 60ch;
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 1rem + 0.1vw, 18px);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
/* Hero background video must fill the section (global height:auto breaks cover) */
video:not(.hero-video) {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
/* Do not recolor pill / ghost buttons on hover */
a:not(.btn):hover { color: var(--accent); }

button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: var(--s-2) var(--s-3);
  z-index: 100;
}
.skip-link:focus { left: var(--s-3); top: var(--s-3); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
  margin: 0;
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.125rem, 0.6vw + 1rem, 1.375rem); font-weight: 500; }
p  { margin: 0; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.eyebrow-light { color: var(--accent-soft); }

.accent-text { color: var(--accent); font-style: italic; font-weight: 400; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--s-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--s-5); }
}
@media (min-width: 1024px) {
  .container { padding-inline: var(--s-6); }
}

.section {
  padding-block: var(--s-7);
}
.section-soft { background: var(--bg-soft); }

@media (min-width: 768px) { .section { padding-block: var(--s-8); } }
@media (min-width: 1024px) { .section { padding-block: var(--s-9); } }

.section-head {
  max-width: var(--max-tx);
  margin-bottom: var(--s-6);
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 768px) { .section-head { margin-bottom: var(--s-7); } }

.section-title { max-width: 22ch; }
.section-lead {
  color: var(--text-muted);
  max-width: var(--max-tx);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-sm { min-height: 40px; padding: 0 var(--s-3); font-size: 0.875rem; }

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

/* Explicit button text colors (beats stray nav / global link rules) */
a.btn-primary,
a.btn-primary:hover,
button.btn-primary,
button.btn-primary:hover {
  color: var(--bg);
}
a.btn-secondary-light,
a.btn-secondary-light:hover {
  color: var(--on-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--text); color: var(--text); }

.btn-secondary-light {
  color: var(--on-dark);
  border-color: rgba(244, 239, 231, 0.35);
}
.btn-secondary-light:hover {
  border-color: var(--on-dark);
  color: var(--on-dark);
}

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 242, 236, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--s-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-desktop { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: transparent;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: var(--s-3) var(--s-4) var(--s-5);
  animation: slideDown 220ms var(--ease);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile ul {
  list-style: none;
  margin: 0 0 var(--s-4);
  padding: 0;
  display: grid;
  gap: var(--s-1);
}
.nav-mobile ul a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--s-2);
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--border);
}
.nav-mobile .btn {
  width: 100%;
  margin-top: var(--s-3);
  border-bottom: none;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }

  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--s-5);
    flex-shrink: 0;
  }
  .nav-desktop ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--s-5);
  }
  /* Only style list links — do not target .btn CTA (was overriding btn text color) */
  .nav-desktop ul a {
    font-size: 0.9375rem;
    color: var(--text);
    position: relative;
  }
  .nav-desktop ul a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
  }
  .nav-desktop ul a:hover { color: var(--text); }
  .nav-desktop ul a:hover::after { transform: scaleX(1); }

  .nav-desktop .btn-primary {
    color: var(--bg);
    flex-shrink: 0;
  }
  .nav-desktop .btn-primary:hover {
    color: var(--bg);
    background: #000;
  }
}

/* ---------- Hero ---------- */
/* One screen above the fold: height tracks viewport; spacing scales with dvh/svh */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--on-dark);
  /* Solid only — do not paint a portfolio still behind the mp4 */
  background-color: #0c0c0d;
  margin-top: calc(var(--header-h) * -1);
  /* Same inset top (below sticky nav) / bottom keeps the centered block optically centered in the viewport */
  --hero-safe: clamp(12px, 2dvh, 24px);
  padding-top: calc(var(--header-h) + var(--hero-safe));
  padding-bottom: var(--hero-safe);
}
/* True full-bleed background: hero.mp4 */
.hero .hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Balanced darkening for centered hero copy + readable video */
  background:
    radial-gradient(ellipse 100% 85% at 50% 40%, rgba(10, 10, 11, 0.45) 0%, rgba(10, 10, 11, 0.72) 55%, rgba(10, 10, 11, 0.88) 100%),
    linear-gradient(180deg, rgba(15, 15, 16, 0.35) 0%, rgba(15, 15, 16, 0.88) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8dvh, 20px);
  max-width: var(--max);
  width: 100%;
  margin-inline: auto;
  flex-shrink: 1;
  min-height: 0;
}

.hero-layout {
  display: grid;
  gap: clamp(16px, 2dvh, 24px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: clamp(6px, 1.25dvh, 16px);
  text-align: center;
  justify-items: center;
  min-width: 0;
}

.hero .eyebrow {
  margin-bottom: clamp(0px, 0.35dvh, 4px);
}
.hero-title {
  color: var(--on-dark);
  font-size: clamp(1.6rem, 2.6dvh + 2.2vw, 3.35rem);
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin-top: 0;
}
/* Stronger contrast for accent line on dark video */
.hero-title .accent-text {
  color: #E4D4BC;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.hero-lead {
  color: var(--on-dark-muted);
  max-width: min(56ch, 92vw);
  font-size: clamp(0.8125rem, 0.45dvh + 0.76rem, 1rem);
  line-height: 1.45;
  margin-top: 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.2dvh, 16px);
  margin-top: 0;
  justify-content: center;
}

/* Slightly compact CTAs so the block fits short viewports */
.hero .btn {
  min-height: 44px;
  padding: 0 clamp(14px, 2.5vw, 22px);
  font-size: clamp(0.8125rem, 0.25dvh + 0.8rem, 0.9375rem);
}

/* Right column: calm glass panel (readable on video); hidden on small screens */
.hero-side-card {
  display: none;
  margin: 0;
  justify-self: stretch;
  padding: clamp(16px, 2dvh, 22px);
  border-radius: var(--r-lg);
  background: rgba(12, 12, 13, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 239, 231, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.hero-side-card-eyebrow {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.hero-side-card-title {
  margin: 6px 0 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--on-dark);
}

.hero-side-card-address {
  margin: var(--s-3) 0 0;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

.hero-side-card-row {
  margin: var(--s-2) 0 0;
  font-size: 0.9375rem;
}

.hero-side-card-row a {
  color: var(--on-dark);
  font-weight: 500;
}

.hero-side-card-row a:hover {
  color: var(--accent-soft);
}

.hero-side-card-hours {
  margin: var(--s-4) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid rgba(244, 239, 231, 0.12);
  display: grid;
  gap: var(--s-2);
}

.hero-side-card-hours div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--s-2);
}

.hero-side-card-hours dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(244, 239, 231, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-side-card-hours dd {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}

.hero-side-card-link {
  display: inline-block;
  margin-top: var(--s-4);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201, 168, 122, 0.4);
}

.hero-side-card-link:hover {
  text-decoration-color: var(--accent-soft);
}

.hero-trust {
  list-style: none;
  margin: clamp(6px, 1.2dvh, 14px) 0 0;
  padding: clamp(8px, 1.25dvh, 14px) 0 0;
  border-top: 1px solid rgba(244, 239, 231, 0.16);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: min(820px, 100%);
  width: 100%;
  align-self: center;
  align-items: start;
}
.hero-trust li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 clamp(6px, 1.8vw, 14px);
  text-align: center;
  align-items: center;
}
.hero-trust li + li {
  border-left: 1px solid rgba(244, 239, 231, 0.22);
}
.hero-trust strong {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 1.35dvh + 0.9rem, 1.65rem);
  font-weight: 500;
  color: var(--on-dark);
  letter-spacing: -0.01em;
}
.hero-trust span {
  font-size: clamp(0.625rem, 0.3dvh + 0.55rem, 0.75rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

@media (min-width: 1024px) {
  .hero-side-card {
    display: block;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: var(--s-7);
    align-items: center;
  }

  .hero-copy {
    text-align: left;
    justify-items: start;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-trust {
    max-width: 100%;
    align-self: stretch;
  }
}

/* Very short screens: tighten further */
@media (max-height: 640px) {
  .hero {
    --hero-safe: 8px;
    padding-top: calc(var(--header-h) + var(--hero-safe));
    padding-bottom: var(--hero-safe);
  }
  .hero-inner {
    gap: 8px;
  }
  .hero-side-card-hours div {
    grid-template-columns: 76px 1fr;
  }
  .hero-title {
    font-size: clamp(1.35rem, 5.5vw, 2.4rem);
  }
  .hero-lead {
    font-size: 0.8rem;
    line-height: 1.42;
  }
}

@media (min-width: 768px) {
  .hero {
    --hero-safe: clamp(14px, 2.5dvh, 28px);
    padding-top: calc(var(--header-h) + var(--hero-safe));
    padding-bottom: var(--hero-safe);
  }
}

@media (min-width: 768px) and (min-height: 720px) {
  .hero-trust strong {
    font-size: clamp(1.35rem, 1.45dvh + 0.85rem, 1.875rem);
  }
}

/* ---------- Cards (shared) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
}

/* ---------- Carousel (mobile-first) ---------- */
.carousel { position: relative; }

.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0 var(--s-4) var(--s-2);
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-left: var(--s-4);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * {
  flex: 0 0 86vw;
  max-width: 460px;
  scroll-snap-align: start;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border-strong);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.carousel-dots button.is-active {
  background: var(--accent);
  width: 22px;
  border-radius: var(--r-pill);
}
.carousel-dots button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .carousel-track {
    padding: 0;
    gap: var(--s-4);
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    scroll-snap-type: none;
  }
  .carousel-track > * { flex: initial; max-width: none; }
  .carousel-dots { display: none; }
}
@media (min-width: 1024px) {
  .carousel-track { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
}

/* ---------- Service card ---------- */
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 220px;
}
.service-card h3 { font-family: 'Playfair Display', serif; }
.service-card p { color: var(--text-muted); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(176, 141, 87, 0.10);
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- Work card ---------- */
.work-card { padding: 0; overflow: hidden; }
.work-card figure {
  margin: 0;
  position: relative;
}
.work-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.work-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-3) var(--s-4) var(--s-4);
  background: linear-gradient(180deg, rgba(15,15,16,0) 0%, rgba(15,15,16,0.78) 100%);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.work-tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.work-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  letter-spacing: 0.005em;
}

@media (min-width: 768px) {
  .work-card img { aspect-ratio: 4 / 5; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
.about-copy { display: grid; gap: var(--s-3); max-width: 56ch; }
.about-copy p { color: var(--text-muted); }
.about-stats {
  margin: var(--s-4) 0 0;
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.about-stats > div { display: flex; flex-direction: column; gap: 2px; }
.about-stats dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.about-stats dd {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.about-media {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s-8);
  }
  .about-stats dd { font-size: 1.75rem; }
}

/* ---------- Reviews ---------- */
.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.stars { display: flex; gap: 4px; color: var(--accent); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }

.review-card blockquote {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.005em;
}
.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.reviewer { font-weight: 500; }
.review-meta {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--s-6);
}

.contact-info {
  display: grid;
  gap: var(--s-3);
  max-width: none;
  container-type: inline-size;
  container-name: contact;
}
.contact-info p { color: var(--text-muted); }

.contact-cards {
  list-style: none;
  margin: var(--s-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}
.contact-card {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4);
  margin: 0;
  align-content: start;
}
.contact-card:hover {
  border-color: var(--border-strong);
}
.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-card-body {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}
a.contact-card-body:hover {
  color: var(--accent);
}

/* Three cards in a row only when this column is wide enough (avoids cramped split layout) */
@container contact (min-width: 34rem) {
  .contact-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-3);
  }
}
@media (min-width: 1024px) {
  .contact-cards {
    gap: var(--s-4);
  }
}

.contact-form {
  display: grid;
  gap: var(--s-3);
  background: var(--surface);
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.field { display: grid; gap: var(--s-2); }
.field label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: var(--s-3);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font: inherit;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18);
}
.contact-form .btn { justify-self: start; margin-top: var(--s-2); }
.form-note {
  font-size: 0.875rem;
  color: var(--accent);
  min-height: 1.2em;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
    align-items: start;
  }
  .contact-form { padding: var(--s-6); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0e0e0d;
  color: var(--on-dark);
  padding-block: var(--s-8);
  margin-top: var(--s-7);
  border-top: 1px solid rgba(244, 239, 231, 0.06);
}

.footer-main {
  display: grid;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(244, 239, 231, 0.10);
}

.footer-col {
  display: grid;
  gap: var(--s-3);
  align-content: start;
}

.footer-col-title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}
.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  object-fit: cover;
}
.footer-brand-text {
  display: grid;
  gap: var(--s-2);
}
.footer-name {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--on-dark);
}
.footer-tag {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 38ch;
}

.footer-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.btn-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.btn-footer-solid {
  background: var(--on-dark);
  color: var(--text);
  border: 1px solid var(--on-dark);
}
.btn-footer-solid:hover {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}

.btn-footer-outline {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid rgba(244, 239, 231, 0.28);
}
.btn-footer-outline:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}
.footer-nav a {
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.footer-nav a:hover {
  color: var(--on-dark);
}

.footer-address {
  margin: 0;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
}
.footer-map-link {
  color: var(--on-dark);
}
.footer-map-link:hover {
  color: var(--accent-soft);
}

.footer-phone-line {
  margin: var(--s-1) 0 0;
  font-size: 1rem;
}
.footer-phone-line a {
  color: var(--on-dark);
  font-weight: 500;
}
.footer-phone-line a:hover {
  color: var(--accent-soft);
}

.footer-hours {
  margin: var(--s-3) 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--on-dark-muted);
  max-width: 42ch;
}

.footer-directions-note {
  margin: var(--s-2) 0 0;
  font-size: 0.8125rem;
}
.footer-directions-note a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 122, 0.4);
  text-underline-offset: 3px;
}
.footer-directions-note a:hover {
  text-decoration-color: var(--accent-soft);
}

.footer-bar {
  display: grid;
  gap: var(--s-2);
  padding-top: var(--s-5);
  text-align: center;
}

.footer-copyright,
.footer-legal-snippet {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(244, 239, 231, 0.45);
}

@media (max-width: 767.98px) {
  .footer-main {
    justify-items: center;
  }

  .footer-col {
    text-align: center;
    justify-items: center;
  }

  .footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-tag {
    margin-inline: auto;
  }

  .footer-cta-row {
    justify-content: center;
  }

  .footer-nav ul {
    justify-items: center;
  }

  .footer-hours {
    margin-inline: auto;
  }

  .footer-address,
  .footer-phone-line {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .footer-main {
    justify-items: start;
    grid-template-columns: 1.3fr 1fr 1.1fr;
    gap: var(--s-6) var(--s-8);
    align-items: start;
  }

  .footer-col {
    text-align: left;
    justify-items: start;
  }

  .footer-brand {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .footer-tag {
    margin-inline: 0;
  }

  .footer-cta-row {
    justify-content: flex-start;
  }

  .footer-nav ul {
    justify-items: start;
  }

  .footer-hours {
    margin-inline: 0;
  }

  .footer-address,
  .footer-phone-line {
    text-align: left;
  }

  .footer-bar {
    grid-template-columns: 1fr auto;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-legal-snippet {
    justify-self: end;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding-block: var(--s-9);
  }

  .footer-main {
    gap: var(--s-6) var(--s-9);
    padding-bottom: var(--s-8);
  }
}

/* ---------- Reveal-on-scroll (subtle) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-video { display: none; }
  .hero {
    background: var(--text) url('works/image.png') center / cover no-repeat;
  }
}
