/* ==========================================================================
   She Rises Makeup & Hair Studio — Design tokens & shared styles
   ========================================================================== */

:root {
  --ink:           #000000;
  --grey:          #6b6b6b;
  --grey-light:    #e2e2e2;
  --surface:       #f4f4f4;
  --bg:            #ffffff;
  --white:         #ffffff;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --radius: 0;

  --gradient-accent: linear-gradient(135deg, #faf1e8 0%, #f2d9cc 35%, #e8bdb5 70%, #d9a0a0 100%);
  --accent-deep: #b5726f;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Stop iOS inflating body text when the phone is rotated to landscape. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* The full-bleed gallery is sized with 100vw, which is wider than the visible
     page whenever a classic scrollbar is present — that would otherwise give the
     whole document a horizontal scroll. `clip` contains it without creating a
     scroll container, so the sticky header keeps working (`hidden` would break it). */
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 var(--space-sm);
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }
p { margin: 0 0 var(--space-sm); color: var(--grey); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: var(--space-xl) 0; }
.section-tight { padding: var(--space-lg) 0; }
.text-center { text-align: center; }
.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}
.section-head p { margin: 0 auto; }

.rule {
  border: none;
  border-top: 1px solid var(--ink);
  margin: 0;
}
.rule-soft {
  border: none;
  border-top: 1px solid var(--grey-light);
  margin: 0;
}

.grid {
  display: grid;
  gap: var(--space-md);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem calc(2.2rem - 0.16em) 1rem 2.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  background: transparent;
}
.btn-primary { background: var(--gradient-accent); border-color: var(--accent-deep); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-whatsapp {
  border-color: #1f1f1f;
  color: var(--ink);
}
.btn-whatsapp:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Floating WhatsApp button ----------
   Present on every page. Kept square and monochrome rather than the usual
   green circle, so it belongs to this design system instead of sitting on top
   of it. */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90; /* under the sticky header (100) and the mobile nav drawer */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }
.wa-float:hover,
.wa-float:focus-visible { background: var(--white); color: var(--ink); }

/* Not on the booking page. The wizard scrolls inside a card whose controls sit
   bottom-right, so a viewport-fixed button lands on top of whichever button is
   showing — including the summary step's own "Send this booking on WhatsApp",
   which carries the client's details and is the better route anyway. */
.booking-page .wa-float { display: none; }

@media (max-width: 480px) {
  .wa-float { width: 46px; height: 46px; right: 0.9rem; bottom: 0.9rem; }
  .wa-float svg { width: 23px; height: 23px; }
}

@media print {
  .wa-float { display: none; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a:not(.btn) {
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a.active:not(.btn) { color: var(--ink); border-color: var(--ink); }
.nav-links .btn { margin-left: 0.4rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    /* dvh tracks the collapsing mobile browser toolbar; 100vh would run the
       panel underneath it and cut off the last links. */
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    width: min(78vw, 340px);
    background: var(--bg);
    border-left: 2px solid var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2.5rem;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a:not(.btn) { font-size: 0.95rem; }
  .nav-links .btn { margin-left: 0; margin-top: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}
.hero-meta {
  margin-top: var(--space-lg);
  display: flex;
  gap: 2.2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- Full-bleed gradient hero ---------- */
.hero-full {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-accent);
}
.hero-full-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(120,70,60,0) 35%, rgba(120,70,60,0.22) 100%);
  z-index: 1;
}
.hero-full-portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 82%;
  width: auto;
  max-width: 38%;
  object-fit: contain;
  object-position: bottom right;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero-full-portrait { display: none; }
}
.hero-full-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: var(--space-xl) 1.5rem;
  color: var(--ink);
}
.hero-full-content .logo-mark-sm {
  max-width: 150px;
  margin-bottom: var(--space-sm);
}
.hero-full-content .tagline {
  max-width: 480px;
  margin: 0 0 var(--space-md);
  font-size: 1.05rem;
  color: var(--grey);
}
.hero-full-content .hero-actions { justify-content: flex-start; }
.hero-full-content .hero-meta {
  justify-content: flex-start;
  margin-top: var(--space-md);
  gap: 1.6rem;
  color: var(--grey);
}
.hero-full-content .btn-primary { background: var(--accent-deep); color: var(--ink); border-color: var(--accent-deep); }
.hero-full-content .btn-primary:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.hero-full-content .btn-outline { color: var(--ink); border-color: var(--ink); }
.hero-full-content .btn-outline:hover { background: var(--ink); color: var(--white); }

