/* =========================================================
   AK Marine Trails — site.css
   v1.0 — 2026-01-13
   ========================================================= */

:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #5b5b5b;
  --border: #e6e6e6;
  --card: #f7f7f7;
  --link: #0b57d0;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --radius: 14px;
  --wrap: 1100px;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
}

a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: underline; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row{
  height: 58px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--text);
  text-decoration: none;
}

.nav{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items:center;
}

.nav a{
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover{
  background: var(--card);
  text-decoration: none;
}

.nav a.active{
  background: var(--card);
  font-weight: 700;
}

/* Landing page */
.hero{
  padding: 34px 0 18px;
}

.hero h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 70ch;
  font-size: 1.05rem;
}

.cta-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.cta{
  display:block;
  padding: 16px 16px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}

.cta:hover{
  text-decoration: none;
  transform: translateY(-1px);
}

.cta strong{
  display:block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.cta span{
  display:block;
  color: var(--muted);
  font-size: .95rem;
}

.note{
  margin: 14px 0 26px;
  border-left: 4px solid var(--border);
  padding: 12px 14px;
  background: #fff;
  border-radius: 10px;
}

/* Generic page content */
main.wrap{
  padding-bottom: 24px;
}

h1, h2, h3{
  letter-spacing: -0.2px;
}

.card{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.site-footer{
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding: 18px 0 26px;
  color: var(--muted);
}

/* Simple toolbar (for map page later) */
.toolbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.toolbar input[type="search"]{
  flex: 1 1 auto;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.98rem;
}

.toolbar-right{
  display:flex;
  gap: 10px;
  flex: 0 0 auto;
}

button{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

button:hover{
  background: var(--card);
}

/* Map container */
#map{
  height: calc(100vh - 58px - 24px - 56px);
  min-height: 520px;
  margin: 12px 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 840px){
  .cta-grid{ grid-template-columns: 1fr; }
  .toolbar{ flex-direction: column; align-items: stretch; }
  .toolbar-right{ justify-content: flex-start; }
}
