/* =====================================================================
   Chloe Bloom Beauty Lounge — one stylesheet for the site and admin.
   Palette from the logo: rose pink, blush, warm near-black ink.
   Fonts: Great Vibes (script "Chloe"), Playfair Display (BEAUTY LOUNGE
   caps), Poppins (body) — with safe fallbacks if fonts fail to load.
   ===================================================================== */

/* Poppins contains no peso sign (U+20B1) — verified by measurement, not
   guesswork — so "₱2,499" would render the symbol in whatever unrelated
   font the browser picked, beside Poppins digits. This maps ONLY that one
   character to a font that has it. If none resolves, behaviour is exactly
   what it was before, so there is no downside. */
@font-face {
  font-family: "PesoSign";
  src: local("Segoe UI"), local("Roboto"), local("Noto Sans"),
       local("Helvetica Neue"), local("Arial");
  unicode-range: U+20B1;
  font-display: swap;
}

:root {
  --rose:       #c94f7c;   /* the logo's rose pink                     */
  --rose-deep:  #a63a62;   /* darker rose — passes AA on white         */
  --magenta:    #e2447f;   /* flyer accent — CTAs, highlights          */
  --blush:      #fdeef3;   /* pale pink wash                           */
  --blush-2:    #f9dce7;   /* deeper blush band                        */
  --paper:      #fffafc;   /* page ground                              */
  --ink:        #2b2326;   /* near-black with a warm cast              */
  --ink-2:      #6d5f66;   /* secondary text                           */
  --line:       #f0cddb;   /* hairlines                                */
  --cream:      #faf6f1;   /* warm ivory — alternate bands             */
  --ok:         #2e7d4f;
  --warn:       #b26a00;
  --bad:        #b3324b;
  --shadow:     none;      /* hairlines carry the structure, not glow  */
  --radius:     4px;
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
  --script:     "Great Vibes", "Brush Script MT", cursive;
  --serif:      "PesoSign", "Playfair Display", Georgia, serif;
  --sans:       "PesoSign", "Poppins", "Segoe UI", system-ui, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-deep); }
p { margin: 0 0 1em; }
/* browsers give <figure> a 40px side margin by default, which would eat
   ~80px of every gallery tile (a quarter of the width on a phone) */
figure { margin: 0; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--rose); color: #fff; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------ type */

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }

.h-script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--rose-deep);
}

.h-display {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 600; color: var(--rose-deep);
  margin: 0 0 14px;
}
.kicker::before, .kicker::after {
  content: ""; width: 26px; height: 1px; background: var(--rose);
  opacity: 0.5;
}

.muted { color: var(--ink-2); }
.center { text-align: center; }

/* --------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background-color: var(--ink); color: #fff; text-decoration: none;
  border: 1px solid var(--ink); cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 14px 30px; border-radius: 2px;
  /* rose sweeps in from the left on hover */
  background-image: linear-gradient(var(--rose-deep), var(--rose-deep));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  transition:
    background-size 0.4s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
  min-height: 44px;
}
.btn:hover { background-size: 100% 100%; border-color: var(--rose-deep); }
.btn-sm { padding: 9px 18px; font-size: 11px; min-height: 40px; }
.btn-ghost {
  background-color: transparent; color: var(--ink);
  border: 1px solid var(--ink-2);
  background-image: linear-gradient(var(--blush), var(--blush));
}
.btn-ghost:hover { color: var(--rose-deep); border-color: var(--rose-deep); }
.btn-ink { background-color: var(--ink); }

