/* ============================================================
   HAIRMATE — shared design system
   Dark luxe • warm gold • condensed editorial • conic snake
   ============================================================ */

/* Fonts are self-hosted — see css/fonts.css, linked before this file.
   (Was an @import from fonts.googleapis.com; removed so the site makes no
   third-party requests and no visitor IP reaches Google.) */

/* ---- animated angle for snake/conic borders ---- */
@property --snake-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg:        #050506;
  --bg-2:      #0a0a0c;
  --bg-3:      #101014;
  --surface:   rgba(234, 240, 252, 0.035);
  --surface-2: rgba(234, 240, 252, 0.06);
  --line:      rgba(224, 230, 246, 0.10);

  --gold:        #d9a441;
  --gold-bright: #ecc275;
  --gold-deep:   #9a6f28;
  --ember:       #e8632a;

  --text:     #f3ead9;
  --text-mid: #c4b8a3;
  --text-dim: #8c8170;

  --font-display: 'Anton', 'Saira Condensed', sans-serif;
  --font-head:    'Saira Condensed', sans-serif;
  --font-body:    'Saira', sans-serif;

  --maxw: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

/* warm radial ambience baked behind every page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(184, 194, 216, 0.075), transparent 55%),
    radial-gradient(90% 70% at 0% 110%, rgba(150, 160, 188, 0.05), transparent 50%),
    var(--bg);
}
/* faint film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: #0a0807; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; color: inherit; }

/* ---------- typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}
.eyebrow-num {
  font-family: var(--font-head);
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 13px;
  font-weight: 600;
}
.lede {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--text-mid);
  max-width: 56ch;
}
.gold { color: var(--gold); }
.muted { color: var(--text-dim); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: clamp(80px, 12vh, 160px) 0; position: relative; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: ''; width: 42px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ============================================================
   SNAKE BORDER — rotating conic glow on container edges
   ============================================================ */
.snake {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  isolation: isolate;
}
.snake::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--snake-angle),
      transparent 0deg,
      rgba(217,164,65,0.0) 40deg,
      var(--gold) 70deg,
      var(--gold-bright) 95deg,
      #fff7e6 110deg,
      transparent 150deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: snakeSpin 5s linear infinite;
  pointer-events: none;
  z-index: 1;
}
/* static dim hairline so the edge reads even between glows */
.snake::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--line);
  pointer-events: none;
}
.snake.slow::before  { animation-duration: 8s; }
.snake.fast::before  { animation-duration: 3s; }
.snake.ember::before {
  background: conic-gradient(from var(--snake-angle),
      transparent 0deg, var(--ember) 70deg, #fff 100deg, transparent 150deg, transparent 360deg);
}

@keyframes snakeSpin { to { --snake-angle: 360deg; } }

/* ============================================================
   BUTTONS — clean glass; snake border is opt-in (.signature)
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 164, 65, 0.40);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease), color .35s;
}
.btn:hover { border-color: var(--gold); background: rgba(217,164,65,0.10); transform: translateY(-2px); color: #fff; }
.btn:active { transform: translateY(0); }
.btn.lg { padding: 18px 46px; font-size: 16px; }
.btn.sm { padding: 12px 24px; font-size: 13px; gap: 8px; }

/* Warm gold-to-ember wash. The plain .btn is a near-invisible glass panel at
   nav scale — this gives the primary CTA an actual accent without resorting to
   the animated .signature treatment, which is reserved for the hero. */
.btn.accent {
  background: linear-gradient(135deg, rgba(217,164,65,0.20), rgba(232,99,42,0.10));
  border-color: var(--gold);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(217,164,65,0.16) inset,
              0 10px 28px -14px rgba(217,164,65,0.65);
}
.btn.accent:hover {
  background: linear-gradient(135deg, rgba(217,164,65,0.34), rgba(232,99,42,0.18));
  border-color: var(--gold-bright);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(236,194,117,0.35) inset,
              0 14px 36px -14px rgba(217,164,65,0.85);
}

/* Inline icon inside a button. .btn is already display:inline-flex with
   align-items:center, so the SVG centres on the text baseline box on its own —
   flex:0 0 auto stops it being squashed, and the em-relative size keeps it
   proportional across .sm / .lg. */
.btn .ico {
  /* 1.15em rather than 1em: the frame-plus-arrow glyph needs slightly more room
     than a bare chevron to stay legible at nav scale. em-relative so it stays
     proportional if the button is used at .sm or .lg. */
  width: 1.15em; height: 1.15em;
  flex: 0 0 auto;
  display: block;
}
/* The frame sits back so the arrow reads first — same two-tone idea as the
   source glyph, expressed with currentColor so it inherits the button's state. */
.btn .ico .frame  { opacity: .5; transition: opacity .35s var(--ease); }
/* Only the arrow moves: it's the part that "leaves" the frame, so animating it
   alone says "opens elsewhere" better than sliding the whole icon.
   Note: transform units on SVG children are user-space units (24-unit viewBox),
   not CSS px — 1.5 is ~6% of the glyph, which is the right nudge. */
.btn .ico .arrow  { transition: transform .35s var(--ease); }
.btn:hover .ico .frame { opacity: .78; }
.btn:hover .ico .arrow { transform: translate(1.5px, -1.5px); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover .ico .arrow { transform: none; }
}
.btn.solid { background: var(--gold); color: #0a0807; border-color: var(--gold); }
.btn.solid:hover { background: var(--gold-bright); color: #0a0807; }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { border-color: rgba(217,164,65,0.6); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* the one signature animated snake button — used sparingly */
.btn.signature { border: none; isolation: isolate; background: rgba(255,255,255,0.03); }
.btn.signature::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--snake-angle),
      var(--ember), #ffffff 25%, #000000 50%, #ffffff 75%, var(--ember));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: snakeSpin 4.5s linear infinite;
  z-index: -1;
}
.btn.signature:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(24px, 4vw, 56px);
  transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,8,7,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: 16px; padding-bottom: 16px;
}
.brand {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.brand .dot { width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 14px;
  font-weight: 600;
  /* Full-strength text, not --text-mid: against the near-black hero these read
     as disabled at the dimmer value. */
  color: var(--text);
  position: relative;
  padding: 6px 1px;
  transition: color .3s;
}
/* A permanent gold hairline at ~28% width anchors each link so it reads as a
   deliberate element at rest, then extends to full width on hover. The old
   rule animated from width:0, which left nothing visible until hover. */
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform .45s var(--ease), background .45s;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after { transform: scaleX(1); background: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-burger { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px;
  }
  .nav-burger span { display: block; height: 1.5px; background: var(--text); transition: .35s var(--ease); }
  .nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
.mobile-sheet {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(8,6,5,0.92); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 40px;
  opacity: 0; pointer-events: none; transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobile-sheet.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-sheet a {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(34px, 9vw, 58px); line-height: 1.05; color: var(--text-mid);
  border-bottom: 1px solid var(--line); padding: 14px 0; transition: color .3s, padding-left .3s var(--ease);
}
.mobile-sheet a:hover { color: var(--gold); padding-left: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 48px;
  margin-top: 40px;
  position: relative;
}
.footer .wrap { display: grid; gap: 56px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-mega {
  font-family: var(--font-display);
  font-size: clamp(48px, 11vw, 150px);
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-dim);
}
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 12px; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-mid); padding: 5px 0; font-size: 15px; transition: color .3s; }
.footer-col a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 28px; color: var(--text-dim); font-size: 13px;
  letter-spacing: 0.08em; }

