/* Fishing Regulations styles v1.4 — 2026-04-11 */
/* ============================================================
   FISHING REGULATIONS — REDESIGNED STYLESHEET
   Aesthetic: Deep-ocean editorial / natural luxury
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

/* Fonts — with display=swap so page renders immediately using system fonts
   while custom fonts load. If Google Fonts is blocked, system fonts are used. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --navy:      #0d2033;
  --ocean:     #0f3d5c;
  --teal:      #1a6b6b;
  --seafoam:   #3eb5a0;
  --sand:      #f0e8d8;
  --cream:     #faf7f2;
  --amber:     #c8873a;
  --text:      #1a2430;
  --muted:     #6b7f8e;
  --border:    rgba(15,61,92,0.12);
  --shadow-sm: 0 2px 8px rgba(13,32,51,0.08);
  --shadow-md: 0 8px 32px rgba(13,32,51,0.12);
  --shadow-lg: 0 20px 60px rgba(13,32,51,0.18);
  --radius:    6px;
  --radius-lg: 12px;
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;  /* prevent any element from causing horizontal scroll */
  max-width: 100vw;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--seafoam); }

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

/* ── Typography ───────────────────────────────────────── */
.display-font {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  line-height: 1.15;
  color: var(--navy);
}

/* ── Header / Masthead ────────────────────────────────── */
#site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: #DDEEF4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}

.logo-text span {
  color: var(--seafoam);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-link.active {
  color: var(--seafoam);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  border-radius: 4px;
  transition: all 0.15s;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: #fff;
  background: rgba(62,181,160,0.2);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Hero Banner ──────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--ocean) 50%, var(--teal) 100%);
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(62,181,160,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200,135,58,0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--seafoam);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: italic;
  color: var(--seafoam);
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  font-weight: 300;
}

/* Search bar */
.search-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.search-input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  background: rgba(255,255,255,0.97);
  color: var(--text);
  outline: none;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-btn {
  background: var(--seafoam);
  border: none;
  padding: 16px 24px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.search-btn:hover {
  background: var(--teal);
}

/* ── Category Cards (homepage) ───────────────────────── */
.category-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 36px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.category-card:hover .category-card-bg {
  transform: scale(1.04);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,32,51,0.88) 0%, rgba(13,32,51,0.2) 60%, transparent 100%);
}

.category-card-body {
  position: relative;
  padding: 24px;
  color: #fff;
}

.category-card-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--seafoam);
  margin-bottom: 6px;
}

.category-card-title {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.category-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.category-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--seafoam);
}

/* ── Page Layout (inner pages) ────────────────────────── */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Page header for listing/search pages */
.page-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--ocean) 100%);
  padding: 40px 24px;
  margin-bottom: 0;
}

.page-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-banner h1 {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: #fff;
}

.page-banner p {
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  font-size: 15px;
}

/* ── Fish List ─────────────────────────────────────────── */
.fish-list-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* Grouping label */
.group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--muted);
  padding: 20px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

