:root {
  --bg: #f7f1e6;
  --paper: #fffdf8;
  --surface: #ffffff;
  --surface-alt: #f0e7d8;
  --ink: #112236;
  --ink-soft: #516274;
  --line: #d8cdb8;
  --brand: #8f6b2e;
  --brand-dark: #6d511e;
  --accent: #c8a463;
  --deep: #0d1a2b;
  --hero-overlay: linear-gradient(115deg, rgba(8, 20, 35, 0.88), rgba(18, 35, 55, 0.66));
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(22, 30, 38, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(200, 164, 99, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf7ef 0%, #f7f1e6 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

main {
  overflow: hidden;
}

.page-shell {
  padding-top: 126px;
}

.container-xxl {
  max-width: 1320px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(200, 164, 99, 0.14);
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  padding: 72px 0;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 0.95;
  margin: 14px 0 18px;
  color: var(--deep);
}

.section-intro {
  color: var(--ink-soft);
  max-width: 720px;
  font-size: 1.05rem;
}

.split-intro {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
}

.split-intro .kicker {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.7;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
}

.header-topbar {
  background: rgba(7, 16, 28, 0.94);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.header-topbar .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
}

.header-topbar .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.header-main {
  backdrop-filter: blur(18px);
  background: rgba(255, 252, 246, 0.88);
  border-bottom: 1px solid rgba(143, 107, 46, 0.12);
}

.header-main .frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 360px;
}

.site-brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 18px;
  background: white;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(17, 34, 54, 0.08);
}

.site-brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.site-brand span {
  display: flex;
  align-items: center;
  min-height: 66px;
}

.site-brand small {
  display: block;
  color: #0f0f0f;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.2;
  max-width: 250px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-nav > ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav li {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.desktop-nav > ul > li > a,
.desktop-nav > ul > li > button {
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--deep);
  font-weight: 700;
  font-size: 0.96rem;
}

.desktop-nav li.has-children > a,
.desktop-nav li.has-children > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav li.has-children > a::after,
.desktop-nav li.has-children > button::after {
  content: "▾";
  font-size: 0.78rem;
  line-height: 1;
}

.desktop-nav > ul > li > a.active,
.desktop-nav > ul > li:hover > a,
.desktop-nav > ul > li:hover > button {
  background: rgba(200, 164, 99, 0.15);
  color: var(--brand-dark);
}

.desktop-nav .subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 14px;
  list-style: none;
  margin: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  border: 1px solid rgba(143, 107, 46, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.desktop-nav li:hover > .subnav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.desktop-nav .subnav .subnav {
  top: -14px;
  left: calc(100% + 10px);
  transform: translateX(8px);
}

.subnav li + li {
  margin-top: 4px;
}

.subnav a,
.subnav button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 600;
}

.subnav li.has-children > a,
.subnav li.has-children > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subnav li.has-children > a::after,
.subnav li.has-children > button::after {
  content: "›";
  font-size: 1rem;
  line-height: 1;
}

.subnav a:hover,
.subnav button:hover {
  background: var(--surface-alt);
  color: var(--deep);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--deep);
  color: white;
  font-weight: 700;
}

.header-cta:hover,
.btn-primary:hover {
  background: #18324f;
  color: white;
}

.mobile-toggle {
  display: none;
  border: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--deep);
  color: white;
  font-size: 1.2rem;
}

.mobile-panel {
  display: none;
  padding: 0 0 24px;
}

.mobile-panel.open {
  display: block;
}

.mobile-panel nav {
  padding: 14px 0 0;
}

.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-panel li + li {
  margin-top: 8px;
}

.mobile-panel a,
.mobile-panel summary {
  display: block;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(143, 107, 46, 0.14);
  border-radius: 16px;
  font-weight: 700;
}

.mobile-panel summary {
  position: relative;
  padding-right: 42px;
}

.mobile-panel summary::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

.mobile-panel details[open] > summary::after {
  content: "▴";
}

.mobile-panel details ul {
  margin-top: 8px;
  padding-left: 14px;
}

.mobile-panel details details {
  margin-top: 8px;
}

.mobile-panel details > a {
  margin-bottom: 8px;
}

