/* ==========================================================================
   Brows by Rosie — design tokens
   ========================================================================== */
:root {
  --ink:        #1A1412;
  --paper:      #FBF3EF;
  --paper-soft: #F4E9E3;
  --rosewood:   #7A1F2B;
  --rosewood-deep: #591520;
  --blush:      #F3C7D6;
  --blush-soft: #FBEAF0;
  --charcoal:   #4A413D;
  --charcoal-soft: #8A7F79;
  --border:     rgba(26,20,18,0.10);
  --border-light: rgba(255,255,255,0.16);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --max-width: 1160px;
  --space-section: clamp(40px, 6vw, 80px);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

:focus-visible {
  outline: 2px solid var(--rosewood);
  outline-offset: 3px;
}

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

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
/* Content is visible by default. Only the .js-ready class (added by script.js
   once it successfully runs) switches to the animated hidden->visible state.
   This means if JavaScript fails to load or run for any reason, all content
   still shows immediately — animation is a bonus, never a requirement. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Wordmark
   ========================================================================== */
.wordmark { display: inline-flex; align-items: center; }
.logo-img { height: 46px; width: auto; display: block; }
.logo-img--footer { height: 54px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(251,243,239,0.92);
  backdrop-filter: blur(8px);
  z-index: -1;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--charcoal);
  transition: color 0.2s ease;
}
.primary-nav a:hover { color: var(--rosewood); }
.primary-nav a.nav-book,
.primary-nav a.nav-book:hover {
  color: var(--paper);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--rosewood); color: var(--paper); }
.btn-primary:hover { background: var(--rosewood-deep); transform: translateY(-1px); }
.btn-outline { border-color: var(--blush); color: var(--paper); }
.btn-outline:hover { background: var(--blush); color: var(--ink); transform: translateY(-1px); }
.btn-large { padding: 16px 36px; font-size: 1rem; }

.nav-book { padding: 10px 20px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.92rem; color: var(--rosewood);
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.link-arrow::after { content: '→'; transition: transform 0.2s ease; }
.link-arrow:hover { border-color: var(--rosewood); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ==========================================================================
   Eyebrow / section heading
   ========================================================================== */
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rosewood); font-weight: 600; margin: 0 0 14px;
}
.eyebrow--light { color: var(--blush); }
.eyebrow.center { text-align: center; }

.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.25; margin: 0 0 28px; max-width: 640px;
}
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }

.section { padding: var(--space-section) 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center;
}
.hero-headline {
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 500;
}
.hero-headline em { font-style: italic; color: var(--rosewood); font-weight: 400; }
.hero-sub {
  font-size: 1.08rem; color: var(--charcoal); max-width: 440px; margin: 0 0 22px;
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-slideshow {
  position: relative; width: 100%; max-width: 380px;
  padding-top: 133.33%; /* 3:4 portrait box — reliable height on all mobile browsers */
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 40px rgba(26,20,18,0.16);
  background: var(--paper-soft);
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  image-orientation: from-image;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }

/* ==========================================================================
   Tagline strip
   ========================================================================== */
.tagline-strip {
  background: var(--rosewood); color: var(--blush-soft);
  padding: 12px 0; text-align: center;
}
.tagline-strip p {
  margin: 0; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
}

/* ==========================================================================
   How I work
   ========================================================================== */
.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 4px; }
.info-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 22px;
}
.card-mark {
  font-family: var(--font-display); font-style: italic; font-size: 1.6rem;
  color: var(--blush); margin-bottom: 8px;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.info-card p { margin: 0; color: var(--charcoal); font-size: 0.94rem; }

/* ==========================================================================
   Services (no pricing — just what she's known for)
   ========================================================================== */
.menu-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border); }
.menu-row {
  padding: 22px 4px; border-bottom: 1px solid var(--border);
}
.menu-row-text h3 { font-size: 1.15rem; margin-bottom: 6px; }
.menu-row-text p { margin: 0; color: var(--charcoal-soft); font-size: 0.92rem; }
.menu-note { text-align: center; color: var(--charcoal-soft); font-size: 0.85rem; margin-top: 24px; }

/* ==========================================================================
   Sub-page header (Services, About)
   ========================================================================== */
