/* ============================================================
   DEBONAIR — Sharp by Name. Est. 2026
   Color: copper (primary) + soft teal (secondary), charcoal ink, warm white
   Type: Anton (condensed display) + Hanken Grotesk (body)
   ============================================================ */

:root {
  /* Surfaces */
  --paper:    #faf7f2;   /* warm white background */
  --paper-2:  #f2ece2;   /* sand card / alt section */
  --ink:      #1d1b19;   /* near-black charcoal */
  --ink-2:    #4a463f;   /* muted ink for body copy */
  --line:     #e3dccf;   /* hairline */

  /* Accents (harmonised: copper + teal) */
  --copper:        #bf6a40;
  --copper-deep:   #a4562f;
  --copper-tint:   #f4e4d9;
  --teal:          #4ea394;
  --teal-deep:     #2f7869;
  --teal-tint:     #e0efea;

  /* Roles — remapped by accent tweak */
  --primary:       var(--copper);
  --primary-deep:  var(--copper-deep);
  --secondary:     var(--teal);
  --secondary-deep:var(--teal-deep);

  /* Geometry — remapped by corner tweak */
  --r-card: 20px;
  --r-btn:  999px;
  --r-pill: 999px;

  /* Rhythm — remapped by density tweak */
  --sec-pad: 116px;
  --gap:     28px;

  --maxw: 1180px;
  --shadow: 0 18px 50px -28px rgba(29,27,25,.42);
  --shadow-sm: 0 8px 24px -16px rgba(29,27,25,.4);

  --ff-display: "Anton", "Hanken Grotesk", sans-serif;
  --ff-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
}

/* Accent lead = teal: swap primary/secondary roles */
body[data-accent="teal"] {
  --primary:       var(--teal);
  --primary-deep:  var(--teal-deep);
  --secondary:     var(--copper);
  --secondary-deep:var(--copper-deep);
}

/* Corner style */
body[data-corners="sharp"] {
  --r-card: 4px;
  --r-btn:  4px;
  --r-pill: 4px;
}

/* Density */
body[data-density="airy"]    { --sec-pad: 140px; --gap: 34px; }
body[data-density="compact"] { --sec-pad: 84px;  --gap: 20px; }

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }

/* ---------- Type helpers ---------- */
.display {
  font-family: var(--ff-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
}
.label {
  font-family: var(--ff-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 12px;
  color: var(--primary-deep);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--primary);
  display: inline-block;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: var(--sec-pad) 0; }

/* Badge colours (single-colour, currentColor-driven) */
.badge-sm, .hero-badge { color: var(--ink); --badge-accent: var(--copper); }
body[data-direction="B"] .hero-badge { color: var(--paper); --badge-accent: var(--copper); }

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand .badge-sm { width: 46px; height: 46px; flex: none; }
.brand-word {
  font-family: var(--ff-display);
  text-transform: uppercase;
  font-size: 26px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-body); font-weight: 700;
  font-size: 15px; letter-spacing: 0.02em;
  padding: 13px 26px;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--primary) 75%, transparent);
}
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-lg { padding: 17px 36px; font-size: 16.5px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.hdr .btn-primary { padding: 11px 24px; }
.menu-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 64px; padding-bottom: var(--sec-pad); text-align: center; overflow: hidden; }
.hero-badge { width: 168px; height: 168px; margin: 0 auto 30px; animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 {
  font-size: clamp(46px, 9.2vw, 132px);
  margin: 0 auto;
  max-width: 13ch;
  text-wrap: balance;
}
.hero .tagline {
  margin: 22px auto 0;
  font-family: var(--ff-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.32em;
  font-size: clamp(13px, 1.6vw, 16px);
  color: var(--secondary-deep);
}
.hero .tagline .dot { color: var(--primary); margin: 0 4px; }
.hero p.lead {
  margin: 26px auto 0; max-width: 46ch;
  font-size: clamp(17px, 2vw, 20px); color: var(--ink-2);
}
.hero-cta { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 46px;
  display: inline-flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center;
  color: var(--ink-2); font-size: 14px;
}
.hero-meta .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.hero-meta b { color: var(--ink); font-weight: 700; }

/* faint decorative arcs behind hero */
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow span {
  position: absolute; border-radius: 50%;
  border: 1.5px solid var(--line);
}
.hero-glow .g1 { width: 620px; height: 620px; left: 50%; top: 40px; transform: translateX(-50%); }
.hero-glow .g2 { width: 900px; height: 900px; left: 50%; top: -60px; transform: translateX(-50%); opacity: .6; }

/* Direction B: charcoal editorial hero */
body[data-direction="B"] .hero {
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 0;
}
body[data-direction="B"] .hero .label,
body[data-direction="B"] .hero .tagline { color: color-mix(in srgb, var(--teal) 78%, white); }
body[data-direction="B"] .hero p.lead { color: color-mix(in srgb, var(--paper) 78%, transparent); }
body[data-direction="B"] .hero-meta { color: color-mix(in srgb, var(--paper) 70%, transparent); }
body[data-direction="B"] .hero-meta b { color: var(--paper); }
body[data-direction="B"] .hero-glow span { border-color: rgba(255,255,255,.12); }
body[data-direction="B"] .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,.55); }
body[data-direction="B"] .btn-ghost:hover { background: var(--paper); color: var(--ink); }
body[data-direction="B"] .hero h1 .stroke { color: transparent; -webkit-text-stroke: 2px var(--paper); }

