/* ============================================================
   Steady Flame — Design System
   Palette: off-white / charcoal / brushed gold
   ============================================================ */

:root {
  --color-bg:      #F9F6F1;
  --color-surface: #FFFFFF;
  --color-text:    #1C1C1C;
  --color-muted:   #6B6B6B;
  --color-accent:  #C8A96E;
  --color-accent-dark: #A88A50;
  --color-border:  #E4DDD3;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-width: 1200px;
  --radius: 4px;
  --transition: 0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}
.text-center { text-align: center; }
.section { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85em 2.2em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 246, 241, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.07); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
/* ── Logo: two-line editorial lockup ── */
.site-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  color: var(--color-text);
  text-decoration: none;
  gap: 0.05em;
}
/* Top line: "Spa & Wellness" — Playfair bold, italic gold ampersand */
.site-logo-mark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.85vw, 1.7rem);
  letter-spacing: -0.018em;
  line-height: 1;
}
.site-logo-mark em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent-dark, #A88A50);
  margin: 0 0.04em;
}
/* Bottom line: "DESIGN." — classical Roman caps (Cinzel) in brushed bronze */
.site-logo-sub {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  letter-spacing: 0.14em;
  color: var(--color-accent-dark, #A88A50);
  margin-top: 0.22em;
  padding-left: 0.12em;
  line-height: 1;
  transition: color 0.3s ease;
}
.site-logo-dot { color: var(--color-accent); margin-left: 0.02em; }

/* Hover: brighten to the brand gold */
.site-logo:hover .site-logo-sub { color: var(--color-accent); }

/* In the dark footer, slightly lighter bronze for legibility */
.site-footer .site-logo { color: #fff; margin-bottom: 1rem; }
.site-footer .site-logo-sub { color: #C8A96E; }
.site-footer .site-logo:hover .site-logo-sub { color: #e2c890; }

/* ── Nav: editorial uppercase with animated gold underline ── */
.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}
.nav-links li { position: relative; }
.nav-links a {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color var(--transition);
  padding: 0.35rem 0;
}
.nav-links a::after {
  /* Animated underline that expands from the left on hover */
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  height: 1.5px;
  width: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--reveal-ease, cubic-bezier(0.22, 1, 0.36, 1));
}
.nav-links a:hover { color: var(--color-accent); }
.nav-links a:hover::after,
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after,
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links a.active { color: var(--color-accent); }

/* Optional pill CTA — applied only when a menu item has the .nav-cta class */
.nav-links .nav-cta a {
  background: var(--color-accent);
  color: #fff;
  padding: 0.6em 1.4em;
  border-radius: 999px;
  letter-spacing: 0.18em;
  transition: background var(--transition), transform var(--transition);
}
.nav-links .nav-cta a::after { content: none; }
.nav-links .nav-cta a:hover {
  background: var(--color-accent-dark, #A88A50);
  color: #fff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-border);
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0F0B08;
  color: #fff;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  /* Subtle, slow Ken-Burns drift on the hero image */
  animation: heroDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  /* Cinematic gradient: dark at bottom for legibility, fade at top */
  background:
    linear-gradient(180deg, rgba(15,11,8,0.25) 0%, rgba(15,11,8,0.55) 55%, rgba(15,11,8,0.92) 100%),
    linear-gradient(135deg, rgba(0,0,0,0.30) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-content {
  max-width: 720px;
}
.hero-content .eyebrow {
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.hero-content .eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.25rem;
  height: 1px;
  background: var(--color-accent);
}
.hero-content h1 {
  margin-bottom: 1.75rem;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-content p {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@keyframes heroDrift {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.06) translate(1.5%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}

/* ── Category Grid ── */
.categories-section { background: var(--color-surface); }
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-top: 0.5rem; }
.section-header p { color: var(--color-muted); margin-top: 0.75rem; font-size: 1.05rem; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
@media (max-width: 1200px) { .category-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (max-width: 800px)  { .category-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .category-grid { grid-template-columns: 1fr; gap: 1rem; } }

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  cursor: pointer;
  background: #1c1410;
  text-decoration: none;
  display: block;
  isolation: isolate;
}
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--reveal-ease, ease), filter 0.7s ease;
  z-index: 0;
}
.category-card:hover img { transform: scale(1.06); filter: brightness(0.85); }

.category-card::after {
  /* Always-on subtle bottom-up scrim so text is legible */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(15,11,8,0.92) 0%,
    rgba(15,11,8,0.55) 35%,
    rgba(15,11,8,0.05) 70%);
  z-index: 1;
  transition: opacity 0.4s ease;
}

.category-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1.25rem, 2vw, 1.85rem);
  color: #fff;
  z-index: 2;
  transition: transform var(--transition);
}
.category-card:hover .category-card-body { transform: translateY(-4px); }
.category-card-num {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.4rem;
}
.category-card-body h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  color: #fff;
  letter-spacing: -0.005em;
  margin-bottom: 0.35rem;
  text-wrap: balance;
}
.category-card-body p {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}
.category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, gap 0.25s ease;
}
.category-link span { transition: transform 0.25s ease; }
.category-card:hover .category-link { opacity: 1; transform: translateY(0); gap: 0.7rem; }


