/* The public site.
 *
 * Nothing here names a colour or a typeface. Every one of them is a custom property that
 * base_public.html emits from the active theme pack (cms_frontend/themes.py) — which is why
 * twelve themes cost twelve dictionaries rather than twelve stylesheets, and why adding a
 * thirteenth needs no CSS at all.
 */

body {
  font-family: var(--body, Inter, system-ui, sans-serif);
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, .display-font { font-family: var(--display); letter-spacing: -.01em; }
.muted-text { color: var(--ink-soft); }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  border-radius: var(--radius);
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--accent-ink);
}
.btn-outline-accent {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  background: transparent;
}
.btn-outline-accent:hover { background: var(--accent); color: var(--accent-ink); }
.bg-accent { background: var(--accent) !important; color: var(--accent-ink) !important; }
.text-accent { color: var(--accent); }

/* ── Preview bar ─────────────────────────────────────────────────────────── */

.preview-bar {
  background: #111827; color: #fff;
  padding: .5rem 1rem;
  display: flex; flex-wrap: wrap; gap: .75rem;
  align-items: center; justify-content: center;
  font-size: .82rem;
}
.preview-bar a { color: #fbbf24; }

/* ── Navigation ──────────────────────────────────────────────────────────── */

.site-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .navbar-brand { font-family: var(--display); font-weight: 700; color: var(--ink); }
.site-nav .nav-link { color: var(--ink-soft); font-size: .93rem; }
.site-nav .nav-link:hover { color: var(--accent); }
.site-nav .navbar-toggler { border-color: var(--line); }
body.theme-dark .site-nav .navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(2);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: var(--footer);
}
body.hero-full .hero { min-height: 100svh; }
body.hero-tall .hero { min-height: 78vh; }

.hero video, .hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero .hero-body { position: relative; z-index: 2; padding: 4rem 1rem; max-width: 46rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
.hero p { font-size: clamp(1rem, 2vw, 1.15rem); opacity: .92; }
.hero .tagline {
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; opacity: .85;
}

/* The split hero is a different shape entirely: text on the page's own background beside a
   picture, rather than text over one. So it opts out of the overlay and the white text. */
.hero.hero-split {
  min-height: 0;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  place-items: stretch;
  padding: 3.5rem 0;
}
.hero.hero-split::after { content: none; }
.hero.hero-split .hero-body { padding: 0; max-width: none; }
.hero.hero-split .tagline { color: var(--accent); opacity: 1; }
.hero-side-image {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
}
.hero-placeholder {
  display: grid; place-items: center;
  background: var(--band); color: var(--ink-soft); font-size: 3rem;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.section { padding: 4.5rem 0; }
.section-band { background: var(--band); }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
.section-lead { color: var(--ink-soft); max-width: 60ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .7rem;
  color: var(--accent); font-weight: 600;
}
.stat-label { letter-spacing: .1em; color: var(--ink-soft); }

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  height: 100%;
}
.tile i { font-size: 1.6rem; color: var(--accent); }
.framed { border-radius: var(--radius); }

.stat-big { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--accent); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .8rem;
}
.gallery-grid img {
  width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius); display: block;
  transition: transform .25s ease;
}
.gallery-grid a:hover img { transform: scale(1.02); }

.team-photo {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); background: var(--band);
}

.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; height: 100%;
}
.quote .stars { color: var(--accent); letter-spacing: .1em; }

.vacancy-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; height: 100%; transition: border-color .2s ease;
}
.vacancy-card:hover { border-color: var(--accent); }

/* Bootstrap components, re-dressed in the theme's tokens. */
.accordion-item { background: var(--surface); border-color: var(--line); }
.accordion-button {
  background: var(--surface); color: var(--ink); font-family: var(--display); font-weight: 600;
}
.accordion-button:not(.collapsed) { background: var(--band); color: var(--accent); }
.accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-body { color: var(--ink-soft); }
body.theme-dark .accordion-button::after { filter: invert(1) grayscale(1) brightness(2); }

.form-control, .form-select {
  background: var(--surface); border-color: var(--line); color: var(--ink);
  border-radius: var(--radius);
}
.form-control:focus, .form-select:focus {
  background: var(--surface); color: var(--ink); border-color: var(--accent);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--accent) 22%, transparent);
}
.form-control::placeholder { color: var(--ink-soft); opacity: .7; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer { background: var(--footer); color: #fff; padding: 3rem 0 2rem; margin-top: 4rem; }
.site-footer .h5, .site-footer .h6 { font-family: var(--display); }
.footer-link { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-link:hover { color: var(--accent); }
.social {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  display: inline-grid; place-items: center; color: #fff; text-decoration: none;
}
.social:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* The honeypot: a field a person never sees and a script fills in anyway. Hidden by position
   rather than display:none, because some bots skip anything display:none. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 767.98px) {
  .section { padding: 3rem 0; }
  .hero, body.hero-tall .hero { min-height: 62vh; }
  body.hero-full .hero { min-height: 88svh; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gallery-grid img { height: 140px; }
  /* A phone keyboard zooms the page in when it focuses a field under 16px. */
  .form-control, .form-select { font-size: 16px; }
}
