/* =============================================================================
 * styles.css — Fennel & Fetch
 * -----------------------------------------------------------------------------
 * One stylesheet for the whole site. Organised top-to-bottom as:
 *   1. Design tokens (CSS custom properties)      8. Stats band
 *   2. Reset & base elements                      9. Services
 *   3. Typography & helpers                       10. Why us / Process
 *   4. Buttons                                    11. Testimonials & FAQ
 *   5. Header & navigation                        12. Contact & footer
 *   6. Hero                                        13. Booking page
 *   7. Section furniture                           14. Admin page + toasts
 *
 * Colours are defined ONCE as variables in section 1 and reused everywhere, so
 * the entire palette can be re-themed from the top of this file.
 * ===========================================================================*/

/* 1. ----------------------------------------------------------------- TOKENS */
:root {
  /* Brand palette — the single source of truth for the site's colours
     (config.js does NOT duplicate these). */
  --c-primary: #2F6B5E;       /* deep sage — primary actions, heading accents */
  --c-primary-dark: #234F45;  /* darker sage — hovers, footer */
  --c-secondary: #C97A53;     /* warm terracotta — decorative fills/icons */
  --c-secondary-ink: #A8542E; /* darker terracotta — for AA-legible text */
  --c-accent: #E3A857;        /* honey — highlights, stars */
  --c-bg: #FBF7F0;            /* page background (warm cream) */
  --c-surface: #FFFFFF;       /* cards */
  --c-surface-alt: #F2EDE3;   /* tinted panels */
  --c-ink: #222B26;           /* primary text */
  --c-muted: #5E6B63;         /* secondary text */
  --c-border: #E4DCCE;        /* hairlines & card borders */
  --c-warning: #D9952E;
  --c-danger: #C0492F;

  /* Soft tints derived from the brand colours (used for backgrounds/badges) */
  --c-primary-soft: #E7F0EC;
  --c-secondary-soft: #F7E7DC;
  --c-accent-soft: #FBEFD6;

  /* Typography */
  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing, radius, shadows, layout */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(35, 79, 69, 0.06);
  --shadow: 0 14px 40px -18px rgba(35, 79, 69, 0.30);
  --shadow-lg: 0 30px 70px -28px rgba(35, 79, 69, 0.40);
  --container: 1160px;
  --header-h: 76px;
  --transition: 200ms ease;
}

/* 2. ------------------------------------------------------------ RESET/BASE */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background-color: var(--c-bg);
  /* Subtle layered radial "glow" so the cream background isn't flat. */
  background-image:
    radial-gradient(60rem 60rem at 110% -10%, rgba(227, 168, 87, 0.10), transparent 60%),
    radial-gradient(50rem 50rem at -10% 10%, rgba(47, 107, 94, 0.08), transparent 55%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea, button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* Visible keyboard-focus ring for accessibility. */
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* 3. --------------------------------------------------- TYPOGRAPHY/HELPERS */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--c-ink); margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: var(--c-surface-alt); }
.text-center { text-align: center; }
.muted { color: var(--c-muted); }
.lead { font-size: 1.15rem; color: var(--c-muted); }
.eyebrow { display: inline-block; font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-secondary-ink); margin-bottom: .8rem; }
.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; }

/* Skip link: off-screen until it receives keyboard focus, then shown as a
   button at the top-left so keyboard users can see and use the bypass (WCAG 2.4.1). */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip-link:focus { left: .75rem; top: .75rem; width: auto; height: auto; padding: .6rem 1rem; background: var(--c-surface); color: var(--c-primary); font-weight: 600; border-radius: var(--radius-sm); box-shadow: var(--shadow); }

/* Section heading block (eyebrow + title + intro), centred. */
.section-head { max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.section-head p { color: var(--c-muted); font-size: 1.08rem; margin-bottom: 0; }

/* 4. --------------------------------------------------------------- BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill); font-weight: 600; font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--c-primary-dark); transform: translateY(-2px); }
.btn--secondary { background: var(--c-surface); color: var(--c-primary); border: 1.5px solid var(--c-border); }
.btn--secondary:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--c-ink); padding: .6rem 1rem; }
.btn--ghost:hover { color: var(--c-primary); }
.btn--light { background: rgba(255,255,255,0.14); color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn--light:hover { background: rgba(255,255,255,0.24); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* 5. -------------------------------------------------------- HEADER & NAV */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 247, 240, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled { border-bottom-color: var(--c-border); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand-logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--c-ink); }
.brand-logo .logo-mark { width: 40px; height: 40px; flex: none; }

