/* ============================================================
   c-beauty.me — styles
   Palette derived from logo.png; text colours verified against
   WCAG AA on white. See PLAN.md for the ratios.
   ============================================================ */

:root {
  /* Brand — decorative only, never text under 24px */
  --rose:        #D59594;   /* 2.43:1 on white */
  --sage:        #8C9174;   /* 3.24:1 on white */

  /* Accessible variants */
  --rose-deep:   #A65E5D;   /* 4.75:1 — buttons, links */
  --rose-deeper: #8E4E4D;   /* hover */
  --sage-deep:   #6B7053;   /* 5.12:1 */

  /* Neutrals */
  --ink:         #2E2A28;   /* 14.09:1 — body copy */
  --muted:       #6B625E;   /* 5.89:1 — captions, meta */
  --bg:          #FEFEFE;
  --tint:        #FAF6F4;   /* warm off-white section band */
  --tint-sage:   #F4F5F0;
  --line:        #E8DEDA;

  --wa:          #25D366;

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --wrap: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(46,42,40,.06), 0 4px 14px rgba(46,42,40,.05);
  --shadow-md: 0 2px 6px rgba(46,42,40,.07), 0 16px 40px rgba(46,42,40,.08);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--rose-deep); }
a:hover { color: var(--rose-deeper); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
p  { margin: 0 0 1.1em; }

:where(a, button, summary, details):focus-visible {
  outline: 2.5px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 760px); }