@media (max-width: 900px) {
  .hero-full { min-height: 440px; height: auto; overflow: visible; text-align: center; }
  .hero-full-overlay { background: linear-gradient(180deg, rgba(120,70,60,0.08) 0%, rgba(120,70,60,0.22) 100%); }
  .hero-full-content { text-align: center; padding: var(--space-lg) 1.5rem; }
  .hero-full-content .tagline { margin-left: auto; margin-right: auto; }
  .hero-full-content .hero-actions,
  .hero-full-content .hero-meta { justify-content: center; }
  .hero-full-content .logo-mark-sm { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .hero-full { min-height: 360px; }
  .hero-full-content { padding: 2.75rem 1.25rem; }
}

/* ---------- Photo blocks ---------- */
.photo-frame {
  border: 1px solid var(--ink);
  overflow: hidden;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Gallery strip ---------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.gallery-strip a {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg);
}
.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}
.gallery-strip a:hover img { transform: scale(1.05); }
@media (max-width: 860px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Page header (non-home) ---------- */
.page-hero {
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
  border-bottom: 2px solid var(--ink);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Photo cards (services) ---------- */
.card-photo {
  background: var(--bg);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card-photo:hover { border-color: var(--ink); transform: translateY(-2px); }
.card-photo .card-photo-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-photo .card-photo-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.card-photo:hover .card-photo-img img { transform: scale(1.04); }
.card-photo .card-photo-body { padding: var(--space-sm) var(--space-md) var(--space-md); position: relative; }
.card-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: 0.4rem;
}
.card-photo h3 { margin-bottom: 0.4rem; }
.card-photo p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Quote / verse ---------- */
.verse {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: -0.005em;
  line-height: 1.5;
  color: var(--ink);
  max-width: 640px;
  margin: var(--space-md) auto;
  text-align: center;
}
.verse cite {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.8rem;
}

/* ---------- Instagram strip ---------- */
.ig-strip { background: var(--surface); border-top: 1px solid var(--grey-light); border-bottom: 1px solid var(--grey-light); }
.ig-handle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.2rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 60px; }
.form-note { font-size: 0.85rem; color: var(--grey); margin-top: var(--space-sm); }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Alert / notice ---------- */
.notice {
  border: 1px solid var(--ink);
  background: var(--surface);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}
.notice.error { border-color: #b3554a; color: #7a2e25; }
.notice.success { border-color: var(--ink); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gradient-accent);
  color: var(--ink);
  padding: var(--space-lg) 0 var(--space-md);
}
.site-footer a { color: var(--ink); opacity: 0.75; }
.site-footer a:hover { opacity: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.footer-grid img { height: 32px; margin-bottom: 0.8rem; }
.footer-grid h4 {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-grid p, .footer-grid li { font-size: 0.9rem; opacity: 0.8; margin-bottom: 0.6rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: var(--space-md);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  opacity: 0.6;
}
.social-row { display: flex; gap: 1rem; }
.footer-credit a {
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease;
}
.footer-credit a:hover { opacity: 0.65; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Misc ---------- */
.divider {
  width: 48px;
  height: 2px;
  background: var(--ink);
  margin: var(--space-sm) auto;
}
.badge-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.badge {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  color: var(--ink);
}

/* ---------- Booking page (single screen, split hero, no page scroll) ---------- */
body.booking-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.booking-header {
  flex: 0 0 auto;
  background: var(--bg);
  border-bottom: 1px solid var(--grey-light);
  padding: 0.55rem 0;
}
.booking-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.booking-header .brand img { height: 38px; width: auto; display: block; }
.booking-back {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey);
  white-space: nowrap;
}
.booking-back:hover { color: var(--ink); }

.booking-split {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
}
.booking-media { position: relative; overflow: hidden; }
.booking-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.booking-side {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}
.booking-card {
  width: 100%;
  max-width: 620px;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--grey-light);
}
.booking-card-title {
  flex: 0 0 auto;
  text-align: center;
  padding: 1rem 1rem 0.7rem;
}
.booking-card-title h1 {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  margin-bottom: 0.15rem;
}
.booking-card-title p {
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 0;
}
.booking-card-title p a { color: var(--ink); text-decoration: underline; }
/* The panel body is the only thing that ever scrolls, so the page itself
   stays fixed to the viewport even on short screens. */
.booking-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
}

/* Numbered step bar + progress fill */
.booking-card .wizard-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-bottom: none;
  margin-bottom: 0;
}
.booking-card .wizard-steps li {
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 0.1rem;
  padding: 0 0.15rem 0.45rem;
  border-bottom: none;
  margin-bottom: 0;
  line-height: 1.25;
}
.booking-card .wizard-step-num { font-size: 0.85rem; }
.booking-card .wizard-step-label {
  display: none;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}
