/* ============================================================
   Hair by Paige Pothecary — soft premium feminine brand system
   Palette: blush-cream / dusty mauve / plum-brown / champagne gold
   ============================================================ */

:root {
  --ivory: #F6EDE8;
  --ivory-deep: #EFE1D8;
  --caramel: #7A4A56;
  --caramel-dark: #5F3846;
  --espresso: #46323B;
  --blush: #C4A46B;
  --blush-soft: #F1E1DF;
  --white: #FFFFFF;
  --mauve-accent: #A2707E;
  --gold-deep: #7A5C33;
  --plum-soft: #6B525A;
  --plum-muted: #C7ACA8;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Jost', Arial, sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-soft: 0 18px 40px -20px rgba(70, 50, 59, 0.35);
  --shadow-tight: 0 8px 20px -12px rgba(70, 50, 59, 0.4);

  --dur: 420ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--espresso); margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--espresso);
  color: var(--ivory);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 2px solid var(--mauve-accent);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== Reveal-on-scroll (progressive enhancement) ===== */
/* Content is fully visible without JS. JS adds .js to <html> and arms the animation. */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease); }
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: var(--caramel);
  color: var(--white);
  box-shadow: var(--shadow-tight);
}
.btn--primary:hover { background: var(--caramel-dark); }

.btn--ghost {
  background: transparent;
  border-color: var(--espresso);
  color: var(--espresso);
}
.btn--ghost:hover { background: var(--espresso); color: var(--ivory); }

.btn--light {
  background: var(--ivory);
  color: var(--espresso);
}
.btn--light:hover { background: var(--white); }

.btn--lg { padding: 1em 2.1em; font-size: 1rem; }
.btn--block { width: 100%; }

