/*
Theme Name: Bellareach
Theme URI: https://bellareach.com
Author: Bellareach
Description: One-page marketing theme for Bellareach — lead generation for beauty salons. Built from the Bellareach brand guidelines.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: bellareach
*/

/* ============================================================
   TOKENS — from Bellareach Brand Guidelines v1
   ============================================================ */
:root {
  /* Core palette */
  --clay:        #D9694E; /* Primary — buttons, links, key accents */
  --clay-dark:   #b8503a; /* Link hover */
  --ink:         #2E2126; /* Text — headlines & body */
  --honey:       #E7A64C; /* Accent — highlights, badges, glow */
  --blush:       #F3CDBF; /* Soft — backgrounds, cards, fills */
  --cream:       #FAF3EA; /* Base — the default canvas */
  --plum:        #6E4A5A; /* Secondary — labels & supporting text */

  /* Derived surfaces */
  --sand:        #F6E6D8; /* Secondary canvas (trust bar, footer) */
  --line:        #eee2d4;
  --line-2:      #e7d4c4;
  --body-text:   #3d2c33;
  --muted:       #5a4750;
  --soft:        #8a7680;

  /* On-dark */
  --dark-card:   #3a2a31;
  --dark-line:   #4a3840;
  --dark-muted:  #d8c3b8;
  --dark-soft:   #9a848d;

  /* Gradient — "Golden hour". Reserved for hero moments. Use sparingly. */
  --golden-hour: linear-gradient(120deg, var(--clay), var(--honey));

  /* Type */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-text: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 8vw, 120px);
  --radius: 20px;
  --radius-lg: 24px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-dark); }

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: var(--cream); }

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

/* ============================================================
   TYPE PRIMITIVES
   ============================================================ */
.eyebrow {
  display: block;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--clay); font-weight: 600;
}
.eyebrow--honey { color: var(--honey); }

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(30px, 4.4vw, 52px);
  margin: 14px 0 0;
}

.lede { font-size: 18px; color: var(--muted); margin: 18px 0 0; text-wrap: pretty; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 17px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--clay); color: var(--cream); }
.btn--primary:hover { background: var(--clay-dark); color: var(--cream); }

.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #43303a; color: var(--cream); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--clay); color: var(--clay); }

.btn--outline { background: transparent; color: var(--clay); border-color: var(--clay); }
.btn--outline:hover { background: var(--clay); color: var(--cream); }

.btn--on-gradient {
  background: rgba(250, 243, 234, 0.16);
  color: var(--cream);
  border-color: rgba(250, 243, 234, 0.5);
}
.btn--on-gradient:hover { background: rgba(250, 243, 234, 0.28); color: var(--cream); }

.btn--sm { font-size: 16px; padding: 13px 26px; }
.btn--block { display: block; width: 100%; }

/* ============================================================
   BRAND MARK
   ============================================================ */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--clay); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; line-height: 1;
  flex-shrink: 0;
}
.brand__word {
  font-weight: 800; letter-spacing: -0.02em; font-size: 19px; color: var(--ink);
}
.brand__word em { font-style: normal; color: var(--clay); }
/* On dark, "reach" switches to Honey per the guidelines */
.is-dark .brand__word { color: var(--cream); }
.is-dark .brand__word em { color: var(--honey); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 243, 234, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--body-text); }
.nav__links a:hover { color: var(--clay); }
.nav__toggle { display: none; padding: 8px; margin: -8px; }
.nav__toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
}
.nav__toggle span + span { margin-top: 5px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) var(--gutter) clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blush); color: var(--ink);
  font-size: 13px; font-weight: 600; padding: 7px 14px;
  border-radius: 999px; letter-spacing: 0.02em;
}
.hero__badge i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--clay);
  display: inline-block; flex-shrink: 0;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 0.98; letter-spacing: -0.02em;
  margin: 22px 0 0;
  animation: om-rise .8s cubic-bezier(.2,.7,.2,1) .05s both;
}
.hero__title em { font-style: normal; color: var(--clay); }
.hero__copy {
  font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--body-text);
  max-width: 500px; margin: 24px 0 0; text-wrap: pretty;
  animation: om-rise .8s cubic-bezier(.2,.7,.2,1) .18s both;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px;
  animation: om-rise .8s cubic-bezier(.2,.7,.2,1) .3s both;
}
.hero__proof { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.hero__proof p { margin: 0; font-size: 14px; color: var(--muted); }
.hero__proof strong { color: var(--ink); }

.avatars { display: flex; flex-shrink: 0; }
.avatars span {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.avatars span + span { margin-left: -10px; }
.avatars span:nth-child(1) { background: var(--blush); }
.avatars span:nth-child(2) { background: var(--honey); }
.avatars span:nth-child(3) { background: var(--plum); color: var(--cream); }

.hero__visual { position: relative; }

/* Floating cards */
.float-card {
  position: absolute; background: #fff; border-radius: 18px;
  padding: 18px 22px; box-shadow: 0 20px 40px -20px rgba(46,33,38,.45);
  display: flex; align-items: center; gap: 14px;
  animation: om-float 6s ease-in-out infinite;
}
.float-card--bookings { bottom: -22px; left: -22px; }
.float-card__num {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--golden-hour); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; line-height: 1;
  overflow: hidden; flex-shrink: 0;
}
.float-card__num span { display: inline-block; }
.float-card__label { font-size: 15px; font-weight: 700; color: var(--ink); }
.float-card__meta { font-size: 13px; color: var(--soft); }

.lead-card {
  position: absolute; top: 20px; right: -16px;
  background: var(--ink); color: var(--cream);
  border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 20px 40px -20px rgba(46,33,38,.55);
  max-width: 190px; perspective: 400px;
  animation: om-float 7s ease-in-out -2.5s infinite;
}
.lead-card__tag {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--honey); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.lead-card__tag i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--honey);
  display: inline-block; animation: om-pulse 1.9s ease-out infinite;
}
.lead-card__line { font-size: 14px; margin-top: 6px; transform-origin: top center; }

