/* ============================================================
   A. Royal Assistant — public site styles
   Colors and fonts are driven by CSS variables set per-request
   from the owner's Appearance settings (see partials/head.ejs).
   ============================================================ */

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

:root {
  --primary: #3b1d5e;
  --accent: #c9a227;
  --ink: #241a33;
  --cream: #faf7f0;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', Arial, sans-serif;

  --primary-dark: color-mix(in srgb, var(--primary) 78%, black);
  --primary-soft: color-mix(in srgb, var(--primary) 8%, var(--cream));
  --accent-dark: color-mix(in srgb, var(--accent) 72%, black);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --shadow: 0 18px 50px -24px color-mix(in srgb, var(--primary) 55%, transparent);
  --radius: 14px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--primary); margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }

.wrap { width: min(1140px, 92vw); margin-inline: auto; }
.narrow { width: min(760px, 92vw); }
.center { text-align: center; }
.muted { color: color-mix(in srgb, var(--ink) 55%, transparent); }
.lead { font-size: 1.18rem; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

/* ---- Eyebrow / decorative rules ---- */
.eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; font-weight: 500;
  color: var(--accent-dark); margin: 0 0 1rem; display: flex; align-items: center; gap: .8rem; justify-content: center;
}
.eyebrow.gold { color: var(--accent-dark); }
.rule { flex: 0 0 42px; height: 1px; background: currentColor; opacity: .5; }
.section-head.center .eyebrow { justify-content: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem; letter-spacing: .04em;
  padding: .8rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s; text-transform: uppercase;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); color: #2a2011; box-shadow: 0 10px 24px -12px var(--accent-dark); }
