/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root {
  --color-primary: #1A3A6B;
  --color-accent: #00C853;
  --color-bg-light: #E8F0FE;
  --color-bg-dark: #0D2340;
  --color-text-primary: #1A1A2E;
  --color-text-secondary: #4A5568;
  --color-neutral-gray: #A0AEC0;
  --color-warning: #FF6B35;
  --color-white: #FFFFFF;
  --color-border: rgba(26,58,107,0.15);
  --font-heading: 'Montserrat Black', Arial, sans-serif;
  --font-body: 'Inter Light', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent-serif: 'Playfair Display', Georgia, serif;
  --line-height: 1.6;
  --max-width: 1200px;
  --header-upper-height: 50px;
  --nav-height: 50px;
  --footer-padding: 2rem 1rem;
}
body {
  font-family: var(--font-body);
  background: var(--color-bg-light);
  color: var(--color-text-primary);
  line-height: var(--line-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#main-content { flex: 1; padding-top: calc(var(--header-upper-height) + var(--nav-height)); }
/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-text-primary);
  padding: 0.5rem 1rem;
  z-index: 100;
  font-weight: bold;
}
.skip-link:focus { left: 1rem; }
/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-upper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-upper-height);
  padding: 0 1.5rem;
  gap: 1rem;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover { opacity: 0.85; }
.site-tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  opacity: 0.8;
  flex: 1;
  text-align: center;
}
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.icon-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: 0.3s;
}
/* Navigation */
.nav-bar {
  background: var(--color-bg-dark);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0 1.5rem;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-white);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.nav-link[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  font-weight: bold;
}
/* Mobile */
@media (max-width: 768px) {
  .site-tagline { display: none; }
  .mobile-nav-toggle { display: block; }
  .nav-bar {
    position: fixed;
    top: var(--header-upper-height);
    left: 0;
    width: 100%;
    height: auto;
    background: var(--color-bg-dark);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-bar[data-open] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .nav-link { font-size: 1rem; border-bottom: none; }
  body { padding-top: var(--header-upper-height); }
  #main-content { padding-top: var(--header-upper-height); }
}
/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: var(--footer-padding);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-brand .site-logo { font-size: 1.5rem; display: inline-block; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.9rem; opacity: 0.7; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link { color: var(--color-accent); text-decoration: none; font-size: 0.95rem; }
.footer-link:hover { text-decoration: underline; }
.footer-info { font-size: 0.85rem; line-height: 1.5; }
.footer-info p { margin-bottom: 0.3rem; }
.footer-email a { color: var(--color-accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}
/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-text-primary);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.back-to-top[data-visible] {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover { background: #00b34a; }
/* Progress bar (optional) */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: 60;
  width: 0;
  transition: width 0.1s;
}
/* Utility */
.container { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1.5rem; }
.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: #00b34a; transform: scale(1.02); }
.btn-outline { background: transparent; border: 2px solid var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent); color: var(--color-text-primary); }
/* Focus visible */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .nav-bar { transition: none; }
  .back-to-top { transition: none; }
  html { scroll-behavior: auto; }
}
/* Image container base rule (for content images) */
.figure { position: relative; margin: 2rem 0; background: var(--color-neutral-gray); min-height: 200px; overflow: hidden; }
.figure img { width: 100%; height: auto; display: block; object-fit: cover; }
.figure-placeholder { display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.05); color: var(--color-text-secondary); font-size: 0.9rem; min-height: 200px; }
/* Breadcrumb (common) */
.breadcrumb { font-size: 0.85rem; padding: 1rem 0; color: var(--color-text-secondary); }
.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .back-to-top { right: 1rem; bottom: 1rem; }
}