@media (min-width: 1180px) {
  .booking-card .wizard-step-label { display: inline; }
}
.wizard-progress {
  position: relative;
  height: 4px;
  background: var(--grey-light);
  overflow: hidden;
}
.wizard-progress-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: var(--ink);
  transition: width 0.3s ease;
}

/* Studio vs house-call picker */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.choice-option {
  text-align: left;
  padding: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.choice-option:hover { border-color: var(--ink); }
.choice-option.selected { background: var(--gradient-accent); border-color: var(--accent-deep); }
.choice-option strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}
.choice-option span { display: block; font-size: 0.76rem; color: var(--grey); line-height: 1.4; }
.choice-option.selected span { color: var(--ink); }
.choice-fee {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.conditional-fields { display: none; margin-top: var(--space-sm); }
.conditional-fields.show { display: block; }

.booking-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--grey-light);
  background: var(--bg);
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.68rem;
  color: var(--grey);
}

@media (max-width: 900px) {
  .booking-split { grid-template-columns: 1fr; }
  .booking-media { display: none; }
  .booking-side { padding: 0; }
  .booking-card { max-width: none; border: none; }
}
@media (max-width: 560px) {
  .choice-grid { grid-template-columns: 1fr; }
}

.booking-section { width: 100%; padding: 1.25rem 0; }
.wizard-card { background: var(--bg); padding: 1.1rem 1.25rem; max-width: 560px; margin: 0 auto; }

/* ---------- Booking wizard ---------- */
.wizard-steps {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--grey-light);
}
.wizard-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--grey);
  cursor: default;
}
.wizard-steps li.done { cursor: pointer; }
.wizard-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
}
.wizard-step-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: none;
}
.wizard-steps li.active,
.wizard-steps li.done { color: var(--ink); border-color: var(--ink); }
@media (min-width: 640px) {
  .wizard-step-label { display: inline; }
}

.wizard-panel { display: none; }
.wizard-panel.active { display: block; }
.wizard-panel h3 { margin-bottom: 0.6rem; font-size: 1.05rem; }

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
}
.wizard-card .btn { padding: 0.65rem 1.3rem; font-size: 0.7rem; }

/* Alternative send route on the summary step: same booking, straight to
   WhatsApp. Separated from .wizard-actions by a rule so it reads as a second
   option rather than a third button in the same row. */
.wizard-alt-send {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink);
  text-align: center;
}
.wizard-alt-or {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}
.wizard-alt-note { margin-top: 0.7rem; }
.wa-icon {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  flex-shrink: 0;
}