.main-nav { display: flex; align-items: center; gap: .35rem; }
.main-nav a { padding: .5rem .85rem; border-radius: var(--radius-pill); color: var(--c-muted); font-weight: 500; transition: color var(--transition), background-color var(--transition); }
.main-nav a:hover { color: var(--c-ink); background: var(--c-surface-alt); }

.header-actions { display: flex; align-items: center; gap: .6rem; }

/* Hamburger button — only shown on small screens. */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; color: var(--c-ink); align-items: center; justify-content: center; }
.nav-toggle:hover { background: var(--c-surface-alt); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  /* Slide-down mobile menu panel. */
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--c-surface); padding: 1rem; border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform 280ms ease, visibility 280ms ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    /* visibility:hidden (not just off-screen) so the links leave the tab order
       and a11y tree while the panel is closed. */
    visibility: hidden;
  }
  .main-nav.is-open { transform: translateY(0); visibility: visible; }
  .main-nav a { padding: .9rem 1rem; font-size: 1.05rem; }
  .header-actions .btn--secondary { display: none; }
}

/* 6. -------------------------------------------------------------- HERO */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__content { max-width: 36rem; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.hero__badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 500; color: var(--c-primary-dark); }
.hero__badge svg { color: var(--c-primary); width: 18px; height: 18px; }

/* Decorative illustration side */
.hero__art { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero__blob { position: absolute; inset: 0; margin: auto; width: min(420px, 90%); aspect-ratio: 1; background: linear-gradient(160deg, var(--c-primary-soft), var(--c-accent-soft)); border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; filter: blur(2px); animation: blobMorph 14s ease-in-out infinite; }
.hero__art-inner { position: relative; width: min(360px, 80%); }
.hero__art-card { position: absolute; background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: .7rem .9rem; display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; }
.hero__art-card svg { color: var(--c-primary); }
.hero__art-card--a { top: 4%; left: -6%; }
.hero__art-card--b { bottom: 6%; right: -4%; color: var(--c-secondary-ink); }
.hero__art-card--b svg { color: var(--c-secondary); }

@keyframes blobMorph {
  0%, 100% { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
  50% { border-radius: 56% 44% 42% 58% / 44% 56% 44% 56%; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; min-height: 260px; }
  .hero__content { max-width: none; }
}

/* 7. --------------------------------------------------- SECTION FURNITURE */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--3 { grid-template-columns: 1fr; } }

/* Scroll-reveal: elements animate in when JS adds .is-visible (see main.js
   IntersectionObserver). The hidden start-state is scoped to `html.js` (a class
   added by a tiny inline script) so that if JavaScript is disabled or fails, the
   content stays fully visible rather than blank — progressive enhancement. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
html.js .reveal { opacity: 0; transform: translateY(22px); }
/* This MUST out-specify `html.js .reveal` above (it does: 0,3,1 vs 0,2,1) —
   otherwise the hidden rule wins and the element never appears even after
   .is-visible is added. */
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* 8. -------------------------------------------------------- STATS BAND */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat__value { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; color: var(--c-primary); line-height: 1; }
.stat__label { color: var(--c-muted); font-size: .95rem; margin-top: .4rem; }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; } }

/* 9. ------------------------------------------------------------ SERVICES */
.service-card { display: flex; flex-direction: column; padding: 1.6rem; height: 100%; position: relative; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-primary-soft); }
.service-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; margin-bottom: 1rem; }
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: .35rem; }
.service-card__desc { color: var(--c-muted); font-size: .96rem; flex: 1; margin-bottom: 1rem; }
.service-card__meta { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px dashed var(--c-border); }
.service-card__price { font-family: var(--font-head); font-weight: 600; color: var(--c-ink); }
.service-card__price span { font-family: var(--font-body); font-weight: 500; font-size: .82rem; color: var(--c-muted); display: block; }
.service-card__time { font-size: .85rem; color: var(--c-muted); display: inline-flex; align-items: center; gap: .35rem; }
.tag-popular { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--c-accent-soft); color: #8A5A14; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .6rem; border-radius: var(--radius-pill); }
.services-note { text-align: center; margin-top: 2rem; color: var(--c-muted); }

