/* Shared homepage rhythm and responsive refinements. */
:root { --section-space:clamp(36px,5vw,64px); --section-title:clamp(26px,3.2vw,40px); --site-header-height:112px; }
html, body { min-width:320px; }
main > .section, #book[data-booking-design] { padding-block:var(--section-space); }
main .section .eyebrow, #treatments .section-heading .eyebrow,
#book .booking-section-heading .eyebrow, #gift-cards[data-section-design] .gift-story > p.eyebrow {
  font-size:10px; line-height:1.5; letter-spacing:.19em; margin-top:0; margin-bottom:18px;
}
#philosophy h2, #book .booking-section-heading h2, #gift-cards .gift-story h2,
.studio-updates h2, #contact .contact-heading h2 { font-size:var(--section-title); }
button, .button, .secondary-button { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.button { line-height:1.4; gap:12px; }
.button > span { flex-shrink:0; }
.booking-stage-actions > button, .result-actions > button, .cancel-actions > button { min-width:0; flex-shrink:1; }
.site-header { padding-block:16px; }
.site-header .brand { padding:0; }
.site-header { position:relative; }
.site-header .brand { flex-shrink:0; }
.site-nav a { white-space:nowrap; }
.nav-size-probe { position:absolute !important; left:-10000px !important; top:0 !important; visibility:hidden !important; pointer-events:none; display:flex !important; width:max-content !important; max-width:none !important; flex-wrap:nowrap !important; padding:0 !important; border:0 !important; }
.nav-size-probe > a { flex:0 0 auto; max-width:none; }
.js .site-header:not(.nav-collapsed) > .site-nav:not(.nav-size-probe) { display:flex; width:auto; flex-wrap:nowrap; flex-shrink:0; }
.site-header:not(.nav-collapsed) .menu-toggle { display:none; }
.js .site-header.nav-collapsed > .site-nav:not(.nav-size-probe) { display:none; }
.site-header.nav-collapsed .menu-toggle { display:flex; flex-direction:column; justify-content:center; gap:5px; width:44px; height:44px; padding:10px; border:0; background:transparent; flex-shrink:0; }
.site-header.nav-collapsed .menu-toggle span { width:24px; height:1px; background:var(--ink); }
.site-header.nav-collapsed .menu-toggle[aria-expanded=true] span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
.site-header.nav-collapsed .menu-toggle[aria-expanded=true] span:nth-child(2) { opacity:0; }
.site-header.nav-collapsed .menu-toggle[aria-expanded=true] span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
.js .site-header.nav-collapsed > .site-nav.is-open:not(.nav-size-probe) { display:flex; position:absolute; top:100%; left:0; right:0; z-index:10; width:100%; flex-wrap:wrap; padding:16px 6%; background:var(--paper); border-block:1px solid var(--line); }
.site-header .brand-logo { width:205px; height:80px; }
.hero { height:calc(100svh - var(--site-header-height)); min-height:390px; padding:16px 5% 0; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto; gap:18px 40px; align-items:stretch; }
.hero-copy { display:flex; flex-direction:column; justify-content:center; padding:12px 0; min-width:0; }
.hero h1 { font-size:clamp(36px,min(5.1vw,8svh),76px); margin-bottom:18px; }
.hero-description { font-size:clamp(14px,1.4vw,17px); margin-bottom:0; }
.hero-actions { margin-top:22px; gap:16px; flex-wrap:wrap; }
.hero-photo { min-height:0; height:100%; }
.hero-photo img { height:100%; width:100%; margin-top:0; object-fit:cover; }
.hero-bottom { padding:12px 0; min-width:0; }
.treatment-details { width:100%; margin-bottom:20px; }
.treatment-details > summary { display:none; cursor:pointer; }
.treatment-details > p { font-size:13px; line-height:1.65; margin:0; }
.treatment-filters { flex-wrap:wrap; gap:6px 24px; }
#book, #book .booking-layout, #book #booking-content { overflow-anchor:none; }
#book *, #book *::before, #book *::after { animation:none !important; transition:none !important; }
@media(max-width:1000px) {
  .site-nav { gap:14px; font-size:12px; }
  .hero { column-gap:24px; }
}
@media(max-width:700px) {
  .treatment-filters { flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; gap:16px; padding-bottom:4px; }
  .treatment-filters button { flex:0 0 auto; white-space:nowrap; font-size:11px; padding-block:10px; }
  .treatment-image { aspect-ratio:2/1; }
  .treatment { --card-padding:10px; }
  .treatment .treatment-kind { margin-bottom:5px; }
  .treatment h3 { font-size:13px; margin-bottom:7px; }
  .treatment-details { margin-bottom:8px; }
  .treatment .notice, .treatment .patch-test-note { font-size:10px; line-height:1.35; padding:5px; margin:6px 0; }
  .site-header { padding:10px 6%; gap:12px; flex-wrap:nowrap; }
  .site-header .brand-logo { width:160px; height:64px; }
  .menu-toggle { display:flex; flex-direction:column; justify-content:center; gap:5px; width:44px; height:44px; padding:10px; border:0; background:transparent; }
  .menu-toggle span { width:24px; height:1px; background:var(--ink); }
  .menu-toggle[aria-expanded=true] span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:nth-child(2) { opacity:0; }
  .menu-toggle[aria-expanded=true] span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
  .js .site-nav.is-open { display:flex; position:absolute; top:100%; left:0; right:0; z-index:10; padding:16px 6%; background:var(--paper); border-block:1px solid var(--line); }
  body:not(.js) .site-header { flex-wrap:wrap; }
  .hero { display:grid; height:calc(100svh - var(--site-header-height)); min-height:460px; padding:8px 6% 0; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1.15fr) minmax(0,1fr) auto; gap:10px; }
  .hero-copy { padding:0; }
  .hero h1 { font-size:clamp(28px,min(7.6vw,5.5svh),38px); margin-bottom:10px; }
  .hero .wide-break { display:none; }
  .hero-description { font-size:12px; line-height:1.5; max-width:none; }
  .hero-actions { margin-top:10px; gap:8px 12px; }
  .hero-actions .button { font-size:11px; padding:10px 12px; gap:8px; }
  .hero-actions .text-link { font-size:11px; }
  .hero-photo img { height:100%; aspect-ratio:auto; }
  .hero-bottom { font-size:8px; letter-spacing:.08em; gap:12px; padding:10px 0; }
  .treatment-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .treatment { --card-padding:12px; min-width:0; }
  .treatment-image { margin-bottom:10px; aspect-ratio:4/3; }
  .treatment-kind { font-size:8px; margin-bottom:7px; }
  .treatment h3 { font-size:15px; line-height:1.25; margin-bottom:10px; overflow-wrap:anywhere; }
  .treatment .price { flex-wrap:wrap; gap:3px 8px; font-size:14px; line-height:1.4; margin-bottom:10px; }
  .treatment .price span { font-size:10px; padding-left:8px; }
  .treatment-details { margin-bottom:12px; }
  .treatment-details > summary { display:flex; justify-content:space-between; gap:6px; font-size:11px; padding:6px 0; border-top:1px solid var(--line); }
  .treatment-details[open] > summary span { transform:rotate(45deg); }
  .treatment-details > p { font-size:11px; line-height:1.5; padding-top:5px; }
  .treatment > .button { width:100%; padding:9px; font-size:11px; gap:6px; }
  .treatment-filters { gap:4px 14px; margin-bottom:20px; }
  #gift-cards[data-section-design] { grid-template-columns:minmax(0,1fr); }
  #gift-cards .gift-story { width:100%; text-align:center; min-width:0; }
  #gift-cards .gift-story > .eyebrow { text-align:left; }
  #gift-cards .gift-artwork, #gift-cards[data-section-design] .gift-story > .gift-terms-copy { max-width:none; width:100%; margin-inline:auto; }
  #gift-cards .gift-story h2 { width:100%; margin-inline:auto; }
  #gift-cards .booking-panel { width:100%; min-width:0; }
  #book .booking-panel input:not([type=radio]):not([type=checkbox]),
  #gift-cards .booking-panel input, #contact .contact-panel input, #contact .contact-panel textarea { font-size:16px; }
}
.treatment-load-more { display:block; margin:20px auto 0; font-size:12px; }
.treatment-load-more:disabled { background:#d7d1ca; border-color:#d7d1ca; color:#746f69; cursor:default; }
@media(max-width:700px) {
  .treatment .treatment-image { aspect-ratio:2/1; margin-bottom:8px; }
  .treatment { --card-padding:10px; }
  .treatment h3 { font-size:13px; margin-bottom:7px; }
  .treatment > .treatment-note { font-size:10px; line-height:1.35; margin:4px 0 8px; }
}
#book #consultation-panel { padding:16px 20px; }
#book #consultation-panel h2 { font-size:23px; margin:0 0 12px; }
#book #consultation-panel .eyebrow { margin-bottom:8px; }
#book .consultation-profile-group { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; }
#book .consultation-profile-group h3 { grid-column:1/-1; font-size:14px; margin:4px 0; }
#book .consultation-profile-group label { min-width:0; }
#book .consultation-profile-group input, #book .consultation-profile-group select { width:100%; min-height:34px; padding:7px 9px; margin:4px 0 0; }
#book .consultation-profile-details { border:1px solid var(--line); border-radius:6px; margin:10px 0; padding:0 10px; }
#book .consultation-profile-details > summary { padding:8px 0; cursor:pointer; font-size:12px; }
#book .consultation-profile-details[open] > .consultation-profile-group { padding-bottom:10px; }
.profile-complete { color:#26714a; float:right; font-weight:600; }
#book .consultation-address-search { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 8px; align-items:end; }
#book .consultation-address-search > :is(p, select) { grid-column:1/-1; margin:0; }
#book .consultation-address-search > .text-link { grid-column:1/-1; justify-self:start; background:none; border:0; padding:2px 0; font-size:10px; }
#book .consultation-address-search > .secondary-button { margin:0; padding:8px 10px; font-size:11px; }
#book .consultation-question { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 10px; margin:0 !important; padding:8px 0 !important; }
#book .consultation-question legend { float:left; width:auto; padding:0; margin:0; font-size:12px; line-height:1.4; }
#book .consultation-answer-choices { display:flex; gap:10px; align-items:start; }
#book .consultation-answer-choices .check-label { margin:0; padding:0; display:flex; gap:4px; font-size:11px; }
#book .consultation-question > label { grid-column:1/-1; margin:0; font-size:11px; }
#book .consultation-question textarea { margin:4px 0 0; min-height:44px; padding:7px; }
#book .consultation-consent-terms { font-size:11px; margin:10px 0 8px; }
#book .consultation-consent-terms p { font-size:11px; margin:6px 0; }
#book .consultation-profile-group input:disabled { opacity:.7; }
@media(max-width:450px) {
  #book #consultation-panel { padding:14px; }
  #book .consultation-profile-group { gap:7px 8px; }
  #book .consultation-profile-group input, #book .consultation-profile-group select { font-size:16px; }
}

/* Compact medical details; override the larger shared booking-field defaults. */
#book .booking-referral-entry { margin:8px 0 12px; font-size:11px; }
#book .booking-referral-entry > summary { cursor:pointer; padding-block:5px; }
#book .referral-entry-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; }
#book .booking-panel .referral-entry-row input { margin:0; min-height:36px; padding:7px 9px; }
#book .referral-entry-row button { margin:0; padding:8px 12px; font-size:11px; }
#book .client-referral-rewards { padding:8px 0; font-size:11px; }
#book .client-referral-rewards p { margin:4px 0; }
#book .client-referral-rewards code { overflow-wrap:anywhere; font-size:11px; }
.external-preview { background:var(--paper); padding:20px; text-align:center; }
.external-preview p { font-size:12px; line-height:1.5; margin:10px 0; }
.external-preview .text-link { font-size:11px; padding:0; border:0; background:none; }
.studio-preview-images { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.studio-preview-images img { width:100%; aspect-ratio:3/4; object-fit:cover; }
.map-preview { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:200px; border:1px solid var(--line); border-radius:6px; background:#eee7e1; }
.map-preview svg { color:#82756b; }
.map-preview strong { font-weight:500; font-size:14px; }
#book[data-booking-design] .booking-layout {
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(0,1fr);
  max-width:1080px;
  gap:32px;
  align-items:start;
}
#book .booking-referral {
  min-width:0; padding:32px 28px; border:1px solid #c7b9ae;
  border-radius:12px; background:#eee7e1; color:var(--ink);
}
#book .referral-symbol { display:block; color:#87786c; margin-bottom:24px; }
#book .referral-kicker { font-size:10px; letter-spacing:.16em; text-transform:uppercase; margin-bottom:12px; }
#book .booking-referral h3 { font-size:30px; line-height:1.15; letter-spacing:-.035em; margin-bottom:16px; }
#book .referral-description { font-size:14px; line-height:1.65; margin-bottom:24px; }
#book .referral-rewards { display:grid; grid-template-columns:1fr 1fr; border-block:1px solid #c7b9ae; padding-block:18px; gap:12px; }
#book .referral-rewards > div + div { border-left:1px solid #c7b9ae; padding-left:12px; }
#book .referral-rewards span { display:block; font-size:10px; line-height:1.4; margin-bottom:8px; color:var(--muted); }
#book .referral-rewards strong { display:block; font-size:24px; line-height:1.2; font-weight:400; white-space:nowrap; }
#book .referral-terms { font-size:11px; margin:16px 0 0; }
#book .referral-help { font-size:12px; line-height:1.5; margin:8px 0 0; }
@media(max-width:1000px) {
  #book[data-booking-design] .booking-layout { grid-template-columns:minmax(0,1fr); max-width:680px; gap:16px; }
  #book .booking-referral { padding:24px; }
  #book .referral-symbol { margin-bottom:16px; }
}
@media(max-width:450px) {
  #book .booking-referral { padding:22px 20px; }
  #book .booking-referral h3 { font-size:27px; }
  #book .referral-description { font-size:13px; margin-bottom:18px; }
}
#book #consultation-panel .consultation-goals { display:block; margin-top:12px; }
#book #consultation-panel .consultation-treatment-info > summary,
#book #consultation-panel .consultation-consent-terms > summary { font-size:12px; line-height:1.5; padding-block:5px; }
#book #consultation-panel .consultation-treatment-info > p,
#book #consultation-panel .consultation-consent-terms > p { font-size:11px; line-height:1.5; }
#book #booking-content.booking-stable-viewport {
  min-height:min(640px,calc(100svh - 32px));
  height:auto;
  overflow:visible;
  overflow-anchor:none;
  scroll-behavior:auto;
}
#book #booking-content.booking-stable-viewport > .booking-panel { margin-block:0; }
@media (max-width:1000px) {
  /* Avoid unused form height between the stacked booking and referral cards. */
  #book #booking-content.booking-stable-viewport { min-height:0; }
}
#book #consultation-panel .consultation-profile-group { gap:9px 10px; }
#book #consultation-panel .required-mark { color:#b33636; font-size:12px; font-weight:600; }
#book #consultation-panel .consultation-profile-group label { margin:0; font-size:11px; line-height:1.3; }
#book #consultation-panel .consultation-profile-group input,
#book #consultation-panel .consultation-profile-group select {
  height:32px; min-height:32px; padding:5px 8px; margin:3px 0 0;
  font-size:12px; line-height:20px; box-sizing:border-box;
}
#book #consultation-panel .consultation-profile-details { margin:10px 0; padding-inline:10px; }
#book #consultation-panel .consultation-profile-details > summary { padding-block:6px; font-size:11px; }
#book #consultation-panel .consultation-profile-details[open] > .consultation-profile-group { padding-bottom:8px; }
#book #consultation-panel .consultation-profile-group .field-help { margin:0; font-size:10px; line-height:1.3; }
#book #consultation-panel .consultation-address-search { gap:4px 8px; align-items:end; }
#book #consultation-panel .consultation-address-search > label { margin:0; }
#book #consultation-panel .consultation-address-search > .secondary-button {
  align-self:end; height:32px; min-height:32px; margin:0; padding:5px 12px;
  font-size:11px; line-height:20px; display:flex; align-items:center; justify-content:center;
}
#book #consultation-panel .consultation-address-search > p:empty { display:none; }
#book #consultation-panel .consultation-address-search > .text-link { padding:0; line-height:1.3; }
@media (min-width:600px) {
  #book #consultation-panel .consultation-profile-group { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:700px) {
  #book #consultation-panel .consultation-profile-group input,
  #book #consultation-panel .consultation-profile-group select { height:36px; min-height:36px; font-size:16px; }
  #book #consultation-panel .consultation-address-search > .secondary-button { height:36px; min-height:36px; }
}

