:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-alt: #eaf1f3;
  --deep: #0d2530;
  --ocean: #134e5e;
  --ocean-light: #1e6f84;
  --kelp: #b45309;
  --kelp-soft: #fef3c7;
  --text: #182730;
  --muted: #526773;
  --border: #d7e2e6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 37, 48, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--ocean); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a { color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--ocean); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0d2530 0%, #134e5e 100%);
  color: #f8fafc;
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.14);
  color: #fde68a;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.hero p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: #f59e0b; color: #111827; }
.btn-primary:hover { background: #fbbf24; }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #ffffff; border: 1px solid rgba(255,255,255,0.22); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

.hero-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-figure img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hero-caption {
  background: rgba(13, 37, 48, 0.85);
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

/* Metrics strip */
.stats-strip {
  margin-top: -1.8rem;
  position: relative;
  z-index: 10;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}
.stat-val { font-size: 1.35rem; font-weight: 800; color: var(--ocean); }
.stat-label { font-size: 0.83rem; color: var(--muted); margin-top: 0.15rem; }

/* Sections */
section { padding: 3.5rem 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.sec-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--deep);
  letter-spacing: -0.02em;
}
.sec-head p { color: var(--muted); max-width: 620px; margin-top: 0.35rem; }

/* Filter tabs */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--ocean);
  color: #ffffff;
  border-color: var(--ocean);
}

/* Cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(13, 37, 48, 0.04);
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--kelp);
  background: var(--kelp-soft);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
}
.card h3 { font-size: 1.1rem; color: var(--deep); margin-bottom: 0.5rem; line-height: 1.35; }
.card p { font-size: 0.93rem; color: var(--muted); flex: 1; }
.card-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.45rem; }

.read-more {
  margin-top: 1rem;
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--ocean);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}
.read-more:hover { text-decoration: underline; }

/* Random Fact Box */
.fact-spotlight {
  background: linear-gradient(120deg, var(--surface-alt), #ffffff);
  border: 1px solid var(--border);
  border-left: 5px solid var(--ocean);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.fact-spotlight h3 { font-size: 1.05rem; color: var(--deep); margin-bottom: 0.25rem; }
.fact-spotlight p { color: var(--muted); max-width: 720px; }

/* Table */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--surface-alt); color: var(--deep); font-weight: 700; }
tr:last-child td { border-bottom: none; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--deep);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.25s, opacity 0.25s;
}
.gallery-item:hover img { transform: scale(1.03); opacity: 0.92; }
.gallery-cap {
  padding: 0.75rem 1rem;
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 37, 48, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: var(--surface);
  max-width: 680px;
  width: 100%;
  border-radius: var(--radius);
  padding: 1.75rem;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.modal-close {
  background: var(--surface-alt);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--deep);
  flex-shrink: 0;
}
.modal-card p + p { margin-top: 0.85rem; }
.modal-img { width: 100%; border-radius: 10px; margin-bottom: 1rem; }

/* Footer */
footer {
  background: var(--deep);
  color: #cbd5e1;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: #ffffff; }

@media (max-width: 900px) {
  .hero-grid, .cards-3, .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-grid, .cards-3, .cards-2, .stats-grid, .gallery-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 0.9rem; font-size: 0.88rem; }
}
