/* ============================================
   HEARTHWOOD — Floor Installation & Refinishing
   Warm, premium, craft-focused identity
   ============================================ */

:root {
  /* Color — warm wood, cream, deep walnut */
  --color-bg: #faf6f0;          /* warm cream */
  --color-bg-alt: #f3ece1;      /* light oat */
  --color-surface: #ffffff;
  --color-ink: #1f1813;         /* near-black walnut */
  --color-ink-soft: #4a3f33;    /* warm graphite */
  --color-muted: #7a6d5e;       /* taupe text */
  --color-line: #e3d9c8;        /* hairline */
  --color-accent: #8b4513;      /* saddle / chestnut */
  --color-accent-deep: #5e2e0c; /* deep walnut */
  --color-gold: #b8893f;        /* aged brass */

  /* Type scale */
  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --text-sm: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  --text-base: 1rem;
  --text-lg: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --text-2xl: clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  --text-hero: clamp(2.6rem, 1.6rem + 3.6vw, 5.2rem);

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

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(31, 24, 19, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 24, 19, 0.08);
  --shadow-lg: 0 24px 64px rgba(31, 24, 19, 0.14);

  --max-w: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

h2 { font-size: var(--text-2xl); font-weight: 500; }
h3 { font-size: var(--text-xl); font-weight: 500; }
h4 { font-size: var(--text-lg); font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: 0; }

p { color: var(--color-ink-soft); }

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

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-8); }
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.header.scrolled { border-bottom-color: var(--color-line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.logo svg { color: var(--color-accent); }
.logo-img { height: 44px; width: auto; display: block; }
@media (max-width: 480px) { .logo-img { height: 36px; } }

/* Brand lockup (SVG mark + wordmark) */
.brand-lockup { gap: 12px; text-decoration: none; }
.brand-lockup .brand-mark { flex-shrink: 0; display:block; }
.brand-lockup .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-lockup .brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  color: var(--color-ink);
}
.brand-lockup .brand-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 5px;
}
@media (max-width: 480px) {
  .brand-lockup .brand-mark { width: 36px; height: 36px; }
  .brand-lockup .brand-name { font-size: 1.15rem; }
  .brand-lockup .brand-tag { font-size: 0.55rem; letter-spacing: 0.24em; }
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--color-accent); }

.nav-cta {
  display: none;
  padding: 0.7rem 1.4rem;
  background: var(--color-ink);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover { background: var(--color-accent-deep); transform: translateY(-1px); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--color-ink);
  transition: 0.3s;
}

@media (min-width: 880px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--color-bg);
  padding: var(--space-12) var(--space-6);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  z-index: 90;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-6); }
.mobile-menu a { font-family: 'Cormorant Garamond', serif; font-size: 2rem; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-16) 0 calc(var(--space-20) + 120px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.05);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(31,24,19,0.78) 0%, rgba(31,24,19,0.55) 50%, rgba(31,24,19,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.hero h1 {
  font-size: var(--text-hero);
  color: #fdf8f0;
  font-weight: 400;
  line-height: 1.02;
  margin: var(--space-6) 0 var(--space-6);
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  color: #e8c992;
  font-weight: 400;
}

.hero-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.2rem);
  color: rgba(232, 201, 146, 0.95);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 var(--space-8);
  max-width: 28ch;
}

.hero-sub { margin-top: 0; }

