/* ============================================================
   DTM MEDIAS — Hospitality
   Base design system: tokens, reset, typography, primitives
   Each demo theme overrides --c-* vars and font stacks.
   ============================================================ */

:root {
  /* Default tokens (Marais / classic editorial) */
  --c-bg:        #FBF8F2;
  --c-bg-warm:   #F4EEE3;
  --c-bg-dark:   #1B1614;
  --c-ink:       #1A1614;
  --c-ink-soft:  #4D453F;
  --c-muted:     #8A7F75;
  --c-line:      #E5DCCD;
  --c-line-soft: #EFE7D9;
  --c-brand:     #2E4F3E;
  --c-brand-ink: #FBF8F2;
  --c-accent:    #B8884C;
  --c-danger:    #C0392B;

  --font-serif: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --font-sans:  "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm:  0 1px 2px rgba(20, 14, 6, 0.04), 0 2px 6px rgba(20, 14, 6, 0.04);
  --shadow-md:  0 4px 14px rgba(20, 14, 6, 0.06), 0 12px 32px rgba(20, 14, 6, 0.06);
  --shadow-lg:  0 18px 50px rgba(20, 14, 6, 0.10);
  --shadow-pop: 0 24px 60px rgba(20, 14, 6, 0.18);

  --t-fast: 180ms cubic-bezier(.4,0,.2,1);
  --t-med:  280ms cubic-bezier(.4,0,.2,1);
  --t-slow: 480ms cubic-bezier(.4,0,.2,1);

  --wrap: 1200px;
  --wrap-narrow: 760px;
}

/* ─── reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;          /* 2026-05-11 mobile UX: kill rogue horizontal scroll */
  word-wrap: break-word;        /* let long unbreakable strings wrap on mobile */
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, select, textarea { font: inherit; color: inherit; max-width: 100%; }
ul { padding: 0; margin: 0; list-style: none; }

/* ─── 2026-05-11 mobile UX safety net ──────────────────
   Prevents fixed-width elements from causing horizontal overflow */
@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding-left: 18px; padding-right: 18px; }
  /* Tame absolute-positioned hero cards that often spill right */
  [class*="hero__visual"], [class*="hero__media"], [class*="hero__photo"] { max-width: 100%; overflow: hidden; }
  /* Buttons groups should wrap properly */
  [class*="hero__cta"], [class*="hero__ctas"] { flex-wrap: wrap; gap: 10px; }
  [class*="hero__cta"] .btn, [class*="hero__ctas"] .btn { flex: 1 1 calc(50% - 5px); min-width: 130px; text-align: center; }
  /* Tables / scrollable horizontally */
  table { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  /* Prevent long monospace tokens (URLs, codes) from forcing scroll */
  pre, code { white-space: pre-wrap; word-break: break-all; }
  /* Short uppercase labels: allow wrap */
  [class*="meta-label"], [class*="kpi__label"], [class*="hint__label"] { white-space: normal !important; line-height: 1.2; }
  /* Reduce H2 on mobile so long French headlines don't get cut */
  h1 { font-size: clamp(1.6rem, 7.5vw, 2.4rem) !important; line-height: 1.1; word-wrap: break-word; }
  h2 { font-size: clamp(1.4rem, 5.5vw, 2rem) !important; line-height: 1.15; word-wrap: break-word; }
  h3 { font-size: clamp(1.1rem, 4.5vw, 1.4rem); word-wrap: break-word; }
  h1 em, h2 em, h3 em { word-wrap: break-word; }
  /* Section heads — stop forcing 720px max */
  .section-head { max-width: 100%; margin-bottom: 36px; }
  /* Demo gallery heads — stack vertically on mobile */
  [class*="gallery__head"] { flex-direction: column; align-items: flex-start !important; gap: 14px; }
  /* Guarantees bar — let labels wrap */
  .guarantees, [class*="guarantees"] { grid-template-columns: 1fr 1fr !important; gap: 12px !important; padding: 18px !important; }
  .guarantee, [class*="guarantee"] { font-size: 0.78rem !important; gap: 8px !important; }
  .guarantee strong { font-size: 0.86rem !important; line-height: 1.2; }
  .guarantee div { min-width: 0; }
}
@media (max-width: 480px) {
  body .guarantees, html .guarantees, [class*="guarantees"] { grid-template-columns: 1fr !important; gap: 14px !important; padding: 24px 18px !important; }
  body .guarantee, html .guarantee { font-size: 0.84rem !important; padding: 0 4px !important; }
}