.page-header { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.page-heading {
  font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.15; margin: 0 0 18px;
}
.page-heading.center { text-align: center; }
.page-sub {
  color: var(--charcoal); max-width: 560px; margin: 0 auto; font-size: 1.02rem; line-height: 1.7;
}
.page-sub.center { text-align: center; }

/* ==========================================================================
   Service detail articles (services.html)
   ========================================================================== */
.service-detail-list { padding-top: clamp(8px, 2vw, 16px); padding-bottom: clamp(48px, 7vw, 88px); }
.service-detail {
  max-width: 720px; margin: 0 auto; padding: 52px 0; border-bottom: 1px solid var(--border);
}
.service-detail:first-child { padding-top: 8px; }
.service-detail:last-child { border-bottom: none; }
.service-detail-head h2 { font-size: 1.5rem; margin: 0 0 18px; }
.service-detail > p.service-intro { color: var(--charcoal); margin: 0 0 28px; max-width: 620px; line-height: 1.75; font-size: 1.02rem; }
.service-block { margin-bottom: 26px; }
.service-block:last-of-type { margin-bottom: 30px; }
.service-block-label {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rosewood); font-weight: 600; margin: 0 0 12px;
}
.service-includes { margin: 0; padding-left: 0; }
.service-includes li {
  position: relative; padding-left: 20px; margin-bottom: 10px;
  color: var(--charcoal); font-size: 0.96rem; line-height: 1.6;
}
.service-includes li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--rosewood);
}

/* ==========================================================================
   Footer social icons
   ========================================================================== */
.social-row { display: flex; gap: 16px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-row svg { width: 18px; height: 18px; }
.social-row a:hover { background: var(--blush); color: var(--ink); transform: translateY(-2px); }

/* ==========================================================================
   Portfolio gallery (portfolio.html)
   ========================================================================== */
.portfolio-gallery { padding-top: clamp(8px, 2vw, 16px); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-item { margin: 0; }
.gallery-item img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top;
  border-radius: var(--radius-md); image-orientation: from-image; margin-bottom: 10px;
}
.gallery-item figcaption {
  text-align: center; font-size: 0.88rem; font-weight: 500; color: var(--charcoal);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.stars { color: var(--rosewood); font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-quote {
  font-family: var(--font-display); font-style: italic; font-size: 1rem;
  color: var(--ink); line-height: 1.6; margin: 0 0 16px;
}
.testimonial-name { font-size: 0.85rem; font-weight: 600; color: var(--charcoal); margin: 0; }
.testimonial-source { font-size: 0.8rem; color: var(--charcoal-soft); margin: 2px 0 0; }
.testimonials-cta { text-align: center; margin-top: 28px; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 32px; align-items: center; }
.monogram {
  width: 168px; height: 168px; border-radius: 50%;
  background: var(--ink); color: var(--blush);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-size: 3.4rem;
  margin: 0 auto;
}
.about-copy p { color: var(--charcoal); max-width: 560px; margin: 12px 0 20px; }

/* ==========================================================================
   Academy band
   ========================================================================== */
.academy-band { background: var(--ink); color: var(--paper); padding: var(--space-section) 0; }
.academy-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.academy-heading {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); max-width: 480px; margin: 0 0 8px; color: var(--paper);
}
.academy-copy { max-width: 440px; color: rgba(251,243,239,0.7); margin: 0; }

/* ==========================================================================
   Book CTA
   ========================================================================== */
.book-cta { text-align: center; }
.book-inner p { color: var(--charcoal); margin: 0 0 24px; }
.book-inner .section-heading { margin-bottom: 10px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); padding: 36px 0 24px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.88rem; color: rgba(251,243,239,0.75); }
.footer-nav a:hover { color: var(--blush); }
.footer-copy { font-size: 0.8rem; color: rgba(251,243,239,0.5); margin: 0; width: 100%; text-align: center; padding-top: 24px; border-top: 1px solid var(--border-light); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto 12px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-copy p { margin-left: auto; margin-right: auto; }
  .card-row { grid-template-columns: 1fr; }
  .testimonial-row { grid-template-columns: 1fr; }
  .academy-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 72px 0 0 0; background-color: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 20px;
    transform: translateX(100%); transition: transform 0.3s ease;
    z-index: 60;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav a { font-size: 1.05rem; }
  .nav-book { align-self: flex-start; }
}

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
