/* =========================================
   Somalia Maritime World — main.css
   ========================================= */

:root {
  --color-bg:        #020d18;
  --color-surface:   #041624;
  --color-card:      #051b2a;
  --color-primary:   #4FC3F7;
  --color-primary-d: #0288D1;
  --color-secondary: #FFFFFF;
  --color-accent:    #0077B6;
  --color-muted:     rgba(255,255,255,0.55);
  --hero-gradient:   radial-gradient(ellipse at top, #003d5c, #020d18);
  --card-glow:       rgba(79,195,247,0.18);
  --radius-card:     12px;
  --container-width: 1180px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--color-bg);
  color: rgba(255,255,255,0.88);
  line-height: 1.72;
  font-size: 1.0625rem;
}
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: #8dd9ff; }
img { max-width: 100%; display: block; }
p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.container {
  width: min(var(--container-width), 92%);
  margin: 0 auto;
}
.section { padding: 5.5rem 0; }
.section-alt {
  background: linear-gradient(
    180deg,
    rgba(79,195,247,0.09) 0%,
    rgba(0,119,182,0.06) 50%,
    rgba(2,13,24,0) 100%
  );
}

/* ---- Section eyebrow & headings ---- */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .75rem;
}
h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.18;
  color: var(--color-secondary);
}
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); margin-bottom: 1rem; }
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: 0.35rem;
  padding-bottom: 0.6rem;
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  margin-top: 0.5rem;
  border-radius: 2px;
}
h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.lead {
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  color: rgba(255,255,255,0.78);
  max-width: 60ch;
  margin-bottom: 1.6rem;
  line-height: 1.65;
}
.section-intro {
  max-width: 72ch;
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ---- Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2,13,24,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(79,195,247,0.2);
}
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  gap: 1rem;
}
.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  color: var(--color-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand span { color: var(--color-primary); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
  font-size: 0.9rem;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  background:
    linear-gradient(
      170deg,
      rgba(2,13,24,0.35) 0%,
      rgba(2,13,24,0.82) 60%,
      rgba(2,13,24,0.98) 100%
    ),
    url("../img/01_0qTPy9SUaiA.jpg") center/cover no-repeat;
  background-attachment: fixed;
}
.hero-content { max-width: 800px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-primary);
  border: 1px solid rgba(79,195,247,0.4);
  border-radius: 999px;
  padding: .25rem .85rem;
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--color-primary);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #001019;
  box-shadow: 0 6px 22px rgba(79,195,247,0.35);
}
.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(79,195,247,0.5);
  color: #001019;
}
.btn-outline {
  border: 1.5px solid rgba(79,195,247,0.55);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(79,195,247,0.1);
  color: var(--color-primary);
}
.scroll-hint {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}
.scroll-hint svg { flex-shrink: 0; animation: bounce 2s infinite; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* ---- Stat strip ---- */
.stat-strip {
  background: var(--color-surface);
  border-top: 1px solid rgba(79,195,247,0.12);
  border-bottom: 1px solid rgba(79,195,247,0.12);
  padding: 1.8rem 0;
}
.stat-strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 120px;
}
.stat-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.stat-unit {
  font-size: 1.1rem;
  color: rgba(79,195,247,0.6);
  font-family: "Inter", sans-serif;
  font-weight: 400;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: .3rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---- Float prose (Section 1) ---- */
.prose-float { width: 100%; }
.prose-float .float-img {
  float: right;
  width: 42%;
  margin: 0 0 1.5rem 2.5rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(79,195,247,0.22);
}
.prose-float .float-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.prose-float::after { content: ''; display: table; clear: both; }

/* ---- Cards ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}
.card {
  background: var(--color-card);
  border: 1px solid rgba(79,195,247,0.18);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 0 28px var(--card-glow);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(79,195,247,0.28);
  border-color: rgba(79,195,247,0.4);
}
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body {
  padding: 1.2rem 1.2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.card-body h3 { font-size: 1.15rem; margin: 0; }
.card-meta {
  font-size: 0.76rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .1rem;
}
.card-body p { font-size: 0.93rem; color: rgba(255,255,255,0.72); line-height: 1.65; flex: 1; }

/* ---- Wide banner ---- */
.wide-banner {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(79,195,247,0.2);
  box-shadow: 0 0 32px var(--card-glow);
  margin: 1.5rem 0 1.8rem;
}
.wide-banner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ---- Two-column layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.two-col img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid rgba(79,195,247,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}

/* ---- Blockquote ---- */
blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 1.8rem 0;
  background: rgba(79,195,247,0.07);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
blockquote cite {
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--color-primary);
  margin-top: .6rem;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ---- Key facts list ---- */
.key-facts {
  list-style: none;
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.key-facts li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: 0.95rem;
}
.key-facts li::before {
  content: '▸';
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ---- Species grid ---- */
.species-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}
.species {
  padding: 1.2rem 1.1rem 1.4rem;
  border-radius: var(--radius-card);
  background: rgba(4,22,36,0.65);
  border: 1px solid rgba(79,195,247,0.18);
  transition: border-color .3s, box-shadow .3s;
}
.species:hover {
  border-color: rgba(79,195,247,0.4);
  box-shadow: 0 0 20px rgba(79,195,247,0.15);
}
.species-icon {
  font-size: 1.8rem;
  margin-bottom: .5rem;
  display: block;
}
.species h3 { font-size: 1rem; margin-bottom: .35rem; }
.species p { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.6; }

/* ---- Timeline ---- */
.timeline { margin: 2rem 0; }
.tl-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(79,195,247,0.1);
}
.tl-item:last-child { border-bottom: none; }
.tl-date {
  flex-shrink: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  width: 7rem;
  text-align: right;
  padding-top: .15rem;
}
.tl-body h3 { font-size: 1rem; margin-bottom: .2rem; }
.tl-body p { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin: 0; }

