/* ============================================================
   CoastSight — shared design tokens & site chrome
   Used by index.html, project/index.html, dashboard/index.html
   ============================================================ */

:root{
  --navy:#0A2F52;
  --navy-2:#0E3E6B;
  --teal:#007480;
  --teal-2:#0BC0CF;
  --tealSoft:#DCF3F5;
  --navySoft:#E1EAF3;
  --bg:#EFF6F8;
  --surface:#FFFFFF;
  --surface2:#E5F0F2;
  --border:#CDE1E5;
  --text:#132435;
  --muted:#49606B;
  --radius:14px;
  --radius-sm:10px;
  --shadow:0 1px 2px rgba(10,47,82,.07), 0 10px 28px rgba(10,47,82,.08);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --maxw: 1120px;
}

*{ box-sizing:border-box; }
html{ color-scheme:light; }
html,body{ margin:0; }
body{
  font-family:var(--sans); color:var(--text); background:var(--bg);
  line-height:1.55; -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }

/* ---------- Site header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:20;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}
.site-nav{
  max-width:var(--maxw); margin:0 auto; padding:14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand img{ width:34px; height:34px; border-radius:9px; }
.brand .word{ font-size:18px; font-weight:700; letter-spacing:-.01em; }
.brand .word b{ color:var(--navy); font-weight:800; }
.brand .word span{ color:var(--teal); font-weight:800; }

.nav-links{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.nav-links a{
  text-decoration:none; font-size:14px; font-weight:600; color:var(--muted);
  padding:8px 14px; border-radius:999px; transition:background .15s,color .15s;
}
.nav-links a:hover{ background:var(--surface2); color:var(--text); }
.nav-links a.active{ background:var(--tealSoft); color:var(--teal); }

/* ---------- Footer ---------- */
.site-footer{
  border-top:1px solid var(--border); margin-top:48px; align-items:center;
}
.site-footer .container{
  padding:26px 24px 40px; display:flex; flex-wrap:wrap; gap:12px;
  align-items:center; justify-content:center; color:var(--muted); font-size:13px;
}

.site-footer .double-container{
  padding:26px 24px 40px; display:flex; flex-wrap:wrap; gap:12px;
  align-items:center; justify-content:space-between; color:var(--muted); font-size:13px;
}
.site-footer a{ color:var(--muted); text-decoration:none; }
.site-footer a:hover{ color:var(--teal); }
.foot-links{ display:flex; gap:16px; flex-wrap:wrap; }

/* ---------- Generic building blocks ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700;
  letter-spacing:.04em; text-transform:uppercase; color:var(--teal);
  background:var(--tealSoft); border-radius:999px; padding:6px 12px; margin-bottom:14px;
}
.section{ padding:56px 0; }
.section-head{ margin-bottom:32px; }
.section-head h2{ font-size:28px; letter-spacing:-.02em; margin:0 0 10px; }
.section-head p{ color:var(--muted); margin:0; font-size:15.5px; }

.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:22px;
}

.btn{
  display:inline-flex; align-items:center; gap:8px; font-weight:650; font-size:14.5px;
  text-decoration:none; padding:11px 18px; border-radius:999px; border:1px solid transparent;
  transition:transform .12s, box-shadow .12s, background .15s;
}
.btn-primary{ background:linear-gradient(135deg, var(--navy), var(--teal)); color:#fff; }
.btn-primary:hover{ transform:translateY(-1px); box-shadow:0 8px 18px rgba(10,47,82,.25); }
.btn-ghost{ background:var(--surface); border-color:var(--border); color:var(--text); }
.btn-ghost:hover{ background:var(--surface2); }

.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.grid-5{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
@media (max-width:900px){
  .grid-3{ grid-template-columns:1fr 1fr; }
  .grid-5{ grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .grid-2, .grid-3, .grid-5{ grid-template-columns:1fr; }
  .site-nav{ flex-direction:row; padding:12px 16px; }
  .nav-links a{ padding:7px 10px; font-size:13px; }
  .brand .word{ display:none; }
  .container{ padding:0 16px; }
  .site-footer .container, .site-footer .double-container{ padding:22px 16px 32px; }
}

.icon-tile{
  width:42px; height:42px; border-radius:11px; display:grid; place-items:center;
  background:var(--navySoft); flex:0 0 auto;
}
.icon-tile svg{ width:22px; height:22px; color:var(--navy); }
.icon-tile.teal{ background:var(--tealSoft); }
.icon-tile.teal svg{ color:var(--teal); }
