/* Papanicolaou Driving School - the site's one stylesheet. Tokens first (WEBSITE-STANDARDS 8.1). */
:root {
  --blue: #1761a0; /* the logo's blue */
  --blue-dark: #0f4677;
  --blue-soft: #e8f0f8;
  --ink: #353837; /* the logo's charcoal */
  --muted: #5d6366;
  --red: #d3202a; /* the learner plate */
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 70, 119, 0.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(40px, 6vw, 72px) 20px; }
.section--narrow { max-width: 760px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(15, 70, 119, 0.08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.nav__brand { display: inline-flex; flex: none; }
.nav__brand img { width: 150px; height: auto; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav__links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
.nav__links a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.nav__links a[aria-current="page"] { background: var(--blue); color: #fff; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { padding: 4px 11px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.nav__toggle { display: none; align-items: center; gap: 10px; font: inherit; font-weight: 600; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }

@media (max-width: 760px) {
  .js .nav__toggle { display: inline-flex; }
  .js .nav__menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 20px 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(15, 70, 119, 0.1); }
  .js .nav__menu.open { display: flex; }
  .js .nav__links { flex-direction: column; }
  .js .lang { align-self: flex-start; }
  .nav { flex-wrap: wrap; }
  .nav__menu { flex-wrap: wrap; gap: 12px; }
}

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px rgba(211, 32, 42, 0.25); transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { background: #b51a23; color: #fff; transform: translateY(-1px); }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* --- Home: hero --- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(78vh, 640px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(10, 40, 70, 0.85) 0%, rgba(10, 40, 70, 0.55) 45%, rgba(10, 40, 70, 0.05) 75%), linear-gradient(180deg, rgba(10, 40, 70, 0) 40%, rgba(10, 40, 70, 0.7) 100%); }
@media (max-width: 760px) { .hero::after { background: linear-gradient(180deg, rgba(10, 40, 70, 0.15) 0%, rgba(10, 40, 70, 0.7) 40%, rgba(10, 40, 70, 0.95) 100%); } }
.hero__media { z-index: -1; }
.hero__inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(40px, 7vw, 80px); }
.hero__title { color: #fff; font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: 0.02em; max-width: 16ch; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25); }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 46ch; margin: 0 0 1.6em; color: #eef4fa; }

/* --- Home: categories band --- */
.band { background: var(--blue); color: #fff; }
.band__inner { display: flex; align-items: center; gap: 20px; padding: 30px 20px; }
.band h2 { color: #fff; margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.lplate { flex: none; width: 56px; height: 56px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2)); }

/* --- Galleries --- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); aspect-ratio: 4 / 3; }
.gallery picture { height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery--feature { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
.gallery--feature .gallery__wide { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 760px) {
  .gallery, .gallery--feature { grid-template-columns: 1fr; }
  .gallery--feature .gallery__wide { grid-row: auto; aspect-ratio: 4 / 3; }
}

/* --- Inner pages --- */
.page-head { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; }
.page-head .container { padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(28px, 5vw, 48px); }
.page-head h1 { color: #fff; margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.statement { text-transform: uppercase; font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 700; line-height: 1.45; letter-spacing: 0.01em; max-width: 52ch; margin: 0 0 clamp(28px, 4vw, 44px); padding-left: 20px; border-left: 6px solid var(--red); }

.prose h2 { font-size: 1.3rem; margin-top: 2em; color: var(--blue-dark); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* --- Contact form (Moat) --- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 38px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field em { color: var(--red); font-style: normal; margin-left: 2px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border: 1px solid #c6d0db; border-radius: 10px; background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 97, 160, 0.18); }
.moat-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.moat { --moat-accent: #1761a0; --moat-radius: 10px; --moat-max-width: 100%; margin: 4px 0 18px; }
.form__actions { margin: 0; }
.form__status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; display: none; }
.form__status.is-ok { display: block; background: #e7f6ee; color: #17663c; border: 1px solid #b6e3c9; }
.form__status.is-err { display: block; background: #fdecec; color: #a3191f; border: 1px solid #f2c3c5; }

/* --- Error pages --- */
.error { text-align: center; max-width: 720px; }
.error__code { font-size: clamp(4rem, 14vw, 7.5rem); font-weight: 800; line-height: 1; color: var(--blue); margin: 0 0 0.2em; letter-spacing: -0.03em; }
.error__block + .error__block { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.error__block h1, .error__block h2 { font-size: 1.6rem; }

/* --- Footer (light; WEBSITE-STANDARDS 8.4) --- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 26px; padding-bottom: 26px; }
.footer p { margin: 0; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--blue-dark); }
.solvagio-credit { white-space: nowrap; }
.solvagio-credit-mark { display: inline-block; width: 1.43em; height: 0.86em; margin-right: 0.3em; vertical-align: -0.05em; }
.solvagio-credit-mark .sv-top { fill: #2a3f60; }
.solvagio-credit-mark .sv-top-dot { fill: #ece6d8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