/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

/* Editorial image-overlay product card */
.product-card {
  position: relative;
  display: block;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  background: #1c1410;
  isolation: isolate;
  color: #fff;
}
.product-card-image,
.product-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.product-card-image img {
  object-fit: cover;
  transition: transform 0.7s var(--reveal-ease, ease), filter 0.7s ease;
}
.product-card:hover .product-card-image img {
  transform: scale(1.05);
  filter: brightness(0.88);
}

/* Bottom-up scrim — always on so text is legible against any photo */
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(15,11,8,0.92) 0%,
    rgba(15,11,8,0.55) 35%,
    rgba(15,11,8,0.05) 70%);
  z-index: 1;
  pointer-events: none;
}

.product-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1.25rem, 2vw, 1.85rem);
  z-index: 2;
  transition: transform var(--transition);
}
.product-card:hover .product-card-overlay { transform: translateY(-4px); }

.product-card-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.55rem;
}
.product-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  letter-spacing: -0.012em;
  line-height: 1.1;
  color: #fff;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.55em;
  row-gap: 0.15em;
}
.product-card-name { /* model name (e.g. "Madra") — inherits parent size */ }
.product-card-brand {
  font-family: 'Cormorant Garamond', var(--font-heading), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.6em;        /* relative to the title — gracefully scales */
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

/* Single product page — same hierarchy as cards */
.product-info h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.55em;
  row-gap: 0.15em;
}
.product-info .product-brand {
  font-family: 'Cormorant Garamond', var(--font-heading), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.42em;
  letter-spacing: 0.02em;
  color: var(--color-muted);
}

/* "View →" pip in the top-right that appears on hover */
.product-card-cta {
  position: absolute;
  top: clamp(1.1rem, 1.8vw, 1.5rem);
  right: clamp(1.1rem, 1.8vw, 1.5rem);
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.product-card-cta .arrow { display: inline-block; transition: transform 0.3s ease; }
.product-card:hover .product-card-cta { opacity: 1; transform: translateX(0); }
.product-card:hover .product-card-cta .arrow { transform: translateX(3px); }

/* ── Single Product ── */
.product-single { padding-block: 4rem; }
.product-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.product-gallery { position: sticky; top: 90px; }
@media (max-width: 768px) {
  .product-single-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* On a single-column stack, the gallery must scroll normally — sticky pins it
     and lets the info text scroll up over it, causing overlap. */
  .product-gallery { position: static; top: auto; }
}
.product-gallery-main {
  aspect-ratio: 1;
  background: #e8e2d9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.product-gallery-thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
  border: 2px solid transparent;
}
.product-gallery-thumbs img.active,
.product-gallery-thumbs img:hover { opacity: 1; border-color: var(--color-accent); }
.product-info .eyebrow { margin-bottom: 0.75rem; }
.product-info h1 { margin-bottom: 1rem; }
.product-info .product-desc { color: var(--color-muted); margin-bottom: 2rem; }
.product-specs { margin-bottom: 2rem; }
.product-specs h4 { margin-bottom: 0.75rem; }
.spec-list { list-style: none; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.spec-list li span:first-child { color: var(--color-muted); }
.spec-list li span:last-child { font-weight: 500; }
.product-cta { display: flex; flex-direction: column; gap: 1rem; }
.product-cta .btn { text-align: center; }

/* ── About Strip ── */
.about-strip {
  background: #1C1C1C;
  color: #fff;
}
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) { .about-strip-inner { grid-template-columns: 1fr; gap: 2rem; } }
.about-strip .eyebrow { color: var(--color-accent); }
.about-strip h2 { margin-top: 0.5rem; margin-bottom: 1.25rem; }
.about-strip p { color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.about-image {
  aspect-ratio: 4/3;
  background: #2a2a2a;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.stats-row { display: flex; gap: 2.5rem; margin-top: 2rem; }
.stat .stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-accent);
  font-weight: 700;
}
.stat .stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #1a1410 0%, #2d2218 100%);
  color: #fff;
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1.1rem; }

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--color-muted); margin-bottom: 2rem; }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}
.contact-detail-text strong { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.contact-detail-text span { color: var(--color-muted); font-size: 0.9rem; }

/* CF7 form overrides */
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition);
  margin-bottom: 1rem;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--color-accent); outline: none; }
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-form .wpcf7-submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.9rem 2.5rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
  width: 100%;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--color-accent-dark); }