/* ============================================================
   MEDIA FRAMES
   ============================================================ */
.media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--blush); aspect-ratio: 1 / 1;
  box-shadow: 0 30px 60px -30px rgba(46,33,38,.5);
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  font-size: 14px; color: var(--plum);
  background: repeating-linear-gradient(45deg, var(--blush), var(--blush) 12px, #f7d9ce 12px, #f7d9ce 24px);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust { border-block: 1px solid var(--line); background: var(--sand); }
.trust__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.trust__label {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--plum); font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: var(--cream); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px;
  transition: transform .2s ease, border-color .2s ease;
}
.chip:hover { transform: translateY(-3px); border-color: var(--clay); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { max-width: var(--wrap); margin: 0 auto; padding: var(--section-y) var(--gutter); }
.section__head { max-width: 660px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 56px; }

.card {
  background: #fff; border-radius: var(--radius); padding: 36px;
  box-shadow: 0 16px 40px -30px rgba(46,33,38,.5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 52px -26px rgba(46,33,38,.5); }
.card__step {
  width: 44px; height: 44px; border-radius: 12px; background: var(--blush);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; color: var(--clay);
}
.card h3 { font-size: 21px; margin: 22px 0 8px; font-weight: 700; }
.card p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.5; }

/* ============================================================
   RESULTS (dark)
   ============================================================ */
.results { background: var(--ink); color: var(--cream); }
.results .section { padding-block: var(--section-y); }
.results .h-display { color: var(--cream); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 56px; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 72px); line-height: 1; color: var(--honey);
}
.stat__num sup { font-size: .4em; vertical-align: baseline; }
.stat p { margin: 10px 0 0; font-size: 16px; color: var(--dark-muted); }

/* ============================================================
   PRICING
   ============================================================ */
.tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px; margin-top: 56px; align-items: start;
}
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 38px 34px; box-shadow: 0 16px 40px -30px rgba(46,33,38,.5);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.tier:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -26px rgba(46,33,38,.45); }
.tier__name { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--plum); font-weight: 700; }
.tier__price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.tier__price b { font-family: var(--font-display); font-size: 56px; line-height: 1; font-weight: 400; }
.tier__price span { font-size: 16px; color: var(--soft); }
.tier__desc { margin: 14px 0 0; font-size: 16px; color: var(--muted); line-height: 1.5; }
.tier__rule { height: 1px; background: var(--line); margin: 28px 0; border: 0; }
.tier__list { display: flex; flex-direction: column; gap: 13px; font-size: 15px; color: var(--body-text); margin: 0; padding: 0; list-style: none; }
.tier__list li { display: flex; gap: 11px; }
.tier__list li::before { content: "✓"; color: var(--clay); font-weight: 700; flex-shrink: 0; }
.tier__cta { margin-top: 32px; }

