/* ABOUTME: Shared Studio Light design system for LuxDNC homepage variants.
   ABOUTME: Mirrors the motion grammar and craft discipline of DFW Custom Sauna's Midnight Copper,
   ABOUTME: inverted for a light parent-brand read. Mobile-first. Zero border-radius. */

/* ═══════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════ */
:root {
  /* Studio Light — cream, ink, bronze */
  --bg:          #F5F1EA;
  --bg-up:       #EFE9DE;
  --bg-surface:  #FAF6EF;
  --surface:     #FFFFFF;
  --ink:         #1A1A1C;
  --ink-dim:     rgba(26, 26, 28, 0.72);
  --ink-muted:   rgba(26, 26, 28, 0.55);
  --ink-ghost:   rgba(26, 26, 28, 0.28);
  --bronze:      #8A5A3B;
  --bronze-br:   #A67149;
  --bronze-dim:  #6E462B;
  --bronze-glow: rgba(138, 90, 59, 0.10);
  --stone:       #6B6560;
  --border:      #E5DFD4;
  --hairline:    #D7CFBF;

  /* Type scale — fluid, mobile-first */
  --fs-xs:   0.72rem;
  --fs-sm:   0.82rem;
  --fs-base: 1rem;
  --fs-lg:   clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --fs-xl:   clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --fs-2xl:  clamp(1.375rem, 1.15rem + 1vw, 1.625rem);
  --fs-3xl:  clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --fs-4xl:  clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem);
  --fs-5xl:  clamp(2.75rem, 1.6rem + 5.2vw, 5rem);
  --fs-6xl:  clamp(3.25rem, 1.8rem + 7vw, 6.75rem);

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --sp-section: 4rem;

  /* Layout */
  --max-w:       1280px;
  --max-narrow:  800px;

  /* Motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:      180ms;
  --t-med:       320ms;
  --t-slow:      600ms;

  /* Chrome */
  --nav-h:       64px;
  --call-bar-h:  64px;
}

@media (min-width: 768px) {
  :root {
    --sp-section: 5rem;
    --nav-h: 72px;
  }
}
@media (min-width: 1200px) {
  :root {
    --sp-section: 6.5rem;
    --nav-h: 76px;
  }
}

/* ═══════════════════════════════════════
   RESET
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Scroll progress indicator uses this */
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: var(--fs-base);
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Keep room for mobile call bar */
  padding-bottom: var(--call-bar-h);
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}
img, picture, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; }