/* Service picker */
.service-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 560px) {
  .service-picker { grid-template-columns: repeat(3, 1fr); }
}
.service-option {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.74rem;
  text-align: left;
  padding: 0.45rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.service-option:hover { border-color: var(--ink); }
.service-option.selected { background: var(--gradient-accent); color: var(--ink); border-color: var(--accent-deep); }

/* Calendar */
.calendar { border: 1px solid var(--grey-light); }
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--grey-light);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.9rem;
}
.calendar-nav {
  background: none;
  border: 1px solid var(--grey-light);
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 0.8rem;
}
.calendar-nav:hover { border-color: var(--ink); }
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-weekdays {
  padding: 0.4rem 0.4rem 0;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: center;
}
.calendar-grid { padding: 0.3rem; gap: 2px; }
.cal-day {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  background: var(--bg);
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--ink);
}
.cal-day:hover:not(.disabled) { border-color: var(--ink); }
.cal-day.disabled { color: var(--grey-light); cursor: not-allowed; }
.cal-day.cal-blank { visibility: hidden; cursor: default; }
.cal-day.today { font-weight: 700; text-decoration: underline; }
.cal-day.selected { background: var(--gradient-accent); color: var(--ink); font-weight: 700; }

/* Time slots */
.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
@media (min-width: 560px) {
  .time-slots { grid-template-columns: repeat(4, 1fr); }
}
.time-slot {
  padding: 0.4rem 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.74rem;
  background: var(--bg);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  cursor: pointer;
}
.time-slot:hover { border-color: var(--ink); }
.time-slot.selected { background: var(--gradient-accent); color: var(--ink); border-color: var(--accent-deep); }

/* Review summary */
.review-summary { margin: 0 0 0.75rem; }
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--grey-light);
}
.review-row dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0;
}
.review-row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  max-width: 65%;
}

/* ---------- Service menu (services.html price list) ---------- */
.service-category {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--grey-light);
}
.service-category:first-child { padding-top: 0; }
/* Clears the sticky header when linked to by #anchor from the home gallery */
.service-category[id] { scroll-margin-top: 110px; }
.service-category:last-child { border-bottom: none; padding-bottom: 0; }
.service-category-full { grid-template-columns: 1fr; }
/* 5:4 matches the source photos, so they show uncropped */
.service-category-media { aspect-ratio: 5 / 4; }
@media (max-width: 780px) {
  .service-category { grid-template-columns: 1fr; }
  .service-category-media { aspect-ratio: 16 / 9; }
}

.service-menu { margin: var(--space-sm) 0 0; }
.service-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--grey-light);
}
.service-menu-item:last-child { border-bottom: none; }
.service-menu-name { font-weight: 700; }
.service-menu-duration {
  font-size: 0.76rem;
  color: var(--grey);
  font-weight: 400;
  margin-left: 0.6rem;
}
.service-menu-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--grey);
  font-weight: 400;
  margin-top: 0.3rem;
  max-width: 46ch;
}
.service-menu-price {
  font-family: var(--font-display);
  font-weight: 800;
  white-space: nowrap;
}
.service-menu-columns {
  columns: 2;
  column-gap: var(--space-lg);
}
.service-menu-columns .service-menu-item { break-inside: avoid; }
@media (max-width: 640px) {
  .service-menu-columns { columns: 1; }
}

/* ---------- Centred CTA panel ---------- */
.cta-panel {
  background: var(--surface);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  min-height: 22rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-sm);
  text-align: center;
}
.cta-panel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 50rem;
}
.cta-panel h2 {
  text-wrap: balance;
  margin-bottom: var(--space-xs);
}
.cta-panel p {
  color: var(--grey);
  text-wrap: balance;
  margin-bottom: var(--space-sm);
}
.cta-panel-fee {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.cta-panel-fee-note {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--space-md);
}

/* ---------- Service gallery carousel ---------- */
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.gallery-head p { margin-bottom: 0; max-width: 46ch; }
.gallery-nav { display: flex; gap: 0.5rem; flex-shrink: 0; }
.gallery-nav-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.gallery-nav-btn:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.gallery-nav-btn:disabled { opacity: 0.25; cursor: default; }
.gallery-nav-btn svg { width: 20px; height: 20px; display: block; }

/* Full-bleed track so cards run to the right edge of the viewport.
   This sits outside .container as a direct child of the section, so it is
   already full width — no negative margins needed. (Pulling it out with
   `calc(50% - 50vw)` would actually overshoot by the scrollbar width and give
   the whole page a horizontal scroll.) The padding lines the first card up
   with the container text above it. */
