/* GarageBook — white-label garage engine (GarageSaaS) */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=Oswald:wght@500;600&family=Montserrat:wght@600;700;800&family=Playfair+Display:wght@500;600&display=swap');

/* ---- theme tokens (default = "amber", matches the garage's existing site) ---- */
:root {
  --font-head: 'Barlow', 'Inter', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  --head-weight: 700;
  --head-transform: none;
  --head-spacing: -0.01em;
  --ink: #121212;
  --soft: #5b5b5b;
  --cream: #f6f6f6;          /* page background */
  --paper: #ffffff;          /* cards */
  --blush: #fff4de;          /* accent tint */
  --blush-deep: #ffe3ad;
  --rose: #f7a71e;           /* accent */
  --rose-dark: #d98c05;
  --btn-fg: #121212;         /* text on accent buttons */
  --gold: #bd1d1d;           /* secondary accent */
  --line: #e4e4e4;
  --green: #2f7d3f;
  --amber: #b8760a;
  --red: #bd1d1d;
  --ok-bg: #eaf6ec;  --ok-line: #cfe8d4;
  --warn-bg: #fff3d9; --warn-line: #f5dfae;
  --muted-bg: #eeeeee;
  --header-bg: #121212;
  --header-fg: #ffffff;
  --header-soft: #c9c9c9;
  --footer-bg: #121212;
  --footer-fg: #bdbdbd;
  --hero-rgb: 18, 18, 18;    /* overlay colour over the banner photo */
  --hero-card-rgb: 18, 18, 18;
  --hero-fg: #ffffff;
  --radius: 14px;
  --btn-radius: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
html[data-theme="midnight"] {
  --ink: #f2f3f5; --soft: #a3abb8; --cream: #0f1115; --paper: #181b22;
  --blush: #23262e; --blush-deep: #2e323c; --rose: #f7a71e; --rose-dark: #ffbd45; --btn-fg: #0f1115;
  --gold: #f7a71e; --line: #272b34; --green: #6fd08a; --amber: #f0c067; --red: #ff7b7b;
  --ok-bg: #162a1c; --ok-line: #1f3d28; --warn-bg: #332a14; --warn-line: #4a3b18; --muted-bg: #1f2229;
  --header-bg: #0b0d11; --header-fg: #fff; --header-soft: #9aa3b2; --footer-bg: #0b0d11; --footer-fg: #8b93a1;
  --hero-rgb: 5, 6, 9; --hero-card-rgb: 11, 13, 17; --hero-fg: #fff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
html[data-theme="steel"] {
  --font-head: 'Montserrat', 'Inter', Arial, sans-serif; --head-weight: 800; --head-spacing: -0.02em;
  --ink: #14213d; --soft: #5a6478; --cream: #f3f5f9; --paper: #ffffff;
  --blush: #e8effd; --blush-deep: #cfddfb; --rose: #2563eb; --rose-dark: #1d4ed8; --btn-fg: #ffffff;
  --gold: #f7a71e; --line: #dfe5ee; --green: #1f8a4c; --amber: #b8760a; --red: #c62828;
  --header-bg: #14213d; --header-fg: #fff; --header-soft: #aeb8cc; --footer-bg: #14213d; --footer-fg: #aeb8cc;
  --hero-rgb: 20, 33, 61; --hero-card-rgb: 20, 33, 61; --hero-fg: #fff; --btn-radius: 10px;
}
html[data-theme="racing"] {
  --font-head: 'Oswald', 'Barlow', Arial, sans-serif; --head-weight: 600; --head-transform: uppercase; --head-spacing: .02em;
  --ink: #111; --soft: #4a4a4a; --cream: #ffffff; --paper: #fafafa;
  --blush: #fdeaea; --blush-deep: #f6caca; --rose: #bd1d1d; --rose-dark: #931414; --btn-fg: #ffffff;
  --gold: #f7a71e; --line: #e6e6e6;
  --header-bg: #0d0d0d; --header-fg: #fff; --header-soft: #bdbdbd; --footer-bg: #0d0d0d; --footer-fg: #9e9e9e;
  --hero-rgb: 0, 0, 0; --hero-card-rgb: 0, 0, 0; --hero-fg: #fff; --btn-radius: 4px; --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
h1, h2, h3, .serif { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-transform); letter-spacing: var(--head-spacing); line-height: 1.15; }
a { color: var(--rose); text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

/* ---------- public header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); color: var(--header-fg);
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--header-fg); letter-spacing: .01em; text-transform: var(--head-transform); }
.brand em { color: var(--rose); font-style: normal; }
.brand-logo { height: 44px; max-width: 220px; object-fit: contain; display: block; }
.footer-logo { margin: 0 auto 8px; }
.nav a { color: var(--header-soft); margin-left: 26px; font-size: .86rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nav a:hover { color: var(--header-fg); }
.nav a.btn { margin-left: 26px; }
.nav a.nav-mot { color: var(--rose); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--rose); color: var(--btn-fg) !important;
  padding: 12px 26px; border-radius: var(--btn-radius); border: none; cursor: pointer;
  font-family: var(--font-body); font-size: .88rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--rose-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--rose) !important; border: 2px solid var(--rose); padding-top: 10px; padding-bottom: 10px; }
.hero .btn.ghost { color: var(--hero-fg) !important; border-color: rgba(255,255,255,.6); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.ghost:hover { background: var(--blush); }
.btn.small { padding: 7px 16px; font-size: .8rem; }
.btn.grey { background: #8b8492; }
.btn.grey:hover { background: #6f6472; }
.btn.green { background: var(--green); color: #fff !important; }
.btn.red { background: var(--red); color: #fff !important; }
.btn.grey { color: #fff !important; }

/* ---------- hero ---------- */
.hero {
  --veil: .45; --cardop: .6;
  padding: 90px 0 70px; text-align: center;
  background: var(--header-bg); color: var(--hero-fg);
}
.hero.has-photo {
  background-image: linear-gradient(rgba(var(--hero-rgb), var(--veil)), rgba(var(--hero-rgb), calc(var(--veil) + .25))), var(--hero-url);
  background-size: cover; background-position: center 42%;
  padding: 110px 0 90px;
}
.hero.has-photo .wrap {
  max-width: 820px;
  background: rgba(var(--hero-card-rgb), var(--cardop));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 48px 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}
.hero.has-photo .wrap.bare { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: none; box-shadow: none; }
@media (max-width: 640px) {
  .hero.has-photo { padding: 56px 0 48px; }
  .hero.has-photo .wrap { margin: 0 16px; padding: 32px 20px; }
}
.hero .eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; font-weight: 700; color: var(--rose); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.05; margin-bottom: 18px; color: var(--hero-fg); }
.hero p.lead { max-width: 600px; margin: 0 auto 30px; color: rgba(255,255,255,.85); font-size: 1.1rem; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--soft); max-width: 520px; margin: 8px auto 0; }
.flourish { font-size: 0; line-height: 0; }
.flourish::before { content: ''; display: block; width: 52px; height: 4px; border-radius: 2px; background: var(--rose); margin: 0 auto 16px; }
.meet-grid .flourish::before { margin-left: 0; }
@media (max-width: 760px) { .meet-grid .flourish::before { margin-left: auto; } }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  border-top: 4px solid var(--rose); transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.12); }
.service-card h3 { font-size: 1.3rem; }
.service-card .price { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--rose); }
.service-card .duration { font-size: .82rem; color: var(--soft); text-transform: uppercase; letter-spacing: .08em; }
.service-card p.desc { color: var(--soft); font-size: .95rem; flex: 1; }

