:root {
  --ink: #0f2744;
  --ink-soft: #24384f;
  --teal: #2a6f7a;
  --teal-deep: #1e555e;
  --ice: #eef3f7;
  --snow: #f8fafc;
  --line: #c9d5df;
  --muted: #5a6b7a;
  --warn: #8a4b2a;
  --radius: 4px;
  --max: 1120px;
  --header: 72px;
  --ease: 0.28s ease;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(180deg, #e6eef4 0%, var(--ice) 28%, var(--snow) 100%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 9999;
}
.skip:focus { left: 0; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 39, 68, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(42, 111, 122, 0.45);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: #9eb6c4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: #d7e3ec;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background var(--ease), color var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  background: rgba(42, 111, 122, 0.35);
}

.nav .cta-link {
  background: var(--teal);
  color: #fff;
  margin-left: 0.35rem;
}

.nav .cta-link:hover {
  background: var(--teal-deep);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,39,68,0.88) 0%, rgba(15,39,68,0.55) 48%, rgba(15,39,68,0.25) 100%),
    linear-gradient(0deg, rgba(15,39,68,0.75) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 3.5rem;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b7d0d8;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.08rem;
  color: #d5e2ea;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #348693; color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover { background: var(--ink-soft); color: #fff; }
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-line:hover { border-color: var(--teal); color: var(--teal-deep); }

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-tight { padding: 3rem 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

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

.kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.55rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

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

.panel {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.panel p { color: var(--muted); font-size: 0.98rem; }

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #d9e4ec;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-frame.square img { aspect-ratio: 4 / 3; }

/* Schedule table */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th, td {
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--ink);
  color: #dce8ef;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td strong { display: block; color: var(--ink); margin-bottom: 0.2rem; }
td span.meta { color: var(--muted); font-size: 0.92rem; }

.status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.status-open { background: #d8ebe8; color: #1e555e; }
.status-limited { background: #efe4d4; color: var(--warn); }
.status-closed { background: #e8e8e8; color: #555; }

/* Contact strip */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.contact-item {
  background: var(--ink);
  color: #d7e3ec;
  padding: 1.25rem;
  border-radius: var(--radius);
  min-height: 140px;
}

.contact-item h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.contact-item a { color: #9fd0d8; }
.contact-item p { font-size: 0.95rem; }

/* Accordion */
.accordion { display: grid; gap: 0.65rem; }

.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

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

.acc-btn .mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform var(--ease);
}

.acc-item.is-open .acc-btn .mark { transform: rotate(45deg); background: var(--ice); }

.acc-panel {
  display: none;
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
}

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

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

.tab-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}

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

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

/* Jobs */
.job {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.job summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.2rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.job summary::-webkit-details-marker { display: none; }

.job summary::after {
  content: "+";
  color: var(--teal);
  font-size: 1.35rem;
  line-height: 1;
}

.job[open] summary::after { content: "–"; }

.job-body {
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.chip {
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Legal pages */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.page-hero p { color: var(--muted); max-width: 42rem; }

.prose {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 1.75rem 0 0.7rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li { color: var(--muted); margin-bottom: 0.85rem; }

.prose ul, .prose ol { padding-left: 1.2rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li { padding-left: 0.2rem; }

/* Forms */
.form {
  display: grid;
  gap: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
}

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

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: 0.9rem 1rem;
  background: #d8ebe8;
  color: #1e555e;
  border-radius: var(--radius);
  font-weight: 700;
}

.form-success.is-visible { display: block; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #b7c7d4;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: #9fc3cc;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.site-footer a:hover { color: #fff; }

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

.age-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  color: #fff;
}

.age-note i {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  font-style: normal;
  font-size: 0.75rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 39, 68, 0.72);
}

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

.modal-dialog {
  width: min(100%, 480px);
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  max-height: 90vh;
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--ice);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.modal > .modal-dialog > p { color: var(--muted); margin-bottom: 1rem; }

/* Cookies */
.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 180;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 39, 68, 0.18);
  padding: 1rem 1.15rem;
  display: none;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 900px;
  margin-inline: auto;
}

.cookie-bar.is-visible { display: flex; }

.cookie-bar p {
  flex: 1 1 280px;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.is-locked { overflow: hidden; }

/* Responsive */
@media (max-width: 960px) {
  .grid-2,
  .grid-3,
  .contact-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: inline-block; }

  .nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    background: rgba(15, 39, 68, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--ease), opacity var(--ease);
    border-bottom: 1px solid rgba(42, 111, 122, 0.45);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav .cta-link { margin-left: 0; text-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 68vh; }
  .hero-content { padding: 4rem 0 2.5rem; }
  .section { padding: 3.25rem 0; }
  .contact-item { min-height: 0; }
}

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