/* ============================================================
   FORM CONTROLS (register / booking / profile)
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 11px; color: var(--text-dim); font-weight: 600;
}
.field input, .field select, .field textarea {
  background: rgba(255,246,230,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 16px;
  color: var(--text);
  transition: border-color .3s, background .3s, box-shadow .3s;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,246,230,0.05);
  box-shadow: 0 0 0 4px rgba(217,164,65,0.08);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23d9a441' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }

/* chips / toggles */
.chip {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255,246,230,0.02);
  border-radius: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  user-select: none;
}
.chip:hover { border-color: rgba(217,164,65,0.5); transform: translateY(-2px); }
.chip.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(217,164,65,0.14), rgba(232,99,42,0.06));
  box-shadow: 0 0 0 1px var(--gold) inset, 0 10px 30px -12px rgba(217,164,65,0.5);
}

/* ---------- reveal-on-scroll base ---------- */
.reveal { opacity: 0; transform: translateY(34px); }
.is-in .reveal, .reveal.is-in { opacity: 1; transform: none; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .snake::before, .btn::before { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   SHARED SUB-PAGE HERO
   ============================================================ */
.page-hero { padding: 180px 0 60px; position: relative; overflow: hidden; }
.page-hero .ph-num {
  position: absolute; top: 120px; right: clamp(20px, 4vw, 60px);
  font-family: var(--font-display); font-size: clamp(120px, 26vw, 380px);
  line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(217,164,65,0.16);
  pointer-events: none; z-index: 0; user-select: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(56px, 13vw, 200px); line-height: 0.82; letter-spacing: -0.015em;
}
.page-title .o { color: transparent; -webkit-text-stroke: 1.4px var(--gold); }
.page-lede { margin-top: 28px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; color: var(--text-dim); margin-bottom: 26px; }
.breadcrumb a { color: var(--gold); }
.breadcrumb .s { opacity: 0.5; }

/* card grid helpers reused across pages */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media(max-width: 900px){ .cards-3 { grid-template-columns: 1fr 1fr; } }
@media(max-width: 640px){ .cards-3, .cards-2 { grid-template-columns: 1fr; } }

.pad { padding: clamp(26px, 3vw, 40px); }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