/* Fish card (list view) */
.fish-card {
  display: grid;
  grid-template-columns: 1fr auto 100px;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.fish-card:hover {
  background: rgba(62,181,160,0.04);
}

.fish-card-info {}

.fish-card-name {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

.fish-card-name:hover {
  color: var(--teal);
}

.fish-card-sci {
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

.fish-card-type {
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  background: rgba(30,107,107,0.1);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.fish-card-img {
  width: 100px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius);
  background: #f5f3ef;
}

.fish-card-img-placeholder {
  width: 100px;
  height: 64px;
  background: #f0ece5;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 20px;
}

/* ── Fish Detail Page ─────────────────────────────────── */
.detail-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  box-sizing: border-box;
  width: 100%;
}

.detail-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-breadcrumb a {
  color: var(--muted);
}

.detail-breadcrumb a:hover { color: var(--teal); }

.detail-breadcrumb span { color: #ccc; }

.detail-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.detail-card-header {
  background: linear-gradient(120deg, var(--navy), var(--ocean));
  padding: 32px 40px;
}

.detail-card-header h1 {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  color: #fff;
  margin-bottom: 6px;
}

.detail-card-header .sci-name {
  font-style: italic;
  font-size: 18px;
  color: rgba(255,255,255,0.6);
}

.detail-card-body {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Info column */
.detail-info {}

.info-row {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:first-child { padding-top: 0; }
.info-row:last-child { border-bottom: none; }

.info-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 4px;
}

.info-value {
  font-size: 16px;
  color: var(--text);
  font-weight: 400;
}

.info-value.highlight {
  font-size: 18px;
  font-weight: 600;
  color: var(--teal);
}

.info-value.italic {
  font-style: italic;
}

/* Badge */
.water-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.water-badge.freshwater {
  background: rgba(30,107,107,0.12);
  color: var(--teal);
}

.water-badge.saltwater {
  background: rgba(15,61,92,0.12);
  color: var(--ocean);
}

.water-badge.anadromous {
  background: rgba(200,135,58,0.12);
  color: var(--amber);
}

/* Image column */
.detail-image-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-fish-img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.detail-img-credit {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* Taxonomy section */
.taxonomy-section {
  padding: 28px 40px;
  background: #faf7f2;
  border-top: 1px solid var(--border);
}

.taxonomy-section h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.taxonomy-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

.taxonomy-item {
  display: flex;
  align-items: center;
  font-style: italic;
  font-size: 14px;
  color: var(--text);
}

.taxonomy-item::after {
  content: '›';
  margin: 0 8px;
  color: var(--muted);
  font-style: normal;
}

.taxonomy-item:last-child::after { display: none; }

/* Also known as */
.aka-section {
  padding: 0 40px 28px;
}

.aka-section .info-label {
  margin-bottom: 8px;
}

.aka-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aka-tag {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--text);
}

/* ── Search Results Page ──────────────────────────────── */
.search-results-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
}

.search-results-header h2 {
  font-size: 28px;
  font-weight: 300;
}

.results-count {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Empty / Error States ─────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
  font-size: 15px;
}

/* ── Footer ───────────────────────────────────────────── */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
}

#site-footer a {
  color: rgba(255,255,255,0.5);
}

#site-footer a:hover {
  color: var(--seafoam);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.footer-logo span { color: var(--seafoam); }

/* ── Utilities ────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.open { display: flex; }

  .nav-dropdown { width: 100%; }

  .nav-dropdown-toggle { justify-content: center; }

  /* Force-hide desktop mega-menu on mobile */
  .mega-dropdown:hover .mega-menu,
  .mega-dropdown.open .mega-menu {
    display: none;
  }

  /* Mobile accordion */
  .mobile-cat-menu {
    display: none;
    width: 100%;
  }
  #cat-dropdown.open .mobile-cat-menu { display: block; }

  .mobile-cat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .mobile-cat-header:hover { color: #fff; }
  .mobile-cat-header::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s;
  }
  .mobile-cat-section.open .mobile-cat-header::after {
    transform: rotate(180deg);
  }

  .mobile-cat-links {
    display: none;
    padding: 4px 0 8px;
  }
  .mobile-cat-section.open .mobile-cat-links { display: block; }

  .mobile-cat-links a {
    display: block;
    text-align: center;
    padding: 8px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    transition: color 0.15s;
  }
  .mobile-cat-links a:hover { color: #fff; }
  .mobile-cat-links a.view-all {
    color: var(--seafoam);
    font-weight: 500;
    margin-top: 4px;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    background: transparent;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu { display: block; }

  .fish-card {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .fish-card-img, .fish-card-img-placeholder {
    grid-row: 1 / 3;
    grid-column: 2;
    width: 72px;
    height: 48px;
  }

  .fish-card-type {
    grid-row: 2;
    grid-column: 1;
    align-self: start;
  }

  .detail-card-body {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }

  .detail-card-header { padding: 24px; }
  .taxonomy-section { padding: 20px 24px; }
  .aka-section { padding: 0 24px 20px; }
}

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.5s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ── Blue Water Background ────────────────────────────────
   Replaces the cream/sand background with a deep ocean
   gradient so transparent fish images float on water       */

body {
  background:
    radial-gradient(ellipse at 20% 40%, rgba(15,80,120,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(10,50,90,0.3) 0%, transparent 55%),
    linear-gradient(170deg,
      #0a2a45 0%,
      #0d3d63 20%,
      #0f4f7a 40%,
      #0d4570 60%,
      #092d50 80%,
      #071e38 100%
    );
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Keep page content areas white/light so text stays readable */
.detail-card,
.fish-list-container > *,
.category-section {
  position: relative;
  z-index: 1;
}

/* The main content container gets a translucent white overlay
   so fish cards and list rows remain readable against the water BG */
.fish-list-container {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
}

/* Fish list rows — slightly frosted so they pop against water */
.fish-card {
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius);
  padding: 16px 14px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--border);
}

/* Detail page wrapper — ensure contrast */
.detail-wrapper {
  position: relative;
  z-index: 1;
}

/* Breadcrumb legibility on dark water bg */
.detail-breadcrumb,
.detail-breadcrumb a {
  color: rgba(255,255,255,0.65);
}
.detail-breadcrumb a:hover { color: var(--seafoam); }
.detail-breadcrumb span   { color: rgba(255,255,255,0.3); }

/* Fish image column — transparent images now float on water */
.detail-image-col {
  background: transparent;
}

.detail-fish-img {
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45));
}

/* No-image placeholder */
.detail-no-image {
  text-align: center;
  font-size: 72px;
  padding: 40px;
  opacity: 0.35;
}

/* ── Description / Angler's Guide Section ─────────────── */
.description-section {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  background: #fff;
  clear: both;
  width: 100%;
  box-sizing: border-box;
}

.description-heading {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--seafoam);
}