/* 10. ----------------------------------------------------- WHY US / PROCESS */
.feature { padding: 1.6rem; height: 100%; }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--c-secondary-soft); color: var(--c-secondary); }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--c-muted); font-size: .96rem; margin-bottom: 0; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.process__step { position: relative; padding: 1.6rem 1.2rem; text-align: center; }
.process__num { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; display: grid; place-items: center; box-shadow: var(--shadow); }
.process__step h3 { font-size: 1.1rem; }
.process__step p { color: var(--c-muted); font-size: .94rem; margin-bottom: 0; }
@media (max-width: 860px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* 11. --------------------------------------------------- TESTIMONIALS & FAQ */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testimonial { padding: 1.6rem; height: 100%; display: flex; flex-direction: column; }
.testimonial__stars { display: flex; gap: 2px; color: var(--c-accent); margin-bottom: .8rem; }
.testimonial__stars svg { width: 18px; height: 18px; fill: var(--c-accent); stroke: var(--c-accent); }
.testimonial__quote { font-size: 1.02rem; color: var(--c-ink); flex: 1; margin-bottom: 1.2rem; }
.testimonial__author { display: flex; align-items: center; gap: .75rem; }
.testimonial__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; }
.testimonial__name { font-weight: 600; font-size: .95rem; }
.testimonial__detail { color: var(--c-muted); font-size: .85rem; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

.faq { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: .8rem; }
.faq__item { overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: 1.15rem 1.4rem; font-weight: 600; font-size: 1.05rem; color: var(--c-ink); }
.faq__q svg { flex: none; color: var(--c-primary); transition: transform var(--transition); }
.faq__item.is-open .faq__q svg { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 320ms ease; }
.faq__a-inner { padding: 0 1.4rem 1.3rem; color: var(--c-muted); }

/* 12. ------------------------------------------------------ ABOUT/CONTACT */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__art { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; background: linear-gradient(155deg, var(--c-primary), var(--c-primary-dark)); display: grid; place-items: center; box-shadow: var(--shadow); }
.about__art .logo-mark { width: 60%; opacity: .9; }
.about__signature { font-family: var(--font-head); font-size: 1.1rem; color: var(--c-primary); margin-top: 1rem; }
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } .about__art { min-height: 240px; } }

.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.5rem; }
.contact-list a, .contact-list div { display: flex; align-items: flex-start; gap: .9rem; }
.contact-list .ci-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; }
.contact-list .ci-label { font-size: .8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-list .ci-value { font-weight: 600; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: var(--c-surface-alt); color: var(--c-primary); display: grid; place-items: center; transition: background-color var(--transition), color var(--transition); }
.socials a:hover { background: var(--c-primary); color: #fff; }

.hours-card { padding: 1.6rem; }
.hours-card h3 { margin-bottom: 1rem; }
.hours-row { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px dashed var(--c-border); }
.hours-row:last-child { border-bottom: none; }
.hours-row.is-today { color: var(--c-primary); font-weight: 700; }
.hours-row .day { color: var(--c-muted); }
.hours-row.is-today .day { color: var(--c-primary); }
.hours-row .closed { color: var(--c-secondary-ink); }
.map-note { margin-top: 1rem; font-size: .9rem; color: var(--c-muted); display: flex; gap: .5rem; }
@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: linear-gradient(150deg, var(--c-primary), var(--c-primary-dark)); border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 30rem; margin: 0 auto 1.6rem; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.07); }
.cta-band::before { width: 220px; height: 220px; top: -80px; right: -40px; }
.cta-band::after { width: 160px; height: 160px; bottom: -70px; left: -30px; }
.cta-band > * { position: relative; }

/* 12b. -------------------------------------------------------------- FOOTER */
.site-footer { background: var(--c-primary-dark); color: rgba(255,255,255,0.82); padding-block: 3.5rem 2rem; margin-top: 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer .brand-logo { color: #fff; margin-bottom: 1rem; }
.footer__blurb { max-width: 24rem; font-size: .95rem; }
.footer__col h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer__col a, .footer__col p { color: rgba(255,255,255,0.78); display: block; margin-bottom: .6rem; font-size: .95rem; transition: color var(--transition); }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,0.6); }
.footer__bottom a { color: rgba(255,255,255,0.78); }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* 13. ------------------------------------------------------- BOOKING PAGE */
.page-hero { background: var(--c-surface-alt); padding-block: clamp(2.2rem, 5vw, 3.2rem); border-bottom: 1px solid var(--c-border); text-align: center; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { color: var(--c-muted); max-width: 40rem; margin-inline: auto; margin-bottom: 0; }

.booking-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 920px) { .booking-layout { grid-template-columns: 1fr; } }

