/* File: css/styles.css */

:root{
  --bg:#051C26;
  --surface:#072836;
  --text:#EAF7F8;
  --muted:#B6D6D8;
  --primary:#03989E;
  --primary-dark:#026367;
  --accent-blue:#0066B4;
  --card:rgba(255,255,255,.06);
  --card-border:rgba(255,255,255,.12);
  --shadow:0 20px 60px rgba(0,0,0,.35);
  --radius:18px;
  --max:1120px;

  /* Responsive manta image source (overridden by media queries) */
  --manta-url: url("../assets/hero-manta-1920.jpg");
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height:1.55;

  /* Required so body::before can be document-length */
  position:relative;
}

/* ✅ Fixed manta background at BODY level (so overlays always sit above it) */
body::after{
  content:"";
  position:fixed;
  inset:0;
  background: var(--manta-url) center/cover no-repeat;
  /* Keep the manta looking natural (no weird brightening) */
  filter: saturate(1.18) contrast(1.25) brightness(.75);
  transform: scale(1.03);
  z-index:-2;
  pointer-events:none;
}

/* ✅ Document-length gradient overlay (this is what “darkens as you scroll”) */
body::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:0;
  /* Increase if you want darkening to continue further down */
  height: 380vh;
  background: linear-gradient(
    180deg,
    rgba(5,28,38,.00) 0%,
    rgba(5,28,38,.16) 10%,
    rgba(5,28,38,.24) 22%,
    rgba(5,28,38,.34) 38%,
    rgba(5,28,38,.46) 56%,
    rgba(5,28,38,.70) 74%,
    rgba(5,28,38,.82) 100%
  );
  z-index:-1;              /* above manta (z=-2), below all content */
  pointer-events:none;
}

a{color:inherit}
a:hover{opacity:.9}

.container{max-width:var(--max); margin:0 auto; padding:0 22px}
.small{font-size:.94rem; color:var(--muted)}
.kicker{letter-spacing:.12em; text-transform:uppercase; font-size:.82rem; color:var(--muted)}
h1,h2,h3{line-height:1.15; margin:0 0 .6rem}
h1{font-size: clamp(2.1rem, 5vw, 3.6rem)}
h2{font-size: clamp(1.55rem, 3vw, 2.2rem)}
h3{font-size: 1.15rem}

.nav{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(14px);
  background: rgba(5,28,38,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:14px}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none}
.brand img{width:34px; height:34px}
.brand span{font-weight:700; letter-spacing:.02em}
.nav-links{display:flex; gap:16px; flex-wrap:wrap; justify-content:flex-end}
.nav-links a{font-size:.92rem; color:var(--muted); text-decoration:none}
.nav-links a:hover{color:var(--text)}

.hero{
  position:relative;
  min-height: 58vh;
  display:flex;
  align-items:flex-end;
  padding: 28px 0 40px;
  overflow:hidden;
  z-index:0;
}
.hero-content{position:relative; max-width: 760px; padding-top: 24px; z-index:2}

/* ❌ Remove hero background/gradient layers — they now live at BODY level */
.hero::before,
.hero::after{ content:none; }

.hero-card{
  margin-top:18px;
  padding:18px 18px;
  background: rgba(7,40,54,.80);
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 16px;
  border-radius: 999px;
  text-decoration:none;
  border:1px solid transparent;
  font-weight:600;
}
.btn.primary{background: var(--primary); color:#fff; border-color: rgba(255,255,255,.12)}
.btn.primary:hover{background: #02a7ad}
.btn.ghost{background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: var(--text)}
.btn.ghost:hover{background: rgba(255,255,255,.10)}
.btn.link{background:transparent; border-color: rgba(255,255,255,.16); color: var(--muted)}
.btn.link:hover{color:var(--text); background: rgba(255,255,255,.06)}

.section{
  padding: 64px 0;
  /* IMPORTANT: keep sections transparent so there’s no hard band/cut */
  background: transparent;
  position:relative;
  z-index:1;
  pointer-events:auto;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card{
  background: var(--card);
  border:1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.card strong{color:#fff}
.card p{margin:.35rem 0 0; color:var(--muted)}

.span-6{grid-column: span 6}
.span-5{grid-column: span 5}
.span-7{grid-column: span 7}
.span-4{grid-column: span 4}
.span-8{grid-column: span 8}
.span-12{grid-column: span 12}

.media-strip{
  display:grid;
  gap:12px;
  margin-top:14px;
  width:100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 980px){
  .media-strip{ grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}

.pill{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:12px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  text-decoration:none;
  color: var(--text);
  min-width:0;
  text-align:center;
}
.pill-top{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  line-height:1.1;
  font-weight:700;
}
.pill .pill-handle{
  font-size: 13px;
  color: var(--muted);
  max-width:100%;
  line-height:1.25;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
}
.pill svg{
  width:18px;
  height:18px;
  flex:0 0 auto;
  opacity:.95;
}
.pill span, .pill small{
  min-width:0;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pill small{color:var(--muted)}
.pill:hover{background: rgba(255,255,255,.10)}

.split-img{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  min-height: 320px;
  border:1px solid rgba(255,255,255,.12);
}
.split-img::before{
  content:"";
  position:absolute; inset:0;
  background: url("../assets/hero-seagrass-1920.jpg") center/cover no-repeat;
  filter: saturate(1.35) contrast(1.15) brightness(1.10);
  transform: scale(1.02);
}
.split-img::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(5,28,38,.18), rgba(5,28,38,.50));
}
.split-img .badge{
  position:absolute; left:14px; top:14px;
  z-index:2;
  padding:8px 10px;
  border-radius: 999px;
  background: rgba(3,152,158,.18);
  border:1px solid rgba(3,152,158,.30);
  color: #dff6f7;
  font-size:.86rem;
  backdrop-filter: blur(10px);
}

.footer{
  padding: 34px 0 46px;
  border-top:1px solid rgba(255,255,255,.08);
  /* Keep footer readable on transparent sections */
  background: rgba(5,28,38,.85);
  backdrop-filter: blur(10px);

  position:relative;
  z-index:1;
  pointer-events:auto;
}
.footer .row{
  display:flex; gap:16px; flex-wrap:wrap; align-items:center; justify-content:space-between
}
.footer a{color:var(--muted); text-decoration:none}
.footer a:hover{color:var(--text)}

@media (max-width: 860px){
  .span-6,.span-5,.span-7,.span-4,.span-8{grid-column: span 12}
  .hero{min-height: 72vh}
}

/* Tweaks */
.btn.subtle{opacity:.85}
.primary-pill{border-color: rgba(3,152,158,.65)}
.secondary-pill{opacity:.92}
.link-list{margin:10px 0 0 18px; padding:0}
.link-list li{margin:8px 0}
.link-list a{text-decoration:underline; text-decoration-color: rgba(234,247,248,.35)}

/* Responsive manta background */
@media (max-width: 980px){
  :root{ --manta-url: url("../assets/hero-manta-1280.jpg"); }
}
@media (max-width: 560px){
  :root{ --manta-url: url("../assets/hero-manta-768.jpg"); }
}

.bleed{
  width:100%;
  padding: 0 24px;
}