.hero .eyebrow { color: #e8c992; }
.hero .eyebrow::before { background: #e8c992; }

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(253, 248, 240, 0.85);
  max-width: 580px;
  margin-bottom: var(--space-10);
  line-height: 1.55;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 1rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: #fdf8f0;
  border-color: rgba(253, 248, 240, 0.4);
}
.btn-ghost:hover { background: rgba(253, 248, 240, 0.1); border-color: #fdf8f0; }

.btn-dark {
  background: var(--color-ink);
  color: var(--color-bg);
}
.btn-dark:hover { background: var(--color-accent-deep); }

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: var(--color-bg); }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.hero-stats {
  position: absolute;
  bottom: var(--space-8);
  left: 0;
  right: 0;
  z-index: 2;
}

.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  padding: var(--space-6) var(--space-8);
  background: rgba(31, 24, 19, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(253, 248, 240, 0.12);
  border-radius: var(--radius);
  color: #fdf8f0;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  font-weight: 500;
  color: #e8c992;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 248, 240, 0.7);
}

@media (min-width: 768px) {
  .hero-stats-inner { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  background: var(--color-ink);
  color: var(--color-bg);
  padding: var(--space-6) 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(253, 248, 240, 0.08);
}

.marquee-track {
  display: flex;
  gap: var(--space-16);
  animation: scroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: #e8c992;
}

.marquee .dot {
  color: var(--color-accent);
  font-style: normal;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ============================================
   SECTIONS
   ============================================ */
section { padding: var(--space-24) 0; }

@media (min-width: 768px) {
  section { padding: var(--space-32) 0; }
}

.section-head {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
  max-width: 880px;
}

.section-head h2 em {
  font-style: italic;
  color: var(--color-accent);
}

.section-head .lead {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 620px;
  line-height: 1.5;
}

@media (min-width: 880px) {
  .section-head.split {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
    gap: var(--space-16);
    align-items: end;
  }
  .section-head.split .lead { justify-self: end; max-width: 380px; }
}

/* Intro / about strip */
.intro {
  background: var(--color-bg-alt);
  position: relative;
}

.intro-grid {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 880px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
    align-items: center;
  }
}

.intro-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.intro-image img { width: 100%; height: 100%; object-fit: cover; }

.intro-text h2 { margin-bottom: var(--space-6); }
.intro-text p { font-size: var(--text-lg); line-height: 1.65; margin-bottom: var(--space-6); color: var(--color-ink-soft); }

.signature {
  margin-top: var(--space-8);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--color-accent);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .service-card h3 { font-size: 1.35rem; } .service-body { padding: var(--space-6); } }

.service-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.service-card:hover .service-img img { transform: scale(1.06); }

.service-body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.service-card h3 { margin-bottom: var(--space-3); font-size: 1.6rem; }
.service-card p { font-size: var(--text-sm); color: var(--color-muted); flex: 1; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  background: var(--color-bg-alt);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
}

/* ============================================
   HEALTHY HOME — GreenGuard / Dust-Free
   ============================================ */
.healthy {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  position: relative;
}

.healthy-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .healthy-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

.healthy-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-12) var(--space-10);
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.healthy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-line);
}

.badge svg { width: 32px; height: 32px; }

.healthy-card h3 {
  font-size: 1.7rem;
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.healthy-card > p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-6);
}

.healthy-card strong {
  color: var(--color-accent);
  font-weight: 600;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15em;
}

.healthy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
}

.healthy-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  line-height: 1.5;
}

.healthy-list li span {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 1px;
}

.healthy-strip {
  margin-top: var(--space-12);
  padding: var(--space-8);
  background: var(--color-ink);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(232, 201, 146, 0.4);
  border-radius: 999px;
  color: #e8c992;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.chip::before {
  content: '✦';
  color: var(--color-accent);
  font-size: 0.9rem;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  background: var(--color-ink);
  color: var(--color-bg);
}

.process h2, .process .section-head h2 { color: var(--color-bg); }
.process .section-head .lead { color: rgba(253, 248, 240, 0.7); }
.process .eyebrow { color: #e8c992; }
.process .eyebrow::before { background: #e8c992; }

.process-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 720px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(253, 248, 240, 0.15);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--space-6);
  right: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-style: italic;
  color: var(--color-accent);
  opacity: 0.85;
  line-height: 1;
}

.step h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #fdf8f0;
  margin-bottom: var(--space-4);
  max-width: 80%;
}

