/* Inter, served from this site (no third-party requests; SIL Open Font License: fonts/inter-OFL.txt) */
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-greek-wght-normal.woff2') format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

:root {
  --bg: #ffffff;
  --surface2: #f5f5f5;      /* quiet fills */
  --border: #e5e5e5;
  --border-strong: #cfcfcf; /* inputs, hover */
  --text: #111111;
  --muted: #666666;
  --ink: #111111;           /* primary buttons */
  --accent: #2563eb;        /* 1-to-1 classes, links, focus */
  --accent-text: #1d4ed8;
  --accent-tint: #eff6ff;
  --group: #7c3aed;         /* group classes */
  --group-tint: #f5f3ff;
  --green: #15803d;
  --green-tint: #f0fdf4;
  --amber: #b45309;
  --amber-tint: #fffbeb;
  --red: #dc2626;
  --red-tint: #fef2f2;
  --focus: rgba(37, 99, 235, 0.18);
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --radius-sm: 7px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; }
a { color: var(--accent-text); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6rem; }
h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
/* The hidden attribute wins over any display rule below (.row, .card, …) */
[hidden], .hidden { display: none !important; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .inner { max-width: 1040px; margin: 0 auto; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand svg { flex: none; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 0.72rem; letter-spacing: 0; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav-link { color: #444; text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0.4rem 0.65rem; border-radius: var(--radius-sm); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface2); }
.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; }
.site-footer .inner { max-width: 1040px; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.85rem; color: var(--muted); }
.site-footer a { color: var(--muted); }

.container { max-width: 1040px; margin: 0 auto; padding: 2rem 1rem; }
.narrow { max-width: 680px; }
section + section { margin-top: 3.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 0.65rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-outline { background: var(--bg); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-danger { background: var(--bg); color: var(--red); border-color: #fecaca; }
.btn-danger:hover { border-color: var(--red); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.82rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .chip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* Forms */
.field { margin-bottom: 1.1rem; }
.field > label, .label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.6rem 0.75rem; }
textarea { min-height: 90px; resize: vertical; }
.field-value { padding: 0.6rem 0; font-size: 0.95rem; font-weight: 600; }  /* a value shown where an input would be */
.row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.9rem; cursor: pointer; }
.check input { margin-top: 0.25rem; width: 1rem; height: 1rem; flex: none; }
.field > label.check { display: flex; font-weight: 400; font-size: 0.9rem; margin-bottom: 0; }

/* Cards, alerts, badges */
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; background: var(--bg); }
.card + .card { margin-top: 1rem; }
.grid-2 > .card + .card { margin-top: 0; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.alert { padding: 0.8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.9rem; border: 1px solid; }
.alert-error { background: var(--red-tint); border-color: #fecaca; color: #b91c1c; }
.alert-success { background: var(--green-tint); border-color: #bbf7d0; color: var(--green); }
.alert-info { background: var(--accent-tint); border-color: #bfdbfe; color: var(--text); }
.alert-warn { background: var(--amber-tint); border-color: #fde68a; color: #78350f; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.12rem 0.5rem; border-radius: 999px; background: var(--surface2); color: #444; white-space: nowrap; }
.badge-blue { background: var(--accent-tint); color: var(--accent-text); }
.badge-purple { background: var(--group-tint); color: var(--group); }
.badge-green { background: var(--green-tint); color: var(--green); }
.badge-amber { background: var(--amber-tint); color: var(--amber); }
.badge-red { background: var(--red-tint); color: var(--red); }
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: 0 0 1rem; font-size: 0.93rem; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; overflow-wrap: anywhere; }

/* Landing page */
.hero { padding: 3.5rem 0 1rem; max-width: 720px; }
.hero h1 { font-size: 2.6rem; }
.hero .lead { font-size: 1.15rem; color: #333; }
.trust { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.88rem; color: var(--muted); margin-top: 1.25rem; padding: 0; list-style: none; }
.trust li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.offer h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.offer .price { font-size: 1rem; font-weight: 700; white-space: nowrap; }
.offer ul { padding-left: 1.1rem; margin: 0 0 1rem; color: #333; }
.offer.one { border-top: 3px solid var(--accent); }
.offer.group { border-top: 3px solid var(--group); }
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: step; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.5rem; }
details.faq { border-bottom: 1px solid var(--border); padding: 0.9rem 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 0.6rem 0 0; color: #333; }
mark.todo { background: #fef08a; padding: 0 0.2rem; }

/* Booking page */
.tabs { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 3px; gap: 3px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab { font: inherit; font-size: 0.9rem; font-weight: 600; border: 0; background: none; padding: 0.5rem 0.9rem; border-radius: 5px; cursor: pointer; color: #444; }
.tab.active { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font: inherit; font-size: 0.9rem; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); border-radius: var(--radius-sm); padding: 0.55rem 0.85rem; cursor: pointer; text-align: center; line-height: 1.25; }
.chip:hover { border-color: var(--ink); }
.chip.selected { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.chip small { display: block; color: var(--muted); font-size: 0.75rem; }
.day-strip { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: thin; }
.day-strip .chip { flex: none; min-width: 78px; }
.times { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.step { margin-bottom: 1.75rem; }
.step > .label { margin-bottom: 0.6rem; }
.class-card { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.class-card.selected { border-color: var(--group); box-shadow: inset 0 0 0 1px var(--group); }
.class-card .meta { font-size: 0.88rem; color: var(--muted); }
.summary-box { background: var(--surface2); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.summary-box strong { display: block; font-size: 1.05rem; }

/* Admin */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; justify-content: space-between; margin-bottom: 1.25rem; }
.admin-bar h1 { font-size: 1.6rem; margin: 0; }
.list-row { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem; display: grid; gap: 0.35rem 1rem; grid-template-columns: 9.5rem 1fr auto; align-items: start; }
.list-row + .list-row { margin-top: 0.6rem; }
.list-row .when { font-weight: 650; font-size: 0.92rem; }
.list-row .who { font-size: 0.92rem; overflow-wrap: anywhere; }
.list-row .actions { justify-content: flex-end; }
.list-row .extra { grid-column: 2 / -1; font-size: 0.85rem; color: #444; }
.empty { color: var(--muted); padding: 2rem 0; text-align: center; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; }
.day { border: 1px solid var(--border); border-radius: var(--radius); min-height: 170px; padding: 0.55rem; display: flex; flex-direction: column; gap: 0.4rem; }
.day.today { border-color: var(--ink); }
.day-head { font-weight: 700; font-size: 0.88rem; display: flex; justify-content: space-between; gap: 0.25rem; }
.day-hours { font-size: 0.72rem; color: var(--muted); }
.event { text-align: left; font: inherit; width: 100%; border: 1px solid; border-left-width: 3px; border-radius: 6px; padding: 0.35rem 0.45rem; cursor: pointer; font-size: 0.78rem; line-height: 1.3; background: var(--bg); }
.event b { display: block; font-size: 0.75rem; }
.event span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event.one_to_one { border-color: #bfdbfe; border-left-color: var(--accent); background: var(--accent-tint); }
.event.group { border-color: #ddd6fe; border-left-color: var(--group); background: var(--group-tint); }
.event.held { border-color: #fde68a; border-left-color: var(--amber); border-style: dashed; background: var(--amber-tint); }
.event.time_off { border-color: var(--border); border-left-color: #999; color: var(--muted);
  background: repeating-linear-gradient(135deg, #fafafa, #fafafa 6px, #f0f0f0 6px, #f0f0f0 12px); }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.8rem; color: var(--muted); margin-top: 0.9rem; }
.legend i { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; margin-right: 0.3rem; vertical-align: -1px; }
.hours-day { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); align-items: start; }
.hours-range { display: flex; gap: 0.4rem; align-items: center; margin-bottom: 0.4rem; flex-wrap: wrap; }
.hours-range input { width: 7.5rem; }
.copy-field { display: flex; gap: 0.5rem; }
.copy-field input { font-size: 0.8rem; }

dialog { border: 1px solid var(--border); border-radius: var(--radius); padding: 0; width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, 0.35); }
dialog .dialog-body { padding: 1.25rem 1.25rem 1rem; overflow-y: auto; }
dialog .dialog-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; padding: 0.9rem 1.25rem; border-top: 1px solid var(--border); background: #fafafa; }

.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 1rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .week { grid-template-columns: 1fr; }
  .day { min-height: 0; }
  .list-row { grid-template-columns: 1fr; }
  .list-row .actions { justify-content: flex-start; }
  .list-row .extra { grid-column: auto; }
}
@media (max-width: 640px) {
  h1, .hero h1 { font-size: 1.85rem; }
  .hero { padding-top: 2rem; }
  .site-header .inner { flex-wrap: wrap; gap: 0.5rem; }
  .site-nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .brand small { display: none; }
  .hours-day { grid-template-columns: 1fr; gap: 0.4rem; }
}