/* ===== Topbar ===== */
.topbar {
  background: var(--espresso);
  color: var(--ivory-deep);
  font-size: 0.82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 12px;
}
.topbar a { min-height: 38px; display: inline-flex; align-items: center; }
.topbar a:hover { color: var(--blush); }
.topbar__badge { display: none; }
@media (min-width: 640px) {
  .topbar__badge { display: inline-flex; }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(246, 237, 232, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(70, 50, 59, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--espresso);
}
.brand__sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-top: 3px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: var(--ivory);
  padding: 100px 28px 28px;
  transform: translateX(100%);
  box-shadow: -12px 0 40px rgba(70, 50, 59,0.15);
  z-index: 400;
}
@media (prefers-reduced-motion: no-preference) {
  .nav { transition: transform 320ms var(--ease); }
}
.nav.is-open { transform: translateX(0); }
.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(70, 50, 59,0.08);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--caramel); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  z-index: 410;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--espresso);
}
@media (prefers-reduced-motion: no-preference) {
  .nav-toggle span { transition: transform 220ms var(--ease), opacity 220ms var(--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-scrim {
  position: fixed;
  inset: 0;
  background: rgba(70, 50, 59,0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 350;
}
@media (prefers-reduced-motion: no-preference) {
  .nav-scrim { transition: opacity 260ms var(--ease); }
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

.header__cta { display: none; }
@media (min-width: 960px) {
  .header__inner { gap: 32px; }
  .nav {
    position: static;
    flex-direction: row;
    height: auto;
    width: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    transform: none;
    gap: 28px;
  }
  .nav a { min-height: auto; border-bottom: none; font-size: 0.92rem; }
  .nav-toggle, .nav-scrim { display: none; }
  .header__cta { display: inline-flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(70, 50, 59,0.15) 0%, rgba(70, 50, 59,0.55) 65%, rgba(70, 50, 59,0.82) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  color: var(--ivory);
  padding-top: 140px;
  padding-bottom: 56px;
}
.hero .eyebrow { color: var(--blush); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-style: italic;
  max-width: 14ch;
}
.hero__lede {
  color: var(--ivory-deep);
  max-width: 46ch;
  font-size: 1.08rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 30px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.85rem;
  color: var(--ivory-deep);
}
.hero__trust li { display: flex; align-items: center; gap: 6px; }
.hero__trust li span { color: var(--blush); }

/* Base: fully visible (no-js / fallback) */
.hero--stagger > * { opacity: 1; transform: none; }

/* Once JS arms animations, start hidden... */
html.js .hero--stagger > * { opacity: 0; transform: translateY(14px); }

/* ...and animate in, staggered, when motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero--stagger > * { animation: heroFade var(--dur) var(--ease) forwards; }
  html.js .hero--stagger > *:nth-child(1) { animation-delay: 60ms; }
  html.js .hero--stagger > *:nth-child(2) { animation-delay: 140ms; }
  html.js .hero--stagger > *:nth-child(3) { animation-delay: 220ms; }
  html.js .hero--stagger > *:nth-child(4) { animation-delay: 300ms; }
  html.js .hero--stagger > *:nth-child(5) { animation-delay: 380ms; }
}

/* Respect reduced motion: skip the hidden state entirely (must come after) */
@media (prefers-reduced-motion: reduce) {
  html.js .hero--stagger > * { opacity: 1; transform: none; }
}

@keyframes heroFade {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Eyebrow / section headings ===== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 0.9em;
}
.eyebrow--center { text-align: center; }
.section__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 0.35em;
}
.section__title--left { text-align: left; }
.section__lede {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 2.6em;
  color: #6B525A;
}

.section { padding: 88px 0; }
.section--alt { background: var(--ivory-deep); }
.section--blush { background: var(--blush-soft); }
.section--dark { background: var(--espresso); color: var(--ivory-deep); }
.section--dark .section__title, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--blush); }
.section--tight { padding: 56px 0; }

/* ===== Signature services trio ===== */
.grid--trio {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .grid--trio { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.service-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blush-soft);
  color: var(--caramel-dark);
}
.service-card h3 { font-size: 1.35rem; }
.service-card p { color: #6B525A; font-size: 0.95rem; }
.service-card__link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--caramel-dark);
  border-bottom: 1px solid currentColor;
}

/* ===== Circular crop accents ===== */
.crop-circle {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}
.crop-frame {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}
.crop-frame::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1.5px solid var(--mauve-accent);
  border-radius: 50%;
  opacity: 0.5;
}

/* ===== Transformation gallery band ===== */
.gallery {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  background: var(--ivory-deep);
  box-shadow: var(--shadow-tight);
}
.gallery__item--wide { aspect-ratio: 4 / 3; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .gallery__item img { transition: transform 420ms var(--ease); }
}
.gallery__item:hover img { transform: scale(1.03); }
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 10px;
  background: linear-gradient(0deg, rgba(70, 50, 59,0.75), rgba(70, 50, 59,0));
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .gallery__caption { transition: opacity 240ms var(--ease); }
}
.gallery__item:hover .gallery__caption, .gallery__item:focus-within .gallery__caption { opacity: 1; }

.gallery-cta { text-align: center; margin-top: 42px; }

/* ===== Pull quote ===== */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.4;
  color: var(--caramel-dark);
  max-width: 26ch;
}