.gallery-viewport {
  overflow: hidden;
  padding-left: max(1.25rem, calc(50vw - var(--container) / 2));
}
.gallery-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
  cursor: grabbing;
}
.gallery-track.is-dragging .gallery-card { pointer-events: none; }
.gallery-track:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.gallery-card {
  flex: 0 0 auto;
  width: clamp(260px, 78vw, 420px);
  scroll-snap-align: start;
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  aspect-ratio: 5 / 4;
  text-decoration: none;
  color: var(--white);
  background: var(--ink);
}
.gallery-card:last-child { margin-right: max(1.25rem, calc(50vw - var(--container) / 2)); }
.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-card:hover img { transform: scale(1.05); }
.gallery-card-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 25%, rgba(0,0,0,0.55) 62%, rgba(0,0,0,0.88) 100%);
}
.gallery-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-sm) var(--space-sm) 1.25rem;
}
.gallery-card .card-index { color: rgba(255,255,255,0.7); }
.gallery-card h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.gallery-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.gallery-card-more svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.gallery-card:hover .gallery-card-more svg { transform: translateX(4px); }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}
.gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}
.gallery-dot.is-active { background: var(--ink); }

@media (max-width: 640px) {
  .gallery-head { flex-direction: column; align-items: flex-start; }
  .gallery-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-track { scroll-behavior: auto; }
  .gallery-card img,
  .gallery-card-more svg { transition: none; }
  .gallery-card:hover img { transform: none; }
}

/* ===========================================================================
   Mobile refinements
   Most visitors are on phones, so the rules below take priority over the
   desktop composition where the two conflict.
   =========================================================================== */

/* Swiping the carousel must not trigger the browser's back-gesture. */
.gallery-track { overscroll-behavior-x: contain; }

/* Two buttons side by side ("Back" + "Next: Your Details") overflow a ~340px
   card, so let them wrap and share the row evenly instead. */
.wizard-actions { flex-wrap: wrap; }
@media (max-width: 480px) {
  .wizard-actions { gap: 0.6rem; }
  .wizard-actions .btn { flex: 1 1 auto; min-width: 0; }
  .btn { padding-left: 1.4rem; padding-right: calc(1.4rem - 0.16em); letter-spacing: 0.12em; }
}

/* --- Touch tap targets ---------------------------------------------------
   Pointer-coarse only, so mouse users keep the tighter desktop sizing.
   ~44px is the minimum comfortable touch target. */
@media (pointer: coarse) {
  .nav-toggle { min-width: 44px; min-height: 44px; }
  .calendar-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .cal-day { height: 42px; font-size: 0.85rem; }
  .time-slot { min-height: 44px; font-size: 0.8rem; }
  .service-option { min-height: 44px; }
  /* The dot itself stays 9px; the padding grows the hit area around it. */
  .gallery-dot {
    width: 26px;
    height: 26px;
    padding: 8px;
    border: none;
    background: var(--bg);
  }
  .gallery-dot::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--ink);
    border-radius: 50%;
  }
  .gallery-dot.is-active { background: var(--bg); }
  .gallery-dot.is-active::after { background: var(--ink); }
  /* Footer link rows are close together to tap accurately. */
  .footer-grid li a,
  .social-row a { display: inline-block; padding: 0.2rem 0; }
}

/* --- Booking page ---------------------------------------------------------
   The desktop design is deliberately locked to the viewport, but on a phone
   that fights the on-screen keyboard: when the keyboard opens on the details
   step the viewport shrinks and a fixed-height page can strand the focused
   input off-screen. Below the split-layout breakpoint the page scrolls
   normally instead. */
@media (max-width: 900px) {
  body.booking-page {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .booking-card-body {
    overflow-y: visible;
    padding: 1rem 1.1rem 1.5rem;
  }
  .booking-card { max-height: none; }
  .booking-card-title { padding-top: 1.25rem; }
  .booking-footer { margin-top: auto; }
}