.step p {
  color: rgba(253, 248, 240, 0.65);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: var(--color-bg-alt);
}

.gallery-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

/* Filter buttons */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: var(--space-8);
  margin-bottom: var(--space-10);
}
.filter-btn {
  background: transparent;
  border: 1px solid rgba(31, 24, 19, 0.2);
  color: var(--color-ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--color-ink);
  background: rgba(31, 24, 19, 0.04);
}
.filter-btn.is-active {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}

/* Categorized gallery grid */
.gallery-grid-flex {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-ink);
  aspect-ratio: 4 / 3;
  display: block;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-card.is-hidden {
  display: none;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5) var(--space-6);
  color: #fff;
  background: linear-gradient(0deg, rgba(31,24,19,0.9), rgba(31,24,19,0) 80%);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.4s var(--ease);
}
.gallery-card:hover .caption,
.gallery-card:focus-visible .caption {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 480px) {
  .gallery-card .caption { opacity: 1; transform: none; }
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
  }
  .g1 { grid-column: span 4; grid-row: span 2; }
  .g2 { grid-column: span 2; grid-row: span 1; }
  .g3 { grid-column: span 2; grid-row: span 1; }
  .g4 { grid-column: span 2; grid-row: span 2; }
  .g5 { grid-column: span 2; grid-row: span 2; }
  .g6 { grid-column: span 2; grid-row: span 2; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-ink);
  aspect-ratio: 4 / 3;
}

@media (min-width: 720px) {
  .gallery-item { aspect-ratio: auto; height: 100%; }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  color: #fff;
  background: linear-gradient(0deg, rgba(31,24,19,0.85), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.4s var(--ease);
}

.gallery-item:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

.caption .label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8c992;
  margin-bottom: 4px;
}

.caption .title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--color-bg);
}

.test-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .test-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .test-grid { grid-template-columns: repeat(4, 1fr); }
}

.testimonial {
  padding: var(--space-8);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  color: var(--color-accent);
  opacity: 0.2;
  line-height: 1;
}

.testimonial blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--color-ink);
  margin-bottom: var(--space-6);
  font-style: italic;
  font-weight: 400;
}

.testimonial .who {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
}

.who-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Cormorant Garamond', serif;
}

.who-name { font-weight: 600; font-size: var(--text-sm); }
.who-where { font-size: var(--text-xs); color: var(--color-muted); }

.stars { color: var(--color-gold); margin-bottom: var(--space-4); letter-spacing: 2px; }

/* ============================================
   CTA STRIP
   ============================================ */
.cta-strip {
  background: var(--color-accent-deep);
  color: #fdf8f0;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 50 Q25 40 50 50 T100 50' stroke='%23ffffff' stroke-opacity='0.05' fill='none'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-grid {
  position: relative;
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 880px) {
  .cta-grid { grid-template-columns: 1.5fr auto; gap: var(--space-12); }
}

.cta-strip h2 { color: #fdf8f0; font-size: var(--text-2xl); }
.cta-strip h2 em { color: #e8c992; font-style: italic; }
.cta-strip p { color: rgba(253, 248, 240, 0.8); margin-top: var(--space-4); font-size: var(--text-lg); }

.cta-strip .btn-primary { background: #fdf8f0; color: var(--color-accent-deep); }
.cta-strip .btn-primary:hover { background: #e8c992; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-ink);
  color: rgba(253, 248, 240, 0.7);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-16);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); }
}

