/* Layout: single column on phones, photo-led hero, calm dark pitch-at-night palette with a warm floodlight accent. */
:root {
  --bg: #0e1311;          /* pitch at night */
  --surface: #151c19;     /* raised panels */
  --line: #26302b;        /* hairlines */
  --fg: #eef2ee;          /* chalk white */
  --muted: #a3ada7;       /* secondary text */
  --accent: #f2c66d;      /* floodlight gold */
  --accent-ink: #1a1405;  /* text on accent */
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 var(--body);
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); /* room for the phone contact bar */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.narrow { max-width: 68ch; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.eyebrow {
  font: 600 0.8rem/1 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.lead { font-size: 1.15rem; color: var(--fg); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(14, 19, 17, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 21;
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font: 600 1.25rem/1.1 var(--display); letter-spacing: 0.01em; }
.brand span { font-size: 0.78rem; color: var(--muted); }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a.btn-primary { color: var(--accent-ink); }
.nav .nav-links { display: none; gap: 1.4rem; }
@media (min-width: 760px) { .nav .nav-links { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn:not(.btn-primary):hover { border-color: var(--muted); }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero { padding-block: 1.25rem 3rem; }
.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  max-width: 100%;
  background: var(--surface);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.hero-text { display: flex; flex-direction: column; gap: 1.1rem; padding-top: 1.75rem; }
@media (min-width: 900px) {
  .hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
  .hero-text { padding-top: 0; }
  .hero-photo { order: 2; aspect-ratio: 4 / 5; }
  .hero-photo img { object-position: 48% 40%; }
}

/* Sections */
section { padding-block: 3.5rem; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.75rem; }

/* Timeline (a real sequence: school years) */
.timeline { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.timeline li:first-child { border-top: 1px solid var(--line); }
.timeline .when { font: 600 1rem/1.5 var(--display); color: var(--accent); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.timeline .what { min-width: 0; }
.timeline .what small { display: block; color: var(--muted); font-size: 0.9rem; }

.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }

/* Cards */
.cards { display: grid; gap: 1rem; }
@media (min-width: 640px) { .cards.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards.four { grid-template-columns: repeat(4, 1fr); } .cards.four-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) and (max-width: 899px) { .cards.four { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.card p { color: var(--muted); font-size: 0.98rem; }
.card .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 0.2rem; }

.quote {
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  font: 500 clamp(1.35rem, 4vw, 1.75rem)/1.35 var(--display);
  text-wrap: balance;
}
.quote footer { margin-top: 0.75rem; font: 400 0.95rem/1.4 var(--body); color: var(--muted); }

/* Prices */
.prices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.prices li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.prices .name { min-width: 0; }
.prices .name small { display: block; color: var(--muted); font-size: 0.9rem; }
.prices .price { font: 600 1.8rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prices .price small { font: 400 0.85rem/1 var(--body); color: var(--muted); margin-left: 0.25rem; }

/* Contact */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) { .contact-box { padding: 2.5rem; } }
.phone-number { font: 600 clamp(1.9rem, 7vw, 2.6rem)/1 var(--display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; text-decoration: none; }

.dbs { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.95rem; }
.dbs svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
/* Oja teaser + page */
.oja-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.oja-teaser p { max-width: 52ch; }
.oja-hero { padding-block: 3.5rem 2rem; }
.oja-word { font: 600 clamp(4rem, 18vw, 7.5rem)/0.9 var(--display); letter-spacing: 0.04em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer a { color: var(--muted); }

/* Phone contact bar */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: rgba(14, 19, 17, 0.96);
  border-top: 1px solid var(--line);
  padding: 0.6rem var(--gutter-r) calc(0.6rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}
.callbar .btn { min-height: 46px; padding: 0.5rem; font-size: 0.95rem; }
@media (min-width: 760px) {
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

/* Phone section menu */
.subnav { border-top: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 0.1rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.45rem; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; color: var(--muted); font-size: 0.88rem; padding: 0.4rem 0.55rem; border-radius: 999px; border: 1px solid transparent; }
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--fg); border-color: var(--line); background: var(--surface); }
@media (min-width: 760px) { .subnav { display: none; } }
section[id], div[id] { scroll-margin-top: 70px; }
