/* Big Island Pond - Main Stylesheet */

:root {
  --blue-dark:    #003d7a;
  --blue-mid:     #0077cc;
  --blue-light:   #5bb3e8;
  --green-dark:   #0a6b2e;
  --green-mid:    #1a9e4a;
  --sand:         #fdf3e0;
  --gold:         #e08a00;
  --bg:           #f0f5fa;
  --text:         #1a2533;
  --text-light:   #4a5a6a;
  --white:        #ffffff;
  --border:       #c8d8e8;
  --shadow:       0 2px 12px rgba(0,61,122,0.12);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Georgia', serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue-mid); text-decoration: underline; }
h1, h2, h3, h4 { font-family: 'Georgia', serif; font-weight: normal; color: var(--blue-dark); }
h2 { font-size: 1.7rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
ul { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

/* ── Navigation ─────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--blue-dark);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.nav-brand {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  padding: 1rem 0;
  white-space: nowrap;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
}
.nav-links li a {
  display: block;
  color: var(--blue-light);
  padding: 1rem 0.85rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 2rem 1.75rem;
  background: linear-gradient(transparent, rgba(15,50,70,0.72));
  color: var(--white);
}
.hero-overlay h1 {
  color: var(--white);
  font-size: 2.8rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 0.2rem;
}
.hero-overlay p {
  color: var(--blue-light);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin: 0;
}

/* ── Page Banner (interior pages) ───────────── */
.page-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #005599 50%, var(--green-dark) 100%);
  color: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
}
.page-banner h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 0.3rem; }
.page-banner p  { color: var(--blue-light); font-size: 1rem; margin: 0; }

/* ── Main Content ────────────────────────────── */
main { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; }

/* ── Weather Section ─────────────────────────── */
.weather-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue-mid);
  border-radius: 6px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}
.weather-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.weather-section h2::before {
  content: "⛅";
  font-size: 1.4rem;
}
/* ── Weather Card ────────────────────────────── */
.wx-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: sans-serif;
}
.wx-card.wx-loading { opacity: 0.5; }
.wx-main {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.wx-temp-block { display: flex; align-items: baseline; gap: 0.15rem; line-height: 1; }
.wx-temp {
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--blue-dark);
  line-height: 1;
}
.wx-unit  { font-size: 1.6rem; color: var(--blue-mid); }
.wx-feels { font-size: 1rem; color: var(--text-light); align-self: center; }
.wx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.wx-item   { display: flex; flex-direction: column; }
.wx-label  { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); }
.wx-val    { font-size: 1.05rem; font-weight: bold; color: var(--text); }
.wx-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}
.wx-time   { font-size: 0.85rem; color: var(--text-light); }
.wx-wulink { font-size: 0.85rem; }
.wx-unavail { font-style: italic; color: var(--text-light); padding: 0.5rem 0; }
.weather-placeholder {
  background: var(--sand);
  border: 2px dashed var(--gold);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  color: var(--text-light);
  font-style: italic;
}

/* ── Intro / Content Grid ────────────────────── */
.intro-section { margin-bottom: 2.5rem; }
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}
.intro-text p { color: var(--text); }

/* ── Card Grid (home quick-links) ────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(26,95,122,0.15); }
.card-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.card p  { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.card a.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card a.card-link:hover h3 { color: var(--blue-mid); }

/* ── Section Headings ────────────────────────── */
.section-heading {
  border-bottom: 2px solid var(--blue-light);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
  margin-top: 2rem;
}

/* ── Info Box ────────────────────────────────── */
.info-box {
  background: var(--sand);
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.info-box p { margin: 0; font-size: 0.95rem; }

/* ── Two-column content ──────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* ── Links Page ──────────────────────────────── */
.link-group { margin-bottom: 2rem; }
.link-group h3 { border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; margin-bottom: 0.75rem; }
.link-list { list-style: none; padding: 0; }
.link-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: none; }
.link-list a { font-size: 1rem; font-weight: bold; }
.link-list .link-desc { display: block; font-size: 0.875rem; color: var(--text-light); }

/* ── Webcam ──────────────────────────────────── */
.webcam-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.webcam-frame img { width: 100%; display: block; }
.webcam-caption {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  background: var(--sand);
}

/* ── Footer ──────────────────────────────────── */
footer {
  background: var(--blue-dark);
  color: var(--blue-light);
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}
.footer-links a { color: var(--blue-light); font-size: 0.95rem; }
.footer-links a:hover { color: var(--white); }
footer p { font-size: 0.85rem; margin: 0; opacity: 0.7; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; width: 100%; }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 0.75rem 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .navbar { flex-wrap: wrap; padding: 0 1rem; }
  .nav-toggle { display: block; }
  .hero-image { height: 340px; }
  .hero-overlay h1 { font-size: 2rem; }
  .content-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  main { padding: 1.5rem 1rem; }
}