/* ============================================================
   SECTION HEADING
   ============================================================ */
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 { font-size: clamp(40px, 6vw, 72px); margin-top: 16px; }
.sec-head p { margin: 18px 0 0; color: var(--ink-2); font-size: 18px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--paper); }
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px 28px;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s;
  position: relative;
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.svc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.svc h3 {
  font-family: var(--ff-display); text-transform: uppercase;
  font-size: 25px; letter-spacing: 0.02em; line-height: 1; font-weight: 400;
}
.svc .price {
  font-family: var(--ff-display); font-size: 26px; color: var(--primary-deep);
  white-space: nowrap; line-height: 1;
}
.svc .price small { font-family: var(--ff-body); font-weight: 700; font-size: 12px; color: var(--ink-2); letter-spacing: .04em; display:block; text-align:right; }
.svc p { margin: 14px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.svc .tick { margin-top: 18px; height: 3px; width: 38px; background: var(--secondary); border-radius: 3px; transition: width .3s ease; }
.svc:hover .tick { width: 64px; }

/* Add-ons strip */
.addons {
  margin-top: var(--gap);
  background: var(--teal-tint);
  border-radius: var(--r-card);
  padding: 26px 30px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px;
}
body[data-accent="teal"] .addons { background: var(--copper-tint); }
.addons .addons-lbl { color: var(--secondary-deep); }
body[data-accent="teal"] .addons .addons-lbl { color: var(--primary-deep); }
.addons ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 30px; }
.addons li { font-size: 15px; font-weight: 600; }
.addons li span { color: var(--ink-2); font-weight: 500; }
.addons li b { color: var(--primary-deep); font-weight: 800; }

/* Direction B: services as a price menu */
body[data-direction="B"] .svc-grid { display: block; }
body[data-direction="B"] .svc {
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 22px 6px; flex-direction: row; align-items: baseline; gap: 24px;
}
body[data-direction="B"] .svc:hover { transform: none; box-shadow: none; padding-left: 16px; }
body[data-direction="B"] .svc:first-child { border-top: 1px solid var(--line); }
body[data-direction="B"] .svc-top { flex: none; width: 280px; flex-direction: column; align-items: flex-start; gap: 4px; }
body[data-direction="B"] .svc h3 { font-size: 27px; }
body[data-direction="B"] .svc p { flex: 1; margin: 0; }
body[data-direction="B"] .svc .price { font-size: 30px; }
body[data-direction="B"] .svc .tick { display: none; }
body[data-direction="B"] .svc .price-wrap { margin-left: auto; text-align: right; }

/* ============================================================
   GALLERY — horizontal scroll strip
   ============================================================ */
.gallery { background: var(--paper-2); }
.gal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.gal-scroll {
  display: flex; gap: 20px; overflow-x: auto; padding: 6px 32px 26px;
  margin: 0 -32px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--primary) transparent;
}
.gal-scroll::-webkit-scrollbar { height: 8px; }
.gal-scroll::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--primary) 55%, var(--line)); border-radius: 4px; }
.gal-scroll::-webkit-scrollbar-track { background: transparent; }
.gal-item {
  flex: none; width: 300px; scroll-snap-align: start;
}
.gal-item.tall { width: 300px; }
.shot {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4/5; background: #fff;
}
.shot.wide { aspect-ratio: 3/4; }
.gal-cap { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gal-cap .n { font-weight: 700; font-size: 15px; }
.gal-cap .t { font-size: 12.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .14em; }

/* striped placeholder */
.ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--secondary) 14%, #fff) 0 11px,
      color-mix(in srgb, var(--secondary) 7%, #fff) 11px 22px);
  display: flex; align-items: center; justify-content: center;
}
.ph.copper {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--primary) 13%, #fff) 0 11px,
      color-mix(in srgb, var(--primary) 6%, #fff) 11px 22px);
}
.ph span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); background: rgba(255,255,255,.78);
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center;
}
.portrait {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 4/5; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.portrait .frame-tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 13px; letter-spacing: .04em;
  padding: 8px 15px; border-radius: 999px;
}
.about-body h2 { font-size: clamp(38px, 5vw, 64px); margin: 16px 0 0; }
.about-body p { color: var(--ink-2); font-size: 18px; margin: 20px 0 0; }
.about-body .sig {
  margin-top: 26px; font-family: var(--ff-display); text-transform: uppercase;
  font-size: 30px; color: var(--primary-deep); letter-spacing: .02em;
}
.about-stats { display: flex; gap: 40px; margin-top: 34px; flex-wrap: wrap; }
.about-stats .s .n { font-family: var(--ff-display); font-size: 44px; line-height: 1; color: var(--ink); }
.about-stats .s .l { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin-top: 8px; }

