/* Shubh Beauty — site styles on top of Bootstrap 5.3 (served locally). */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../vendor/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../vendor/fonts/work-sans-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --brand: #4a2477;
  --brand-hover: color-mix(in srgb, var(--brand) 80%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --brand-chip: color-mix(in srgb, var(--brand) 11%, #fff);
  --ink: #1c1622;
  --ink-muted: #5d5566;
  --line: color-mix(in srgb, var(--brand) 15%, #fff);
  --surface: #ffffff;
  --radius-lg: 20px;
  --radius-md: 16px;

  --bs-body-font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--surface);
  --bs-link-color-rgb: var(--brand-rgb, 74, 36, 119);
  --bs-focus-ring-color: color-mix(in srgb, var(--brand) 25%, transparent);
}

body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, .hero-title, .section-title, .brand-text { font-family: 'Bricolage Grotesque', var(--bs-body-font-family); }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
section[id] { scroll-margin-top: 90px; }
main[id] { scroll-margin-top: 130px; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 1100; padding: .75rem 1rem; background: #fff; color: var(--brand); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.hero :focus-visible { outline-color: #fff; }

.text-brand { color: var(--brand) !important; }
.text-muted-ink { color: var(--ink-muted) !important; }
.link-brand { color: var(--brand); }
.link-ink { color: var(--ink); text-decoration: none; }
.link-ink:hover { color: var(--brand); }

/* Buttons */
.btn-ink { --bs-btn-bg: var(--ink); --bs-btn-color: #fff; --bs-btn-hover-bg: #000; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #000; font-weight: 600; padding-block: .7rem; }
.btn-brand { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--brand-hover); --bs-btn-hover-border-color: var(--brand-hover); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--brand-hover); --bs-btn-disabled-bg: var(--brand); }
.btn-outline-brand { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-color: #fff; background: #fff; }

/* Header */
.site-header { background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 1.2rem; }
.brand-text { font-weight: 700; font-size: 1.3rem; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--bs-body-font-family); font-size: .62rem; font-weight: 500; letter-spacing: .3em; margin-top: 3px; }
.nav-link-plain { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-link-plain:hover { color: var(--brand); }

/* Hero */
.hero { border-radius: var(--radius-lg); overflow: hidden; background: var(--brand); margin-top: 1.75rem; position: relative; }
.hero-row { min-height: 445px; }
.hero-copy { color: #fff; padding: 3rem 3rem 7rem; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: color-mix(in srgb, var(--brand) 24%, #fff); margin-bottom: .75rem; }
.hero-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 1rem; }
.hero-sub { font-size: 1.15rem; color: color-mix(in srgb, var(--brand) 11%, #fff); margin-bottom: 1.75rem; }
.hero .btn-outline-light { --bs-btn-hover-color: var(--brand); }
.hero .btn-light { color: var(--ink); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-controls { position: absolute; left: 3rem; bottom: 2.5rem; display: flex; align-items: center; gap: 1rem; z-index: 3; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85); background: transparent; color: #fff; display: grid; place-items: center; }
.hero-arrow:hover { background: rgba(255, 255, 255, .12); }
.hero-dots { display: flex; align-items: center; gap: .5rem; }
.hero-dots button { width: 44px; height: 44px; border-radius: 99px; border: 0; padding: 0; background: radial-gradient(circle, rgba(255, 255, 255, .45) 5px, transparent 6px); }
.hero-dots button.active { background: radial-gradient(circle, #fff 6px, transparent 7px); }
.chip { border: 0; border-radius: 99px; background: var(--brand-chip); color: var(--ink); padding: .5rem 1rem; font-size: .9rem; font-weight: 500; }
.chip:hover, .chip.active { background: var(--brand); color: #fff; }

/* Sections */
.section { padding-block: 5rem; }
.section-title { font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
.section-aside { max-width: 420px; }

.service-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.4rem 1.5rem; background: #fff; transition: border-color .15s, box-shadow .15s; }
.service-card:hover { border-color: color-mix(in srgb, var(--brand) 29%, #fff); box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 7%, transparent); }
.service-name { font-family: var(--bs-body-font-family); font-size: 1.15rem; font-weight: 600; margin: 0; }
.service-price { color: var(--brand); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.service-heading { flex-wrap: wrap; }
.service-desc { color: var(--ink-muted); margin: .6rem 0 .4rem; }
.service-time { color: var(--ink-muted); font-size: .85rem; margin: 0; }

.gallery-item { display: block; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 5 / 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.03); }

/* Booking */
.book-panel { background: var(--brand-soft); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); }
.lead-ink { color: var(--ink-muted); font-size: 1.05rem; }
.book-points li { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .6rem; color: var(--ink-muted); }
.book-points i { color: var(--brand); }
.walkin { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 99px; font-weight: 500; font-size: .92rem; }
.walkin .dot { width: 9px; height: 9px; border-radius: 50%; }
.walkin-open { background: #e3f4ea; color: #145c34; }
.walkin-open .dot { background: #1f8a4c; }
.walkin-busy { background: #fdf0dc; color: #7a4a06; }
.walkin-busy .dot { background: #c77a0a; }
.book-card { background: #fff; border-radius: var(--radius-md); padding: 1.75rem; }
.book-card .form-label { font-weight: 600; font-size: .88rem; }
.book-card .form-control, .book-card .form-select { border-color: color-mix(in srgb, var(--brand) 23%, #fff); border-radius: 10px; padding: .7rem .9rem; }
.slot-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot { border: 1px solid color-mix(in srgb, var(--brand) 23%, #fff); border-radius: 99px; padding: .55rem .95rem; font-size: .88rem; font-weight: 500; cursor: pointer; user-select: none; }
.slot:hover { border-color: var(--brand); }
.btn-check:checked + .slot { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-check:focus-visible + .slot { outline: 3px solid var(--brand); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Visit */
address { font-style: normal; line-height: 1.7; }
.hours-table th { font-weight: 400; padding: .3rem 3rem .3rem 0; }
.hours-table td { padding: .3rem 0; }
.map-box { height: 100%; min-height: 330px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--brand) 13%, #fff); display: grid; place-items: center; overflow: hidden; }
.map-box iframe { width: 100%; height: 100%; min-height: 330px; border: 0; }

/* Footer */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--brand) 21%, #fff); font-size: .9rem; }
.site-footer a { color: color-mix(in srgb, var(--brand) 21%, #fff); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-credit { color: color-mix(in srgb, var(--brand) 31%, #fff); font-weight: 700; }
.site-footer .footer-credit:hover { color: #fff; text-decoration: underline; }

/* Mobile */
.mobile-bar { position: fixed; inset: auto 0 0 0; display: flex; gap: .5rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); z-index: 1030; transition: transform .2s ease, visibility .2s; }
.mobile-bar.is-hidden { transform: translateY(100%); visibility: hidden; }
@media (max-width: 767.98px) {
  body:not(.admin) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .site-nav { flex-wrap: wrap; gap: .5rem; }
  .site-nav-links { width: 100%; justify-content: space-between; }
  .site-nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
  section[id] { scroll-margin-top: 140px; }
  .hero { margin-top: .75rem; }
  .section { padding-block: 3.5rem; }
}
@media (max-width: 991.98px) {
  .hero-row { min-height: 0; }
  .hero-copy { padding: 2rem 1.5rem; }
  .hero-photo { aspect-ratio: 16 / 9; }
  .hero-controls { position: static; justify-content: center; padding: 1rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-item { transition: none; }
  .gallery-item img, .hero-dots button { transition: none; }
  .service-card { transition: none; }
}

/* Bootstrap form controls in brand color */
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus, .form-control:focus, .form-select:focus { border-color: color-mix(in srgb, var(--brand) 58%, #fff); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 18%, transparent); }

/* Preview deployments (APP_ENV=preview) */
.preview-banner { background: #fdf0dc; color: #7a4a06; font-size: .82rem; text-align: center; padding: .4rem 1rem; }
.category-tiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.category-tile { border:1px solid color-mix(in srgb, var(--brand) 22%, #fff); border-radius:12px; background:white; padding:.8rem; text-align:left; color:var(--ink); min-height:64px; }
.category-tile strong,.category-tile small { display:block; }
.category-tile[aria-pressed="true"] { border:2px solid color-mix(in srgb, var(--brand) 81%, #fff); background:color-mix(in srgb, var(--brand) 5%, #fff); padding:calc(.8rem - 1px); }
.category-tile img { width:100%; height:80px; object-fit:cover; border-radius:8px; margin-bottom:.5rem; }
.service-choice { display:flex; gap:.65rem; align-items:flex-start; margin-bottom:.6rem; }
.service-choice input { margin-top:1rem; accent-color:color-mix(in srgb, var(--brand) 81%, #fff); flex-shrink:0; }
.service-choice label { display:block; flex:1; padding:.8rem; border:1px solid color-mix(in srgb, var(--brand) 22%, #fff); border-radius:10px; cursor:pointer; }
.service-choice label span,.service-choice label small { display:block; margin-top:.25rem; }
.service-choice input:checked + label { background:color-mix(in srgb, var(--brand) 5%, #fff); border-color:color-mix(in srgb, var(--brand) 81%, #fff); }
[hidden] { display:none !important; }
.catalog-service-photo { width:100%; height:140px; object-fit:cover; border-radius:8px; margin-bottom:1rem; }
/* Bootstrap floats legends; clear that float before flexible selection rows. */
.book-card fieldset > legend { float:none; width:100%; }
.service-choice { width:100%; min-width:0; }
.service-choice label { min-width:0; overflow-wrap:anywhere; }
/* Editorial treatment browsing retains the salon's purple brand and logo. */
body:not(.admin) { background:#faf8f4; }
body:not(.admin) .section-title, body:not(.admin) .hero-title,
body:not(.admin) main h1 { font-family:Georgia, 'Times New Roman', serif; font-weight:400; letter-spacing:-.025em; }
.treatment-intro { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; margin-bottom:2rem; }
.treatment-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.75rem; }
.treatment-tile { display:block; color:var(--ink); text-decoration:none; }
.category-image { display:block; width:100%; height:auto; aspect-ratio:4 / 3; object-fit:cover; background:color-mix(in srgb, var(--brand) 10%, #fff); border-radius:4px; }
.category-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.5rem; color:#766280; }
.category-placeholder-mark { font:400 clamp(2.5rem,5vw,4.5rem)/1 Georgia,serif; }
.category-placeholder small { font-size:.7rem; text-align:center; padding:0 .5rem; }
.treatment-caption { padding:1.1rem 0 .7rem; }
.treatment-caption h3 { font:400 1.75rem/1.2 Georgia,serif; margin-bottom:.5rem; }
.treatment-caption p { color:var(--ink-muted); margin-bottom:.5rem; }
.treatment-caption > span { font-size:.85rem; color:var(--brand); }
.treatment-tile:hover .treatment-caption h3 { color:var(--brand); }
.category-tiles { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.category-tile { padding:0; border-radius:6px; overflow:hidden; background:#fff; color:var(--ink); }
.category-tile .category-image { height:auto; border-radius:0; margin:0; }
.category-tile-caption { display:block; padding:.7rem; }
.category-tile strong { font-weight:600; font-size:.85rem; }
.category-tile small { font-size:.7rem; }
.category-tile[aria-pressed="true"] { border:1px solid var(--brand); padding:0; box-shadow:0 0 0 2px var(--brand); }
.category-tile:disabled { opacity:.65; cursor:default; }
.service-choice input:focus-visible + label { outline:3px solid var(--brand); outline-offset:2px; }
@media (max-width:991.98px) { .treatment-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .category-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:575.98px) { .treatment-grid { gap:1rem; } .treatment-intro { display:block; } .treatment-intro .btn { margin-top:.5rem; } .treatment-caption h3 { font-size:1.35rem; } .treatment-caption p { font-size:.85rem; } }
@media (prefers-reduced-motion:no-preference) { .treatment-tile { transition:color .15s ease; } }
.category-treatment { padding:1.5rem 0; border-top:1px solid var(--line); }
.category-placeholder > i { font-size:1.65rem; opacity:.65; }
.booking-summary { font-size:.9rem; padding:1rem; border:1px solid var(--line); border-radius:10px; margin-bottom:1rem; color:var(--ink); background:var(--brand-soft); line-height:1.6; }
.booking-controls { display:flex; justify-content:space-between; gap:1rem; margin-top:1rem; }
.booking-controls .btn { min-height:44px; }
.booking-controls .btn-brand {
  --bs-btn-disabled-color: var(--brand);
  --bs-btn-disabled-bg: var(--brand-soft);
  --bs-btn-disabled-border-color: color-mix(in srgb, var(--brand) 27%, #fff);
  --bs-btn-disabled-opacity: 1;
}
/* Keep the short introduction beside the panel without stretching its background. */
#book .book-panel { padding:1rem 0; background:transparent; }
#book .booking-introduction .section-title { font-size:clamp(1.8rem, 2.5vw, 2.4rem); }
/* Desktop: the introduction follows the form while scrolling, but only within the booking section. */
@media(min-width:992px) { #book .booking-introduction { position:sticky; top:6rem; } }
#book .book-card { border:1px solid var(--line); }
@media(max-width:575.98px) { #book .book-panel { padding:0; } #book .book-card { padding:1.25rem; } }
#book-form { scroll-margin-top:150px; }
/* Fixed split hero: only the photographs crossfade. */
.hero-copy { padding:3rem; }
.hero-photo { position:relative; min-height:445px; }
.hero-frame { position:absolute; inset:0; opacity:0; transition:opacity .7s ease; pointer-events:none; }
.hero-frame.active { opacity:1; }
.hero-frame img { height:100%; width:100%; object-fit:cover; }
.hero-controls { left:50%; bottom:1rem; transform:translateX(-50%); padding:.25rem .5rem; border-radius:99px; background:rgba(28,22,34,.68); gap:.15rem; width:max-content; }
.hero-controls .hero-arrow { border:0; }
@media(max-width:991.98px) { .hero-copy { padding:2rem 1.5rem; } .hero-photo { min-height:0; aspect-ratio:16/9; } .hero-controls { position:absolute; padding:.15rem .3rem; } }
@media(prefers-reduced-motion:reduce) { .hero-frame { transition:none; } }
@media(max-width:575.98px) { .hero-controls [data-hero-direction] { display:none; } }

/* Sign-up welcome offer (Join page) */
.welcome-offer { border: 2px dashed var(--brand); border-radius: 16px; background: color-mix(in srgb, var(--brand) 6%, #fff); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.welcome-offer-label { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.welcome-offer-text { margin: .15rem 0 .35rem; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
