:root {
  --bg: #f7f6f2;
  --bg-alt: #eceae3;
  --ink: #1a1c1b;
  --muted: #5a5f5c;
  --line: #d4d1c8;
  --accent: #0d5c63;
  --accent-dark: #09474c;
  --accent-soft: #dceced;
  --gold: #a8843a;
  --white: #ffffff;
  --radius: 6px;
  --max: 1080px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(180deg, #f3f1eb 0%, var(--bg) 28%, #f9f8f5 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.brand span {
  font-family: var(--display);
  font-size: 1.15rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.nav .btn {
  margin-left: 0.25rem;
}

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

.btn:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

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

.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(88vh, 680px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  border-bottom: 1px solid var(--line);
  color: #f4f7f7;
  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(12, 28, 30, 0.82) 0%, rgba(12, 28, 30, 0.55) 46%, rgba(12, 28, 30, 0.28) 100%),
    linear-gradient(0deg, rgba(12, 28, 30, 0.72) 0%, transparent 55%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 4.5rem 0 3rem;
  display: grid;
  gap: 1.75rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #9fd3d7;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  line-height: 1.12;
  font-weight: 700;
  max-width: 14ch;
  color: #fff;
}

.lead {
  margin: 0 0 1.5rem;
  color: rgba(244, 247, 247, 0.88);
  font-size: 1.05rem;
  max-width: 42ch;
}

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

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

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

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

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

.topics {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.topic {
  padding: 0 0 0.25rem;
  border-top: 3px solid var(--accent);
  background: transparent;
}

.topic-media {
  margin: 0 0 0.85rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}

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

.topic h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.topic p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.visual-band {
  padding: 0;
  border-block: 1px solid var(--line);
}

.visual-band figure {
  margin: 0;
  position: relative;
  min-height: 240px;
}

.visual-band img {
  width: 100%;
  height: min(42vw, 360px);
  min-height: 240px;
  object-fit: cover;
}

.visual-band figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0;
  background: linear-gradient(transparent, rgba(12, 28, 30, 0.78));
  color: #f4f7f7;
}

.visual-band figcaption .wrap {
  font-size: 1rem;
  max-width: 40rem;
}

.accordion {
  display: grid;
  gap: 0.65rem;
}

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

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

.acc-btn::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  line-height: 1;
}

.acc-item.is-open .acc-btn::after {
  content: "–";
}

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

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

.news-list {
  display: grid;
  gap: 1rem;
}

.news-item {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-meta {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}

.news-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.news-item p {
  margin: 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-block {
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.contact-block p,
.contact-block address {
  margin: 0 0 0.5rem;
  font-style: normal;
  color: var(--muted);
}

.contact-block a {
  font-weight: 600;
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.hours li:last-child {
  border-bottom: 0;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
  background: #e8e6df;
}

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

.footer-grid h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  text-decoration: none;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

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

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

.prose {
  padding: 2.5rem 0 3rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--display);
  font-size: 1.35rem;
}

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

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.job-list {
  display: grid;
  gap: 1rem;
}

.job {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.job h3 {
  margin: 0 0 0.35rem;
}

.job .meta {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}

.job p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 34rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

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

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

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

.form-success {
  display: none;
  padding: 0.9rem 1rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-dark);
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 28, 27, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}

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

.modal {
  width: min(100%, 420px);
  background: var(--white);
  border-radius: 8px;
  padding: 1.35rem;
  border: 1px solid var(--line);
}

.modal h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.35rem;
}

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

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

.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: 640px;
  margin-inline: auto;
  background: var(--ink);
  color: #eceae3;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  display: none;
  gap: 0.85rem;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

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

.cookie-bar p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-bar a {
  color: #9fd3d7;
}

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

.cookie-bar .btn {
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
}

.cookie-bar .btn-outline,
.cookie-bar .btn-ghost {
  color: #eceae3;
  border-color: #6b6f6c;
  background: transparent;
}

.cookie-bar .btn-outline:hover,
.cookie-bar .btn-ghost:hover {
  background: #2a2d2b;
  color: #eceae3;
}

.tabs {
  display: grid;
  gap: 1rem;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

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

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

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

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

.tab-panel h3 {
  margin: 0 0 0.5rem;
}

.tab-panel p {
  margin: 0;
  color: var(--muted);
}

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

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

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

  .nav a,
  .nav .btn {
    padding: 0.7rem 0.2rem;
    margin: 0;
  }

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

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

  .btn {
    transition: none;
  }
}
