/* ============================================================
   Choyce Landing — vanilla CSS
   Brand: primary #789ece · accent gold #C9A86A · cream #F8F3EE · ink #1E1B18
   Fonts: Poppins (body) · Fraunces (display)
   ============================================================ */

/* ---- Theme tokens ---------------------------------------- */
:root {
  /* Constant brand colours (used for buttons/logo in both themes) */
  --brand: #789ece;
  --brand-dark: #5a7fae;
  --ink: #1E1B18;

  /* Light theme (default) */
  --bg: #F8F3EE;
  --surface: #ffffff;
  --surface-2: #F4EFE9;
  --border: #EDE8E1;
  --text: #1E1B18;
  --text-soft: #6B6157;
  --text-muted: #9E9590;

  --primary: #789ece;
  --primary-50: #f2f6fb;
  --link: #496a94;

  --accent: #C9A86A;
  --accent-dark: #A8853E;
  --accent-muted: #F0E4CC;

  --header-bg: rgba(248, 243, 238, 0.82);
  --header-solid: #F8F3EE;

  --shadow-card: 0 2px 20px -8px rgba(30, 27, 24, 0.14);
  --shadow-lift: 0 24px 50px -20px rgba(30, 27, 24, 0.30);

  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1120px;
}

:root[data-theme="dark"] {
  --bg: #141210;
  --surface: #201d19;
  --surface-2: #1a1714;
  --border: #2e2a25;
  --text: #F8F3EE;
  --text-soft: #cabfb4;
  --text-muted: #948a80;

  --primary: #9ab3d9;
  --primary-50: #20242c;
  --link: #9ab3d9;

  --accent: #DFC08A;
  --accent-dark: #C9A86A;
  --accent-muted: #2a251e;

  --header-bg: rgba(20, 18, 16, 0.78);
  --header-solid: #141210;

  --shadow-card: 0 2px 20px -8px rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 24px 50px -20px rgba(0, 0, 0, 0.65);
}

/* ---- Reset / base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  font-weight: 600;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent-muted); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0;
  font-size: .9rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- Layout ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(64px, 9vw, 110px); }
.section--alt { background: var(--surface-2); }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 60px);
  text-align: center;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.section-lead { margin-top: 14px; color: var(--text-soft); font-size: 1.06rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--accent); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  padding: 13px 26px; line-height: 1;
  transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-sm { padding: 10px 18px; font-size: .875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

.link-arrow { color: var(--link); font-weight: 600; font-size: .95rem; }
.link-arrow:hover { text-decoration: underline; }

/* ---- App-store badges ------------------------------------ */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff;
  padding: 9px 18px; border-radius: 12px;
  transition: transform .18s ease, opacity .2s ease;
}
.store-badge:hover { transform: translateY(-2px); opacity: .92; }
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge small { font-size: 10px; opacity: .8; }
.store-badge strong { font-size: .95rem; font-weight: 600; }

/* ---- Header ---------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  /* Always a themed, frosted bar so toggling light/dark is visible immediately,
     even while the (always-dark) hero fills the first screen. */
  --header-fg: var(--text);
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease, color .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px -18px rgba(0, 0, 0, .4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-word { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.35rem; color: var(--header-fg); transition: color .3s ease; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--header-fg); opacity: .82; font-size: .95rem; font-weight: 500; transition: opacity .2s ease, color .3s ease; }
.nav a:hover { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid color-mix(in srgb, var(--header-fg) 30%, transparent);
  border-radius: 999px; background: transparent; color: var(--header-fg); cursor: pointer;
  transition: color .3s ease, border-color .3s ease, background-color .2s ease;
}
.theme-toggle:hover { background: color-mix(in srgb, var(--header-fg) 12%, transparent); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; }

/* ---- Hero ------------------------------------------------- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: min(92vh, 820px);
  padding-block: 140px 70px;
  background: var(--ink);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background-color: #2b2723;
  background-image: url("../assets/hero-team.jpg");
  background-size: cover;
  background-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(30,27,24,0.94) 0%, rgba(30,27,24,0.78) 40%, rgba(30,27,24,0.34) 100%),
    linear-gradient(to top, rgba(30,27,24,0.85) 0%, rgba(30,27,24,0) 45%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 720px; }
.hero-title {
  font-size: clamp(2.9rem, 8vw, 5.4rem);
  font-weight: 700;
  margin-top: 6px;
}
.hero-title .accent { color: #9ab3d9; }
.hero-sub {
  margin-top: 22px; max-width: 560px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.hero-cta--center { justify-content: center; }

.hero-trust {
  list-style: none; padding: 0; margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
}
.hero-trust li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.78); font-size: .92rem; }
.hero-trust span { color: #22C55E; font-weight: 700; }

/* ---- Cards ----------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.service-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.service-icon { font-size: 2.1rem; display: block; }
.service-card h3 { margin-top: 16px; font-size: 1.3rem; }
.service-card p { margin-top: 8px; color: var(--text-soft); font-size: .96rem; }
.service-card--cta { background: var(--primary-50); border-style: dashed; border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); display: flex; flex-direction: column; }
.service-card--cta .link-arrow { margin-top: auto; padding-top: 14px; }

/* ---- Gallery --------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.gallery-copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-top: 4px; }
.gallery-copy .section-lead { margin-left: 0; margin-right: 0; }
.tick-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 30px; color: var(--text-soft); }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--accent-muted); color: var(--accent-dark);
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}

.gallery-figure {
  position: relative; margin: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: linear-gradient(135deg, var(--primary-50), var(--accent-muted));
  /* min-height: 420px; */
}
.gallery-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-fallback {
  position: absolute; inset: 0; display: none;
  place-items: center; text-align: center; padding: 24px;
  color: var(--text-soft); font-size: .9rem;
}
.gallery-fallback code { background: var(--surface); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border); }
.gallery-figure.img-missing .gallery-img { display: none; }
.gallery-figure.img-missing .gallery-fallback { display: grid; }

