/* ==========================================================================
   Joanne Rose Beauty — site stylesheet
   Brand system: sage green #9bbd9b primary, Marcellus display font
   (matching the established Joanne Rose Beauty branding), with the
   logo's rose pink kept as a small accent.
   ========================================================================== */

:root {
  --primary: #9bbd9b;
  --primary-dark: #86ab86;
  --primary-deep: #567c56;
  --primary-ink: #3f5c3f;
  --primary-soft: #e9f1e9;
  --primary-mist: #f4f8f4;
  --rose: #c2185b;
  --rose-dark: #9c1349;
  --rose-soft: #f7e3ea;
  --rose-mist: #fbf2f5;
  --ink: #2f332c;
  --ink-soft: #64695f;
  --cream: #fbfaf7;
  --white: #ffffff;
  --line: #e4e8de;
  --shadow: 0 10px 30px -12px rgba(47, 51, 44, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(47, 51, 44, 0.14);
  --radius: 18px;
  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1.1em; }

a {
  color: var(--primary-deep);
  text-decoration: none;
}

a:hover { color: var(--primary-ink); }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 200;
}

.skip-link:focus { left: 0; color: var(--white); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 8px 20px -8px rgba(86, 124, 86, 0.55);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--primary-ink);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--primary-deep);
  color: var(--primary-deep);
}

.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary-ink);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}

.brand img { width: 40px; height: 40px; }

/* Brand wordmark: always Marcellus, regular weight, brand ink —
   matches the established Joanne Rose Beauty logo lockup */
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.brand-name em {
  font-style: normal;
  color: inherit;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a,
.sub-toggle {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.sub-toggle:hover {
  color: var(--primary-deep);
  border-bottom-color: var(--primary);
}

.has-sub { position: relative; }

.sub-toggle {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sub-toggle::after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}

.has-sub.open .sub-toggle::after { transform: rotate(225deg) translateY(-2px); }

.sub-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.5rem !important;
  min-width: 190px;
  display: none !important;
  flex-direction: column;
  gap: 0 !important;
}

.has-sub.open .sub-menu { display: flex !important; }

.sub-menu a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 9px;
  border-bottom: none;
  white-space: nowrap;
}

.sub-menu a:hover { background: var(--primary-mist); }

.header-cta { flex-shrink: 0; padding: 0.6rem 1.3rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 110% -10%, var(--primary-soft) 0%, transparent 60%),
    radial-gradient(50rem 26rem at -15% 110%, var(--rose-mist) 0%, transparent 55%),
    var(--cream);
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 24rem;
  height: 24rem;
  background: url("/assets/logo.png") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--rose);
}

.hero .lede {
  max-width: 40rem;
  margin: 0 auto 2.2rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 2.6rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-alt { background: var(--white); border-block: 1px solid var(--line); }

.section-head {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 0.7rem;
}

.section-head p { color: var(--ink-soft); }

/* Services overview cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Cards can be links (treatments page) — keep text colours intact */
a.service-card {
  display: block;
  color: inherit;
}

.service-card .card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.9rem;
  margin-top: 0.2rem;
}

.service-card .go {
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

a.service-card:hover .go { color: var(--primary-ink); }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-mist);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  font-size: 1.5rem;
}

.service-card h3 { margin-bottom: 0.4rem; }

.service-card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 0.8rem;
}

.service-card .from {
  font-weight: 700;
  color: var(--primary-deep);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Price list
   -------------------------------------------------------------------------- */

.price-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}

.price-tab {
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.price-tab:hover { border-color: var(--primary); color: var(--primary-deep); }

.price-tab[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}

.price-panel { max-width: 46rem; margin-inline: auto; }

.price-panel[hidden] { display: none; }

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px dashed var(--line);
}

.price-list .treatment { font-weight: 600; }

.price-list .duration {
  color: var(--ink-soft);
  font-size: 0.88rem;
  white-space: nowrap;
}

.price-list .fill {
  flex: 1;
  border-bottom: 1px dotted #c3cfc0;
  transform: translateY(-4px);
  min-width: 1.5rem;
}

.price-list .patch {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--rose-dark);
  margin-top: 0.15rem;
}

.price-list .price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--rose);
  white-space: nowrap;
}

.price-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 2px solid var(--primary-soft);
  border-radius: var(--radius);
  z-index: -1;
}

.about-copy .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 0.7rem;
}

.about-copy p { color: var(--ink-soft); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 1.8rem;
}

.badge {
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.quote-card .stars {
  color: #e3a008;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.quote-card blockquote {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  color: var(--ink);
  flex: 1;
}

.quote-card figcaption {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.center-cta { text-align: center; margin-top: 2.6rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.contact-card .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--primary-mist);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.contact-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }

.contact-card p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 0.3rem; }

.contact-card a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Page hero (subpages)
   -------------------------------------------------------------------------- */

.page-hero {
  background:
    radial-gradient(50rem 24rem at 100% -20%, var(--primary-soft) 0%, transparent 60%),
    var(--cream);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 0.7rem;
}

.page-hero p {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--ink-soft);
}

/* Prose pages (aftercare, policies) */

.prose {
  max-width: 44rem;
  margin-inline: auto;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
  padding-top: 0.4em;
}

.prose h2:first-child { margin-top: 0; }

.prose ul { padding-left: 1.3rem; color: var(--ink); }

.prose li { margin-bottom: 0.5em; }

.prose .callout {
  background: var(--primary-mist);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.4rem;
  margin: 1.8rem 0;
}

.prose .callout p:last-child { margin-bottom: 0; }

/* Facials feature list */

.facial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}

.facial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

/* Facial cards link through to the facials price grouping */
a.facial-card {
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.facial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

a.facial-card .meta .go {
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

a.facial-card:hover .meta .go { color: var(--primary-ink); }

.facial-card .tag {
  align-self: flex-start;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.facial-card p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }

.facial-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--line);
  padding-top: 1rem;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.facial-card .meta .price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--rose);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(120deg, var(--primary-deep) 0%, var(--primary-ink) 100%);
  color: var(--white);
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.cta-band h2 { color: var(--white); }

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin: 0 auto 1.8rem;
}

.cta-band .btn {
  background: var(--white);
  color: var(--primary-ink);
}

.cta-band .btn:hover { transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #25301f;
  color: #c3cfc0;
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-brand img { width: 36px; height: 36px; }

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
}

.site-footer a { color: #dbe6d8; }

.site-footer a:hover { color: var(--white); }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: 0.5rem; }

.social-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.social-row a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.social-row svg { width: 18px; height: 18px; fill: #dbe6d8; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #98a693;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* The full nav (5 items + brand + call button) needs ~940px to breathe */
@media (max-width: 960px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem 4%;
    display: none;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a,
  .sub-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .sub-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sub-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--primary-mist);
    min-width: 0;
  }

  .sub-menu a { padding-left: 1.4rem; }

  .header-cta { display: none; }

  .about-grid { grid-template-columns: 1fr; }

  .about-photo { max-width: 380px; margin-inline: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; justify-content: center; }

  .price-list li { flex-wrap: wrap; row-gap: 0.1rem; }

  .price-list .fill { display: none; }

  .price-list .price { margin-left: auto; }
}