.booking-step { padding: 1.6rem; margin-bottom: 1.4rem; }
.booking-step__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.booking-step__num { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: .95rem; }
.booking-step__head h2 { font-size: 1.25rem; margin: 0; }

/* Selectable option cards (services / sizes) */
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
/* The box is a <span>, so it MUST be made block-level (flex column here) or its
   background/border would wrap per text-line into staggered rectangles. */
.option__box { display: flex; flex-direction: column; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); padding: 1rem; height: 100%; transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition); }
.option:hover .option__box { border-color: var(--c-primary); }
.option input:checked + .option__box { border-color: var(--c-primary); background: var(--c-primary-soft); box-shadow: inset 0 0 0 1px var(--c-primary); }
.option input:focus-visible + .option__box { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.option__title { font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.option__title svg { color: var(--c-primary); width: 20px; height: 20px; }
.option__desc { font-size: .85rem; color: var(--c-muted); margin-top: .35rem; }
.option__price { font-weight: 600; color: var(--c-primary); margin-top: .5rem; font-size: .95rem; }

/* Add-on checkboxes */
.addon { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); cursor: pointer; transition: border-color var(--transition), background-color var(--transition); }
.addon:hover { border-color: var(--c-primary); }
.addon input { width: 20px; height: 20px; accent-color: var(--c-primary); flex: none; }
.addon__name { flex: 1; font-weight: 500; }
.addon__price { color: var(--c-muted); font-weight: 600; }
.addon.is-checked { border-color: var(--c-primary); background: var(--c-primary-soft); }

/* Date + time slot picker */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; }
.slot { padding: .7rem .5rem; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); font-weight: 600; font-size: .92rem; text-align: center; transition: border-color var(--transition), background-color var(--transition), color var(--transition); }
.slot:hover:not(:disabled) { border-color: var(--c-primary); color: var(--c-primary); }
.slot.is-selected { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.slot:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slot-message { color: var(--c-muted); padding: .8rem 0; }

/* Generic form fields */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field .req { color: var(--c-danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-surface); transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.field textarea { min-height: 110px; resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--c-danger); }
.field__error { color: var(--c-danger); font-size: .85rem; margin-top: .35rem; display: none; }
.field__error.is-shown { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Sticky booking summary sidebar */
.summary { padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 16px); }
.summary h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .95rem; border-bottom: 1px dashed var(--c-border); }
.summary__row > span { min-width: 0; overflow-wrap: anywhere; } /* long names/values wrap instead of overflowing */
.summary__row .lbl { color: var(--c-muted); }
.summary__row .val { font-weight: 600; text-align: right; }
.summary__empty { color: var(--c-muted); font-size: .95rem; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 1.2rem; padding-top: 1rem; border-top: 2px solid var(--c-border); }
.summary__total .lbl { font-weight: 600; }
.summary__total .val { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--c-primary); }
.summary__note { font-size: .82rem; color: var(--c-muted); margin-top: 1rem; text-align: center; }

/* Booking confirmation panel (shown after submitting) */
.confirm { max-width: 560px; margin-inline: auto; text-align: center; padding: clamp(2rem, 5vw, 3rem); }
.confirm__check { width: 76px; height: 76px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; }
.confirm__check svg { width: 40px; height: 40px; stroke-width: 2.2; }
.confirm__ref { display: inline-block; font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; letter-spacing: .04em; color: var(--c-primary); background: var(--c-primary-soft); padding: .5rem 1.2rem; border-radius: var(--radius-pill); margin: .6rem 0 1.2rem; }
.confirm__details { text-align: left; margin: 1.5rem 0; }