/* ─── typography ────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-variation-settings: "opsz" 96; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h4 { font-size: 1.15rem; line-height: 1.25; }
em { font-style: italic; font-variation-settings: "SOFT" 80, "opsz" 96; color: var(--c-brand); }
p  { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--c-ink-soft); line-height: 1.6; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.text-center { text-align: center; }
.mt-sm { margin-top: 12px; } .mt-md { margin-top: 22px; } .mt-lg { margin-top: 36px; }

/* ─── layout primitives ─────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head .lead { margin-top: 16px; }

/* ─── buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.94rem;
  border-radius: var(--r-pill); cursor: pointer;
  transition: all var(--t-fast); white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary  { background: var(--c-ink); color: var(--c-bg); }
.btn--primary:hover  { background: var(--c-brand); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost    { border-color: var(--c-ink); color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: var(--c-bg); }
.btn--accent   { background: var(--c-accent); color: #fff; }
.btn--accent:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--sm { padding: 10px 16px; font-size: 0.86rem; }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ─── trust badges ──────────────────────────────────── */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--c-muted); align-items: center;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-brand); }

/* ─── topnav ────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(251, 248, 242, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line-soft);
}
.topnav__inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 1.18rem; }
.brand small { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-muted); margin-left: 6px; }
.brand__mark {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-ink); color: var(--c-bg); font-family: var(--font-serif); font-style: italic; border-radius: 50%;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-size: 0.92rem; color: var(--c-ink-soft); transition: color var(--t-fast); }
.nav-links a:hover { color: var(--c-ink); }
.nav-cta { margin-left: 8px; }

/* ─── mobile nav toggle (hamburger) ─── */
.nav-toggle {
  display: none;
  width: 40px; height: 40px; padding: 0; margin-left: auto;
  background: transparent; border: 1px solid var(--c-line); border-radius: 8px;
  cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; transition: background var(--t-fast);
}
.nav-toggle:hover { background: var(--c-line-soft); }
.nav-toggle__bar { width: 18px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-bg, #fff); border-bottom: 1px solid var(--c-line);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
  padding: 18px 24px 22px; flex-direction: column; gap: 14px;
}
.nav-drawer .nav-links { display: flex; flex-direction: column; gap: 0; margin: 0; }
.nav-drawer .nav-links a {
  display: block; padding: 14px 4px;
  font-size: 1.04rem; color: var(--c-ink); font-weight: 500;
  border-bottom: 1px solid var(--c-line-soft);
}
.nav-drawer .nav-links a:last-child { border-bottom: 0; }
.nav-drawer .nav-drawer__cta { width: 100%; text-align: center; margin-top: 6px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-open .nav-drawer { display: flex; }
}

/* ─── footer ────────────────────────────────────────── */
.foot { padding: 80px 0 40px; background: var(--c-bg-dark); color: rgba(251,248,242,0.78); }
.foot a { color: rgba(251,248,242,0.78); transition: color var(--t-fast); }
.foot a:hover { color: var(--c-bg); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 820px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
.foot__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 1.4rem; color: var(--c-bg); margin-bottom: 14px; }
.foot__brand .brand__mark { background: var(--c-bg); color: var(--c-ink); }
.foot h5 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251,248,242,0.5); margin: 0 0 16px; }
.foot ul li { margin-bottom: 8px; font-size: 0.92rem; }
.foot__bottom { padding-top: 28px; border-top: 1px solid rgba(251,248,242,0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: rgba(251,248,242,0.5); }

/* ─── reveal animation ─────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow), transform var(--t-slow); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ─── form fields ───────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
.field input, .field select, .field textarea {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 1rem; outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(26, 22, 20, 0.08);
}
.field textarea { min-height: 110px; resize: vertical; font-family: var(--font-sans); }

/* ─── sticky funnel CTA ─────────────────────────────── */
.sticky-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  background: var(--c-ink); color: var(--c-bg);
  padding: 14px 22px; border-radius: var(--r-pill); font-weight: 600;
  box-shadow: var(--shadow-pop);
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform var(--t-fast);
}
.sticky-cta:hover { transform: translateY(-2px); }
.sticky-cta__pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #6FCF6F;
  box-shadow: 0 0 0 0 rgba(111, 207, 111, 0.5);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111,207,111,0.55); } 70% { box-shadow: 0 0 0 14px rgba(111,207,111,0); } 100% { box-shadow: 0 0 0 0 rgba(111,207,111,0); } }
@media (max-width: 720px) { .sticky-cta__label-long { display: none; } .sticky-cta { right: 14px; bottom: 14px; padding: 12px 18px; } }

/* Sticky CTA dedup on mobile — when a page-specific sticky exists
   (e.g. .v-sticky-cta on Volt, .r-sticky-cart on reservation pages),
   hide the generic demo subscribe sticky to avoid stacking. */
@media (max-width: 720px) {
  body:has(.v-sticky-cta) .sticky-cta,
  body:has(.r-sticky-cart) .sticky-cta { display: none; }
}

/* ─── small utilities ───────────────────────────────── */
.hidden { display: none !important; }
.subtle-divider { height: 1px; background: var(--c-line-soft); margin: 0; border: 0; }