/* ---------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 250, 252, 0.92);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 72px; flex-wrap: wrap; padding: 8px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-img { height: 52px; width: auto; }
.brand-lockup { display: inline-flex; align-items: baseline; gap: 9px; }
.brand-script {
  font-family: var(--script); font-size: 30px; color: var(--ink); line-height: 1;
}
.brand-script i { font-style: normal; color: var(--rose-deep); }
.brand-caps {
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 600;
}
.crown { color: var(--rose); }
.crown-sm { width: 26px; height: 17px; align-self: center; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a:not(.btn) {
  position: relative; text-decoration: none; color: var(--ink-2);
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 12px 12px; min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.2s var(--ease);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px;
  height: 2px; border-radius: 2px; background: var(--rose);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:not(.btn):hover, .nav a.active:not(.btn) { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a.active:not(.btn)::after { transform: scaleX(1); }
.nav .btn { margin-left: 8px; }

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 8vw, 96px);
}
.hero .wrap { position: relative; z-index: 2; }
.petals { z-index: 1; }

/* a soft blush halo breathes slowly behind the lockup */
.hero::before {
  content: ""; position: absolute; left: 50%; top: 46%; z-index: 0;
  width: min(780px, 92vw); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--blush-2), rgba(249, 220, 231, 0) 68%);
  opacity: 0.55; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: blushBreathe 9s ease-in-out infinite; }
}
@keyframes blushBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.4; }
  50%      { transform: translate(-50%, -50%) scale(1.14); opacity: 0.75; }
}

/* hand-drawn rose branches growing from the hero's corners */
.hero-flora {
  position: absolute; bottom: -4px; z-index: 1;
  width: clamp(112px, 15vw, 200px);
  color: var(--rose); opacity: 0.45; pointer-events: none;
}
.hero-flora.fl-left  { left: clamp(4px, 1.6vw, 30px); }
.hero-flora.fl-right { right: clamp(4px, 1.6vw, 30px); transform: scaleX(-1); }
.hero-flora-svg { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .hero-flora .stem {
    stroke-dasharray: 100; stroke-dashoffset: 100;
    animation: floraDraw 1.5s var(--ease) 0.5s both;
  }
  .hero-flora .stem.s2 { animation-delay: 1.3s; animation-duration: 0.8s; }
  .hero-flora .stem.s3 { animation-delay: 1.5s; animation-duration: 0.8s; }
  .hero-flora .bloom { opacity: 0; animation: floraBloom 1s var(--ease) 1.9s both; }
}
@keyframes floraDraw  { to { stroke-dashoffset: 0; } }
@keyframes floraBloom { to { opacity: 1; } }
@media (max-width: 640px) {
  .hero-flora { width: 92px; opacity: 0.32; }
}

/* the signature flourish under the name, drawn after the wipe */
.hero-flourish {
  display: block; width: clamp(180px, 26vw, 310px); height: auto;
  margin: 4px auto 0; color: var(--rose);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-flourish path {
    stroke-dasharray: 100; stroke-dashoffset: 100;
    animation: flourishDraw 0.9s var(--ease) 1.2s both;
  }
}
@keyframes flourishDraw { to { stroke-dashoffset: 0; } }

/* ------------------------------------------- petals (hero ambience)
   Rose petals drift down behind the lockup — slow, sparse, faint.
   The outer span falls in a straight line; the inner one sways and
   turns, which is what makes it read as a petal and not confetti.  */
.petals { position: absolute; inset: 0; pointer-events: none; }
.petal {
  position: absolute; top: -34px; color: var(--rose); opacity: 0;
}
.petal-deep { color: var(--rose-deep); }
.petal i { display: block; }
.petal svg { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .petal {
    animation: petalFall var(--dur, 16s) linear var(--delay, 0s) infinite;
  }
  .petal i {
    animation: petalSway calc(var(--dur, 16s) / 4) ease-in-out
      calc(var(--delay, 0s) * -1) infinite alternate;
  }
}
@keyframes petalFall {
  0%   { transform: translateY(0);     opacity: 0; }
  6%   { opacity: var(--po, 0.26); }
  88%  { opacity: var(--po, 0.26); }
  100% { transform: translateY(640px); opacity: 0; }
}
@keyframes petalSway {
  from { transform: translateX(-22px) rotate(-40deg); }
  to   { transform: translateX(22px)  rotate(50deg); }
}
@media (max-width: 640px) {
  /* fewer, calmer petals on small screens */
  .petal:nth-child(3n) { display: none; }
}

