/* ─────────────────────────────────────────────
   Quasar Salon · marketing site
   Light by default · dark mode via [data-theme="dark"]
   ───────────────────────────────────────────── */

:root {
  /* LIGHT THEME (default) */
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-warm: #faf6ee;
  --surface: #f5f5f5;
  --gold: #c9a84c;
  --gold-dim: #a68838;
  --display: #0f0f0f;
  --text: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-muted: #8a8a8a;
  --border: rgba(201, 168, 76, 0.28);
  --border-soft: rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --hero-veil: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.85) 100%);
  --hero-text: #0f0f0f;
  --hero-text-mid: #3a3a3a;
  --hero-photo-filter: grayscale(0.05) brightness(0.92) contrast(1.02);
  --service-photo-filter: grayscale(0.05) brightness(0.95) contrast(1.03);
  --service-photo-filter-hover: grayscale(0) brightness(1) contrast(1.05);
  --qr-card-bg: #0f0f0f;
  --qr-card-text: #f5efe2;
  --footer-bg: #0a0a0a;
  --footer-text: #f0e9da;
  --footer-text-mid: #b8aa92;
  --footer-text-muted: #7a7264;
  --footer-border: rgba(255, 255, 255, 0.08);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-warm: #1a1209;
  --surface: #161616;
  --display: #f5efe2;
  --text: #f0e9da;
  --text-mid: #b8aa92;
  --text-muted: #7a7264;
  --border: rgba(201, 168, 76, 0.18);
  --border-soft: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(10, 10, 10, 0.92);
  --hero-veil: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.85) 100%);
  --hero-text: #f5efe2;
  --hero-text-mid: #b8aa92;
  --hero-photo-filter: grayscale(0.15) brightness(0.55) contrast(1.05);
  --service-photo-filter: grayscale(0.2) brightness(0.75) contrast(1.02);
  --service-photo-filter-hover: grayscale(0) brightness(0.9) contrast(1.05);
  --qr-card-bg: #f5efe2;
  --qr-card-text: #1a1209;
  --footer-bg: #050505;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-weight: 300;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
}

/* Logo swap by theme.
   .logo-show-light = displayed when in light mode (the default).
   .logo-show-dark  = displayed when in dark mode.
   Using `img.` selector so specificity beats `.nav__logo img` further down. */
img.logo-show-light { display: block; }
img.logo-show-dark  { display: none; }
[data-theme="dark"] img.logo-show-light { display: none; }
[data-theme="dark"] img.logo-show-dark  { display: block; }

/* ───────── NAV ───────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__logo img { height: 50px; width: auto; }
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--gold); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-toggle {
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  padding: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: all 0.2s ease;
}
.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { display: inline-block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }

.nav__cta {
  padding: 10px 22px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 100px;
  font-weight: 500;
  transition: all 0.25s ease;
}
.nav__cta:hover {
  background: var(--gold);
  color: var(--bg);
}
.nav__menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__menu-toggle span {
  display: block; width: 24px; height: 1.5px; background: var(--text);
}

/* ───────── HERO ───────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 1000px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
}
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: var(--hero-photo-filter);
  transition: transform 0.1s linear, filter 0.4s ease;
}
.hero__veil {
  position: absolute; inset: 0;
  background: var(--hero-veil);
  transition: background 0.4s ease;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: 820px;
}
.hero__eyebrow {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 30px;
}
.hero__headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--hero-text);
}
.hero__headline em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero__lede {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--hero-text-mid);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.hero__cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--gold {
  background: var(--gold);
  color: #ffffff;
}
.btn--gold:hover {
  background: var(--gold-dim);
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: var(--hero-text-mid);
  color: var(--hero-text);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.hero__scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--hero-text-mid);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold) 0%, transparent 100%);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ───────── PHILOSOPHY ───────── */
.philosophy {
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
  background: var(--bg);
  transition: background-color 0.4s ease;
}
.philosophy__eyebrow {
  color: var(--gold-dim);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.philosophy__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--display);
  max-width: 900px;
  margin: 0 auto 32px;
}
.philosophy__body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 680px;
  margin: 0 auto;
}

/* ───────── SERVICES ───────── */
.services {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--bg-alt);
  transition: background-color 0.4s ease;
}
.services__head { text-align: center; margin-bottom: 64px; }
.services__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  color: var(--display);
  letter-spacing: -0.01em;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 14px;
}
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service-card--tall { grid-row: span 2; }
.service-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--service-photo-filter);
  transition: filter 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service-card:hover img {
  filter: var(--service-photo-filter-hover);
  transform: scale(1.04);
}
.service-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}
.service-card__overlay h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: #f5efe2;
  margin-bottom: 4px;
}
.service-card__overlay p {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.services__footnote {
  text-align: center;
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* ───────── APP SECTION ───────── */
.app {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--bg-warm);
  position: relative;
  transition: background-color 0.4s ease;
}
.app::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.app__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.app__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  color: var(--display);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.app__features { list-style: none; margin-bottom: 32px; }
.app__features li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border-soft);
}
.app__features li:last-child { border-bottom: none; }
.app__features span {
  color: var(--gold);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 4px;
}
.app__note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 32px;
}
.appstore-badge { display: inline-block; transition: transform 0.2s ease; }
.appstore-badge svg { height: 56px; width: auto; }
.appstore-badge:hover { transform: translateY(-2px); }
.app__android-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app__qr-card {
  background: var(--qr-card-bg);
  color: var(--qr-card-text);
  padding: 36px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-soft);
}
.app__qr-eyebrow {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.app__qr-card img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  display: block;
  background: #fff;
  padding: 12px;
  border-radius: 6px;
}
.app__qr-caption {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--qr-card-text);
  opacity: 0.75;
}

/* ───────── VISIT ───────── */
.visit {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--bg);
  transition: background-color 0.4s ease;
}
.visit__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.visit__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.15;
  color: var(--display);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.visit__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 36px;
}
.visit__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.visit__details dt {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 600;
}
.visit__details dd {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
}
.visit__details a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.visit__details a:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.visit__photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.visit__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.05) brightness(0.95);
}

/* ───────── FOOTER (always dark for contrast) ───────── */
.footer {
  padding: 80px 0 40px;
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
}
.footer__inner { display: grid; gap: 48px; }
.footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer__brand img { height: 58px; }
.footer__brand p {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.footer__cols h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--footer-text);
  margin-bottom: 18px;
}
.footer__cols a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--footer-text-mid);
  transition: color 0.2s;
}
.footer__cols a:hover { color: var(--gold); }
.footer__base {
  border-top: 1px solid var(--footer-border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--footer-text-muted);
}
.footer__credit { font-style: italic; }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 960px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
  .service-card--tall { grid-row: span 1; }
  .app__layout { grid-template-columns: 1fr; gap: 56px; }
  .app__qr-card { max-width: 360px; margin: 0 auto; }
  .visit__layout { grid-template-columns: 1fr; gap: 48px; }
  .visit__details { grid-template-columns: 1fr; gap: 22px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    gap: 18px;
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__cta { display: none; }
  .nav__menu-toggle { display: flex; }
  .hero__cta-row { flex-direction: column; }
  .hero__cta-row .btn { width: 100%; }
  .services__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .footer__base { justify-content: center; text-align: center; }
}

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