p { max-width: 68ch; color: var(--ink-dim); hanging-punctuation: first last; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.005em;
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

.label {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}

blockquote {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: var(--fs-2xl);
  border-left: 1px solid var(--bronze);
  padding-left: var(--sp-lg);
  line-height: 1.38;
  color: var(--ink);
  text-indent: -0.4em; /* hanging punctuation on opening quote */
  hanging-punctuation: first allow-end;
}

::selection { background: var(--bronze); color: var(--bg); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
html { scrollbar-width: thin; scrollbar-color: var(--bronze) var(--bg); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--hairline); }
::-webkit-scrollbar-thumb:hover { background: var(--bronze); }

/* ═══════════════════════════════════════
   SECTION RHYTHM — cream / white / cream alternation with noise grain
   ═══════════════════════════════════════ */
.section {
  position: relative;
  padding: var(--sp-section) var(--sp-md);
}
.section--bg { background: var(--bg); color: var(--ink); }
.section--surface { background: var(--surface); color: var(--ink); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section--up { background: var(--bg-up); color: var(--ink); }
.section--bg::after, .section--surface::after, .section--up::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.035;
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
.section > * { position: relative; z-index: 1; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-md); }
@media (min-width: 768px) { .container { padding: 0 var(--sp-xl); } }

/* ═══════════════════════════════════════
   NAV (shared)
   ═══════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-md);
  background: rgba(245, 241, 234, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 768px) { .nav { padding: 0 var(--sp-xl); } }
.nav__mark {
  font-family: 'Libre Baskerville', serif;
  font-size: 15px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
}
.nav__links {
  display: none;
  gap: 32px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.nav__links a { color: var(--ink); transition: color var(--t-fast) var(--ease); }
.nav__links a:hover { color: var(--bronze); }
@media (min-width: 960px) { .nav__links { display: flex; } }
.nav__cta {
  display: none;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bronze);
  border: 1px solid var(--bronze);
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.nav__cta:hover { background: var(--bronze); color: var(--bg); }
@media (min-width: 960px) { .nav__cta { display: inline-block; } }
.nav__menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
@media (min-width: 960px) { .nav__menu { display: none; } }
.nav__menu::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
  box-shadow: 0 4px 0 var(--ink), 0 -4px 0 var(--ink);
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--bronze);
  box-shadow: 0 6px 24px var(--bronze-glow);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  z-index: 0;
}
.btn--outline::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
  z-index: -1;
}
.btn--outline:hover {
  color: var(--bg);
  border-color: var(--bronze);
}
.btn--outline:hover::before { transform: scaleX(1); }
.btn__arrow { display: inline-block; transition: transform var(--t-med) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  transition: color var(--t-fast) var(--ease);
}
.link-inline:hover { color: var(--bronze-dim); }
.link-inline .arrow { transition: transform var(--t-med) var(--ease); display: inline-block; }
.link-inline:hover .arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════
   SERVICE CARD — the shared tile pattern
   ═══════════════════════════════════════ */
.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  position: relative;
  transition: background var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
  z-index: 2;
}
.svc-card:hover {
  background: var(--surface);
}
.svc-card:hover::after { transform: scaleX(1); }
.svc-card__img {
  aspect-ratio: 4 / 5;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
  filter: saturate(0.92) contrast(1.02);
  transition: filter var(--t-med) var(--ease), transform 0.6s var(--ease);
  will-change: transform;
}
.svc-card:hover .svc-card__img {
  filter: saturate(1.02) contrast(1.04);
  transform: scale(1.025);
}
.svc-card__body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.svc-card__num {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: -4px;
}
.svc-card__title {
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.35rem);
  color: var(--ink);
  line-height: 1.18;
}
.svc-card__desc {
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--ink-muted);
  max-width: 30ch;
  flex: 1;
}
.svc-card__cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}
.svc-card__arrow {
  display: inline-block;
  transition: transform var(--t-med) var(--ease);
}
.svc-card:hover .svc-card__arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════
   FOOTER (shared)
   ═══════════════════════════════════════ */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: var(--sp-3xl) var(--sp-md) var(--sp-xl);
  position: relative;
}
.footer::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.footer > * { position: relative; z-index: 1; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: var(--sp-2xl);
  border-bottom: 1px solid rgba(245, 241, 234, 0.14);
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__mark { font-family: 'Libre Baskerville', serif; font-size: 1.4rem; letter-spacing: 0.26em; text-transform: uppercase; margin-bottom: 14px; }
.footer__tag { max-width: 40ch; color: rgba(245, 241, 234, 0.62); font-size: 0.92rem; line-height: 1.6; }
.footer h5 { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze-br); margin-bottom: 14px; }
.footer ul li { margin-bottom: 10px; font-size: 0.92rem; color: rgba(245, 241, 234, 0.72); }
.footer ul a:hover { color: var(--bronze-br); }
.footer__bottom {
  max-width: var(--max-w);
  margin: var(--sp-xl) auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.76rem;
  color: rgba(245, 241, 234, 0.42);
  letter-spacing: 0.02em;
}
@media (min-width: 640px) { .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ═══════════════════════════════════════
   MOBILE CALL BAR — sticky bottom on mobile
   ═══════════════════════════════════════ */
.call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  height: var(--call-bar-h);
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -8px 24px rgba(26, 26, 28, 0.12);
}
@media (min-width: 900px) { .call-bar { display: none; } }
.call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--bg);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background var(--t-med) var(--ease);
}
.call-bar a:first-child { border-right: 1px solid rgba(245, 241, 234, 0.14); }
.call-bar a:hover { background: rgba(245, 241, 234, 0.06); }
.call-bar a:last-child { background: var(--bronze); }
.call-bar a:last-child:hover { background: var(--bronze-br); }
.call-bar svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════
   SCROLL PROGRESS (LuxDNC polish detail, not in sister)
   ═══════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  height: 2px;
  width: 0;
  background: var(--bronze);
  transition: width 60ms linear;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   SCROLL REVEAL (matches sister grammar)
   ═══════════════════════════════════════ */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider-rule {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}
.divider-rule::after {
  content: ''; display: block;
  height: 1px; background: var(--bronze);
  opacity: 0.45;
}
@media (min-width: 768px) { .divider-rule { padding: 0 var(--sp-xl); } }

.kicker {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--bronze);
  display: inline-block;
}

/* Hero shared vignette + text shadow helpers */
.hero-shell {
  position: relative;
  overflow: hidden;
}
.hero-shell__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: center;
  will-change: transform;
  /* Subtle Ken Burns on load */
  animation: kb 22s ease-out forwards;
}
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1.0); } }
.hero-shell__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 100% 90% at 50% 55%, transparent 35%, rgba(26, 26, 28, 0.18) 100%);
  pointer-events: none;
}
.hero-shell__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Mobile-only subtitle trim pattern */
.sub--full { display: none; }
.sub--short { display: inline; }
@media (min-width: 768px) {
  .sub--full { display: inline; }
  .sub--short { display: none; }
}
