/* ============================================================
   St Yakobus Booking — public pages
   Brand: navy #1C2B4A · gold #C5973A · cream #F8F5F0
   Fonts: Cormorant Garamond + Nunito
   Mobile-first, 16px floor, 52px tap targets.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --navy:    #1C2B4A;
  --navy-2:  #2A3D63;
  --navy-3:  #3B5184;
  --gold:    #C5973A;
  --gold-2:  #B8862A;
  --gold-3:  #E5C677;
  --cream:   #F8F5F0;
  --cream-2: #F0EBE0;
  --cream-3: #E8E1D0;
  --white:   #FFFFFF;

  --ink:     #1A1A1F;
  --ink-2:   #4A4A55;
  --ink-3:   #7A7A85;
  --ink-4:   #A8A8B0;

  --ok:      #2E7D5A;  --ok-bg:    #E6F2EB;
  --warn:    #B87420;  --warn-bg:  #FAEFD8;
  --danger:  #B83D2E;  --danger-bg:#F9E5E0;

  --border:        rgba(28, 43, 74, 0.10);
  --border-2:      rgba(28, 43, 74, 0.06);
  --border-strong: rgba(28, 43, 74, 0.18);

  --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-sans:  "Nunito", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --t-12: 13px;  --t-14: 14px;  --t-16: 16px;
  --t-18: 18px;  --t-20: 20px;  --t-24: 24px;
  --t-28: 28px;  --t-32: 32px;  --t-40: 40px;
  --t-48: 48px;

  --sh-1: 0 1px 2px rgba(28,43,74,0.04), 0 1px 3px rgba(28,43,74,0.06);
  --sh-2: 0 4px 8px rgba(28,43,74,0.05), 0 8px 24px rgba(28,43,74,0.07);
  --sh-3: 0 12px 32px rgba(28,43,74,0.12);
  --sh-cta: 0 8px 22px rgba(197,151,58,0.35);

  --container: 1180px;
}

html[data-large="1"] {
  --t-12: 14px;  --t-14: 16px;  --t-16: 18px;
  --t-18: 20px;  --t-20: 22px;  --t-24: 26px;
  --t-28: 30px;  --t-32: 36px;  --t-40: 44px;
  --t-48: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-16);
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold); }
input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }

.serif { font-family: var(--font-serif); letter-spacing: -0.01em; }

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .container { padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 1024px) {
  .container { padding-left: 56px; padding-right: 56px; }
}

/* ─── Top nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,245,240,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-2);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .nav-inner { height: 72px; padding: 0 32px; }
}
@media (min-width: 1024px) {
  .nav-inner { padding: 0 56px; gap: 28px; }
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 36px; height: 36px; flex-shrink: 0; object-fit: contain; }
@media (min-width: 768px) {
  .brand img { width: 44px; height: 44px; }
}
.brand-lines { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--t-16);
  color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  font-size: var(--t-12);
  color: var(--ink-3);
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 768px) {
  .brand-name { font-size: var(--t-18); }
}

.nav-links { display: none; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.nav-links a:hover { color: var(--navy); }
.nav-spacer { flex: 1; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-spacer { display: none; }
}

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(28,43,74,0.06);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--navy);
  text-decoration: none;
  transition: background .15s;
}
.icon-btn:hover { background: rgba(28,43,74,0.10); color: var(--navy); }
.icon-btn:active { transform: scale(0.96); }

.a11y-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  height: 40px;
  border-radius: 999px;
  background: rgba(28,43,74,0.06);
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 700;
  font-size: var(--t-14);
  cursor: pointer;
  transition: background .15s;
}
.a11y-btn:hover { background: rgba(28,43,74,0.10); }
.a11y-btn .small { font-size: 11px; line-height: 1; }
.a11y-btn .big { font-size: 17px; line-height: 1; font-weight: 800; }
.a11y-btn.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 52px;
  border-radius: 14px;
  font-size: var(--t-16);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: var(--sh-cta); }
.btn-primary:hover { background: var(--gold-2); color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(28,43,74,0.04); color: var(--navy); }
.btn-on-dark {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.20);
}
.btn-on-dark:hover { background: rgba(255,255,255,0.18); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; min-height: 42px; font-size: var(--t-14); border-radius: 10px; }
.btn-lg { padding: 16px 28px; min-height: 56px; font-size: var(--t-18); border-radius: 14px; }

/* ─── Cards ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--sh-1);
}
.card-tight { padding: 16px; border-radius: 16px; }
.card-cream { background: var(--cream-2); border-color: var(--border-2); }
.card-dark  { background: var(--navy); color: #fff; border-color: transparent; }

/* ─── Chips ─── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: var(--t-14);
  font-weight: 600;
  background: rgba(28,43,74,0.06);
  color: var(--navy);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
}
.chip-gold { background: rgba(197,151,58,0.14); color: var(--gold-2); }
.chip-ok   { background: var(--ok-bg); color: var(--ok); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-outline { background: transparent; border-color: var(--border); color: var(--ink-2); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ─── Section heading + stepper ─── */
.eyebrow {
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1.section-title { font-size: clamp(28px, 6vw, 44px); }
h2.section-title { font-size: clamp(24px, 5vw, 36px); }
h3.section-title { font-size: var(--t-24); }

.step-label {
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.step-dot {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(28,43,74,0.10);
}
.step-dot.done   { background: var(--navy); }
.step-dot.active { background: var(--gold); }

/* ─── Form ─── */
.field { display: flex; flex-direction: column; gap: 8px; }
.label {
  font-size: var(--t-14);
  font-weight: 700;
  color: var(--navy);
}
.label .opt { font-weight: 500; color: var(--ink-3); margin-left: 4px; font-size: var(--t-12); }
.label .req { color: var(--danger); margin-left: 2px; }

.input, .select, .textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: var(--t-16);
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-height: 52px;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(197,151,58,0.18);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); font-weight: 500; }
.input.is-error, .select.is-error, .textarea.is-error {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.helper { font-size: var(--t-12); color: var(--ink-3); line-height: 1.5; }
.helper.is-error { color: var(--danger); font-weight: 600; }
.textarea { min-height: 110px; resize: vertical; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237A7A85' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}

.num-stepper { display: flex; gap: 10px; align-items: stretch; }
.num-stepper input {
  flex: 1;
  text-align: center;
  font-size: var(--t-20);
  font-weight: 700;
}
.num-stepper .icon-btn { width: 52px; height: 52px; font-size: 22px; font-weight: 700; }

.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.check:hover { border-color: var(--border-strong); }
.check.is-on { border-color: var(--gold); background: rgba(197,151,58,0.06); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 24px; height: 24px;
  border-radius: 7px;
  border: 2px solid var(--border-strong);
  background: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all .15s;
  position: relative;
}
.check.is-on .box { background: var(--gold); border-color: var(--gold); }
.check.is-on .box::after {
  content: '';
  width: 12px; height: 7px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.check .ck-text  { font-size: var(--t-16); color: var(--ink); font-weight: 600; line-height: 1.4; }
.check .ck-sub   { font-size: var(--t-14); color: var(--ink-3); font-weight: 500; line-height: 1.5; margin-top: 2px; }

.alat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.alat-grid .check { padding: 12px; }
.alat-grid .check .ck-text { font-size: var(--t-14); }

/* ─── Sticky CTA bar ─── */
.cta-bar {
  position: sticky;
  bottom: 0;
  left: 0; right: 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--cream) 60%, rgba(248,245,240,0));
  z-index: 30;
}
@media (min-width: 768px) {
  .cta-bar { padding: 14px 32px calc(20px + env(safe-area-inset-bottom)); }
}

/* ─── Calendar ─── */
.cal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}
@media (min-width: 768px) { .cal { padding: 24px; } }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cal-month {
  font-family: var(--font-serif);
  font-size: var(--t-20);
  font-weight: 600;
  color: var(--navy);
}
.cal-nav {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(28,43,74,0.06);
  border: 1px solid var(--border);
  color: var(--navy);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s;
}
.cal-nav:hover { background: rgba(28,43,74,0.10); }
.cal-nav:disabled { opacity: 0.4; cursor: not-allowed; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-dayhead {
  text-align: center;
  font-size: var(--t-12);
  font-weight: 700;
  color: var(--ink-3);
  padding: 6px 0;
}
.cal-dayhead.is-sun { color: var(--danger); }
.cal-day {
  aspect-ratio: 1 / 1;
  border: none;
  background: transparent;
  color: var(--ink);
  border-radius: 12px;
  font-size: var(--t-16);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all .15s;
}
@media (min-width: 768px) { .cal-day { font-size: var(--t-18); } }
.cal-day:hover:not(:disabled) { background: rgba(28,43,74,0.06); }
.cal-day:disabled { color: var(--ink-4); cursor: not-allowed; }
.cal-day.is-empty { visibility: hidden; }
.cal-day.is-selected { background: var(--navy); color: #fff; }
.cal-day .cal-dot {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
}
.cal-day.is-selected .cal-dot { background: rgba(255,255,255,0.85) !important; }
.cal-day .cal-dot.free    { background: var(--ok); }
.cal-day .cal-dot.partial { background: var(--warn); }
.cal-day .cal-dot.full    { background: var(--danger); }

.cal-legend {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 14px 0 2px;
  font-size: var(--t-12);
  color: var(--ink-2);
  font-weight: 600;
}
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend .legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.cal-legend .legend-dot.free    { background: var(--ok); }
.cal-legend .legend-dot.partial { background: var(--warn); }
.cal-legend .legend-dot.full    { background: var(--danger); }

/* ─── Hour + duration picker ─── */
.hour-block, .dur-block { margin-bottom: 18px; }

.hour-step {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.hour-step-n {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-size: var(--t-12);
  font-weight: 800;
  flex-shrink: 0;
}
.hour-step-title {
  font-family: var(--font-serif);
  font-size: var(--t-20);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

.hour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 480px) { .hour-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .hour-grid { grid-template-columns: repeat(6, 1fr); } }

.hour-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 6px;
  min-height: 56px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-sans);
}
.hour-pill:hover:not(:disabled) { border-color: var(--border-strong); }
.hour-pill.is-on {
  border-color: var(--gold);
  background: rgba(197,151,58,0.10);
  box-shadow: 0 0 0 3px rgba(197,151,58,0.18);
}
.hour-pill:disabled {
  cursor: not-allowed;
  background: rgba(28,43,74,0.03);
  border-color: var(--border-2);
  color: var(--ink-4);
}
.hour-pill-time { font-size: var(--t-16); font-weight: 800; line-height: 1; }
.hour-pill-x {
  font-size: 10px;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dur-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.dur-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 6px;
  min-height: 64px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-sans);
}
.dur-pill:hover:not(:disabled) { border-color: var(--border-strong); }
.dur-pill.is-on {
  border-color: var(--gold);
  background: rgba(197,151,58,0.10);
  box-shadow: 0 0 0 3px rgba(197,151,58,0.18);
}
.dur-pill:disabled {
  cursor: not-allowed;
  background: rgba(28,43,74,0.03);
  border-color: var(--border-2);
  color: var(--ink-4);
}
.dur-pill-n {
  font-size: var(--t-24);
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-serif);
}
.dur-pill-l {
  font-size: var(--t-12);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hour-preview {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
}
.hour-preview-l {
  font-size: var(--t-12);
  font-weight: 700;
  color: var(--gold-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hour-preview-v {
  font-family: var(--font-serif);
  font-size: var(--t-20);
  font-weight: 600;
}

/* ─── Modal ─── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,26,48,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 20px;
  z-index: 100;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0 } }
.modal {
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-head {
  background: var(--navy);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  color: var(--ink-2);
  font-size: var(--t-14);
  line-height: 1.6;
}
.modal-body h4 {
  font-family: var(--font-serif);
  font-size: var(--t-18);
  font-weight: 600;
  color: var(--navy);
  margin: 16px 0 6px;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body ul { margin: 0 0 8px; padding-left: 20px; }
.modal-body li { margin-bottom: 4px; }
.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border-2);
  display: flex; justify-content: flex-end;
}

/* ─── Footer ─── */
.footer {
  background: #0F1A30;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  font-size: var(--t-12);
  line-height: 1.6;
}
.footer a { color: rgba(255,255,255,0.7); }

/* ─── Utility ─── */
.divider { height: 1px; background: var(--border-2); margin: 24px 0; }
.stack-8  { display: flex; flex-direction: column; gap: 8px; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.hide-on-mobile { display: none; }
@media (min-width: 768px) { .hide-on-mobile { display: initial; } }

.fadein { animation: fadeIn-up .35s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeIn-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