/* 14. ---------------------------------------------------------- ADMIN PAGE */
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* Login gate */
.login-wrap { flex: 1; display: grid; place-items: center; padding: 2rem 1rem; }
.login-card { width: 100%; max-width: 420px; padding: 2.2rem; text-align: center; }
.login-card .logo-mark { width: 56px; height: 56px; margin: 0 auto 1rem; }
.login-card h1 { font-size: 1.6rem; }
.login-card form { text-align: left; margin-top: 1.5rem; }
.login-demo-hint { margin-top: 1.2rem; font-size: .85rem; color: var(--c-muted); background: var(--c-accent-soft); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.login-error { color: var(--c-danger); font-weight: 600; font-size: .9rem; margin-top: .5rem; min-height: 1.2em; }

/* Dashboard */
.admin-topbar { background: var(--c-surface); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 30; }
.admin-topbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.admin-topbar .brand-logo { font-size: 1.15rem; }
.admin-main { flex: 1; padding-block: 2rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.8rem; }
.kpi { padding: 1.3rem; display: flex; align-items: center; gap: 1rem; }
.kpi__icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); }
.kpi__value { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; line-height: 1; }
.kpi__label { color: var(--c-muted); font-size: .88rem; margin-top: .25rem; }
@media (max-width: 880px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .kpi-grid { grid-template-columns: 1fr; } }

/* Filter toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1.2rem; }
.toolbar .search { position: relative; flex: 1; min-width: 220px; }
.toolbar .search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--c-muted); }
.toolbar .search input { width: 100%; padding: .7rem 1rem .7rem 2.6rem; border: 1.5px solid var(--c-border); border-radius: var(--radius-pill); background: var(--c-surface); }
.toolbar .search input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.toolbar select { padding: .7rem 1rem; border: 1.5px solid var(--c-border); border-radius: var(--radius-pill); background: var(--c-surface); }
.toolbar .spacer { flex: 1; }

/* Bookings table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--c-border); background: var(--c-surface); }
table.bookings { width: 100%; border-collapse: collapse; min-width: 760px; }
.bookings th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); padding: 1rem; border-bottom: 1px solid var(--c-border); background: var(--c-surface-alt); white-space: nowrap; }
.bookings td { padding: .9rem 1rem; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.bookings tr:last-child td { border-bottom: none; }
.bookings tbody tr { transition: background-color var(--transition); cursor: pointer; }
.bookings tbody tr:hover { background: var(--c-surface-alt); }
.cell-ref { font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.cell-sub { color: var(--c-muted); font-size: .82rem; }
.cell-actions { display: flex; gap: .35rem; justify-content: flex-end; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--c-muted); transition: background-color var(--transition), color var(--transition); }
.icon-btn:hover { background: var(--c-surface-alt); color: var(--c-ink); }
.icon-btn--danger:hover { background: #f7e4e0; color: var(--c-danger); }

/* Status badge + select */
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 600; white-space: nowrap; color: var(--c-ink); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, currentColor); }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--c-muted); }
.empty-state .logo-mark { width: 60px; height: 60px; margin: 0 auto 1rem; opacity: .5; }
.empty-state h3 { color: var(--c-ink); }

/* Detail modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(34, 43, 38, 0.5); backdrop-filter: blur(3px); display: none; place-items: center; z-index: 60; padding: 1rem; }
.modal-overlay.is-open { display: grid; }
.modal { background: var(--c-surface); border-radius: var(--radius-lg); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.6rem 1rem; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; background: var(--c-surface); }
.modal__head h2 { margin: 0; font-size: 1.4rem; }
.modal__body { padding: 1.5rem 1.6rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; margin-bottom: 1.4rem; }
.detail-grid > div { min-width: 0; } /* let cells shrink so long emails wrap */
.detail-grid .dl { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); margin-bottom: .15rem; }
.detail-grid .dv { font-weight: 600; overflow-wrap: anywhere; }
.detail-full { grid-column: 1 / -1; }
@media (max-width: 480px) { .detail-grid { grid-template-columns: 1fr; } }
.status-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.status-actions .btn { padding: .5rem .9rem; font-size: .88rem; }

/* Toasts (defined here, used everywhere via UI.toast) */
.toast-host { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 80; display: flex; flex-direction: column; gap: .6rem; }
.toast { display: flex; align-items: center; gap: .6rem; background: var(--c-ink); color: #fff; padding: .8rem 1.1rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); font-weight: 500; font-size: .92rem; transform: translateY(20px); opacity: 0; transition: transform .3s ease, opacity .3s ease; max-width: 90vw; }
.toast--show { transform: translateY(0); opacity: 1; }
.toast--success .toast__icon { color: #7bdcb0; }
.toast--error { background: var(--c-danger); }
.toast__icon { display: grid; place-items: center; }

/* Logo mark — circular emblem image; keep it round if the source changes. */
.logo-mark { border-radius: 50%; }