/* ── Archive / Catalog page ── */
.archive-header { padding-block: 1rem; border-bottom: 1px solid var(--color-border); margin-bottom: 0; }
.archive-header .eyebrow { margin-bottom: 0.2rem; }
/* Symmetric gap below the divider; keeps the first product row in view on landing */
.archive-header + .section { padding-top: 2rem; }
/* ── Category navigation (icon tiles) ── */
.category-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  text-align: center;
  padding: 1.5rem 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.cat-tile:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(28, 28, 28, 0.07);
}
.cat-tile.active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}
.cat-tile-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 169, 110, 0.13);
  color: var(--color-accent);
  transition: background var(--transition), color var(--transition);
}
.cat-tile-icon svg { width: 27px; height: 27px; }
.cat-tile.active .cat-tile-icon { background: rgba(255, 255, 255, 0.2); color: #fff; }
.cat-tile-name { font-size: 0.95rem; font-weight: 600; line-height: 1.25; }
.cat-tile-count {
  font-size: 0.7rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cat-tile.active .cat-tile-count { color: rgba(255, 255, 255, 0.8); }
@media (max-width: 560px) {
  .category-nav { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .cat-tile { padding: 1.15rem 0.6rem 1rem; }
}

/* ── Footer ── */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.6);
  padding-block: 3.5rem 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand .site-logo { font-size: 1.2rem; color: #fff; display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--color-accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--color-accent); }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, #1a1410 0%, #2d2218 100%);
  color: #fff;
  padding-block: 4rem;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.82rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--color-accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin-inline: 0.4rem; }

/* ════════════════════════════════════════════════════════
   Journal (blog)
   ════════════════════════════════════════════════════════ */
.page-hero p { color: rgba(255,255,255,0.72); margin-top: 0.75rem; max-width: 540px; margin-inline: auto; }

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
@media (max-width: 900px) { .journal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .journal-grid { grid-template-columns: 1fr; } }

.journal-card { display: flex; flex-direction: column; }
.journal-card-image {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1c1410;
  margin-bottom: 1.25rem;
}
.journal-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--reveal-ease, ease); }
.journal-card:hover .journal-card-image img { transform: scale(1.05); }
.journal-card-noimg {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-family: var(--font-heading); color: var(--color-accent); opacity: 0.5; font-size: 0.9rem;
}
.journal-meta {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-muted); display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem;
}
.journal-cat { color: var(--color-accent); font-weight: 600; }
.journal-dot { color: var(--color-accent-dark, #A88A50); }
.journal-card-title {
  font-family: var(--font-heading); font-size: 1.4rem; line-height: 1.2;
  letter-spacing: -0.01em; margin-bottom: 0.6rem;
}
.journal-card-title a { color: var(--color-text); transition: color var(--transition); }
.journal-card-title a:hover { color: var(--color-accent-dark, #A88A50); }
.journal-card-excerpt { color: var(--color-muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 1rem; }
.journal-readmore {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-accent); display: inline-flex; gap: 0.45rem; align-items: center;
  transition: gap var(--transition);
}
.journal-readmore:hover { gap: 0.75rem; }

/* Single article */
.journal-hero-image { margin-top: -1px; }
.journal-hero-image img { width: 100%; height: auto; display: block; border-radius: var(--radius); margin-top: 2.5rem; }
.journal-single .page-hero .eyebrow {
  display: inline-flex; gap: 0.6rem; align-items: center; justify-content: center;
  color: var(--color-accent); margin-bottom: 1rem;
}
.journal-body { font-size: 1.08rem; line-height: 1.8; color: var(--color-text); }
.journal-body p { margin: 0 0 1.4rem; color: #3a342d; }
.journal-body h2 { font-family: var(--font-heading); font-size: 1.7rem; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.journal-body h3 { font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-accent-dark, #A88A50); margin: 2rem 0 0.75rem; }
.journal-body ul, .journal-body ol { margin: 0 0 1.4rem 1.3rem; color: #3a342d; }
.journal-body li { margin-bottom: 0.5rem; }
.journal-body blockquote {
  border-left: 3px solid var(--color-accent); padding: 0.5rem 0 0.5rem 1.5rem; margin: 2rem 0;
  font-family: var(--font-heading); font-style: italic; font-size: 1.3rem; color: var(--color-text);
}
.journal-body a { color: var(--color-accent-dark, #A88A50); border-bottom: 1px solid currentColor; }
.journal-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1.5rem 0; }

/* ── Gallery media (video + images share the main stage) ── */
.product-gallery-main { position: relative; }
.gallery-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}
.gallery-media.active { opacity: 1; visibility: visible; position: relative; }

/* Thumbnail buttons (image + video) */
.product-gallery-thumbs .thumb {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: #e8e2d9;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: opacity var(--transition), border-color var(--transition);
}
.product-gallery-thumbs .thumb:hover,
.product-gallery-thumbs .thumb.active { opacity: 1; border-color: var(--color-accent); }

/* Play badge on the video thumbnail */
.thumb-video .thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,11,8,0.30);
  border-radius: inherit;
}
.thumb-video .thumb-play::before {
  content: "\25B6";              /* ▶ */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding-left: 2px;            /* optically center the triangle */
  border-radius: 50%;
  background: rgba(200,169,110,0.95);
  color: #fff;
  font-size: 0.7rem;
}

/* ════════════════════════════════════════════════════════
   Mobile & touch refinements (structural sweep 2026-06-13)
   ════════════════════════════════════════════════════════ */

/* About-strip stats: keep them from cramping/overflowing on small screens */
@media (max-width: 768px) {
  .stats-row { gap: 1.75rem; flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .stats-row { gap: 1.25rem 1.75rem; }
  .stat .stat-num { font-size: 1.9rem; }
}

/* On touch devices (no hover), reveal the call-to-action affordances that
   would otherwise only appear on mouse hover — so taps feel intentional. */
@media (hover: none) {
  .category-link,
  .product-card-cta {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Contact form consent (GDPR) ── */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.25rem 0 1.25rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  width: auto;
  margin: 0.2rem 0 0;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}
.form-consent a { color: var(--color-accent-dark, #A88A50); border-bottom: 1px solid currentColor; }

/* ── Legal document page (privacy / cookie policy) ── */
.legal-doc { font-size: 0.98rem; line-height: 1.75; }
.legal-doc h2 { font-family: var(--font-heading); font-size: 1.5rem; margin: 2.25rem 0 0.9rem; }
.legal-doc p { color: var(--color-text); margin-bottom: 1rem; }
.legal-doc ul { margin: 0 0 1.2rem 1.3rem; }
.legal-doc li { margin-bottom: 0.5rem; }
.legal-doc a { color: var(--color-accent-dark, #A88A50); border-bottom: 1px solid currentColor; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9rem; }
.legal-doc th, .legal-doc td { text-align: left; padding: 0.7rem 0.85rem; border: 1px solid var(--color-border); vertical-align: top; }
.legal-doc th { background: #f3ede2; font-weight: 600; }

/* ── Contact form notices (inquiry submit feedback) ── */
.form-notice { padding: 0.9rem 1.1rem; border-radius: var(--radius, 6px); margin-bottom: 1.25rem; font-size: 0.92rem; line-height: 1.5; }
.form-notice-ok { background: #eef5ec; border: 1px solid #b7d3ad; color: #2f5328; }
.form-notice-err { background: #fbecea; border: 1px solid #e2b3ab; color: #7a2e23; }
.form-notice a { color: inherit; text-decoration: underline; }

/* ── Custom design: bespoke-solution note callout ── */
.custom-note {
  margin: 1.75rem 0;
  padding: 1.1rem 1.3rem;
  background: #f3ede2;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.custom-note h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent-dark); margin-bottom: 0.4rem; }
.custom-note p { font-size: 0.92rem; line-height: 1.6; color: var(--color-text); margin: 0; }

/* ── Custom-design process infographic ── */
.cd-process { background: var(--color-bg); }
.cd-process-eyebrow { text-align: center; }
.cd-process-title { text-align: center; margin: 0.4rem 0 2.5rem; }
.cd-steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem 1.25rem; }
.cd-steps::before { content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 1px; background: var(--color-border); z-index: 0; }
.cd-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.7rem; }
.cd-step-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--color-bg); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-accent); }
.cd-step-icon svg { width: 30px; height: 30px; }
.cd-step-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
.cd-step-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--color-text); line-height: 1.2; }
.cd-step-text { font-size: 0.85rem; line-height: 1.5; color: var(--color-muted); max-width: 210px; }
@media (max-width: 760px) {
  .cd-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .cd-steps::before { display: none; }
}
@media (max-width: 420px) { .cd-steps { grid-template-columns: 1fr; } }

/* ── Social links (footer + header) ── */
.social-links { display: flex; align-items: center; gap: 0.55rem; }
.social-links a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid transparent; transition: color var(--transition), border-color var(--transition), transform var(--transition); }
.social-links svg { width: 18px; height: 18px; }
.footer-social { margin-top: 1.3rem; }
.footer-social a { border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.7); }
.footer-social a:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px); }
/* header: rendered as the last nav menu item */
.nav-social-item a { color: var(--color-text); padding: 0.35rem 0; }
.nav-social-item a::after { content: none !important; }
.nav-social-item a:hover { color: var(--color-accent); }
.nav-social-item svg { width: 20px; height: 20px; vertical-align: middle; }
@media (max-width: 768px) {
  .nav-social-item a { display: inline-flex; padding: 1rem 2rem; }
}

/* Colourful brand-icon variant (e.g. footer Instagram) — drop the bordered circle */
.social-links--color a { width: auto; height: auto; border: none; }
.social-links--color a:hover { transform: translateY(-2px); }
.social-links--color svg { width: 30px; height: 30px; }

/* ── Custom Designs archive — 2×2 ambient gallery ── */
.cd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.6rem); max-width: 924px; margin-inline: auto; }
@media (max-width: 700px) { .cd-grid { grid-template-columns: 1fr; } }
.cd-grid .product-card-image video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.7s ease, transform 0.7s var(--reveal-ease, ease);
}
.cd-grid .product-card-image video.playing { opacity: 1; }
.cd-grid .product-card:hover .product-card-image video { transform: scale(1.05); }
.cd-tag {
  position: absolute; z-index: 2;
  top: clamp(1.1rem, 1.8vw, 1.5rem); left: clamp(1.1rem, 1.8vw, 1.5rem);
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,0.30); backdrop-filter: blur(2px);
  padding: 0.32em 0.75em; border-radius: 99px;
}

/* Adaptive gallery (per-post) — viewer resizes to each media's natural shape, nothing cropped */
.product-gallery--adaptive .product-gallery-main { background: #f2ede5; }
.product-gallery--adaptive .gallery-media { object-fit: contain; }

/* Hero background video — sits over the poster image, under the scrim; fades in when ready */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero-video.is-playing { opacity: 1; }

/* Mobile: shift the hero poster focal point ~10% to the right (better crop on portrait screens) */
@media (max-width: 768px) {
  .hero-bg { background-position: 60% center; }
}

/* ════════════════════════════════════════════════════════
   About page
   ════════════════════════════════════════════════════════ */
.about-hero p { max-width: 640px; }

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-split-text .eyebrow { color: var(--color-accent); }
.about-split-text h2 { margin: 0.5rem 0 1.25rem; }
.about-split-text p { color: var(--color-muted); margin-bottom: 1rem; line-height: 1.7; }
.about-split-media {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-border);
}
.about-split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; gap: 2rem; }
  .about-split-media { aspect-ratio: 16/10; order: -1; }
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.value-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.value-card h3 { font-size: 1.12rem; margin: 0 0 0.5rem; }
.value-card p { color: var(--color-muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* For Brands & Manufacturers */
.collab { background: #1C1C1C; color: #fff; }
.collab-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 840px) { .collab-inner { grid-template-columns: 1fr; gap: 2.5rem; } }
.collab-text .eyebrow { color: var(--color-accent); }
.collab-text h2 { margin: 0.5rem 0 1.25rem; }
.collab-text > p { color: rgba(255,255,255,0.72); line-height: 1.7; margin-bottom: 1.5rem; }
.collab-points { list-style: none; margin: 0; padding: 0; }
.collab-points li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.8rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.5;
}
.collab-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}
.collab-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,169,110,0.35);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}
.collab-card-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.9rem;
}
.collab-email {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--color-accent);
  word-break: break-word;
  margin-bottom: 1rem;
}
.collab-email:hover { color: #fff; }
.collab-card-note { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.6; margin: 0 0 1.5rem; }

/* Collaborate page: light/beige treatment of the collaboration band */
.collab--beige { background: var(--color-bg); color: var(--color-text); }
.collab--beige .collab-text h2 { color: var(--color-text); }
.collab--beige .collab-text > p { color: var(--color-muted); }
.collab--beige .collab-points li { color: var(--color-text); }
.collab--beige .collab-card {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 10px 30px rgba(28,28,28,0.06);
}
.collab--beige .collab-card-label { color: var(--color-muted); }
.collab--beige .collab-card-note { color: var(--color-muted); }