/* ---------- venue strip ---------- */
.venue-strip { background: var(--header-bg); color: var(--header-fg); padding: 14px 0; }
.venue-strip .wrap { display: flex; align-items: center; justify-content: center; gap: 10px 26px; flex-wrap: wrap; }
.venue-label { color: var(--rose); text-transform: uppercase; letter-spacing: .25em; font-size: .7rem; font-weight: 700; }
.venue-name { color: var(--header-soft); font-family: var(--font-head); font-size: 1.05rem; }
.venue-name + .venue-name::before { content: '·'; color: var(--rose); margin-right: 26px; }

/* ---------- meet bethany ---------- */
.meet-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; max-width: 900px; margin: 0 auto; }
.meet-photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.meet-grid h2 { font-size: 2.2rem; margin: 8px 0 12px; }
.meet-text { color: var(--soft); margin-bottom: 20px; }
@media (max-width: 760px) { .meet-grid { grid-template-columns: 1fr; gap: 22px; } .meet-photo { max-width: 260px; margin: 0 auto; } .meet-grid > div { text-align: center; } }

/* ---------- testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 960px; margin: 0 auto; }
.testimonial-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin: 0; }
.testimonial-card blockquote { font-family: var(--font-head); font-size: 1.25rem; font-style: italic; line-height: 1.5; margin-bottom: 14px; }
.testimonial-card figcaption { color: var(--rose); font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; }
.gbadge { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: .95rem; box-shadow: var(--shadow); }
.gstars { color: #f5b301; letter-spacing: 1px; }
.gcard-meta { margin-top: 10px; font-size: .78rem; color: var(--soft); display: flex; align-items: center; gap: 6px; }

.testimonial-photos { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.testimonial-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; transition: transform .15s ease; }
.testimonial-photos a:hover img { transform: scale(1.06); }

/* admin photo moderation */
.photo-mod-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; padding: 12px 0 18px; border-bottom: 1px dashed var(--line); }
.photo-mod { width: 110px; text-align: center; }
.photo-mod img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; display: block; }
.photo-mod.held img { opacity: .45; filter: grayscale(.4); }
.photo-mod-label { font-size: .7rem; color: var(--soft); text-transform: uppercase; letter-spacing: .05em; display: block; margin: 4px 0; }
.photo-mod-btns { display: flex; gap: 4px; justify-content: center; }
.photo-mod-upload { width: 190px; }