.mobile-panel details li a {
  font-weight: 600;
  color: var(--ink-soft);
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 72px 0 56px;
  color: white;
  background: var(--hero-overlay), url("../media/hero/hero-bg.jpg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(247, 241, 230, 0), rgba(247, 241, 230, 1));
}

.hero .container-xxl,
.page-hero .container-xxl {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.hero h1,
.page-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.3rem, 8vw, 6.3rem);
  line-height: 0.93;
  margin: 18px 0 22px;
  color: white;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero-actions,
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--deep);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.hero-card,
.info-card,
.feature-card,
.timeline-card,
.news-card,
.doc-card,
.contact-card,
.member-card,
.quote-card,
.metric-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(143, 107, 46, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  color: var(--deep);
  padding: 28px;
}

.hero-card h3,
.info-card h3,
.feature-card h3,
.doc-card h3,
.news-card h3,
.member-card h3,
.contact-card h3 {
  margin: 0 0 14px;
  font-size: 1.28rem;
}

.hero-card p,
.contact-card p,
.doc-card p,
.news-card p,
.feature-card p,
.info-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.news-card-media {
  overflow: hidden;
  padding: 0;
}

.news-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card-media:hover .news-card-image img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 24px;
}

.news-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card-body h3 a:hover {
  color: var(--brand-dark);
}

.news-date {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.stats-grid,
.cards-2,
.cards-3,
.cards-4,
.news-grid,
.members-grid,
.docs-grid {
  display: grid;
  gap: 22px;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: -76px;
  position: relative;
  z-index: 2;
}

.metric-card {
  padding: 24px;
}

.metric-card strong {
  display: block;
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--brand-dark);
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-3,
.docs-grid,
.news-grid,
.members-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  padding: 30px;
}

.panel.dark {
  background: linear-gradient(160deg, #102237, #182f4a);
  color: white;
}

.panel.dark .section-title,
.panel.dark h1,
.panel.dark h2,
.panel.dark h3 {
  color: white;
}

.panel.dark p,
.panel.dark li {
  color: rgba(255, 255, 255, 0.8);
}

.feature-card,
.doc-card,
.news-card,
.member-card,
.contact-card,
.info-card,
.timeline-card,
.quote-card {
  padding: 28px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(200, 164, 99, 0.16);
  color: var(--brand-dark);
  font-weight: 800;
  margin-bottom: 18px;
}

.image-frame {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-sheet {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(143, 107, 46, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-cover {
  aspect-ratio: 16 / 6;
  overflow: hidden;
}

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

.article-content {
  padding: 34px;
}

.article-content p + p {
  margin-top: 18px;
}

.badge-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.badge-chip {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

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

.list-clean li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(216, 205, 184, 0.72);
  text-align: left;
  vertical-align: top;
}

th {
  background: #efe3cd;
  color: var(--deep);
  font-size: 0.92rem;
}

.table-note,
.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.page-hero {
  position: relative;
  padding: 110px 0 66px;
  color: white;
  background: linear-gradient(135deg, rgba(12, 24, 41, 0.9), rgba(26, 45, 71, 0.75)), url("../media/images/title-banner.jpg") center/cover no-repeat;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
  line-height: 1.8;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.site-footer {
  background: #0c1828;
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 0 28px;
  margin-top: 36px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 1fr;
}

.site-footer h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: white;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.map-frame iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.anchor-offset {
  scroll-margin-top: 150px;
}

@media (max-width: 1199px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-grid,
  .split-intro,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .cards-3,
  .news-grid,
  .docs-grid,
  .members-grid,
  .cards-2 {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding-top: 112px;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .stats-grid {
    margin-top: 12px;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 56px 0;
  }

  .header-topbar {
    display: none;
  }

  .header-main .frame {
    min-height: 74px;
  }

  .site-brand img {
    width: 56px;
    height: 56px;
  }

  .site-brand strong {
    font-size: 0.92rem;
  }

  .site-brand small {
    font-size: 0.76rem;
    max-width: 210px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.6rem, 13vw, 4.5rem);
  }

  .stats-grid,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .panel,
  .feature-card,
  .doc-card,
  .news-card,
  .contact-card,
  .member-card,
  .timeline-card,
  .quote-card,
  .info-card,
  .hero-card {
    padding: 22px;
  }

  .news-card-media {
    padding: 0;
  }

  .article-cover {
    aspect-ratio: 16 / 9;
  }

  .article-content {
    padding: 24px;
  }
}
