:root {
  --bg: #f3f6f5;
  --bg-alt: #e8efec;
  --surface: #ffffff;
  --ink: #0f1a17;
  --ink-soft: #3d4f48;
  --muted: #6b7c74;
  --line: #d4ddd8;
  --brand: #0a5c4b;
  --brand-dark: #074038;
  --accent: #1a8f72;
  --focus: #0a5c4b;
  --radius: 4px;
  --max: 1080px;
  --header-h: 64px;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-display: "Avenir Next Condensed", "Avenir Next", "Segoe UI", sans-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.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

.skip-link:focus {
  left: 0;
}

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

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

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

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo svg {
  width: 180px;
  height: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

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

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
}

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

/* Hero */
.hero {
  position: relative;
  color: #f5faf8;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0f1a17;
}

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

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

.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(2.75rem, 6vw, 4rem);
  background:
    linear-gradient(
      180deg,
      rgba(15, 26, 23, 0.35) 0%,
      rgba(10, 92, 75, 0.55) 42%,
      rgba(7, 64, 56, 0.88) 100%
    );
}

.hero .container {
  position: relative;
  z-index: 1;
  animation: rise 0.55s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 34ch;
  margin-bottom: 0.75rem;
  color: #e8f5f1;
}

.hero p {
  max-width: 42ch;
  color: rgba(232, 245, 241, 0.85);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

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

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

.btn-primary {
  background: #7dffb3;
  color: #0f1a17;
}

.btn-primary:hover {
  background: #a8ffcc;
  color: #0f1a17;
}

.btn-ghost {
  background: transparent;
  color: #f5faf8;
  border-color: rgba(245, 250, 248, 0.35);
}

.btn-ghost:hover {
  background: rgba(245, 250, 248, 0.08);
  color: #fff;
}

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

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

.btn-solid {
  background: var(--brand);
  color: #fff;
}

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

/* Sections */
main {
  flex: 1;
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.visual-strip figure {
  margin: 0;
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 3 / 2;
}

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

.visual-strip figure:hover img {
  transform: scale(1.03);
}

.visual-strip figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.topic {
  background: var(--surface);
  padding: 1.35rem 1.25rem;
}

.topic h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--brand-dark);
}

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

.about-visual {
  margin: 1.5rem 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 70ch;
  background: var(--bg-alt);
}

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

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

.acc-btn::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.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;
  animation: fade 0.2s ease;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

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

.info-block h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--brand-dark);
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.info-list li {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.info-list strong {
  display: block;
  color: var(--ink);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.info-list a {
  text-decoration: none;
  font-weight: 600;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.hours-table th {
  font-weight: 650;
  color: var(--ink);
  width: 45%;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 650;
  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: #fff;
  color: var(--ink);
}

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

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

.form-success {
  display: none;
  padding: 0.85rem 1rem;
  background: #e8f5f1;
  border: 1px solid #b7e0d2;
  color: var(--brand-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

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

/* Page hero (inner) */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 55ch;
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--brand-dark);
}

.prose h3 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.45rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

/* Job / coop cards as interaction containers */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.job-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.job-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  padding: 1.1rem 1.2rem;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.job-toggle strong {
  color: var(--ink);
}

.job-meta {
  color: var(--muted);
  font-size: 0.85rem;
  grid-column: 1;
}

.job-toggle .chev {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--brand);
  font-size: 1.2rem;
}

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

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

.job-item.is-open .chev {
  transform: rotate(45deg);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill-row .btn {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

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

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

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

.tab-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

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

.tab-panel h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

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

/* Links strip */
.link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Footer */
.site-footer {
  background: #0f1a17;
  color: rgba(245, 250, 248, 0.8);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

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

.site-footer h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7dffb3;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(245, 250, 248, 0.85);
  text-decoration: none;
}

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

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-copy {
  border-top: 1px solid rgba(245, 250, 248, 0.12);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: rgba(245, 250, 248, 0.55);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #0f1a17;
  color: #e8f5f1;
  padding: 1rem;
  border-top: 1px solid rgba(125, 255, 179, 0.25);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

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

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

.cookie-inner p {
  flex: 1 1 280px;
  font-size: 0.9rem;
  color: rgba(232, 245, 241, 0.85);
}

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

.cookie-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.cookie-actions .btn-ghost {
  color: #e8f5f1;
  border-color: rgba(232, 245, 241, 0.35);
}

.cookie-actions a.btn-ghost:hover {
  color: #fff;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 23, 0.55);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

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

.modal h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

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

/* News list */
.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.news-list li {
  border-bottom: 1px solid var(--line);
}

.news-list button {
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.news-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--brand);
  min-width: 5.5rem;
  padding-top: 0.15rem;
}

.news-list h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.news-list p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: none;
}

.news-list li.is-open p {
  display: block;
  margin-top: 0.35rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.15rem;
    display: none;
  }

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

  .nav a {
    padding: 0.75rem 0.9rem;
  }

  .topics {
    grid-template-columns: 1fr;
  }

  .visual-strip {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero {
    min-height: min(70vh, 520px);
  }

  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .visual-strip figure:hover img {
    transform: none;
  }
}
