/* The public site.
 *
 * Three themes, chosen in the CMS, and each is a set of colour tokens rather than a separate
 * stylesheet — so adding one is a handful of lines and nothing else has to know.
 */

:root,
[data-theme="warm"] {
  --ink: #2b2118;
  --ink-soft: #6f6256;
  --page: #fffdfa;
  --surface: #ffffff;
  --band: #faf4ec;
  --accent: #a8622d;
  --accent-dark: #86491d;
  --accent-ink: #ffffff;
  --footer: #2b2118;
  --line: #ece3d8;
  --display: "Fraunces", Georgia, serif;
}

[data-theme="minimal"] {
  --ink: #16181d;
  --ink-soft: #6b7280;
  --page: #ffffff;
  --surface: #ffffff;
  --band: #f6f7f9;
  --accent: #16181d;
  --accent-dark: #000000;
  --accent-ink: #ffffff;
  --footer: #16181d;
  --line: #e6e8ec;
  --display: "Inter", system-ui, sans-serif;
}

[data-theme="navy"] {
  --ink: #101a2c;
  --ink-soft: #5c6a83;
  --page: #ffffff;
  --surface: #ffffff;
  --band: #f2f5fa;
  --accent: #c9a227;
  --accent-dark: #a8861c;
  --accent-ink: #101a2c;
  --footer: #101a2c;
  --line: #e2e7f0;
  --display: "Fraunces", Georgia, serif;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--page);
}

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

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--accent-ink);
}
.bg-accent { background: var(--accent) !important; color: var(--accent-ink) !important; }
.text-accent { color: var(--accent); }

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

.site-nav {
  background: rgba(255, 255, 255, .94);
  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); }

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

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: var(--footer);
}
.hero video, .hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .62) 100%);
}
.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: .8;
}

/* ── 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;
}

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

.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: 12px; 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: 14px; background: var(--band);
}

.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  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: 14px;
  padding: 1.3rem; height: 100%; transition: border-color .2s ease;
}
.vacancy-card:hover { border-color: var(--accent); }

/* ── 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 with
   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 { min-height: 62vh; }
}