/* ---- Steps ----------------------------------------------- */
.steps { list-style: none; padding: 0; counter-reset: step; }
.step-card { display: flex; flex-direction: column; }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.25rem;
}
.step-card h3 { margin-top: 20px; font-size: 1.3rem; }
.step-card p { margin-top: 8px; color: var(--text-soft); }

/* ---- Featured stylists carousel -------------------------- */
.featured-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.featured-head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-top: 4px; }
.featured-head .section-lead { margin-top: 10px; max-width: 46ch; }

.carousel-arrows { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-arrow {
  width: 46px; height: 46px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 1.4rem; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.carousel-arrow:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
.carousel-arrow:active { transform: translateY(0); }

.carousel { position: relative; }
.pro-track {
  display: flex; gap: 22px; list-style: none; margin: 0;
  padding: 6px clamp(20px, 5vw, 40px) 30px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scroll-padding-inline: clamp(20px, 5vw, 40px);
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.pro-track::-webkit-scrollbar { display: none; }

.pro-card {
  flex: 0 0 clamp(238px, 74vw, 306px);
  scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease;
}
.pro-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.pro-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--g1, #789ece), var(--g2, #5a7fae));
}
.pro-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.pro-card:hover .pro-media img { transform: scale(1.06); }
.pro-monogram {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 3.4rem;
  color: rgba(255, 255, 255, 0.92); letter-spacing: .02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}
.pro-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, 0.94); color: var(--ink);
  padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  box-shadow: var(--shadow-card);
}
.pro-badge span { color: var(--brand-dark); font-weight: 700; }

.pro-info { padding: 16px 18px 20px; }
.pro-info h3 { font-size: 1.15rem; }
.pro-info p { margin-top: 3px; color: var(--text-soft); font-size: .9rem; }
.pro-city { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; color: var(--text-muted); font-size: .8rem; font-weight: 500; }
.pro-city::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--brand); }

.carousel-dots { display: flex; justify-content: center; gap: 9px; margin-top: 4px; }
.carousel-dot {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px;
  background: var(--border); cursor: pointer;
  transition: background-color .25s ease, width .25s ease;
}
.carousel-dot.active { background: var(--brand); width: 22px; }

@media (max-width: 620px) {
  .featured-head { flex-direction: column; align-items: flex-start; }
  .carousel-arrows { display: none; }
}

/* ---- For-stylists band ----------------------------------- */
.band { background: var(--ink); color: #fff; }
.band-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 64px); align-items: center; }
.band-title { font-size: clamp(1.9rem, 4vw, 2.75rem); color: #fff; }
.band-lead { margin: 16px 0 28px; color: rgba(255, 255, 255, 0.72); max-width: 460px; }
.band-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); padding: 22px; }
.stat-value { display: block; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.7rem; color: var(--accent); }
.stat-label { display: block; margin-top: 6px; font-size: .9rem; color: rgba(255, 255, 255, 0.66); }

/* ---- Final CTA ------------------------------------------- */
.cta-final { background: var(--primary-50); }
.cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.cta-inner > p { margin: 14px 0 30px; color: var(--text-soft); font-size: 1.06rem; }

/* ---- Footer ---------------------------------------------- */
.site-footer { background: var(--ink); color: #fff; padding-block: 54px 30px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 320px; }
.footer-brand .logo-word { color: #fff; }
.footer-brand p { margin-top: 14px; color: rgba(255, 255, 255, 0.66); font-size: .92rem; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a, .footer-social a { color: rgba(255, 255, 255, 0.72); font-size: .92rem; }
.footer-nav a:hover, .footer-social a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: .86rem; color: rgba(255, 255, 255, 0.6);
}
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

/* ---- Reveal animation (only when JS is present) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero-content .reveal.is-visible:nth-child(2) { transition-delay: .06s; }
.hero-content .reveal.is-visible:nth-child(3) { transition-delay: .12s; }
.hero-content .reveal.is-visible:nth-child(4) { transition-delay: .18s; }
.hero-content .reveal.is-visible:nth-child(5) { transition-delay: .24s; }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-figure { min-height: 340px; order: -1; }
  .band-grid { grid-template-columns: 1fr; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px; cursor: pointer;
    background: transparent; border: 1px solid color-mix(in srgb, var(--header-fg) 30%, transparent);
    border-radius: 10px;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--header-fg); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header-solid);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 14px;
    box-shadow: var(--shadow-lift);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { color: var(--text); opacity: 1; padding: 13px clamp(20px, 5vw, 40px); font-weight: 500; }
  .nav a:hover { background: var(--surface-2); }

  /* Force a solid header once the menu is open so the panel reads correctly */
  .site-header.nav-open { --header-fg: var(--text); background: var(--header-solid); border-bottom-color: var(--border); }
}

@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .band-stats { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .hero { min-height: auto; padding-block: 120px 60px; }
  .hero-overlay { background: linear-gradient(160deg, rgba(30,27,24,0.9) 0%, rgba(30,27,24,0.72) 55%, rgba(30,27,24,0.5) 100%); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