/* ---------- faq ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-head); font-size: 1.2rem; list-style: none; position: relative; padding-right: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--rose); font-size: 1.4rem; font-family: var(--font-body); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 20px 16px; color: var(--soft); }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .25s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }

/* ---------- calendar ---------- */
.cal-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; max-width: 640px; margin: 0 auto; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head h3 { font-size: 1.5rem; }
.cal-head a { font-size: 1.2rem; padding: 4px 12px; border-radius: 8px; }
.cal-head a:hover { background: var(--blush); }
.cal-nav { display: flex; gap: 4px; align-items: center; }
.cal-head a.yr-btn {
  font-size: .82rem; padding: 5px 12px; border: 1px solid var(--blush-deep);
  border-radius: var(--btn-radius); background: var(--blush); color: var(--rose-dark);
  letter-spacing: .03em; white-space: nowrap;
}
.cal-head a.yr-btn:hover { background: var(--rose); color: var(--btn-fg); }
@media (max-width: 640px) {
  .cal-head a.yr-btn { font-size: .74rem; padding: 4px 8px; }
  .cal-head h3 { font-size: 1.15rem; }
}
table.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.cal th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); padding-bottom: 8px; font-weight: 500; }
table.cal td { padding: 3px; }
.day {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1.15;
  border-radius: 10px; font-size: .95rem; position: relative; border: 1px solid transparent;
}
.day.available { background: var(--ok-bg); color: var(--green); border-color: var(--ok-line); }
a.day.available:hover { background: var(--rose); color: var(--btn-fg); border-color: var(--rose); }
.day.requested { background: var(--warn-bg); color: var(--amber); border-color: var(--warn-line); }
.day.booked { background: var(--blush-deep); color: var(--rose-dark); }
a.day.limited { background: var(--warn-bg); color: var(--amber); border-color: var(--warn-line); }
a.day.limited:hover { background: var(--amber); color: #fff; }
a.day.enquired { position: relative; }
a.day.enquired:hover::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 215px; white-space: normal; text-align: center;
  background: #c0392b; color: #fff; padding: 8px 12px; border-radius: 8px;
  font-size: .78rem; line-height: 1.4; z-index: 40;
  box-shadow: 0 6px 18px rgba(43, 37, 48, .25); pointer-events: none;
}
a.day.enquired:hover::before {
  content: ''; position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #c0392b; z-index: 40; pointer-events: none;
}
.day.blocked { background: var(--muted-bg); color: var(--soft); opacity: .7; text-decoration: line-through; }
.day.past { color: var(--soft); opacity: .45; }
.day.today::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.cal-legend { display: flex; gap: 18px; justify-content: center; margin-top: 18px; flex-wrap: wrap; font-size: .82rem; color: var(--soft); }
.cal-legend span::before { content: ''; display: inline-block; width: 11px; height: 11px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.cal-legend .lg-available::before { background: var(--ok-bg); border: 1px solid var(--ok-line); }
.cal-legend .lg-limited::before { background: var(--warn-bg); border: 1px solid var(--warn-line); }
.cal-legend .lg-requested::before { background: #f6e3bd; }
.cal-legend .lg-booked::before { background: var(--blush-deep); }
.cal-legend .lg-blocked::before { background: var(--muted-bg); }

/* ---------- forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; max-width: 640px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin-bottom: 5px; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-family: var(--font-body); font-size: .98rem; background: var(--cream); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blush-deep); border-color: var(--rose); }
textarea { resize: vertical; min-height: 90px; }
.form-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; }
.error-banner { background: var(--blush); border: 1px solid var(--blush-deep); color: var(--red); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.ok-banner { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--green); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }

/* ---------- service quantity picker ---------- */
.svc-picker { border: 1px solid var(--line); border-radius: 12px; background: var(--cream); padding: 6px 14px; }
.svc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.svc-row:last-of-type { border-bottom: none; }
.svc-info { display: flex; flex-direction: column; }
.svc-info strong { font-weight: 500; }
.svc-info .muted { font-size: .82rem; }
.svc-qty { display: flex; align-items: center; gap: 6px; }
.svc-qty button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--rose); font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.svc-qty button:hover { background: var(--blush); }
.svc-qty input { width: 44px; text-align: center; padding: 7px 4px; background: var(--paper); -moz-appearance: textfield; appearance: textfield; }
.svc-qty input::-webkit-outer-spin-button,
.svc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.svc-total { text-align: right; padding: 10px 0 8px; border-top: 1px solid var(--line); font-size: .95rem; }
.svc-total strong { color: var(--rose-dark); font-size: 1.1rem; }

/* ---------- status pills ---------- */
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.pill.pending { background: #fdf3e3; color: var(--amber); }
.pill.confirmed { background: #eaf4ec; color: var(--green); }
.pill.declined, .pill.cancelled { background: #f0eef1; color: #8b8492; }
.pill.completed { background: #e9eef6; color: #4a6591; }
.pill.quoted { background: #ece7f8; color: #5b4a9e; }
.pill.awaitingfee { background: #fff3d6; color: #9a6b00; }
.pill.amended { background: #fde8d7; color: #b3591e; }
.pill.paid { background: #eaf4ec; color: var(--green); }
.pill.unpaid { background: #fbeaea; color: var(--red); }

/* ---------- booking portal ---------- */
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .portal-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }
.detail-list { list-style: none; }
.detail-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.detail-list li span:first-child { color: var(--soft); }
.detail-list li:last-child { border-bottom: none; }

/* ---------- amount due ---------- */
.due-box {
  margin-top: 16px; padding: 16px 18px; border-radius: 12px; text-align: center;
  background: var(--blush); border: 1px solid var(--blush-deep);
}
.due-box .due-label { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--rose-dark); }
.due-box .due-amount { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--ink); line-height: 1.2; }
.due-box .due-note { display: block; font-size: .82rem; color: var(--soft); margin-top: 4px; }

.bank-box {
  margin-top: 14px; padding: 16px 18px; border-radius: 12px;
  background: var(--paper); border: 2px solid var(--rose);
  box-shadow: 0 8px 24px rgba(183, 110, 121, .18);
}
.bank-box-title { font-size: 1.15rem; color: var(--rose-dark); }

/* ---------- chat ---------- */
.chat-box { display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow-y: auto; padding: 4px; margin-bottom: 14px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; }
.msg .meta { font-size: .72rem; color: var(--soft); margin-top: 3px; }
.msg.customer { align-self: flex-start; background: var(--blush); border-bottom-left-radius: 4px; }
.msg.owner { align-self: flex-end; background: var(--muted-bg); border-bottom-right-radius: 4px; }
.msg.mine { align-self: flex-end; background: var(--blush-deep); border-bottom-right-radius: 4px; }
.chat-form { display: flex; gap: 10px; }
.chat-form input { flex: 1; }

/* ---------- footer ---------- */
footer.site-footer { padding: 46px 0; text-align: center; background: var(--footer-bg); color: var(--footer-fg); font-size: .92rem; margin-top: 40px; }
footer.site-footer a { color: var(--rose); }
footer.site-footer .brand { color: var(--header-fg); }
footer .brand { font-size: 1.3rem; display: block; margin-bottom: 8px; }

/* ================= ADMIN ================= */
.admin body, body.admin { background: #f5f3f6; }
.admin-header { background: var(--header-bg); color: #fff; }
.admin-header .wrap { display: flex; align-items: center; height: 58px; gap: 26px; max-width: 1200px; }
.admin-header .brand { color: #fff; font-size: 1.2rem; margin-right: 8px; }
.admin-header a { color: #cfc8d4; font-size: .92rem; position: relative; }
.admin-header a:hover, .admin-header a.active { color: #fff; }
.admin-header .spacer { flex: 1; }
.badge { background: var(--rose); color: var(--btn-fg); border-radius: 999px; font-size: .68rem; padding: 1px 7px; margin-left: 5px; vertical-align: 2px; }
.admin-main { max-width: 1200px; margin: 30px auto; padding: 0 22px; }
.admin-main h1 { font-size: 2rem; margin-bottom: 20px; }
.cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-card .num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--rose-dark); line-height: 1; }
.stat-card .lbl { color: var(--soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; margin-top: 6px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel h2 { font-size: 1.4rem; margin-bottom: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.data th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 500; }
table.data td { padding: 10px; border-bottom: 1px solid #f0ece8; }
table.data tr:hover td { background: #faf7f3; }
.filters { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.filters a { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-size: .85rem; background: #fff; }
.filters a.active { background: var(--rose); border-color: var(--rose); color: var(--btn-fg); }
.inline-form { display: inline; }
.muted { color: var(--soft); font-size: .88rem; }
.admin-cal td { vertical-align: top; height: 92px; padding: 4px; border: 1px solid #f0ece8; }
.admin-cal .daynum { font-size: .85rem; margin-bottom: 4px; display: block; }
.admin-cal .tag { display: block; font-size: .72rem; border-radius: 6px; padding: 2px 6px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-cal .tag.confirmed { background: #eaf4ec; color: var(--green); }
.admin-cal .tag.pending { background: #fdf3e3; color: var(--amber); }
.admin-cal .tag.block-work { background: #e9eef6; color: #4a6591; }
.admin-cal .tag.block-personal { background: #f3ecf7; color: #7c5a96; }
.admin-cal .tag.block-google { background: #e8f0fe; color: #1a73e8; }
.admin-cal .tag.block-unavailable { background: #ece9ee; color: #6f6472; }
.admin-cal .blockbtn { font-size: .7rem; color: #b4aeb9; background: none; border: none; cursor: pointer; padding: 0; }
.admin-cal .blockbtn:hover { color: var(--rose); text-decoration: underline; }
.admin-cal td.blocked-cell { background: repeating-linear-gradient(45deg, #f3f1f4, #f3f1f4 6px, #ecebee 6px, #ecebee 12px); }

/* ---------- chat fab ---------- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat-fab-btn {
  display: flex; align-items: center; gap: 9px;
  background: var(--rose); color: var(--btn-fg); border: none; cursor: pointer;
  padding: 13px 20px; border-radius: 999px;
  font-family: var(--font-body); font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(43, 37, 48, .25);
  transition: background .15s ease, transform .15s ease;
}
.chat-fab-btn:hover { background: var(--rose-dark); transform: translateY(-2px); }
.chat-fab-menu { display: flex; flex-direction: column; gap: 8px; }
.chat-fab-option {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  padding: 11px 18px; border-radius: 999px; font-size: .95rem;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.chat-fab-option:hover { transform: translateY(-1px); }
.chat-fab-option.whatsapp svg { color: #25d366; }
.chat-fab-option.email svg { color: var(--rose); }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .site-header .wrap { height: 56px; }
  .brand { font-size: 1.25rem; }
  .nav a { margin-left: 14px; font-size: .8rem; }
  .nav a:not(.btn):not(.nav-mot) { display: none; }
  .site-header .brand-logo { height: 36px; }
  .hero { padding: 56px 0 44px; }
  .hero p.lead { font-size: 1rem; }
  section.block { padding: 44px 0; }
  .section-head h2 { font-size: 1.8rem; }
  .wrap { padding: 0 16px; }
  .form-card { padding: 22px 18px; }
  .cal-card { padding: 16px 10px; }
  .cal-legend { gap: 10px; font-size: .76rem; }
  .day { font-size: .85rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-actions { flex-wrap: wrap; }
  .detail-list li { flex-wrap: wrap; }
  .msg { max-width: 92%; }
  .chat-fab { right: 14px; bottom: 14px; }
  .chat-fab-btn { padding: 12px 16px; font-size: .85rem; }
}

/* admin calendar: agenda list replaces the grid on phones */
.agenda { display: none; }
.agenda-day { display: flex; align-items: flex-start; gap: 12px; padding: 9px 4px; border-bottom: 1px solid #f0ece8; }
.agenda-day.past { opacity: .45; }
.agenda-day.blocked { background: #f7f5f8; }
.agenda-date { flex: 0 0 74px; font-size: .92rem; padding-top: 4px; }
.agenda-date .agenda-today { display: block; font-size: .68rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.agenda-body { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; }
.agenda-body .tag { display: inline-block; font-size: .8rem; border-radius: 8px; padding: 4px 10px; }
.agenda-body .tag.confirmed { background: #eaf4ec; color: var(--green); }
.agenda-body .tag.pending { background: #fdf3e3; color: var(--amber); }
.agenda-body .tag.block-work { background: #e9eef6; color: #4a6591; }
.agenda-body .tag.block-personal { background: #f3ecf7; color: #7c5a96; }
.agenda-body .tag.block-google { background: #e8f0fe; color: #1a73e8; }
.agenda-body .tag.block-unavailable { background: #ece9ee; color: #6f6472; }

/* admin on small screens */
@media (max-width: 900px) {
  .admin-header .wrap { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 12px 16px; }
  .admin-header .brand { width: 100%; margin: 0; }
  .admin-header a { font-size: .88rem; }
  .admin-main { margin: 18px auto; padding: 0 14px; }
  .admin-main h1 { font-size: 1.5rem; }
  .panel { padding: 16px; overflow-x: auto; }
  table.data { min-width: 560px; }
  .portal-grid { grid-template-columns: 1fr; }
  .admin-cal td { height: 72px; }
  .cards-row { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 14px; }
  .stat-card .num { font-size: 1.8rem; }
}

@media (max-width: 760px) {
  .desktop-cal { display: none; }
  .agenda { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .btn.small { padding: 9px 16px; }  /* comfier tap targets */
  .chat-box { max-height: 300px; }
}

/* schedule builder */
.sched-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed var(--line); background: #fff; }
.sched-row:hover { background: var(--cream); }
.sched-grip { cursor: grab; color: var(--soft); font-size: 1.1rem; padding: 0 2px; }
.sched-time { flex: 0 0 118px; font-family: Consolas, Menlo, monospace; font-size: .85rem; color: var(--rose-dark); }
.sched-mins { width: 66px; padding: 7px 6px; text-align: center; }
.sched-label { flex: 1; min-width: 120px; }
.sched-btns { display: flex; gap: 2px; }
.sched-btns .blockbtn { font-size: .95rem; padding: 2px 5px; }
@media (max-width: 640px) {
  .sched-row { flex-wrap: wrap; }
  .sched-time { flex-basis: 100%; }
}

/* marketing recipient modes */
.mode-pick { display: flex; align-items: center; gap: 7px; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); margin: 0; cursor: pointer; }
.mode-pick input { width: auto; accent-color: var(--rose); }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cream); }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; width: 360px; text-align: center; }
.login-card h1 { font-size: 1.8rem; margin-bottom: 4px; }
.login-card p { color: var(--soft); margin-bottom: 22px; font-size: .92rem; }
.login-card form { text-align: left; }
.login-card .btn { width: 100%; margin-top: 16px; }

/* booking actions — grouped */
.action-group { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.action-group:last-child { padding-bottom: 2px; border-bottom: 0; }
.ag-label { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; }
.ag-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.action-group.danger { margin-top: 6px; }
.action-group.danger .ag-btns { justify-content: flex-end; }

/* countdown on the client booking page */
.countdown { font-family: var(--font-head); font-size: 1.35rem; color: var(--rose-dark); margin-top: 10px; }

/* chat photos */
.chat-img { display: block; max-width: min(240px, 100%); border-radius: 10px; margin-top: 6px; }
.chat-attach { display: flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; font-size: 1.1rem; margin: 0; }
.chat-attach.has-file { background: var(--rose); border-color: var(--rose); }

/* toggle switch (settings sliders) */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #cfc4c9; border-radius: 26px; transition: background .2s; cursor: pointer; }
.switch .slider:before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .slider { background: var(--rose); }
.switch input:checked + .slider:before { transform: translateX(20px); }

/* calendar month/year dropdowns */
.cal-pick { display: flex; gap: 8px; align-items: center; justify-content: center; }
.cal-select { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; cursor: pointer; }

/* deleted-booking pill */
.pill.deleted { background: #eceaed; color: #7a7280; }

/* twin diaries */
.cal-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .cal-duo { grid-template-columns: 1fr; } }

/* ---------- theme picker (admin) ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.theme-card { position: relative; display: block; border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: #fff; transition: border-color .15s; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .95rem; color: var(--ink); margin: 0; }
.theme-card:hover { border-color: var(--rose); }
.theme-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.theme-card.on { border-color: var(--rose); box-shadow: 0 0 0 3px var(--blush-deep); }
.theme-swatch { height: 64px; border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: 18px 1fr; margin-bottom: 8px; }
.theme-swatch .ts-bar { display: flex; align-items: center; padding: 0 8px; gap: 4px; }
.theme-swatch .ts-bar i { display: block; width: 18px; height: 4px; border-radius: 2px; }
.theme-swatch .ts-body { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; }
.theme-swatch .ts-body b { display: block; width: 34px; height: 12px; border-radius: 3px; }
.theme-card strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.theme-card .muted { font-size: .8rem; }
.theme-card .tlinks { margin-top: 8px; font-size: .8rem; }
/* hero headline font choices */
.hf-barlow { font-family: 'Barlow', sans-serif; font-weight: 800; }
.hf-oswald { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.hf-montserrat { font-family: 'Montserrat', sans-serif; font-weight: 800; letter-spacing: -.02em; }
.hf-playfair { font-family: 'Playfair Display', serif; font-weight: 600; }

/* MOT time-slot picker */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { position: relative; display: flex; align-items: center; justify-content: center; padding: 10px 4px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--paper); cursor: pointer;
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; }
.slot input { position: absolute; opacity: 0; width: 0; height: 0; }
.slot:hover { border-color: var(--rose); }
.slot:has(input:checked) { background: var(--rose); border-color: var(--rose); color: var(--btn-fg); }
.slot:has(input:focus-visible) { outline: 2px solid var(--rose-dark); outline-offset: 2px; }
.slot.full { background: var(--muted-bg); color: var(--soft); text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
