/* =====================================================================
   Minazh Hair Lounge: shared styles for every page
   Rules live in DESIGN-NOTES.md. Only use the approved colour pairings.
   ===================================================================== */

/* ===== 1. COLOURS (from her logo) ===== */
:root {
  --black: #0F0D0C;
  --charcoal: #1C1816;
  --spotlight: #3A2F25;     /* background glow only */
  --gold: #CDA366;          /* text only on dark */
  --champagne: #E0C598;     /* text only on dark */
  --bronze: #A8865A;        /* darkest gradient stop */
  --deep-gold: #6E5232;     /* gold-coloured text on light */
  --blush: #E9B8B0;         /* text only on dark */
  --blush-tint: #F6E3DE;    /* light background */
  --rose: #7A3F38;          /* rose text on light */
  --cream: #FAF4EF;
  --muted-light: #5E534B;   /* secondary text on light */
  --muted-dark: #C9BFB6;    /* secondary text on dark */

  --metal: linear-gradient(180deg, #F1DDB3 0%, #CDA366 55%, #A8865A 100%);
  --btn-gold: linear-gradient(180deg, #EED7A6 0%, #C99C5E 100%);

  --radius: 16px;
  --max: 72rem;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
}

/* ===== 2. BASICS ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* anything marked "hidden" in the HTML always stays hidden, whatever other styles say */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;          /* 17px, in rem so it grows with zoom */
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
p + p { margin-top: 1rem; }
ul { padding-left: 1.2rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.readable { max-width: 40rem; }   /* keeps lines under ~75 characters */
.center { text-align: center; }
.center .readable { margin-left: auto; margin-right: auto; }

/* Hide text visually but keep it for screen readers */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ===== 3. SKIP LINK (first thing a keyboard user reaches) ===== */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--cream); color: var(--charcoal);
  padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* ===== 4. FOCUS: always visible, colour depends on background ===== */
:root { --focus: var(--deep-gold); }
.on-dark { --focus: var(--blush); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* ===== 5. SECTIONS: light / blush / dark ===== */
.section { padding: 5.5rem 0; }
.section-light { background: var(--cream); color: var(--charcoal); }
.section-blush { background: var(--blush-tint); color: var(--charcoal); }
.section-dark  { background: var(--black); color: var(--cream); }
/* the soft spotlight from her logo */
.section-glow {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, var(--spotlight) 0%, rgba(58,47,37,0) 70%),
    var(--black);
  color: var(--cream);
}

/* Small label above headings: sentence case, never all caps */
.eyebrow { font-size: 0.95rem; letter-spacing: 0.08em; font-weight: 500; margin-bottom: 0.6rem; color: var(--rose); }
.on-dark .eyebrow { color: var(--blush); }
.lead { font-size: 1.15rem; color: var(--muted-light); }
.on-dark .lead { color: var(--muted-dark); }

/* Metallic gold heading: large text on dark only */
.metal { color: var(--champagne); }   /* plain fallback (11.6:1) */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .metal {
    background: var(--metal);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
/* Windows high-contrast mode: show plain text instead of the gradient */
@media (forced-colors: active) {
  .metal { -webkit-text-fill-color: CanvasText; background: none; }
}

/* Thin gold divider, like the ring in her logo */
.divider { width: 4rem; height: 1px; background: var(--gold); margin: 1.25rem auto; border: 0; }
.section-light .divider, .section-blush .divider { background: var(--deep-gold); }

/* ===== 6. LINKS & BUTTONS ===== */
a { color: var(--deep-gold); text-underline-offset: 0.2em; }
.on-dark a { color: var(--champagne); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.75rem;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0.03em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s, filter 0.2s, background-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
/* gold button: black text (7.8:1 or more) */
.btn-gold, .on-dark a.btn-gold { background: var(--btn-gold); color: var(--black); }
.btn-gold:hover { filter: brightness(1.06); }
/* outline button on dark backgrounds */
.btn-outline, .on-dark a.btn-outline { border-color: var(--champagne); color: var(--cream); background: transparent; }
.btn-outline:hover { background: rgba(224,197,152,0.12); }
/* dark button on light backgrounds (16:1) */
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover { background: #2E2724; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.center .btn-row { justify-content: center; }

/* ===== 7. HEADER & NAVIGATION ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 1px solid rgba(205,163,102,0.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.on-dark a.brand { color: var(--champagne); }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand span { font-family: var(--font-head); font-size: 1.45rem; font-weight: 500; letter-spacing: 0.03em; }

.nav-list { list-style: none; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.nav-list a { color: var(--cream); text-decoration: none; padding: 0.6rem 0; display: inline-block; }
.nav-list a:hover { color: var(--champagne); }
.nav-list a[aria-current="page"] { color: var(--champagne); border-bottom: 2px solid var(--gold); }
.nav-list .btn { padding: 0.6rem 1.4rem; }
/* The gold "Book now" button keeps black text in every state (hover, current page).
   Without this, the normal nav-link hover colour turned its text champagne on gold. */
.site-header .nav-list a.btn-gold,
.site-header .nav-list a.btn-gold:hover,
.site-header .nav-list a.btn-gold[aria-current="page"] {
  color: var(--black);
  border: 0;
  padding: 0.6rem 1.4rem;
}
.menu-toggle { display: none; }

/* ===== 8. CARDS & GRIDS ===== */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.card { border-radius: var(--radius); padding: 2rem; background: #FFFFFF; border: 1px solid #EBDDD3; }
.card p { color: var(--muted-light); }
.section-blush .card { border-color: #EBCFC7; }
.on-dark .card { background: var(--charcoal); border-color: rgba(205,163,102,0.3); }
.on-dark .card p { color: var(--muted-dark); }
.on-dark .card h3 { color: var(--champagne); }
.card .card-link { display: inline-block; margin-top: 1rem; font-weight: 500; }
/* Home treatment cards: push the link to the bottom so all four line up */
ul.grid-4 > .card { display: flex; flex-direction: column; }
ul.grid-4 > .card .card-link { margin-top: auto; padding-top: 1rem; align-self: flex-start; }
.icon { width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; color: var(--gold); }

/* exactly four items: 4 across, then 2 × 2, then 1 column (no lonely last card) */
ul.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 64rem) { ul.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { ul.grid-4 { grid-template-columns: 1fr; } }
/* photo previews stay 4 across longer, and never go to one huge column */
@media (max-width: 64rem) { ul.gallery.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 40rem) { ul.gallery.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* jumping to a heading or section leaves room for the sticky header */
[id] { scroll-margin-top: 6rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* ===== 9. PHOTO PLACEHOLDERS (swap for real photos) ===== */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: var(--radius); padding: 1rem; min-height: 16rem;
  background: var(--blush-tint); color: var(--muted-light);   /* 6.0:1 */
  border: 1px solid #EBCFC7;
}
.on-dark .ph { background: var(--charcoal); color: var(--muted-dark); border-color: rgba(205,163,102,0.3); }  /* 9.7:1 */
.ph-ring { border-radius: 50%; aspect-ratio: 1; min-height: 0; border: 1px solid var(--gold); box-shadow: 0 0 0 10px var(--black), 0 0 0 11px rgba(205,163,102,0.5); }

/* Real photos: same rounded shape as the placeholders, cropped to fill the space */
.photo { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 5; }
.photo-tall { max-height: 36rem; }
.gallery .photo { aspect-ratio: 4 / 5; }

/* ===== 10. HOME: HERO ===== */
.hero { padding: 7rem 0 6rem; text-align: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { max-width: 36rem; margin: 0 auto 2.25rem; font-size: 1.2rem; }
.hero-logo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.75rem; box-shadow: 0 0 40px rgba(205,163,102,0.25); }
.trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2rem; margin-top: 2.75rem; color: var(--muted-dark); }
.trust li::before { content: "✦"; color: var(--gold); margin-right: 0.5rem; }
.stars { color: var(--gold); letter-spacing: 0.15em; }

/* ===== 11. OFFER ===== */
.offer-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.offer-list li { padding: 0.75rem 0; border-bottom: 1px solid #EBCFC7; }
.offer-list li::before { content: "✦"; color: var(--rose); margin-right: 0.75rem; }

/* ===== 12. REVIEWS ===== */
.review { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.review blockquote { margin: 0; font-family: var(--font-head); font-size: 1.45rem; line-height: 1.35; color: var(--cream); }
.on-dark .review blockquote p { color: var(--cream); }
.review figcaption { color: var(--muted-dark); font-size: 0.95rem; }

/* ===== 13. SERVICES PAGE ===== */
.service-group + .service-group { margin-top: 4rem; }
.service-list { list-style: none; padding: 0; border-top: 1px solid #E3D3C7; }
.service-item { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 2rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid #E3D3C7; }
.service-item h3 { font-size: 1.5rem; margin: 0; }
.service-item p { color: var(--muted-light); }
/* the price, e.g. "From $35" */
.service-meta { color: var(--deep-gold); font-weight: 500; font-size: 1.1rem; margin-top: 0.35rem; }
.service-note { font-size: 1.1rem; color: var(--muted-light); }
.service-item .btn { min-height: 44px; padding: 0.5rem 1.5rem; }
/* the menu's "free hair treatment with any haircut" offer */
/* shiny gold card with dark text.
   Contrast: black text on the darkest gold (#C99C5E) is 7.8:1, so it's easy to read. */
.menu-offer {
  position: relative; overflow: hidden;   /* keeps the shine inside the card */
  display: flex; align-items: center; gap: 1.25rem;
  background: linear-gradient(135deg, #F6E6C2 0%, #E3C48C 30%, #F3DEB0 50%, #D6B072 72%, #C99C5E 100%);
  color: var(--black);
  border: 1px solid var(--bronze); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 10px 26px rgba(110,82,50,0.25);
  padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}
/* the shine: a soft band of light that sweeps across every few seconds */
.menu-offer::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: offer-shine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes offer-shine {
  0%, 60% { left: -60%; }
  100%    { left: 130%; }
}
.menu-offer > * { position: relative; z-index: 1; }   /* text stays above the shine */
.menu-offer p + p { margin-top: 0.15rem; }
.menu-offer-icon { flex: none; width: 2.75rem; height: 2.75rem; color: var(--black); }
.menu-offer-label { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.08em; }
.menu-offer-text { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.menu-offer-small { font-size: 0.95rem; }
@media (max-width: 30rem) {
  .menu-offer { padding: 1rem 1.1rem; gap: 0.9rem; }
  .menu-offer-icon { width: 2.25rem; height: 2.25rem; }
  .menu-offer-text { font-size: 1.35rem; }
}
/* "Prices may vary..." note under the list */
.menu-footnote { margin: 2.5rem 0 4rem; font-size: 0.95rem; color: var(--muted-light); font-style: italic; }

/* ===== 14. GALLERY ===== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 2rem 0 2.5rem; }
.filter-btn {
  min-height: 44px; padding: 0.5rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--deep-gold); background: transparent; color: var(--deep-gold);
  font: inherit; font-weight: 500; cursor: pointer;
}
.filter-btn[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }
.filter-btn[aria-pressed="true"]::before { content: "✓ "; }   /* not colour alone */
.gallery { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.gallery figure { margin: 0; }
.gallery .ph { aspect-ratio: 4 / 5; min-height: 0; }
.gallery figcaption { margin-top: 0.5rem; color: var(--muted-light); font-size: 0.95rem; }
.gallery [hidden], .gallery-group[hidden] { display: none; }
/* Instagram video embeds: wider columns, because Instagram needs at least ~326px */
.gallery-subtitle { margin: 3.5rem 0 1.25rem; font-size: 2rem; }
.video-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1.5rem; }
.video-grid iframe {
  display: block; width: 100%; height: 40rem;
  border: 1px solid #EBDDD3; border-radius: var(--radius); background: #FFFFFF;
}

/* ===== 15. FAQ ===== */
.faq { max-width: 46rem; margin: 0 auto; }
.readable .faq { max-width: none; }   /* inside a page column, line up with the content above */
.faq details { border-bottom: 1px solid #E3D3C7; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.5rem; top: 1rem; font-size: 1.6rem; color: var(--deep-gold); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.5rem; color: var(--muted-light); }
.faq h2 { margin-top: 3.5rem; }
.faq h2:first-child { margin-top: 0; }
.todo { display: inline-block; background: var(--blush-tint); color: var(--rose); padding: 0.1rem 0.5rem; border-radius: 6px; font-size: 0.9rem; }

/* ===== 16. BOOKING ===== */
.booking-box {
  border: 2px dashed var(--deep-gold); border-radius: var(--radius);
  padding: 3rem 1.5rem; text-align: center; background: #FFFFFF; margin: 2rem 0;
}
.booking-box p { color: var(--muted-light); }
/* --- top of the Book page: short title, then the booking tool right away --- */
.booking-top { padding: 2.5rem 0 4rem; text-align: center; }
.booking-top h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.booking-top .lead { max-width: 36rem; margin: 0.5rem auto 1.75rem; }
@media (max-width: 40rem) {
  .booking-top { padding: 1.5rem 0 3rem; }
  .booking-top .lead { margin-bottom: 1.25rem; font-size: 1.05rem; }
}

/* --- section headings (eyebrow + title + divider) --- */
.section-intro { margin-bottom: 2.5rem; }

/* --- policy cards: 2 x 2, then 1 column --- */
.policy-cards { list-style: none; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 56rem; margin: 0 auto; }
@media (max-width: 44rem) { .policy-cards { grid-template-columns: 1fr; } }
.policy-card { transition: transform 0.2s, box-shadow 0.2s; }
.policy-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(110,82,50,0.12); }
.policy-card p + p { margin-top: 0.75rem; }
.policy-icon {
  width: 3.25rem; height: 3.25rem; padding: 0.7rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--blush-tint); color: var(--deep-gold);
}

/* --- Setmore booking page, embedded with an iframe, inside a gold frame --- */
.booking-frame {
  max-width: 60rem; margin: 0 auto; padding: 0.6rem;
  border-radius: calc(var(--radius) + 0.6rem);
  background: var(--metal);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.booking-frame iframe {
  display: block; width: 100%; height: 50rem; /* tall enough to avoid a double scrollbar */
  border: 0; border-radius: var(--radius); background: #FFFFFF;
}
/* "Booking: Balayage · See all services" line above the booking box */
.booking-chosen { text-align: center; margin: -1rem 0 1.5rem; color: var(--muted-dark); }
.booking-chosen strong { color: var(--champagne); font-weight: 500; }
.booking-chosen[hidden] { display: none; }
.booking-alt { margin-top: 1.25rem; font-size: 1rem; color: var(--muted-light); text-align: center; }
.on-dark .booking-alt { color: var(--muted-dark); }
@media (max-width: 40rem) {
  .booking-frame { padding: 0.35rem; }
  .booking-frame iframe { height: 44rem; }
}

/* --- "book by message or phone" card --- */
.contact-card { padding: 2.5rem 2rem; margin-bottom: 4rem; }
.contact-card h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.contact-card .btn-row { justify-content: center; margin-top: 1.5rem; }
/* outlined dark button for light backgrounds (16:1) */
.btn-line, a.btn-line { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-line:hover { background: rgba(28,24,22,0.06); }
.section-blush .faq details { border-bottom-color: #E2C4BC; }

/* ===== 17. PAGE HEADER (inner pages) ===== */
.page-hero { padding: 5rem 0 4rem; text-align: center; }
.page-hero .lead { max-width: 36rem; margin: 0 auto; }

/* ===== 18. FOOTER ===== */
.site-footer { padding: 4rem 0 2rem; font-size: 1rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.site-footer h2 { font-size: 1.4rem; color: var(--champagne); margin-bottom: 0.75rem; }
.site-footer address { font-style: normal; color: var(--muted-dark); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { padding: 0.3rem 0; }
.site-footer p { color: var(--muted-dark); }
.footer-bottom { border-top: 1px solid rgba(205,163,102,0.3); margin-top: 3rem; padding-top: 1.5rem; color: var(--muted-dark); font-size: 0.95rem; }

/* Sticky book button: phones only */
.mobile-book { display: none; }

/* ===== 19. PHONES & TABLETS ===== */
@media (max-width: 52rem) {
  .section { padding: 4rem 0; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding: 4.5rem 0 4rem; }
  .service-item { grid-template-columns: 1fr; }
  .service-item .btn { justify-self: start; margin-top: 0.5rem; }

  /* menu becomes a drop-down behind a button */
  /* the menu button only appears when JavaScript is running;
     without JavaScript the links simply stay visible */
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 1rem;
    background: transparent; color: var(--cream); border: 1px solid var(--champagne); border-radius: 999px;
    font: inherit; cursor: pointer;
  }
  /* smaller logo and name so the Menu button fits on the same line */
  .brand { gap: 0.5rem; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 1.2rem; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-bottom: 1px solid rgba(205,163,102,0.35); }
  .js .site-nav:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1.25rem; }
  .nav-list a { display: block; padding: 0.85rem 0; border-bottom: 1px solid rgba(205,163,102,0.2); }
  .nav-list a[aria-current="page"] { border-bottom-width: 1px; border-left: 3px solid var(--gold); padding-left: 0.75rem; }
  .nav-list .btn { margin-top: 1rem; border-bottom: 0; }

  .mobile-book { display: flex; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
  .site-footer { padding-bottom: 6.5rem; }   /* room for the sticky button */
}

/* ===== 20. LESS MOTION for people who ask for it ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .policy-card:hover { transform: none; }
}
