/* =========================================================
   The Lighthouse (thelighthouse.support)
   Coastal Calm — readable coastal palette (not just “dark UI”)
   - Footer cards have more separation
   - UORadio-style copyright bar
   ========================================================= */

*{box-sizing:border-box}
html,body{height:100%}
img{max-width:100%; height:auto; display:block}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:2px solid rgba(159,214,208,.65); outline-offset:2px}

:root{
  /* Coastal Calm (visible + intentional) */
  --bg0:#071417;         /* deep ocean */
  --bg1:#0b2326;         /* coastal green-blue */
  --bg2:#102a2d;         /* lift */

  --text:#ecf6f6;
  --muted:rgba(236,246,246,.80);

  --accent:#9fd6d0;      /* seafoam */
  --accent2:#c9e7d8;     /* sage */
  --warm:#f3e3b0;        /* sand glow */
  --danger:#ffb4b4;

  /* panels/borders tuned to look like sea-glass */
  --panel:rgba(255,255,255,.075);
  --panel2:rgba(255,255,255,.10);
  --line:rgba(159,214,208,.16);
  --line2:rgba(255,255,255,.20);

  --shadow:0 18px 60px rgba(0,0,0,.50);
  --shadow2:0 18px 45px rgba(0,0,0,.34);

  --radius:18px;
  --radius2:26px;
  --max:1120px;
  --logo-h:40px;

  /* Optional watermark image (OFF by default)
     To enable later:
     --bg-mark: url("../img/lighthouse-watermark.png");
     --bg-mark-opacity: .06;
  */
  --bg-mark:none;
  --bg-mark-opacity:.06;
}

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

  /* Coastal wash that reads immediately:
     - sea glass teal
     - sage mist
     - sand glow near horizon
  */
  background:
    radial-gradient(1100px 680px at 12% 8%, rgba(159,214,208,.22), transparent 62%),
    radial-gradient(1100px 720px at 88% 14%, rgba(201,231,216,.16), transparent 64%),
    radial-gradient(950px 720px at 50% 115%, rgba(243,227,176,.14), transparent 58%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* soft fog / ocean air */
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(900px 520px at 30% 40%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(900px 520px at 70% 45%, rgba(159,214,208,.06), transparent 65%);
  mix-blend-mode: screen;
  opacity:.55;
}

/* optional watermark */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background-image:var(--bg-mark);
  background-repeat:no-repeat;
  background-position: 65% 35%;
  background-size: min(900px, 85vw);
  opacity:var(--bg-mark-opacity);
  pointer-events:none;
  z-index:-2;
}

.muted{color:var(--muted)}

/* ---------- Layout ---------- */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:22px 18px 70px;
}

.card{
  border:1px solid var(--line2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  overflow:hidden;
}

/* ---------- Header / Nav ---------- */
header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(12px);
  background:
    linear-gradient(180deg, rgba(7,20,23,.78), rgba(7,20,23,.40));
  border-bottom:1px solid rgba(159,214,208,.14);
}

.nav{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.logo-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}

.brand b{font-size:15px; letter-spacing:-.2px}
.brand span{display:block; font-size:12px; color:var(--muted); margin-top:2px}

.navlinks{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pill{
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(159,214,208,.18);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-size:13px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.pill:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.10);
  border-color:rgba(159,214,208,.30);
  text-decoration:none;
}
.pill.primary{
  background: rgba(159,214,208,.20);
  border-color: rgba(159,214,208,.46);
}

/* ---------- Hero ---------- */
.hero{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
  align-items:stretch;
}
@media (max-width: 960px){ .hero{grid-template-columns:1fr} }

.hero-copy{padding:26px 24px}

.badge{
  display:inline-block;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(159,214,208,.18);
  background: rgba(255,255,255,.06);
  color:rgba(236,246,246,.82);
  font-size:12px;
}

h1{
  font-size: clamp(28px,4vw,44px);
  margin:10px 0 12px;
  letter-spacing:-.6px;
  line-height:1.06;
}

.lead{
  color:var(--muted);
  font-size:16px;
  margin:0 0 18px;
  max-width:72ch;
}

.cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(159,214,208,.18);
  background: rgba(255,255,255,.07);
  color:var(--text);
  font-weight:800;
  font-size:14px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  transform:translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(159,214,208,.32);
  text-decoration:none;
}
.btn.primary{
  background: rgba(159,214,208,.22);
  border-color: rgba(159,214,208,.50);
}
.btn.warm{
  background: rgba(243,227,176,.16);
  border-color: rgba(243,227,176,.38);
}

/* Crisis alert */
.alert{
  margin-top:14px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(255,180,180,.34);
  background: linear-gradient(180deg, rgba(255,180,180,.12), rgba(255,255,255,.04));
  font-size:13px;
}
.alert b{color:#ffe6e6}

/* ---------- Hero Image Card ---------- */
.hero-art{
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(680px 520px at 50% 20%, rgba(159,214,208,.16), transparent 58%),
    radial-gradient(700px 520px at 50% 95%, rgba(243,227,176,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
}

.hero-figure{
  margin:0;
  width: min(520px, 100%);
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(159,214,208,.20);
  background: rgba(0,0,0,.10);
  box-shadow:var(--shadow2);
}

.hero-img{
  width:100%;
  height:auto;
  object-fit:cover;
}

/* ---------- Content Tiles ---------- */
.grid3{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:14px;
}
@media (max-width: 960px){ .grid3{grid-template-columns:1fr} }

.tile{
  padding:18px;
  border-radius:var(--radius);
  border:1px solid rgba(159,214,208,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow:var(--shadow2);
}
.tile h3{margin:0 0 8px; font-size:16px; letter-spacing:-.2px}
.tile p{margin:0; color:var(--muted); font-size:14px}

/* ---------- Footer Cards (more separation/standout) ---------- */
.site-footer{
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid rgba(159,214,208,.14);
}

.footer-grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:18px; /* more separation */
  margin-top:14px;
  margin-bottom:18px;
}
@media (max-width: 960px){ .footer-grid{grid-template-columns:1fr} }

.footer-box{
  padding:20px;
  border-radius: var(--radius);
  border:1px solid rgba(159,214,208,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
  box-shadow: 0 22px 60px rgba(0,0,0,.38);
  position:relative;
}

/* subtle inner highlight edge for “card pop” */
.footer-box::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius: calc(var(--radius) - 1px);
  border:1px solid rgba(255,255,255,.06);
  pointer-events:none;
}

.footer-box h4{
  margin:0 0 12px;
  font-size:14px;
  letter-spacing:-.2px;
  color: rgba(236,246,246,.92);
}

.footer-box ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}
.footer-box a{color:rgba(236,246,246,.82)}
.footer-box a:hover{color:var(--text); text-decoration:none}

/* ---------- Copyright Bar (UORadio-style) ---------- */
.copyright-bar{
  border-top:1px solid rgba(159,214,208,.14);
  background:
    radial-gradient(1100px 240px at 50% 0%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 14px 14px;
}

.copyright-inner{
  text-align:center;
  color: rgba(236,246,246,.80);
  font-size:12px;
  line-height:1.55;
}

.copyright-inner b{
  color: rgba(236,246,246,.95);
  font-weight: 900;
  letter-spacing: .25px;
}

/* ---------- Logo beacon animation (kept) ---------- */
@keyframes beaconSpin{
  0%   { transform: rotate(0deg);   opacity:.95; filter: blur(0px); }
  20%  { opacity:.70; filter: blur(.2px); }
  25%  { transform: rotate(90deg);  opacity:.12; filter: blur(.6px); }
  45%  { opacity:.70; filter: blur(.2px); }
  50%  { transform: rotate(180deg); opacity:.95; filter: blur(0px); }
  70%  { opacity:.70; filter: blur(.2px); }
  75%  { transform: rotate(270deg); opacity:.12; filter: blur(.6px); }
  95%  { opacity:.70; filter: blur(.2px); }
  100% { transform: rotate(360deg); opacity:.95; filter: blur(0px); }
}

.logo-mark{
  height: var(--logo-h);
  width:auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}
.logo-beam{
  transform-origin: 42px 38px;
  animation: beaconSpin 6.2s linear infinite;
  mix-blend-mode: screen;
}