/* ---- Article content pages ---- */
.article-body { max-width: 76ch; }
.article-body h2 { margin-top: 2.5rem; }
.article-body h2:first-child { margin-top: 0; }
.page-hero {
  background:
    linear-gradient(
      160deg,
      rgba(2,13,24,0.45) 0%,
      rgba(2,13,24,0.85) 65%,
      rgba(2,13,24,0.98) 100%
    ),
    url("../img/01_0qTPy9SUaiA.jpg") center/cover no-repeat;
  padding: 8rem 0 3.5rem;
  border-bottom: 1px solid rgba(79,195,247,0.15);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.page-hero-about {
  background-image:
    linear-gradient(160deg, rgba(2,13,24,0.45) 0%, rgba(2,13,24,0.9) 100%),
    url("../img/02_cG9qpH6o2h8.jpg");
  background-size: cover;
  background-position: center;
}
.page-hero-regions {
  background-image:
    linear-gradient(160deg, rgba(2,13,24,0.4) 0%, rgba(2,13,24,0.88) 100%),
    url("../img/03_iVWI9Ve2-T0.jpg");
  background-size: cover;
  background-position: center;
}
.page-hero-trade {
  background-image:
    linear-gradient(160deg, rgba(2,13,24,0.4) 0%, rgba(2,13,24,0.88) 100%),
    url("../img/06_70_pRCdzN1A.jpg");
  background-size: cover;
  background-position: center;
}
.page-hero-marine {
  background-image:
    linear-gradient(160deg, rgba(2,13,24,0.35) 0%, rgba(2,13,24,0.88) 100%),
    url("../img/08_nKS1RCph5gk.jpg");
  background-size: cover;
  background-position: center;
}

/* ---- Info box ---- */
.info-box {
  background: rgba(0,60,100,0.28);
  border: 1px solid rgba(79,195,247,0.25);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.info-box h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .8rem;
}
.info-box p { font-size: 0.92rem; margin: 0; color: rgba(255,255,255,0.75); }

/* ---- Footer ---- */
.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(79,195,247,0.2);
  background: var(--color-surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .brand { font-size: 1.1rem; display: block; margin-bottom: .6rem; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-col h4 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .85rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.55); }
.footer-col ul li a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid rgba(79,195,247,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--color-primary); }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .hero { background-attachment: scroll; min-height: 90vh; }
  .cards-grid, .species-grid, .two-col { grid-template-columns: 1fr; }
  .section { padding: 3.8rem 0; }
  .wide-banner img { height: 240px; }
  .two-col img { height: 260px; }
  .stat-strip-inner { justify-content: center; }
  .stat { min-width: 110px; }
  .timeline .tl-item { flex-direction: column; gap: .4rem; }
  .tl-date { width: auto; text-align: left; }
}
@media (max-width: 640px) {
  .prose-float .float-img { float: none; width: 100%; margin: 0 0 1.5rem 0; }
  .prose-float .float-img img { height: 220px; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .top-nav { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .nav-links { gap: .3rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; }
  .btn { width: 100%; }
  .stat-num { font-size: 1.8rem; }
}