.desc-icon {
  font-size: 20px;
}

.description-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  max-width: 100%;
}

/* Each section paragraph */
.description-body p {
  margin: 0 0 16px 0;
  padding-left: 0;
}

.description-body p:last-child {
  margin-bottom: 0;
}

/* The strong tag IS the section label — force it onto its own line
   above the paragraph text, styled as a small-caps heading */
.description-body p strong:first-child {
  display: block !important;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal);
  margin-bottom: 4px;
  margin-top: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.description-body p:first-child strong:first-child {
  margin-top: 0;
}

/* Any standalone strong not in a p */
.description-body strong {
  display: block !important;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal);
  margin-bottom: 4px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Hero stays dark, readable */
.hero {
  position: relative;
  z-index: 1;
}

/* Page banner inherits from header gradient — keep it */
.page-banner {
  position: relative;
  z-index: 1;
}

/* Category cards float nicely on water bg */
.category-section {
  padding: 64px 24px;
}

/* Footer on water bg */
#site-footer {
  position: relative;
  z-index: 1;
  background: rgba(5,15,28,0.85);
  backdrop-filter: blur(8px);
}

/* ── Responsive description ───────────────────────────── */
/* ── Mobile fixes — nothing bleeds to screen edge ─────── */
@media (max-width: 768px) {

  /* Wrapper: tight side padding, full width */
  .detail-wrapper {
    padding: 12px 10px 40px;
    width: 100%;
    overflow-x: hidden;
  }

  /* Card itself: no side margin, but constrained */
  .detail-card {
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
  }

  /* All card sections get the same 16px side padding */
  .detail-card-header {
    padding: 20px 16px;
  }

  .detail-card-body {
    display: block;          /* stack image below info, not side by side */
    padding: 16px;
  }

  .detail-info {
    margin-bottom: 20px;
  }

  .detail-image-col {
    text-align: center;
  }

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

  .aka-section {
    padding: 0 16px 16px;
  }

  .description-section {
    padding: 20px 16px;
  }

  .description-body {
    columns: 1;
    font-size: 14px;
  }

  .taxonomy-section {
    padding: 20px 16px;
  }

  .taxonomy-chain {
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Nav links — don't overflow */
  .header-inner {
    padding: 0 12px;
  }

  /* Page banner */
  .page-banner {
    padding: 28px 16px;
  }

  .page-banner h1 {
    font-size: 28px;
  }

  /* Fish list */
  .fish-list-container {
    padding: 20px 12px 40px;
  }

  /* Hero */
  .hero {
    padding: 48px 16px 56px;
  }

  .search-form {
    max-width: 100%;
  }

  /* Category grid — single column */
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Breadcrumb */
  .detail-breadcrumb {
    font-size: 12px;
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .detail-card-header h1 {
    font-size: 28px;
  }
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 28px 24px;
}
.stats-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
}
.stat-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--seafoam);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .stat-item { padding: 0 20px; }
  .stat-number { font-size: 1.6rem; }
}