.tier--featured { background: var(--ink); color: var(--cream); border-color: var(--ink); box-shadow: 0 26px 56px -26px rgba(46,33,38,.6); }
.tier--featured:hover { box-shadow: 0 34px 66px -24px rgba(46,33,38,.6); }
.tier--featured .tier__name { color: var(--honey); }
.tier--featured .tier__price span { color: #b9a3ab; }
.tier--featured .tier__desc { color: var(--dark-muted); }
.tier--featured .tier__rule { background: var(--dark-line); }
.tier--featured .tier__list { color: var(--cream); }
.tier--featured .tier__list li::before { color: var(--honey); }
.tier__flag {
  position: absolute; top: -13px; left: 34px;
  background: var(--honey); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.pricing__note { text-align: center; font-size: 15px; color: var(--plum); margin: 34px 0 0; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial {
  max-width: var(--wrap); margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25;
  letter-spacing: -0.01em; text-wrap: pretty; margin: 0;
}
.testimonial figcaption { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.testimonial__avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--blush);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--ink); flex-shrink: 0;
}
.testimonial__who strong { font-size: 16px; display: block; }
.testimonial__who span { font-size: 14px; color: var(--soft); }

/* ============================================================
   CTA
   ============================================================ */
.cta-wrap { padding: 0 var(--gutter) var(--section-y); }
.cta {
  max-width: var(--wrap); margin: 0 auto;
  background: linear-gradient(120deg, var(--clay), var(--honey), var(--clay));
  background-size: 180% 180%;
  border-radius: 28px;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 72px);
  text-align: center; color: var(--cream);
  animation: om-gradient 9s ease infinite;
}
.cta h2 {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 60px);
  line-height: 1.02; letter-spacing: -0.01em; margin: 0;
}
.cta p { font-size: clamp(17px, 2vw, 20px); max-width: 520px; margin: 20px auto 0; opacity: .95; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.cta__note { font-size: 14px; margin: 22px 0 0; opacity: .85; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--sand); }
.footer__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: center;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; font-weight: 500; }
.footer__links a { color: var(--body-text); }
.footer__links a:hover { color: var(--clay); }
.footer__legal { font-size: 14px; color: var(--plum); }
.footer .brand__mark { width: 32px; height: 32px; font-size: 19px; }
.footer .brand__word { font-size: 18px; }

/* ============================================================
   ANIMATION
   ============================================================ */
@keyframes om-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes om-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes om-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(231,166,76,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(231,166,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,166,76,0); }
}
@keyframes om-flip { 0% { opacity: 0; transform: rotateX(-85deg); } 55% { opacity: 1; } 100% { opacity: 1; transform: rotateX(0); } }
@keyframes om-tick { 0% { opacity: 0; transform: translateY(75%); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes om-gradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ------------------------------------------------------------
   Scroll reveals.

   Content is visible by DEFAULT. The hidden state is scoped to .js,
   which main.js stamps on <html> only once it knows it can reveal
   things again. Without JS — crawlers, a script error, an old browser
   — the page renders fully instead of staying blank.
   ------------------------------------------------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(14px) scale(.96);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.js [data-reveal].is-in,
.js [data-stagger].is-in > * {
  opacity: 1;
  transform: none;
}

/* Failsafe: set by the inline head script if main.js never booted. */
.no-reveal [data-reveal],
.no-reveal [data-stagger] > * { opacity: 1 !important; transform: none !important; }

/* ============================================================
   RESPONSIVE
   The source design had no breakpoints — the hero and testimonial
   were fixed two-column grids. These collapse them properly.
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: none; }
  .hero__visual { max-width: 480px; width: 100%; margin-inline: auto; }
  .float-card--bookings { bottom: -18px; left: 0; }
  .lead-card { right: 0; }

  .testimonial { grid-template-columns: 1fr; gap: 40px; }
  /*
   * width:100% is load-bearing. `margin-inline:auto` cancels a grid item's
   * default stretch, so without an explicit width this shrink-to-fits — and
   * because the <img> inside is absolutely positioned there is no in-flow
   * content, collapsing the frame to 0x0 and hiding the photo entirely.
   */
  .testimonial .media { width: 100%; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 780px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 14px; }
  .nav__inner { position: relative; }
}

@media (max-width: 560px) {
  .float-card--bookings { left: -6px; bottom: -14px; padding: 14px 16px; }
  /*
   * Lifted above the frame and pulled right so it clears the stylist's face.
   * At this width the photo scales down but the card doesn't, so the default
   * placement lands squarely over her eye. Narrower + higher keeps the overhang
   * consistent with the bookings card at bottom-left.
   */
  .lead-card { right: -10px; top: -20px; max-width: 150px; padding: 12px 14px; }
  .trust__inner { justify-content: flex-start; }
  .tier { padding: 32px 26px; }
  .footer__inner { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover, .card:hover, .tier:hover, .chip:hover { transform: none; }

  /* Never let the reveal system leave content hidden. */
  .js [data-reveal],
  .js [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}
