/* ==========================================================================
   The Angler's Guide — shared stylesheet
   Fishing guides for beginners and weekend anglers.
   Distinct layout: deep teal + bobber red + warm sand + Merriweather serif.
   ========================================================================== */

:root {
  --teal: #0e5a6e;
  --teal-dark: #0a4252;
  --teal-soft: #e0eef1;
  --bobber: #e5484d;
  --bobber-dark: #c33539;
  --sand: #f5edda;
  --sand-soft: #fbf6ea;
  --surface: #ffffff;
  --text: #233136;
  --muted: #6b7a7e;
  --border: #e2dccb;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(35, 49, 54, 0.06), 0 10px 22px rgba(35, 49, 54, 0.08);
  --serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.74;
  color: var(--text);
  background: var(--sand);
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--bobber); }

img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--text); line-height: 1.28; }

.container { width: 100%; max-width: 1020px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--teal-dark);
  border-top: 4px solid var(--bobber);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bobber);
  color: #fff;
  font-size: 1.3rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #fff; }
.brand-sub { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: #b9d5da; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 6px;
  font-size: 1.1rem;
  padding: 6px 12px;
  cursor: pointer;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a {
  padding: 11px 17px;
  color: #d8e9ec;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--bobber); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(170deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: 54px 0 52px;
  text-align: center;
}
.hero h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 4vw, 2.6rem); color: #fff; }
.hero p { margin: 0 auto 24px; max-width: 640px; font-size: 1.08rem; color: #d8e9ec; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--bobber); color: #fff; }
.btn-primary:hover { background: var(--bobber-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 40px 0 8px; }
.section-title { margin: 0 0 6px; font-size: 1.55rem; text-align: center; }
.section-sub { margin: 0 auto 24px; color: var(--muted); text-align: center; max-width: 620px; }

.category-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 6px; }
.category-chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}
.category-chip:hover { border-color: var(--teal); color: var(--teal); }

.category-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 700;
}

/* ---------- Cards with a bobber dot ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bobber);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(35, 49, 54, 0.14); border-top-color: var(--bobber); }
.card .category-tag { align-self: flex-start; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--teal); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; flex-grow: 1; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.86rem; color: var(--muted); margin: 18px 0 4px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }

/* ---------- Article ---------- */
.article-page { max-width: 780px; padding-bottom: 40px; }
.article-content { min-width: 0; }

.article-header { margin: 0 0 22px; }
.article-header .category-tag { margin-bottom: 14px; }
.article-header h1 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.4vw, 2.2rem); }
.article-meta { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; }
.article-lead { font-size: 1.12rem; color: #3c4a4e; margin: 0; }

.article-content h2 { font-size: 1.42rem; margin: 2em 0 0.6em; }
.article-content h3 { font-size: 1.14rem; margin: 1.6em 0 0.5em; }
.article-content p { margin: 0 0 1.15em; }
.article-content ul, .article-content ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.article-content li { margin-bottom: 0.5em; }
.article-content blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--teal);
  background: var(--teal-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--teal-dark);
}

.key-takeaways {
  background: var(--sand-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 26px;
}
.key-takeaways strong { color: var(--teal-dark); display: block; margin-bottom: 8px; font-family: var(--serif); }
.key-takeaways ul { margin: 0; padding-left: 1.2em; }
.key-takeaways li { margin-bottom: 4px; }

.tip-box {
  background: #fdecec;
  border: 1px solid #f8c9cb;
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 1.4em 0;
}
.tip-box strong { color: var(--bobber-dark); }

.faq { margin-top: 40px; }
.faq h2 { margin-bottom: 16px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--teal-dark); }
.faq details p { margin: 10px 0 0; }

.related { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 24px; }
.related h2 { margin: 0 0 14px; font-size: 1.3rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-weight: 600;
}
.related-card:hover { border-color: var(--bobber); color: var(--teal); }

/* ---------- Static pages ---------- */
.page { padding: 40px 0 60px; }
.page .prose { max-width: 760px; }
.page .prose h1 { font-size: clamp(1.8rem, 3.4vw, 2.2rem); margin: 0 0 8px; }
.page .prose h2 { font-size: 1.3rem; margin: 2em 0 0.5em; }
.page .prose p { margin: 0 0 1.1em; }
.page .prose ul, .page .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.page .prose li { margin-bottom: 0.4em; }
.updated-note { font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: 0.98rem; background: var(--surface);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 30px 0;
  background: var(--teal-dark);
  color: #d8e9ec;
  text-align: center;
}
.footer-inner { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
.footer-brand { color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin: 0 0 6px; }
.footer-inner > p { margin: 0 auto 18px; font-size: 0.9rem; color: #a9c6cb; max-width: 560px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 18px; }
.footer-links a { color: #d8e9ec; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.copyright { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.84rem; color: #8fb0b6; }

/* ---------- 404 ---------- */
.notfound { padding: 80px 0 100px; text-align: center; }
.notfound h1 { font-size: 2.8rem; margin: 0 0 10px; }
.notfound p { color: var(--muted); margin: 0 0 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .site-nav { display: none; flex-direction: column; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .card-grid, .related-grid { grid-template-columns: 1fr; }
}