/* ── Hero CTA buttons ─────────────────────────────────────── */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn-primary {
  background: var(--seafoam);
  color: #fff;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255,255,255,0.10);
  color: #fff;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-1px);
}

/* ══ SPECIES CARDS ══════════════════════════════════════════ */
.species-section {
  padding: 80px 24px;
  background: var(--cream);
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: -16px;
  margin-bottom: 48px;
}
.species-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 0;
}
@media (max-width: 1024px) { .species-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .species-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px)  { .species-grid { grid-template-columns: 1fr; } }

.species-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--text);
  text-decoration: none;
}
.species-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.species-card-img-wrap {
  background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f0 100%);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.species-card-img-wrap img {
  max-width: 100%;
  max-height: 128px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.species-card:hover .species-card-img-wrap img {
  transform: scale(1.05);
}
.species-card-img-fallback {
  font-size: 3rem;
  opacity: 0.4;
}
.species-card-body {
  padding: 16px 18px 12px;
  flex: 1;
}
.species-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.badge-fresh {
  background: rgba(45, 106, 79, 0.10);
  color: #2d6a4f;
}
.badge-salt {
  background: rgba(15, 61, 92, 0.10);
  color: #0f3d5c;
}
.species-card-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.2;
}
.species-card-sci {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.species-card-type {
  font-size: 0.78rem;
  color: var(--muted);
}
.species-card-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.species-card:hover .species-card-footer { gap: 10px; }

/* ══ HERO WITH SPECIES CARDS ════════════════════════════════ */
.hero-cards {
  padding: 60px 24px 48px;
  height: auto;
  min-height: unset;
  display: block;
}
.hero-top {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.hero-species-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
}
@media (max-width: 1100px) { .hero-species-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px)  { .hero-species-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 500px)  { .hero-species-grid { grid-template-columns: repeat(2, 1fr); } }

/* Cards inside hero get a slightly glassy look on the dark bg */
.hero-cards .species-card {
  background: rgba(255,255,255,0.92);
}
.hero-cards .species-card:hover {
  background: #fff;
}
.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ══ BUG FIXES ══════════════════════════════════════════════ */

/* Fix 1: Hero section blocking card clicks */
.hero-cards {
  pointer-events: none;  /* hero background doesn't intercept clicks */
}
.hero-cards .hero-top,
.hero-cards .hero-species-grid,
.hero-cards .hero-cta-row {
  pointer-events: auto;  /* but children still work */
}
.hero-cards .species-card {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

/* Fix 2: Nav dropdown - use JS-friendly approach, ensure z-index stacks above hero */
#site-header {
  z-index: 200;
}
.mega-dropdown {
  position: relative;
  z-index: 201;
}
.mega-menu {
  display: none;
  z-index: 202;
}
.mobile-cat-menu {
  display: none;
}
@media (min-width: 769px) {
  #cat-dropdown.open .mega-menu {
    display: flex;
  }
}
.nav-dropdown-toggle {
  cursor: pointer;
  user-select: none;
}

/* ── Image Protection ─────────────────────────────────────────────────── */
.species-card-img-wrap img,
.img-protected img {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.species-card-img-wrap {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}
.species-card-img-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    cursor: default;
}

/* ── Disable image drag across entire site ───────────────────────────── */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* ── Prevent anchor/image drag across site ───────────────────────────── */
a.species-card,
a.species-card img,
a.species-card * {
    -webkit-user-drag: none;
    user-drag: none;
    draggable: false;
}

/* ── Hide Browse By column from categories dropdown ─────────────────── */
.mega-col:last-child {
    display: none !important;
}

/* ── Tighten hero section ────────────────────────────────── */
.hero-cards {
  padding: 28px 24px 32px !important;
}
.hero-top {
  margin: 0 auto 28px !important;
}
.hero-top h1 {
  font-size: clamp(26px, 3vw, 38px) !important;
  margin-bottom: 8px !important;
}
.hero-sub {
  font-size: 15px !important;
  margin-top: 0 !important;
}
.hero-eyebrow {
  display: none !important;
}