/* Soft Boutique hero: mobile only; the desktop split layout is unchanged. */
@media (max-width:700px) {
  #events > #event-book-now { display:flex; width:fit-content; margin-inline:auto; }
}
@media (max-width:700px) {
  .hero {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    height:calc(100svh - var(--site-header-height));
    min-height:460px;
    padding:0;
    gap:0;
    background:#e9e1dc;
  }
  .hero-photo {
    order:0;
    flex:1 1 0;
    min-height:170px;
    height:auto;
    margin:0;
  }
  .hero-photo img {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    margin:0;
    aspect-ratio:auto;
    object-fit:cover;
    object-position:22% 50%;
  }
  .hero-copy {
    order:1;
    flex:0 0 auto;
    position:relative;
    z-index:1;
    display:block;
    width:calc(100% - 36px);
    max-width:500px;
    margin:-32px auto 0;
    padding:25px 22px 14px;
    background:var(--paper);
    border-radius:5px;
    box-shadow:0 7px 25px #403d3b08;
  }
  .hero h1 { font-size:clamp(29px,8.3vw,36px); margin-bottom:14px; line-height:1.08; }
  .hero-description { font-size:11px; line-height:1.55; margin:0 0 15px; max-width:none; }
  .hero-actions { display:flex; flex-direction:column; align-items:stretch; gap:0; margin:0; }
  .hero-actions .button { width:100%; min-height:44px; padding:12px 16px; font-size:12px; }
  .hero-actions .text-link { display:block; width:100%; padding:12px 0 2px; text-align:center; font-size:11px; }
  .hero-bottom { order:2; flex:0 0 auto; border:0; padding:16px 22px; font-size:8px; letter-spacing:.08em; }
  .hero-bottom a { font-size:10px; }
}
@media (max-width:700px) and (max-height:650px) {
  .hero-photo { min-height:120px; }
  .hero-copy { padding:20px 18px 10px; }
  .hero h1 { font-size:29px; margin-bottom:10px; }
  .hero-description { margin-bottom:12px; }
  .hero-bottom { padding-block:10px; }
}