/* ===== About Paige strip ===== */
.about-strip {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .about-strip { grid-template-columns: 0.8fr 1.2fr; }
}
.about-strip__content p { color: #6B525A; }
.about-strip__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blush-soft);
  color: var(--caramel-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ===== Reviews ===== */
.reviews {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-top: 10px;
}
@media (min-width: 760px) {
  .reviews { grid-template-columns: repeat(2, 1fr); }
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-tight);
}
.review-card__stars { color: var(--caramel); letter-spacing: 2px; margin-bottom: 12px; }
.review-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--espresso);
}
.review-card__author { font-size: 0.85rem; font-weight: 600; color: var(--caramel-dark); }
.review-card__author span { font-weight: 400; color: #6B525A; }
.review-card__note {
  display: block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #7A5C33;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Book / CTA band ===== */
.book-band {
  text-align: center;
}
.book-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}
.book-band p.section__lede { color: var(--ivory-deep); }

/* ===== Footer ===== */
.footer {
  background: var(--espresso);
  color: var(--ivory-deep);
  padding: 48px 0 28px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.footer__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--white);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 0.88rem;
}
.footer__links a:hover { color: var(--blush); }
.footer small { color: #C7ACA8; font-size: 0.78rem; }

/* ===== Mobile call/book FAB ===== */
.fab-group {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
}
@media (min-width: 960px) {
  .fab-group { display: none; }
}
.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
@media (prefers-reduced-motion: no-preference) {
  .fab { transition: transform 180ms var(--ease); }
}
.fab:active { transform: scale(0.94); }
.fab--call { background: var(--espresso); color: var(--ivory); }
.fab--book { background: var(--mauve-accent); color: var(--white); }
.fab svg { width: 22px; height: 22px; }

/* ===== Utility ===== */
.stack-sm > * + * { margin-top: 10px; }
.text-center { text-align: center; }

/* ============================================================
   Website-only additions (5-page build)
   ============================================================ */

/* ===== Inner page hero banner ===== */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(70, 50, 59,0.25) 0%, rgba(70, 50, 59,0.72) 100%);
}
.page-hero__content { position: relative; z-index: 1; color: var(--white); padding: 120px 0 44px; }
.page-hero .eyebrow { color: var(--blush); }
.page-hero h1 { color: var(--white); font-style: italic; font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-hero__lede { color: var(--ivory-deep); max-width: 56ch; }

/* ===== Price list (services page) ===== */
.price-group { margin-bottom: 48px; }
.price-group:last-child { margin-bottom: 0; }
.price-group__title {
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(122, 74, 86,0.3);
  padding-bottom: 12px;
  margin-bottom: 6px;
}
.price-group__lede { color: #6B525A; font-size: 0.92rem; margin-bottom: 20px; }
.price-list { display: flex; flex-direction: column; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(70, 50, 59,0.14);
}
.price-row:last-child { border-bottom: none; }
.price-row__name { font-weight: 600; }
.price-row__desc { display: block; font-weight: 400; font-size: 0.85rem; color: #6B525A; margin-top: 3px; }
.price-row__price {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--caramel-dark);
  white-space: nowrap;
}
.price-note {
  background: var(--blush-soft);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  font-size: 0.92rem;
  color: #6B525A;
  margin-bottom: 40px;
}
.price-note strong { color: var(--espresso); }

/* ===== Flagship callout (extensions) ===== */
.flagship {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 48px;
}
@media (min-width: 860px) {
  .flagship { grid-template-columns: 1fr 1fr; padding: 44px; }
}
.flagship__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--caramel);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.flagship__media img { border-radius: var(--radius-md); }

/* ===== Values / process list (about page) ===== */
.value-list {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 30px;
}
@media (min-width: 700px) {
  .value-list { grid-template-columns: repeat(3, 1fr); }
}
.value-list__item {
  text-align: center;
  padding: 8px;
}
.value-list__item .service-card__icon { background: var(--blush-soft); color: var(--caramel-dark); }
.value-list__item h3 { font-size: 1.15rem; }
.value-list__item p { font-size: 0.9rem; color: #6B525A; }

/* ===== Contact page ===== */
.contact-methods {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 34px;
}
@media (min-width: 700px) {
  .contact-methods { grid-template-columns: repeat(3, 1fr); }
}
.contact-method {
  background: rgba(246, 237, 232,0.06);
  border: 1px solid rgba(162, 112, 126,0.3);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
}
.section--dark .contact-method { background: rgba(255,255,255,0.04); }
.contact-method__icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--caramel);
  color: var(--white);
}
.contact-method h3 { font-size: 1.1rem; color: var(--white); }
.contact-method p { font-size: 0.85rem; color: var(--ivory-deep); margin-bottom: 16px; }

.studio-note {
  margin-top: 36px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ivory-deep);
}
