/* SelectoriaHub — core styles */
:root {
  --bg: #f7f5f0;
  --bg-alt: #ebe6dc;
  --surface: #ffffff;
  --ink: #1a2420;
  --ink-soft: #4a554f;
  --brand: #1a3a2a;
  --brand-mid: #2d5a42;
  --accent: #9a7b3c;
  --accent-soft: #c4a35a;
  --line: #d4cfc4;
  --ok: #2d5a42;
  --err: #8b3a3a;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(26, 36, 32, 0.08);
  --max: 1100px;
  --header-h: 68px;
  --font: "Avenir Next", "Segoe UI", Candara, "Gill Sans", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(196, 163, 90, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(26, 58, 42, 0.08), transparent 45%),
    var(--bg);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.hero + .contact-strip {
  animation: hero-rise 0.55s ease 0.15s both;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brand);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo img, .logo svg { width: 40px; height: 40px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.1rem;
  list-style: none;
  padding: 0;
}

.nav-list a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--brand);
  color: #f7f5f0;
}

.btn-primary:hover { background: var(--brand-mid); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline:hover { background: var(--brand); color: #f7f5f0; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--brand); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero — full-bleed image plane */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  color: #f3efe6;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 28, 22, 0.35) 0%, rgba(14, 28, 22, 0.72) 55%, rgba(14, 28, 22, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 5.5rem 0 3rem;
  max-width: 36rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  animation: hero-rise 0.7s ease both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 3.8rem);
  line-height: 1.05;
  color: #f7f3ea;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 600;
  color: #e8e2d4;
  margin-bottom: 0.85rem;
  max-width: 28ch;
}

.hero-lead {
  color: rgba(243, 239, 230, 0.88);
  max-width: 42ch;
  font-size: 1.05rem;
}

.hero .btn-primary {
  background: var(--accent-soft);
  color: var(--brand);
}

.hero .btn-primary:hover {
  background: #d4b66a;
  color: var(--brand);
}

.hero .btn-outline {
  border-color: rgba(247, 243, 234, 0.75);
  color: #f7f3ea;
}

.hero .btn-outline:hover {
  background: #f7f3ea;
  color: var(--brand);
}

.hero .btn-ghost {
  border-color: rgba(247, 243, 234, 0.35);
  color: #e8e2d4;
}

.hero .btn-ghost:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.hero .age-note {
  color: rgba(232, 226, 212, 0.75);
  border-top-color: rgba(255, 255, 255, 0.18);
}

.contact-strip {
  background: var(--brand);
  color: #e8e4da;
  padding: 1.75rem 0;
}

.contact-strip-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .contact-strip-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.contact-strip h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--accent-soft);
  margin-bottom: 0.4rem;
}

.contact-strip p, .contact-strip a { color: #e8e4da; font-size: 0.95rem; }
.contact-strip a:hover { color: var(--accent-soft); }

/* Visual gallery / media blocks */
.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
  aspect-ratio: 16 / 10;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.media-frame:hover img { transform: scale(1.03); }

.venue-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (min-width: 720px) {
  .venue-grid { grid-template-columns: repeat(2, 1fr); }
}

.venue-item {
  display: grid;
  gap: 0.75rem;
}

.venue-item h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--brand);
}

.venue-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tab-media {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 720px) {
  .tab-media { grid-template-columns: 1.1fr 1fr; gap: 1.5rem; }
}

.page-visual {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  max-height: 280px;
}

.page-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: rgba(235, 230, 220, 0.45); }

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.section-head p { color: var(--ink-soft); }

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-2 { display: grid; gap: 1.25rem; }

.feature {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.feature h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--brand);
  margin-bottom: 0.4rem;
}

.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* Accordion */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }

.acc-item + .acc-item { border-top: 1px solid var(--line); }

.acc-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1rem 1.15rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.acc-btn:hover { background: var(--bg-alt); }
.acc-btn::after { content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1; }
.acc-item.is-open .acc-btn::after { content: "−"; }

.acc-panel {
  display: none;
  padding: 0 1.15rem 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.acc-item.is-open .acc-panel { display: block; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }

.tab-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #f7f5f0;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Contact / info blocks */
.info-list {
  display: grid;
  gap: 1rem;
}

.info-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.info-block h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.info-block p, .info-block address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}

.form textarea { min-height: 120px; resize: vertical; }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
}

.form-note { font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; }

.form-msg {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-msg.is-ok { display: block; background: #e5efe8; color: var(--ok); }
.form-msg.is-err { display: block; background: #f5e8e8; color: var(--err); }

/* Legal / prose */
.prose { max-width: 48rem; }
.prose h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.prose h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--brand);
  margin: 2rem 0 0.65rem;
}
.prose h3 { font-size: 1.05rem; margin: 1.35rem 0 0.45rem; color: var(--ink); }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 0.85rem; }
.prose ul, .prose ol { margin: 0.75rem 0; }
.meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

/* Vacancies */
.job {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.job-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.1rem 1.25rem;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
}

.job-toggle strong {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--brand);
}

.job-toggle span { color: var(--ink-soft); font-size: 0.9rem; }

.job-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.job.is-open .job-body { display: block; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 36, 32, 0.55);
}

.modal-dialog {
  position: relative;
  width: min(100%, 440px);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  z-index: 1;
}

.modal-dialog h2 {
  font-family: var(--display);
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  width: 36px;
  height: 36px;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--brand);
  color: #e8e4da;
  padding: 1rem;
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.cookie-bar.is-visible { transform: translateY(0); }

.cookie-inner {
  width: min(100% - 0, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p { font-size: 0.9rem; max-width: 48rem; flex: 1; }
.cookie-inner a { color: var(--accent-soft); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Footer */
.site-footer {
  background: var(--brand);
  color: #cfd6d1;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.site-footer h3 {
  font-family: var(--display);
  color: var(--accent-soft);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer a { color: #dce3de; text-decoration: none; }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 0.4rem; }
.site-footer p { font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.75rem 1rem 1.25rem;
  }

  .site-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .header-inner { position: relative; }
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.age-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
