/* ==========================================================
   MIREYA — base: tokens, reset, typography, buttons, header, footer
   Palette taken from the salon: black walls, walnut slats,
   brushed gold signage, marble floor, cream upholstery.
   ========================================================== */
:root {
  color-scheme: dark;
  --ink: #0d0b09;
  --ink-2: #14110e;
  --ink-3: #1c1814;
  --line: rgba(214, 184, 122, 0.18);
  --line-strong: rgba(214, 184, 122, 0.42);

  --gold: #c9a55e;
  --gold-light: #ecd6a2;
  --gold-deep: #94722f;
  --gold-grad: linear-gradient(100deg, #f3e2b5 0%, #c9a55e 45%, #9d7a39 100%);

  --walnut: #6a4527;
  --walnut-dark: #3b2616;
  --burgundy: #6e2c2c;

  --cream: #f4eee3;
  --cream-2: #e8ded0;
  --text: #efe7da;
  --muted: #a99d8b;
  --text-dark: #1b1612;
  --muted-dark: #62564a;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --script: 'Great Vibes', cursive;

  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  --text-title: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem);
  --text-display: clamp(2.6rem, 1.2rem + 4vw, 5rem);

  --space-section: clamp(5rem, 3.5rem + 6vw, 9.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --container: 1240px;
  --header-h: 84px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur: 450ms;
  --dur-slow: 1100ms;

  --radius-arch: 999px 999px 0 0;
  --shadow-deep: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { --announce-h: 0px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--announce-h) - 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain for atmosphere */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Typography helpers ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.4rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker-line { width: 42px; height: 1px; background: currentColor; opacity: 0.7; }
.display { font-size: var(--text-display); font-weight: 400; }
.display span, .display em { display: block; }
.title { font-size: var(--text-title); margin-bottom: 1.6rem; }
.title em, .display em { font-style: italic; font-weight: 400; }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em; /* keep italic overhang from clipping */
}
.lead { font-size: var(--text-lead); color: var(--muted); max-width: 34rem; }
.script { font-family: var(--script); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0 1.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--btn-bg);
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur-fast);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }

.btn-gold { --btn-bg: var(--gold-grad); color: var(--ink); }
.btn-gold::before { background: var(--cream); }
.btn-outline { border-color: var(--line-strong); color: var(--gold-light); }
.btn-outline::before { background: var(--gold); }
.btn-outline:hover { color: var(--ink); border-color: var(--gold); }
.btn-ghost { color: var(--text); border-color: rgba(239, 231, 218, 0.25); }
.btn-ghost::before { background: rgba(239, 231, 218, 0.08); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-wa { color: var(--text); border-color: rgba(239, 231, 218, 0.25); }
.btn-wa::before { background: #1f7a4d; }
.btn-wa:hover { border-color: #1f7a4d; }
.btn-wa .ico { width: 20px; height: 20px; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.round-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--gold-light);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.round-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.round-btn .ico { width: 20px; height: 20px; }
.round-btn.prev .ico { transform: rotate(180deg); }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-logo { height: 52px; width: auto; transition: height var(--dur) var(--ease-out); }
.site-header.is-solid .brand-logo { height: 44px; }
.footer-logo { width: min(280px, 70vw); height: auto; }
.brand-mono, .footer-mono {
  position: relative;
  font-family: var(--script);
  font-size: 2.9rem;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.5rem 0 0.1rem;
}
.brand-leaf { position: absolute; right: -0.35rem; top: 0.55rem; width: 1.35rem; height: 0.85rem; color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.brand-tag { white-space: nowrap; margin-top: 0.4rem; font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  flex-direction: column;
  transition: background var(--dur) var(--ease-out), border-color var(--dur);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  --header-h: 72px;
  background: rgba(13, 11, 9, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); transition: height var(--dur) var(--ease-out); }
.announce { background: var(--gold-grad); color: var(--ink); text-align: center; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; line-height: 1.4; }
.announce a { display: block; padding: 0.55rem var(--gutter); color: inherit; }
.announce a[href]:hover { text-decoration: underline; }
html.has-announce { --announce-h: 2.1rem; }
.main-nav ul { display: flex; gap: clamp(1rem, 0.2rem + 1.6vw, 2.2rem); }
.main-nav a {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.4rem 0;
  white-space: nowrap;
  transition: color var(--dur-fast);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease-out);
}
.main-nav a:hover { color: var(--gold-light); }
.main-nav a:hover::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.header-cta { min-height: 44px; padding: 0 1.3rem; white-space: nowrap; }

.lang-switch { display: flex; border: 1px solid var(--line); }
.lang-switch button {
  min-width: 38px;
  height: 34px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover { color: var(--gold-light); }
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--gold-light); transition: transform var(--dur) var(--ease-out); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; left: 18px; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); left: 10px; }

@media (max-width: 1240px) {
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: calc(var(--header-h) + var(--announce-h) + 1rem) var(--gutter) 2rem;
    background:
      repeating-linear-gradient(90deg, rgba(106, 69, 39, 0.12) 0 14px, transparent 14px 22px),
      var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  /* backdrop-filter would trap the fixed overlay inside the header box */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; border-color: transparent; }
  .main-nav ul { flex-direction: column; gap: 0.4rem; }
  .main-nav a { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 3vw, 2.8rem); letter-spacing: 0; text-transform: none; }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta-mobile { display: inline-flex; align-self: flex-start; padding: 0 1.9rem; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .site-header .lang-switch button { min-width: 32px; height: 30px; font-size: 0.62rem; }
  .brand-tag { display: none; }
  .brand-name { font-size: 1.2rem; letter-spacing: 0.26em; }
  .brand-mono { font-size: 2.3rem; }
  .header-actions { gap: 0.4rem; }
}
@media (max-width: 420px) {
  .brand-logo, .site-header.is-solid .brand-logo { height: 40px; }
  .brand { gap: 0.5rem; }
  .brand-name { font-size: 1rem; letter-spacing: 0.18em; }
  .brand-mono { font-size: 2rem; padding-right: 0.35rem; }
  .brand-leaf { width: 1rem; height: 0.65rem; top: 0.35rem; right: -0.2rem; }
  .site-header .lang-switch button { min-width: 27px; font-size: 0.58rem; letter-spacing: 0.08em; }
  .nav-toggle { width: 38px; }
  .nav-toggle span { left: 8px; right: 8px; }
}
@media (max-width: 340px) {
  .brand-name { display: none; }
}

/* ---------- Reveal ---------- */
/* content stays readable at rest; the reveal is a gentle lift only */
.reveal { transform: translateY(22px); transition: transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 4.5rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 3rem; align-items: start; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-mono { font-size: 4.5rem; margin-bottom: 0.3rem; }
.footer-mono .brand-leaf { top: 1rem; width: 1.9rem; height: 1.2rem; }
.footer-tag { margin-top: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 0.7rem 2.5rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-nav a { color: var(--muted); transition: color var(--dur-fast); }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; }
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 2vw, 1.8rem);
  bottom: calc(clamp(1rem, 2vw, 1.8rem) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1f7a4d;
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(236, 214, 162, 0.35);
  transition: transform var(--dur) var(--ease-out);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); }

/* panel option: animations off */
html.no-motion .reveal { transform: none; transition: none; }
html.no-motion .rise, html.no-motion .fade-in, html.no-motion .hero-arch img, html.no-motion .marquee-track, html.no-motion .scroll-cue i { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { transform: none; }
}
