@import url('https://googleapis.com');

:root {
  --primary: #143d59;
  --primary-dark: #0e2c41;
  --accent: #c59b27;
  --accent-hover: #b0881e;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #475569;
  --border: #e2e8f0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.brand img {
  height: 46px;
  width: auto;
  background: #ffffff;
  border-radius: 50%;
  padding: 2px;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 0.375rem;
  transition: background-color 0.2s, color 0.2s;
}

.nav-links a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.18);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.45rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-color: var(--primary-dark);
  overflow: hidden;
  padding: 4rem 1.25rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 25, 38, 0.76), rgba(10, 25, 38, 0.58), rgba(10, 25, 38, 0.82));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  background: rgba(20, 61, 89, 0.45);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto 2rem;
}

/* Page Banner (Subpages) */
.page-banner {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 3.5rem 0;
  border-bottom: 4px solid var(--accent);
}

.page-banner h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: #111827;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-light:hover {
  background: #ffffff;
  color: var(--primary-dark);
}

.btn-outline-dark {
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline-dark:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.75rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.card-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: #e6eff5;
  padding: 0.25rem 0.65rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.card-subtitle {
  font-weight: 600;
  color: var(--accent-hover);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 1rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* CTA Banner */
.cta-banner {
  background-color: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 4rem 1.25rem;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

/* Prose & Info Boxes */
.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.info-box {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 0.375rem;
  margin-top: 1.5rem;
}

.info-box h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.footer-col p, .footer-col li {
  font-size: 0.94rem;
  margin-bottom: 0.45rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .nav-links.open {
    display: flex;
  }
}
/* Legal / Prose Lists & Headings */
.prose h3 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.prose ul {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: #e6eff5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-placeholder-label {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px dashed var(--border);
}

.gallery-thumb.is-missing img {
  display: none;
}

.gallery-thumb.is-missing .gallery-placeholder-label {
  display: flex;
}

.gallery-caption {
  padding: 1.15rem 1.25rem;
}

.gallery-caption h3 {
  font-size: 1.12rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.gallery-caption p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}
