/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Tokens — AI replaces these per brand ── */
:root {
  --brand:    #2a5caa;   /* primary brand colour */
  --brand2:   #1a3d77;   /* darker shade */
  --bg:       #ffffff;
  --bg-alt:   #f7f8fc;
  --text:     #1a1d2e;
  --muted:    #6b7280;
  --border:   #e5e7eb;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
  --max-w:    1100px;
  --font:     -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; }

/* ── Layout ── */
.container         { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container.narrow  { max-width: 680px; }

/* ── Nav ── */
#header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { font-size: 18px; font-weight: 800; color: var(--brand); text-decoration: none; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--brand); }
.nav-admin { font-size: 13px !important; color: var(--muted) !important; }

/* ── Hero ── */
#hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  color: #fff; padding: 100px 0;
}
.hero-inner { text-align: center; }
.hero-title  { font-size: clamp(32px, 6vw, 60px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero-sub    { font-size: clamp(16px, 2.5vw, 22px); opacity: .85; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta    { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 8px;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: filter .2s, transform .1s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand);  color: #fff; }
.btn-outline  { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-submit { background: var(--brand); color: #fff; width: 100%; padding: 14px; font-size: 16px; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: filter .2s; }
.btn-submit:hover { filter: brightness(1.1); }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; }

/* ── Sections ── */
.section      { padding: 80px 0; }
.section-alt  { background: var(--bg-alt); }
.section-title {
  font-size: clamp(24px, 4vw, 36px); font-weight: 800;
  margin-bottom: 16px; color: var(--text);
}
.section-text { color: var(--muted); font-size: 17px; max-width: 620px; }

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.service-card .duration { font-size: 13px; color: var(--muted); }
.service-card .price { font-size: 20px; font-weight: 800; color: var(--brand); margin-top: 10px; }

/* ── Forms ── */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; gap: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; color: var(--text); background: var(--bg);
  outline: none; transition: border-color .15s;
  font-family: var(--font);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--brand); }

/* ── Alerts ── */
.alert-success {
  background: #f0fdf4; border: 1px solid #86efac; color: #166534;
  padding: 14px 18px; border-radius: 8px; font-weight: 500;
}
.alert-error {
  background: #fff1f2; border: 1px solid #fda4af; color: #9f1239;
  padding: 14px 18px; border-radius: 8px; font-weight: 500;
}

/* ── Contact ── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px; margin-top: 32px;
}
.contact-item h3 { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.contact-item p  { font-size: 15px; color: var(--text); white-space: pre-line; }

/* ── Privacy / GDPR ── */
.privacy-note {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: 6px;
  border: 1px solid var(--border);
  line-height: 1.5;
}
.privacy-note a { color: var(--brand); }
.gdpr-notice { margin-top: 4px; }

.footer {
  background: var(--text); color: rgba(255,255,255,.6);
  padding: 28px 0; text-align: center; font-size: 13px;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .form-row.cols-2 { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  #hero { padding: 60px 0; }
}

/* ── Calendar Booking Widget ──────────────────────────────────────────────── */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}
.cal-nav-btn {
  background: none;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 8px;
  color: var(--primary, #2c3e6b);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cal-nav-btn:hover { background: var(--primary, #2c3e6b); color: #fff; }
.cal-nav-title { text-align: center; }
.cal-week-range { font-size: 18px; font-weight: 800; color: var(--primary, #2c3e6b); }
.cal-week-num   { font-size: 12px; color: var(--muted, #8a9ab5); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }

.cal-wrap { overflow-x: auto; }
.cal-loading { text-align: center; color: var(--muted,#8a9ab5); padding: 48px 0; font-size: 15px; }
.cal-empty   { text-align: center; color: var(--muted,#8a9ab5); padding: 48px 0; font-size: 15px; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
  min-width: 520px;
}

/* Header row */
.cal-col-header {
  background: #f8f9fc;
  padding: 12px 6px 10px;
  text-align: center;
  border-bottom: 1.5px solid var(--border, #e5e7eb);
}
.cal-col-header:not(:last-child) { border-right: 1px solid var(--border, #e5e7eb); }
.cal-day-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #8a9ab5);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cal-day-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary, #2c3e6b);
  line-height: 1.1;
  margin-top: 4px;
}
.cal-day-today .cal-day-name { color: var(--primary, #2c3e6b); }
.cal-day-today .cal-day-num  { color: var(--primary, #2c3e6b); }
.cal-today-dot {
  width: 6px; height: 6px;
  background: var(--primary, #2c3e6b);
  border-radius: 50%;
  margin: 4px auto 0;
}

/* Slot cells column */
.cal-col-body {
  padding: 10px 6px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  min-height: 80px;
}
.cal-col-body:not(:last-child) { border-right: 1px solid var(--border, #e5e7eb); }

/* Individual slot pill */
.cal-slot {
  width: 100%;
  max-width: 90px;
  background: #eaf4ee;
  border: 1.5px solid #b2dfc0;
  border-radius: 10px;
  padding: 8px 6px 6px;
  text-align: center;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.cal-slot:hover {
  background: #d4f0de;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44,100,78,.15);
}
.cal-slot:active { transform: translateY(0); }
.cal-slot-time  { font-size: 16px; font-weight: 800; color: #1e5c3a; line-height: 1; }
.cal-slot-price { font-size: 11px; color: #3a7d55; margin-top: 3px; font-weight: 500; }

.cal-slot-booked {
  background: #f0f1f5;
  border-color: #d1d5db;
  cursor: not-allowed;
  opacity: .55;
}
.cal-slot-booked .cal-slot-time  { color: #9ca3af; }
.cal-slot-booked .cal-slot-price { color: #9ca3af; }

.cal-slot-past {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Selected confirmation banner */
.cal-selected-slot {
  background: #eaf4ee;
  border: 2px solid #4ade80;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 700;
  color: #1e5c3a;
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