.footer h5 {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8c992;
  margin-bottom: var(--space-6);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.footer-brand .logo { color: #fdf8f0; margin-bottom: var(--space-6); }
.footer-brand p { color: rgba(253, 248, 240, 0.6); font-size: var(--text-sm); max-width: 320px; line-height: 1.6; }
.footer-logo { display:flex; align-items:center; gap: var(--space-4); margin-bottom: var(--space-6); }

.footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer ul a { font-size: var(--text-sm); transition: color 0.2s; }
.footer ul a:hover { color: #e8c992; }

.footer-bar {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(253, 248, 240, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(253, 248, 240, 0.5);
}

/* ============================================
   ANIMATIONS — reveal on scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   BEFORE / AFTER SLIDER
   ============================================ */
.beforeafter {
  background: var(--color-bg-alt);
  padding: var(--space-section) 0;
}
.ba-slider {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: var(--space-12) auto 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(31,24,19,0.4);
  background: var(--color-ink);
  user-select: none;
  cursor: ew-resize;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-before-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
  will-change: width;
}
.ba-before-wrap .ba-before {
  width: 1100px;
  max-width: none;
  height: 100%;
  /* Anchor to left so image doesn't shift while wrapper resizes */
}
@media (min-width: 1101px) {
  .ba-before-wrap .ba-before { width: 100vw; }
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.95);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  will-change: left;
}
.ba-handle-line {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.95);
}
.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
  border-radius: 50%;
  background: var(--color-cream);
  border: 2px solid var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.ba-handle-knob svg { width: 28px; height: 28px; }
.ba-label {
  position: absolute;
  top: var(--space-4);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 14px;
  background: rgba(31,24,19,0.85);
  color: var(--color-cream);
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.ba-label-before { left: var(--space-4); }
.ba-label-after  { right: var(--space-4); }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  outline: none;
  opacity: 0;
}
.ba-range::-webkit-slider-thumb { appearance: none; width: 56px; height: 100%; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 56px; height: 100%; border:0; background: transparent; cursor: ew-resize; }

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: var(--color-bg);
  padding: var(--space-section) 0;
}
.faq-list {
  max-width: 880px;
  margin: var(--space-12) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--color-cream);
  border: 1px solid rgba(94,46,12,0.12);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover { border-color: rgba(94,46,12,0.25); }
.faq-item[open] {
  border-color: var(--color-accent);
  box-shadow: 0 6px 24px -8px rgba(139,69,19,0.2);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-ink-soft, #5d4f43);
  line-height: 1.7;
  font-size: 1rem;
  max-width: 70ch;
}

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--color-ink);
  border-radius: 999px;
  padding: 8px;
  z-index: 999;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.45);
  gap: 6px;
  align-items: stretch;
}
.mobile-cta-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-cta-btn span { color: #fff; opacity: 0.95; }
.mobile-cta-btn svg { stroke: #fff; opacity: 0.95; }
.mobile-cta-btn svg { width: 20px; height: 20px; }
.mobile-cta-btn:active { background: rgba(255,255,255,0.08); }
.mobile-cta-primary {
  background: var(--color-accent);
  color: #fff;
}
.mobile-cta-primary:active { background: var(--color-walnut, #5e2e0c); }
@media (max-width: 768px) {
  .mobile-cta { display: flex; }
  /* Add bottom padding to body so footer doesn't hide behind sticky bar */
  body { padding-bottom: 84px; }
}

/* ============================================
   PRO-GRADE EQUIPMENT
   ============================================ */
.equipment {
  background: var(--color-bg-alt);
  position: relative;
}

.equipment-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-10);
}

@media (min-width: 640px)  { .equipment-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px)  { .equipment-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .equipment-grid { grid-template-columns: repeat(6, 1fr); gap: var(--space-4); } }

.equipment-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  margin: 0;
}

.equipment-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.equipment-img {
  background: #ffffff;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

@media (min-width: 640px)  { .equipment-img { height: 240px; } }
@media (min-width: 1200px) { .equipment-img { height: 200px; } }

.equipment-item figcaption {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.equipment-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.equipment-item:hover .equipment-img img {
  transform: scale(1.05);
}

.equipment-item figcaption.cap-inner-fallback { /* deprecated */ }
.equipment-item > figcaption {
  padding: var(--space-4);
  text-align: center;
}

.equipment-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.2;
  margin-bottom: 4px;
}

.equipment-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