.btn-gold:hover { color: #2a2011; box-shadow: 0 14px 28px -12px var(--accent-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--primary), var(--primary-dark)); color: var(--accent); flex: none; overflow: hidden; box-shadow: var(--shadow); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark .crown { font-size: 1.5rem; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--primary); }
.brand-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; color: var(--ink); position: relative; }
.site-nav a.active, .site-nav a:hover { color: var(--primary); }
.site-nav a:not(.btn).active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); }
.nav-cta { color: #2a2011 !important; }
.nav-toggle, .nav-toggle-label { display: none; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(150deg, var(--primary-dark), var(--primary) 55%, color-mix(in srgb, var(--primary) 70%, black)); }
.hero.hero-image { background-image: var(--hero-img); background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(150deg, color-mix(in srgb, var(--primary-dark) 90%, transparent), color-mix(in srgb, var(--primary) 68%, transparent)); }
.hero.hero-image .hero-overlay { background: linear-gradient(150deg, color-mix(in srgb, var(--primary-dark) 88%, transparent), color-mix(in srgb, var(--primary) 55%, transparent)); }
.hero-inner { position: relative; padding: clamp(4.5rem, 12vw, 8.5rem) 0; text-align: center; max-width: 820px; margin-inline: auto; }
.hero .eyebrow { color: var(--accent); }
.hero-heading { color: #fff; font-size: clamp(2.7rem, 6vw, 4.6rem); margin-bottom: .3em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-sub { font-size: 1.2rem; color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-crest { position: absolute; right: -3vw; bottom: -6vw; font-size: 28vw; color: rgba(255,255,255,.05); line-height: 1; pointer-events: none; }

/* ---- Trust bar ---- */
.trust { padding: 1.6rem 0; background: var(--primary-soft); border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 1rem 1.5rem; }
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; color: var(--primary); }
.crown-sm, .crown { color: var(--accent); }

/* ---- Cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); }
.service-icon { width: 58px; height: 58px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.service-icon svg { width: 30px; height: 30px; }
.service-icon.lg { width: 64px; height: 64px; }
.service-icon.lg svg { width: 32px; height: 32px; }
.service-card .price { color: var(--accent-dark); font-weight: 600; margin: .4rem 0 0; }

/* ---- Split band ---- */
.band-primary { background: linear-gradient(140deg, var(--primary), var(--primary-dark)); color: #fff; position: relative; overflow: hidden; }
.band-primary h2 { color: #fff; }
.split { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 2rem; position: relative; }
.split-text p { color: rgba(255,255,255,.88); }
.split-crest { font-size: 16rem; text-align: center; color: var(--accent); opacity: .85; line-height: 1; }

/* ---- CTA band ---- */
.cta-band { background: var(--primary-soft); text-align: center; }
.cta-band .lead { max-width: 640px; margin: 0 auto 1.6rem; }

/* ---- Page hero (interior pages) ---- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 1rem; text-align: center; }
.page-hero .lead { max-width: 640px; margin: .5rem auto 0; }

/* ---- Services list ---- */
.service-group { margin-bottom: 3.5rem; }
.group-title { display: flex; align-items: center; justify-content: center; gap: 1rem; font-size: 1.7rem; color: var(--primary); margin-bottom: 2rem; }
.group-title .rule { flex: 0 0 60px; background: var(--accent); opacity: .6; }
.service-list { display: grid; gap: 1.2rem; }
.service-row { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.service-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.service-row-head h3 { margin: 0; }
.price-tag { background: var(--primary-soft); color: var(--accent-dark); font-weight: 600; padding: .25rem .8rem; border-radius: 999px; font-size: .9rem; white-space: nowrap; }
.link-arrow { font-weight: 500; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); }

/* ---- Prose / about ---- */
.prose { font-size: 1.1rem; }
.about-crest { font-size: 4rem; text-align: center; color: var(--accent); line-height: 1; margin-bottom: 1rem; }
.about-facts { margin: 2.5rem 0; border-top: 1px solid var(--line); }
.fact { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.fact-label { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--accent-dark); font-weight: 600; }
.fact-value { text-align: right; }

/* ---- Forms (shared) ---- */
label { display: block; margin-bottom: 1rem; font-size: .9rem; font-weight: 500; color: var(--primary); }
input, select, textarea {
  width: 100%; margin-top: .35rem; padding: .7rem .85rem; font-family: var(--font-body); font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
textarea { resize: vertical; }
fieldset { border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem 1rem; margin: 0 0 1rem; }
legend { padding: 0 .4rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); }
.radio { display: flex; align-items: center; gap: .5rem; font-weight: 400; color: var(--ink); margin-bottom: .4rem; }
.radio input { width: auto; margin: 0; }
.notice { background: var(--primary-soft); border-left: 3px solid var(--accent); padding: .9rem 1.1rem; border-radius: 8px; font-size: .95rem; margin-bottom: 2rem; }
.fineprint { font-size: .78rem; color: color-mix(in srgb, var(--ink) 55%, transparent); margin-top: 1rem; }

/* ---- Booking ---- */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.step-title { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; margin-bottom: 1rem; }
.step-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--accent); font-family: var(--font-body); font-size: .9rem; font-weight: 600; flex: none; }
.calendar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); margin-bottom: 1.6rem; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.cal-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--primary); }
.cal-nav { background: var(--primary-soft); border: none; width: 34px; height: 34px; border-radius: 8px; color: var(--primary); font-size: 1.2rem; cursor: pointer; transition: background .2s; }
.cal-nav:hover:not(:disabled) { background: var(--primary); color: #fff; }
.cal-nav:disabled { opacity: .3; cursor: not-allowed; }
.cal-weekdays, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekdays span { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-dark); font-weight: 600; padding: .4rem 0; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: .92rem; border: 1px solid transparent; background: transparent; cursor: default; color: color-mix(in srgb, var(--ink) 35%, transparent); position: relative; }
.cal-day.open { background: var(--primary-soft); color: var(--primary); font-weight: 600; cursor: pointer; border-color: color-mix(in srgb, var(--primary) 18%, transparent); }
.cal-day.open:hover { background: var(--primary); color: #fff; }
.cal-day.selected { background: var(--primary); color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.cal-day.empty { visibility: hidden; }
.cal-legend { font-size: .78rem; color: var(--ink); margin: .9rem 0 0; display: flex; align-items: center; gap: .3rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.open { background: var(--primary-soft); border: 1px solid var(--primary); }
.dot.none { background: transparent; border: 1px solid var(--line); }
.slots { display: flex; flex-wrap: wrap; gap: .5rem; min-height: 44px; }
.slots-hint { width: 100%; }
.slot-btn { padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-family: var(--font-body); font-size: .9rem; transition: all .15s; }
.slot-btn:hover { border-color: var(--primary); }
.slot-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.selected-summary { min-height: 1.4rem; font-size: .92rem; color: var(--accent-dark); font-weight: 500; }
.confirmation { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 3rem 2rem; box-shadow: var(--shadow); }
.confirm-crest, .error-crest { font-size: 3.5rem; color: var(--accent); line-height: 1; margin-bottom: .5rem; }

/* ---- Contact ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; }
.contact-info { background: var(--primary-soft); border-radius: var(--radius); padding: 1.8rem; }
.ci-label { display: inline-block; min-width: 72px; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; color: var(--accent-dark); font-weight: 600; }

/* ---- Flash ---- */
.flash { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.5rem; font-size: .95rem; }
.flash ul { margin: 0; padding-left: 1.2rem; }
.flash-success { background: #eaf6ec; color: #1f6b34; border: 1px solid #bfe3c6; }
.flash-error { background: #fbeceb; color: #8f2320; border: 1px solid #f2c4c1; }

.error-page { padding: 6rem 0; }

/* ---- Footer ---- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.82); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding: 3.5rem 0 2rem; }
.footer-brand .crown { font-size: 2rem; }
.footer-brand h3 { color: #fff; margin: .4rem 0; }
.footer-col h4 { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-family: var(--font-body); margin-bottom: .8rem; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,.8); margin-bottom: .5rem; font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1.4rem 0 2rem; }
.disclaimer { font-size: .78rem; color: rgba(255,255,255,.6); max-width: 720px; }
.copyright { font-size: .82rem; color: rgba(255,255,255,.65); margin: 0; }
.copyright a { color: rgba(255,255,255,.65); }
.copyright a:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .split, .booking-grid, .contact-layout { grid-template-columns: 1fr; }
  .split-crest { display: none; }
  .nav-toggle-label { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; }
  .nav-toggle-label span { width: 26px; height: 2px; background: var(--primary); transition: .3s; }
  .site-nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem 6vw 1.5rem;
    max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .site-nav { max-height: 420px; }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); text-align: center; }
  .nav-cta { margin-top: .8rem; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