/* ============================================================
   HOURS & LOCATION
   ============================================================ */
.visit { background: var(--ink); color: var(--paper); }
.visit .eyebrow::before { background: var(--secondary); }
.visit .label { color: color-mix(in srgb, var(--secondary) 75%, white); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.visit h2 { font-size: clamp(38px, 5vw, 64px); margin: 16px 0 30px; }
.hours { list-style: none; margin: 0 0 30px; padding: 0; max-width: 420px; }
.hours li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.13);
  font-size: 17px;
}
.hours li .d { font-weight: 600; }
.hours li .h { color: color-mix(in srgb, var(--paper) 78%, transparent); font-variant-numeric: tabular-nums; }
.hours li.closed .h { color: var(--secondary); font-weight: 600; }
.hours li.today { color: var(--paper); }
.hours li.today .d::after {
  content: "Today"; margin-left: 10px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  background: var(--primary); color: #fff; padding: 3px 8px; border-radius: 999px;
  vertical-align: middle;
}
.addr { display: flex; flex-direction: column; gap: 4px; color: color-mix(in srgb, var(--paper) 82%, transparent); font-size: 16px; }
.addr b { color: var(--paper); font-size: 17px; }
.map {
  position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 360px;
  border: 1px solid rgba(255,255,255,.14); height: 100%;
}
.map .ph {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, rgba(255,255,255,.02) 12px 24px),
    var(--ink);
}
.map .ph span { background: rgba(255,255,255,.08); color: var(--paper); border-color: rgba(255,255,255,.16); }
.map .pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 30%, transparent), 0 0 0 14px color-mix(in srgb, var(--primary) 14%, transparent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--paper); padding: 70px 0 40px; border-top: 1px solid var(--line); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand .badge-sm { width: 56px; height: 56px; }
.foot-brand .brand-word { font-size: 32px; }
.foot-brand .tl { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--secondary-deep); font-weight: 700; margin-top: 4px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-2); margin: 0 0 14px; font-weight: 800; }
.foot-col a, .foot-col p { display: block; color: var(--ink); font-size: 15.5px; margin: 0 0 9px; font-weight: 500; }
.foot-col a { transition: color .2s; }
.foot-col a:hover { color: var(--primary-deep); }
.ig {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700;
  border: 1.5px solid var(--ink); padding: 10px 18px; border-radius: var(--r-btn);
  transition: background .2s, color .2s, transform .2s;
}
.ig:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.foot-bot {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-2);
}
.foot-bot .est { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge { animation: none; }
  html { scroll-behavior: auto; }
}

/* badge spin (slow) */
.badge-ring-text { transform-box: fill-box; transform-origin: center; }
.hero-badge:hover .badge-ring-text { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid .portrait { max-width: 420px; }
  .visit-grid { grid-template-columns: 1fr; gap: 36px; }
  body[data-direction="B"] .svc { flex-direction: column; align-items: flex-start; gap: 8px; }
  body[data-direction="B"] .svc-top { width: auto; }
  body[data-direction="B"] .svc .price-wrap { margin-left: 0; text-align: left; }
}
@media (max-width: 720px) {
  :root { --sec-pad: 78px; }
  .nav, .hdr .btn-primary { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: var(--r-btn);
    border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
  }
  .wrap, .hdr-in { padding-left: 22px; padding-right: 22px; }
  .gal-scroll { margin: 0 -22px; padding: 6px 22px 26px; }
  .svc-grid { grid-template-columns: 1fr; }
  .foot-top { flex-direction: column; }
  .hero { padding-top: 40px; }
  .hero-badge { width: 132px; height: 132px; }
}

/* Mobile nav drawer */
.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transform: translateY(-100%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.drawer.open { transform: none; }
.drawer a { font-family: var(--ff-display); text-transform: uppercase; font-size: 38px; padding: 8px 0; }
.drawer a:hover { color: var(--secondary); }
.drawer .btn { margin-top: 20px; }
.drawer .x { position: absolute; top: 22px; right: 22px; width: 48px; height: 48px; border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: var(--paper); border-radius: 999px; font-size: 22px; cursor: pointer; }