.center { text-align: center; }
.section { padding-block: var(--section-y); }
.section-tint { background: var(--tint); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.center .section-head { margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 1rem;
  font-weight: 600;
}
.lede, .section-lede {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  color: var(--muted);
  max-width: 40rem;
}
.center .section-lede { margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254,254,254,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: var(--gap);
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.brand-sub {
  font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose-deep);
}

/* Scoped so these win over `.btn { display: inline-flex }`, which is declared later
   at equal specificity. */
.site-header .site-nav { display: none; gap: 1.6rem; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: .95rem;
  padding-block: .35rem; border-bottom: 1.5px solid transparent;
}
.site-nav a:hover { color: var(--rose-deep); border-bottom-color: var(--rose); }
.site-header .header-cta { display: none; }

@media (min-width: 900px) {
  .site-header .site-nav { display: flex; }
  .site-header .header-cta { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }

.btn-primary { background: var(--rose-deep); color: #fff; }         /* 4.79:1 */
.btn-primary:hover { background: var(--rose-deeper); color: #fff; }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--rose); color: var(--rose-deep); background: #fff; }

.btn-soft { background: var(--tint); color: var(--rose-deep); border-color: var(--line); }
.btn-soft:hover { background: var(--rose-deep); color: #fff; border-color: var(--rose-deep); }

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero-inner { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
}
.hero h1 { margin-bottom: .35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.5rem; }
.hero-meta {
  font-size: .88rem; color: var(--muted); margin: 0;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.divider { display: block; width: 100%; height: 40px; color: var(--rose); margin-top: var(--section-y); opacity: .55; }

/* ---------- photo slots ---------- */
.photo-slot {
  margin: 0;
  display: grid;
  place-items: center;
  gap: .9rem;
  aspect-ratio: 4 / 3;
  padding: 1.5rem;
  text-align: center;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(140,145,116,.05) 14px 28px),
    var(--tint-sage);
  border: 1.5px dashed rgba(140,145,116,.45);
  border-radius: var(--radius-lg);
}
.photo-slot-hero { aspect-ratio: 4 / 4.2; }
.photo-slot-tall { aspect-ratio: 3 / 4; height: 100%; }
/* Explicit heights: a percentage here can't resolve against an aspect-ratio box,
   so the SVG falls back to its intrinsic 200px and forces the slot open. */
.photo-slot .botanical { width: auto; height: 150px; color: var(--sage); opacity: .65; }
.photo-slot-hero .botanical { height: 210px; }
.photo-slot-tall .botanical { height: 190px; }
.photo-slot figcaption {
  font-size: .8rem; line-height: 1.5; color: var(--sage-deep); max-width: 26ch;
}

/* A slot holding a real photo drops the placeholder chrome — no padding, no dashed
   border, no tint — so the image fills the slot's aspect ratio edge to edge. */
.photo-slot.has-photo {
  padding: 0;
  background: none;
  border: 0;
  overflow: hidden;
}
.photo-slot.has-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* ---------- service cards ---------- */
.cards { display: grid; gap: clamp(1.5rem, 3vw, 2.2rem); }
@media (min-width: 760px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card .photo-slot {
  border: 0; border-bottom: 1.5px dashed rgba(140,145,116,.45);
  border-radius: 0; aspect-ratio: 16 / 10; padding: 1.25rem;
}
.card .photo-slot .botanical { height: 100px; }
/* Beats `.card .photo-slot` above, which shares specificity with `.photo-slot.has-photo`
   but is declared later — without this the card photos keep the placeholder inset and
   the dashed rule underneath. */
.card .photo-slot.has-photo { padding: 0; border-bottom: 0; }
.card-body { padding: 1.6rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { color: var(--rose-deep); }
.card-body p { color: var(--muted); font-size: .97rem; }

.durations { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 1.4rem; }
.durations span {
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  color: var(--sage-deep);
  background: var(--tint-sage);
  border: 1px solid rgba(140,145,116,.3);
  border-radius: 999px;
  padding: .3rem .75rem;
}
.card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.5rem, 3vw, 2rem);
  counter-reset: step;
}
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { position: relative; padding-top: 3.4rem; }
.step-n {
  position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.15rem;
  color: var(--rose-deep);
  background: #fff;
  border: 1.5px solid var(--rose);
}
.steps h3 { font-size: 1.1rem; margin-bottom: .35em; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- two column ---------- */
.two-col { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.15fr .85fr; } }

.ticks { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.ticks li {
  position: relative; padding-left: 2.1rem; color: var(--muted); font-size: .98rem;
}
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--tint-sage);
  border: 1.5px solid var(--sage);
}
.ticks li::after {
  content: ""; position: absolute; left: .38rem; top: .72em;
  width: .48rem; height: .26rem;
  border-left: 1.8px solid var(--sage-deep);
  border-bottom: 1.8px solid var(--sage-deep);
  transform: rotate(-45deg);
}

/* ---------- hours ---------- */
.hours-grid { display: grid; gap: clamp(1.5rem, 3vw, 2rem); }
@media (min-width: 760px) { .hours-grid { grid-template-columns: repeat(2, 1fr); } }
.hours-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.hours-card h3 {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep);
  margin-bottom: 1.2rem;
}
.hours-card .big {
  font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  color: var(--ink); margin: 0 0 .2em; line-height: 1.25;
}
.hours-card .note { font-size: .92rem; color: var(--muted); margin: .9rem 0 0; }
.hours-card .note strong { color: var(--ink); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.6rem;
  width: .6rem; height: .6rem;
  border-right: 1.8px solid var(--rose-deep);
  border-bottom: 1.8px solid var(--rose-deep);
  transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.8rem; }
.faq summary:hover { color: var(--rose-deep); }
.faq details p { color: var(--muted); margin: 0 0 1.35rem; padding-right: 2rem; font-size: .98rem; }

/* ---------- contact ---------- */
.section-contact { background: var(--tint); }
.flourish { width: 200px; height: 60px; color: var(--rose); margin-bottom: 1rem; opacity: .8; }
.contact-list {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.75rem; justify-content: center;
}
.contact-list a {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--muted); text-decoration: none; font-size: .95rem;
}
.contact-list a:hover { color: var(--rose-deep); }

/* ---------- footer ---------- */
.site-footer { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.footer-inner { display: grid; place-items: center; text-align: center; gap: .4rem; }
.footer-mark { width: 68px; height: 68px; object-fit: contain; mix-blend-mode: multiply; margin-bottom: .6rem; }
.footer-hours { font-size: .9rem; color: var(--muted); margin: 0; }
.footer-legal { font-size: .82rem; color: var(--muted); margin: .4rem 0 0; }
.footer-licence {
  font-size: .78rem; color: var(--muted); margin: .35rem 0 0;
  letter-spacing: .04em;
}

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
  transition: transform .18s;
}
.wa-float svg { width: 1.85rem; height: 1.85rem; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
@media (min-width: 900px) { .wa-float { display: none; } }
/* Keep the floating button from sitting on top of the footer text */
@media (max-width: 899px) { .site-footer { padding-bottom: 6rem; } }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
