:root {
  --header-grad-start: #120a24;
  --header-grad-end: #2a1148;
  --turquoise: #34c2ad;
  --turquoise-dark: #279685;
  --gold: #d8b765;
  --bg: #ece7ee;
  --surface: #ffffff;
  --text: #022e29;
  --text-muted: #4b6560;
  --line: #d6cfe0;
  --danger: #b3261e;
  --danger-bg: #fbe9e7;
  --success-bg: #e3f6f1;
  --focus: #1c4fa0;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(18, 10, 36, 0.09);
  --shadow-md: 0 14px 32px rgba(18, 10, 36, 0.16);
  --max-width: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--turquoise-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4em;
  color: var(--text);
}

h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 3.4vw, 1.6rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}

.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 {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Header */

.site-header {
  background: linear-gradient(135deg, var(--header-grad-start),
    var(--header-grad-end));
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 18px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.header-nav a:hover { color: var(--turquoise); }

@media (min-width: 560px) {
  .header-nav { display: flex; }
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 44px; width: auto; }
.brand-name {
  font-family: 'Unbounded', var(--font-display), sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  white-space: nowrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 10px;
  width: 100%;
  justify-content: center;
}
.footer-brand-logo { height: 34px; width: auto; }
.footer-brand-name {
  font-family: 'Unbounded', var(--font-display), sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

@media (min-width: 640px) {
  .brand-name { font-size: 0.9rem; }
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px;
}

.lang-toggle button {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.lang-toggle button.active {
  background: var(--gold);
  color: var(--header-grad-start);
}

/* Main / intro */

main { display: block; padding: 32px 0 64px; }

.intro { padding: 0 0 8px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--turquoise-dark);
  margin-bottom: 10px;
  display: block;
}

.intro .lead { color: var(--text-muted); font-size: 1.02rem; }

.tz-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 14px 0 0;
}
.tz-note span { display: block; }

/* Cards */

.calendar-card,
.slots-card,
.form-card,
.success-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-top: 20px;
}

/* Calendar */

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.icon-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover:not(:disabled) { border-color: var(--turquoise); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }

#cal-label { font-weight: 700; font-size: 0.98rem; }

.status-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 1.3em;
}
.status-text.error { color: var(--danger); }

.calendar-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.calendar-grid th {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 6px 2px;
}

.calendar-grid td {
  text-align: center;
  padding: 2px;
  height: 40px;
}

.day-btn {
  width: 100%;
  height: 36px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
}
.day-btn:hover { border-color: var(--turquoise); }
.day-btn[aria-pressed="true"] {
  background: var(--turquoise);
  color: #ffffff;
  font-weight: 700;
}

.day-empty { color: var(--text-muted); opacity: 0.35; font-size: 0.85rem; }

.day-unavailable {
  color: var(--text-muted);
  opacity: 0.45;
  font-size: 0.85rem;
}

/* Slots */

.slots-card h3 { margin-bottom: 12px; }

.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-btn {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}
.slot-btn:hover { border-color: var(--turquoise); }
.slot-btn[aria-pressed="true"] {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: #ffffff;
}
.slot-btn small { display: block; font-size: 0.7rem; opacity: 0.8; }

/* Form */

.field { margin-bottom: 16px; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(52, 194, 173, 0.25);
}

textarea { resize: vertical; min-height: 90px; }

.field-error {
  display: block;
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 1.1em;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }

input[type="checkbox"] { accent-color: var(--turquoise); }

.turnstile-container { margin: 16px 0; min-height: 65px; }

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--turquoise);
  color: #ffffff;
}
.btn-primary:hover:not(:disabled) { background: var(--turquoise-dark); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--turquoise); color: var(--turquoise-dark); }

#form-status { margin-top: 12px; }

/* Success */

.success-card {
  background: var(--success-bg);
  border-color: var(--turquoise);
  text-align: center;
}
.success-card .btn-secondary { margin-top: 16px; width: auto; padding: 12px 24px; }

/* Footer */

.site-footer {
  padding: 28px 0 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.site-footer a { display: inline-block; margin-bottom: 6px; }

/* 404 page */

.error-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 18px;
  text-align: center;
}
.error-page .btn-secondary { display: inline-flex; width: auto; padding: 12px 24px; margin-top: 12px; }

/* Desktop */

@media (min-width: 640px) {
  main { padding: 48px 0 80px; }
  .header-inner { padding: 4px 0; }
  .brand-logo { height: 46px; }
  .calendar-card, .slots-card, .form-card, .success-card { padding: 28px; }
  .day-btn, .calendar-grid td { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