/* --------------------------------------- hero entrance choreography
   The name wipes in left-to-right like a signature being written;
   BEAUTY LOUNGE settles in from wide tracking; everything below
   rises in sequence. Pure CSS, so it also plays without JS.        */
@media (prefers-reduced-motion: no-preference) {
  .crown-hero {
    animation:
      fadeDrop 0.7s var(--ease) both,
      crownFloat 6s ease-in-out 1.6s infinite;
  }
  .hero-script     { animation: inkWipe 1.4s var(--ease) 0.1s both; }
  .hero-caps       { animation: trackIn 1.1s var(--ease) 0.5s both; }
  .hero-sub        { animation: fadeUp 0.7s var(--ease) 0.95s both; }
  .hero-tag        { animation: inkWipe 1.1s var(--ease) 1.15s both; }
  .hero .hero-cta  { animation: fadeUp 0.7s var(--ease) 1.4s both; }
  .hero-meta       { animation: fadeUp 0.7s var(--ease) 1.6s both; }
}
@keyframes crownFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes fadeDrop {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
/* generous negative insets so script swashes never get cropped */
@keyframes inkWipe {
  from { clip-path: inset(-25% 100% -35% -10%); }
  to   { clip-path: inset(-25% -10% -35% -10%); }
}
@keyframes trackIn {
  from { opacity: 0; letter-spacing: 0.7em; }
  to   { opacity: 1; letter-spacing: 0.42em; }
}
.hero .crown-hero { width: clamp(40px, 4.5vw, 54px); height: auto; margin: 0 auto 4px; }
.hero-script {
  font-family: var(--script);
  font-size: clamp(58px, 10vw, 112px);
  font-weight: 400;
  color: var(--ink); margin: 0; line-height: 1.05;
}
.hero-script i { font-style: normal; color: var(--rose-deep); }
.hero-caps {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(16px, 2.4vw, 23px); letter-spacing: 0.42em;
  text-transform: uppercase; margin: 8px 0 4px;
}
.hero-sub {
  font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 26px;
}
.hero-tag {
  font-family: var(--script); font-size: clamp(21px, 3vw, 30px);
  color: var(--rose-deep); margin: 20px 0 32px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 34px; font-size: 13px; letter-spacing: 0.06em; color: var(--ink-2);
  display: flex; gap: 8px 26px; justify-content: center; flex-wrap: wrap;
}
.hero-meta b { color: var(--ink); font-weight: 500; }

/* -------------------------------------------------------- sections */

.section { padding: clamp(56px, 7vw, 96px) 0; }
/* cream bands carry a whisper of scattered petals */
.section-blush {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cpath d='M26 10C31.5 15.5 31.5 23 26 30 20.5 23 20.5 15.5 26 10Z' fill='%23c94f7c' fill-opacity='.05' transform='rotate(24 26 20)'/%3E%3Cpath d='M112 92C117.5 97.5 117.5 105 112 112 106.5 105 106.5 97.5 112 92Z' fill='%23a63a62' fill-opacity='.04' transform='rotate(-22 112 102)'/%3E%3C/svg%3E");
}
.section-head {
  position: relative; text-align: center;
  max-width: 640px; margin: 0 auto clamp(30px, 4vw, 52px);
}
.section-head .h-display { font-size: clamp(26px, 3.6vw, 40px); }

/* ------------------------------------------------------- ornaments */

/* a huge script word from the tagline, whispering behind the heading */
.ghost {
  position: absolute; left: 50%; top: -0.42em;
  transform: translateX(-50%);
  font-family: var(--script);
  font-size: clamp(58px, 12vw, 150px);
  line-height: 1; white-space: nowrap;
  color: var(--rose); opacity: 0.08;
  pointer-events: none; user-select: none; z-index: -1;
}

/* hairline · dot · petal · dot · hairline, centred under a heading */
.orn { width: 160px; margin: 16px auto 0; color: var(--rose); }
.orn svg { display: block; width: 100%; height: auto; }

/* small flourish curve reused as a static ornament */
.orn-flourish {
  display: block; width: clamp(130px, 18vw, 190px); height: auto;
  margin: 0 auto 10px; color: var(--rose); opacity: 0.75;
}

/* petal separators in the why-strip */
.why-sep { width: 10px; height: 10px; color: var(--rose); opacity: 0.75; align-self: center; }

/* service cards: boutique-menu centring with a petal between name and price */
.svc-card { text-align: center; align-items: center; }
.svc-orn { display: block; width: 11px; margin: 2px auto 4px; color: var(--rose); opacity: 0.65; }
.svc-orn svg { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------ cards */

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; }

.svc-card { display: flex; flex-direction: column; gap: 5px; }
.svc-card h3 { margin-bottom: 2px; }
.svc-card .price { color: var(--rose-deep); font-weight: 500; font-size: 15px; }
.svc-card .dur { font-size: 13px; color: var(--ink-2); }
.svc-card .book-link {
  margin-top: auto; padding-top: 14px; font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
}
.svc-card .book-link:hover { color: var(--ink); }

/* services page table-ish list */
.svc-list { display: flex; flex-direction: column; }
.svc-row {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.svc-row .n { font-weight: 600; }
.svc-row .dots {
  flex: 1; min-width: 40px; border-bottom: 2px dotted var(--line);
  transform: translateY(-4px);
}
.svc-row .p { color: var(--rose-deep); font-weight: 600; white-space: nowrap; }
.svc-row .d { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.svc-cat {
  font-family: var(--serif); font-size: 22px; margin: 34px 0 8px;
  display: flex; align-items: center; gap: 12px;
}
.svc-cat::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* the "starting prices" note from the salon's own price list */
.price-note {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 30px; padding: 16px 18px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price-note p { margin: 0; font-size: 14px; color: var(--ink-2); }
.price-note b { color: var(--ink); font-weight: 600; }
.pn-mark {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--rose); color: var(--rose-deep);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 14px; line-height: 1;
}

/* ------------------------------------------------------ bloom steps */

.steps { counter-reset: step; }
.step { position: relative; padding-top: 6px; }
.step .num {
  display: block; font-family: var(--serif); font-size: 15px; font-weight: 600;
  letter-spacing: 0.2em; color: var(--rose-deep); line-height: 1;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.step h3 { margin-top: 6px; }

/* ------------------------------------------------------- why strip
   A quiet editorial band: four claims in letterspaced caps between
   two hairlines. No icons, no box.                                  */

.why {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px clamp(20px, 4vw, 54px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(20px, 2.6vw, 30px) 10px;
}
.why-item {
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-2); text-align: center;
}
.why-item b { font-weight: 500; color: inherit; }

/* ----------------------------------------------------------- forms */

.form-card { max-width: 640px; margin-inline: auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid #ddd2d8; border-radius: var(--radius);
  padding: 12px 14px; min-height: 46px;
  transition: border-color 0.2s var(--ease);
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--rose-deep); outline: none;
}
.form-err {
  background: #fdeef0; border: 1px solid #f3c2cc; color: var(--bad);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px;
}
.form-err ul { margin: 0; padding-left: 18px; }

/* slot picker */
fieldset.slot-fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset.slot-fieldset legend {
  font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0;
}
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; border: 1px solid #ddd2d8; border-radius: var(--radius);
  padding: 10px 6px; min-height: 54px; cursor: pointer; font-size: 14px; font-weight: 500;
  background: #fff; transition: border-color 0.2s, background 0.2s; text-align: center;
}
.slot label .left { font-size: 11px; color: var(--ink-2); font-weight: 400; }
.slot input:checked + label {
  border-color: var(--rose-deep); background: var(--blush);
  box-shadow: inset 0 0 0 1px var(--rose-deep);
}
.slot input:focus-visible + label { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
.slot.full label {
  opacity: 0.45; cursor: not-allowed; text-decoration: line-through; background: #faf5f7;
}
.slots-empty { color: var(--ink-2); font-size: 14px; padding: 8px 2px; }

/* --------------------------------------------------------- success */

.success-card { text-align: center; }
.success-card .ref {
  display: inline-block; font-family: var(--serif); font-size: 25px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--rose-deep);
  border: 1px dashed var(--rose); border-radius: var(--radius); padding: 8px 22px; margin: 10px 0 16px;
}
.success-facts { list-style: none; margin: 0 auto 18px; padding: 0; max-width: 380px; text-align: left; }
.success-facts li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.success-facts .k { color: var(--ink-2); }

/* ---------------------------------------------------------- badges */

.badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.badge-pending   { background: #fff3e0; color: #8a5200; } /* 5.3:1 on the cream chip */
.badge-confirmed { background: #e3f1ff; color: #1d5f9e; }
.badge-completed { background: #e4f4ea; color: var(--ok); }
.badge-cancelled { background: #f2f0f1; color: var(--ink-2); }
.badge-no_show   { background: #fdeef0; color: var(--bad); }

.flash {
  background: #e4f4ea; color: var(--ok); border: 1px solid #bfe3cd;
  border-radius: 12px; padding: 12px 18px; margin: 16px auto 0;
  width: min(1120px, 100% - 40px); font-size: 14.5px; font-weight: 500;
}
.flash-err { background: #fdeef0; color: var(--bad); border-color: #f3c2cc; }
.admin .flash { width: 100%; margin: 0 0 16px; }

/* ---------------------------------------------------------- footer */

.site-footer {
  background: var(--ink); color: #d8ccd2; margin-top: 40px;
  padding: clamp(40px, 5vw, 64px) 0 0;
  font-size: 14px;
}
/* ornamented top: hairline · crown · hairline */
.foot-orn {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; padding-bottom: clamp(26px, 3vw, 40px);
}
.foot-orn i { display: block; height: 1px; width: clamp(56px, 12vw, 170px); background: #4a3e44; }
.crown-foot-orn { width: 30px; height: 19px; color: #d98db0; opacity: 0.85; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h3 {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; margin-bottom: 12px;
}
.foot-col a { color: #f3b7cf; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.crown-foot { width: 34px; height: 22px; }
.foot-script { font-family: var(--script); font-size: 34px; color: #fff; margin: 6px 0 4px; }
.foot-tag { font-size: 13.5px; }
.foot-base {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid #43383d; margin-top: 34px; padding: 18px 0 22px;
  font-size: 12.5px; flex-wrap: wrap;
}
.foot-admin { color: #8d7d85; text-decoration: none; }
.foot-admin:hover { color: #f3b7cf; }

/* ----------------------------------------------------------- admin */

.admin { background: #fdf7fa; }
.admin-chip {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 999px;
  font-weight: 600;
}
.admin-main { padding: 26px 0 60px; }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 6px 0 20px; }
.admin-title h1 { font-family: var(--serif); font-size: 28px; margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
}
.stat .v { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--rose-deep); line-height: 1.1; }
.stat .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.list th {
  text-align: left; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: var(--blush);
}
table.list td { padding: 12px 14px; border-bottom: 1px solid #f7e7ee; vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list .actions { display: flex; gap: 6px; flex-wrap: wrap; }

.btn-xs {
  font-size: 11px; padding: 6px 12px; min-height: 32px; border-radius: 999px;
  letter-spacing: 0.06em;
}
button.linkish {
  background: none; border: 0; color: var(--rose-deep); cursor: pointer;
  font: inherit; text-decoration: underline; padding: 0;
}

.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 22px; }
.panel h2 { font-family: var(--serif); font-size: 20px; margin-top: 0; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; flex: 1 1 150px; }
.inline-form .field.grow { flex: 2 1 220px; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar a {
  text-decoration: none; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 16px; color: var(--ink-2);
}
.filter-bar a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------------------------------------------------- gallery */

.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.gallery-grid { gap: 22px; }
.ba-card { padding: 14px; }
/* every tile is a square so the grid stays even, whatever gets added */
.g-wrap {
  position: relative; overflow: hidden; border-radius: 12px;
  aspect-ratio: 1 / 1; background: var(--blush);
}
.g-img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
/* tag for a photo that already shows before | after in one frame */
.g-tag {
  position: absolute; left: 10px; top: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff;
  background: rgba(43, 35, 38, 0.74);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border-radius: 999px; padding: 5px 12px;
}
/* same square frame as the single photos, so mixed tiles still line up */
.ba { --ba: 50%; position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 1 / 1; background: var(--blush); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--ba)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--ba); width: 3px; background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35); transform: translateX(-50%); pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--rose-deep);
  display: grid; place-items: center; font-size: 16px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.ba-tag {
  position: absolute; top: 10px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(43, 35, 38, 0.72); color: #fff; border-radius: 999px; padding: 4px 10px;
}
.ba-tag-l { left: 10px; }
.ba-tag-r { right: 10px; }
.ba-range-label { display: block; margin-top: 12px; }
.ba-range-label input[type="range"] { width: 100%; accent-color: var(--rose-deep); }
.g-cap {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-2);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------ animations */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* cards inside a grid rise one after another, not all at once */
.grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.2s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.3s; }
.grid > .reveal:nth-child(5) { transition-delay: 0.4s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.5s; }

/* photo tiles lift softly under the cursor */
.ba-card { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
@media (hover: hover) {
  .ba-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(43, 35, 38, 0.1);
  }
}

/* the kicker's hairline draws itself out once the section shows */
.reveal .kicker::after {
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s var(--ease) 0.25s;
}
.reveal.visible .kicker::after { transform: scaleX(1); }

/* the four claims of the why-strip surface in sequence */
.reveal .why-item {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible .why-item { opacity: 1; transform: none; }
.reveal.visible .why-item:nth-child(2) { transition-delay: 0.09s; }
.reveal.visible .why-item:nth-child(3) { transition-delay: 0.18s; }
.reveal.visible .why-item:nth-child(4) { transition-delay: 0.27s; }

/* Before/after sliders give one inviting sweep when first seen, so
   visitors discover they can drag. Needs @property so the custom
   property can tween; browsers without it simply skip the hint.    */
@property --ba {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .ba.hint { animation: baHint 2.4s ease-in-out 0.5s 1; }
}
@keyframes baHint {
  0%, 100% { --ba: 50%; }
  35%      { --ba: 26%; }
  70%      { --ba: 74%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .petals { display: none !important; }
  .reveal .kicker::after { transform: scaleX(1) !important; transition: none !important; }
  .reveal .why-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ba-card { transition: none !important; }
  .ba-card:hover { transform: none !important; box-shadow: none !important; }
  .btn { transition: none; }
}

/* --------------------------------------------------- small screens */

/* Floating "Book" button — mobile only, public pages only. */
.book-fab { display: none; }

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  /* the wrapped header would pin ~3 rows over every page if it stayed
     sticky — on phones it scrolls away and the FAB carries the CTA */
  .site-header:not(.admin-header) { position: static; }
  .header-inner { justify-content: center; }
  .nav { justify-content: center; }
  .nav a:not(.btn) { padding: 10px 9px; font-size: 11.5px; letter-spacing: 0.08em; }
  .nav > .btn { display: none; }
  body:not(.admin) { padding-bottom: 86px; }
  .book-fab {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px;
    z-index: 95; justify-content: center;
    box-shadow: 0 6px 22px rgba(43, 35, 38, 0.28);
  }
}
