/* ═══════════════════════════════════════════════════════════════
   MEDUSA REPTILE CO. — Main Stylesheet
   Theme: Dark Elegance | Authority | Precision
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --gold:        #c9a84c;
  --gold-light:  #e8c870;
  --gold-dim:    #7a6228;
  --orange:      #d4891a;
  --red:         #b82a1a;
  --red-bright:  #e03020;
  --green:       #2e7040;
  --green-bright:#3fa058;
  --amber:       #c47830;

  --bg:          #070808;
  --bg-card:     #101210;
  --bg-alt:      #0c0e0c;
  --bg-raised:   #161a16;
  --border:      #222820;
  --border-sub:  #1a1c1a;

  --text:        #ddd8cc;
  --text-muted:  #7a7870;
  --text-dim:    #4a4a44;

  --venomous-col: #b82a1a;
  --nonven-col:   #2e7040;
  --lizard-col:   #c47830;

  --nav-h: 68px;
  --radius: 6px;
  --radius-lg: 12px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--gold);
  color: #000;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), transform 0.15s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid #0047AB;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover { background: #0047AB; border-color: #0047AB; color: #fff; transform: translateY(-1px); }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  background: rgba(7, 8, 8, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s;
}
.navbar.scrolled {
  background: rgba(7, 8, 8, 0.96);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-logo img { width: 150px; height: auto; }
.nav-logo-fallback {
  display: none;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-social {
  display: flex;
  gap: 0.5rem;
}
.social-icon {
  color: var(--text-muted);
  padding: 0.35rem;
  border-radius: 50%;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.social-icon:hover { color: var(--gold); }

.btn-wholesale {
  padding: 0.55rem 1.25rem;
  background: transparent;
  border: 1px solid #0047AB;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-wholesale:hover {
  background: #0047AB;
  color: #fff;
  border-color: #0047AB;
}

.btn-member {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #000;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  margin-right: 0.5rem;
}
.btn-member:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #000;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Scale background — SVG tile animation */
.hero-scale-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 60% 40%, rgba(40, 60, 30, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(20, 10, 5, 0.5) 0%, transparent 50%);
  animation: heroShift 12s ease-in-out infinite alternate;
}

@keyframes heroShift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 3% 3%; }
}

/* Snake scale tile pattern — two offset layers create the brick-row effect */
.hero-scale-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='30'%3E%3Cpath d='M 0,30 Q 26,3 52,30' fill='none' stroke='rgba(201,168,76,0.10)' stroke-width='0.8'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='30'%3E%3Cpath d='M 0,30 Q 26,3 52,30' fill='none' stroke='rgba(201,168,76,0.10)' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 52px 30px, 52px 30px;
  background-position: 0 0, 26px 15px;
  opacity: 0.7;
  animation: scalePulse 8s ease-in-out infinite alternate;
}

@keyframes scalePulse {
  0%   { opacity: 0.4; }
  100% { opacity: 0.9; }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 720px;
}

.hero-logo-wrap { margin-bottom: 1.2rem; }
.hero-logo {
  width: 500px;
  height: 500px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(201,168,76,0.35));
}

.hero-tagline {
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero-eyebrow {
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(5px); opacity: 1; }
}

/* ── Section Shared ──────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--gold);
  margin-bottom: 0.6rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--gold-dim);
  margin: 0.5rem auto 0;
}
.section-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}

/* ── Species Section ─────────────────────────────────────────── */
.species-section {
  padding: 6rem 0 5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Category Tabs */
.category-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.cat-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s, transform 0.2s;
  text-align: left;
  overflow: hidden;
}
.cat-tab:hover {
  background: var(--bg-raised);
  transform: translateY(-2px);
}
.cat-tab.active { background: var(--bg-raised); border-color: var(--border-sub); }

.cat-tab[data-cat="venomous"] .cat-bar       { background: var(--venomous-col); }
.cat-tab[data-cat="nonvenomous"] .cat-bar    { background: var(--nonven-col); }
.cat-tab[data-cat="lizards"] .cat-bar        { background: var(--lizard-col); }

.cat-tab[data-cat="venomous"].active         { border-color: var(--venomous-col); }
.cat-tab[data-cat="nonvenomous"].active      { border-color: var(--nonven-col); }
.cat-tab[data-cat="lizards"].active          { border-color: var(--lizard-col); }

.cat-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  transition: opacity 0.25s;
}
.cat-tab.active .cat-bar,
.cat-tab:hover .cat-bar { opacity: 1; }

.cat-glyph {
  font-size: 1.8rem;
  line-height: 1;
  opacity: 0.7;
  flex-shrink: 0;
}
.cat-tab[data-cat="venomous"] .cat-glyph { color: var(--venomous-col); opacity: 1; }
.cat-tab[data-cat="nonvenomous"] .cat-glyph { color: var(--nonven-col); opacity: 1; }
.cat-tab[data-cat="lizards"] .cat-glyph { color: var(--lizard-col); opacity: 1; font-size: 1.5rem; }

.cat-meta { display: flex; flex-direction: column; gap: 0.2rem; }
.cat-label {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}
.cat-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* Species Grid */
.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.species-card {
  position: relative;
  padding: 1.1rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(12px);
  animation: cardIn 0.35s var(--ease-out) forwards;
}
.species-card:hover {
  background: var(--bg-raised);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.species-card.venomous:hover   { border-color: var(--venomous-col); box-shadow: 0 8px 28px rgba(184,42,26,0.25); }
.species-card.nonvenomous:hover{ border-color: var(--nonven-col);   box-shadow: 0 8px 28px rgba(46,112,64,0.25); }
.species-card.lizards:hover    { border-color: var(--lizard-col);   box-shadow: 0 8px 28px rgba(196,120,48,0.25); }

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.card-badge {
  position: absolute;
  top: 0.6rem; right: 0.7rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  margin-bottom: 5px;
}
.species-card.venomous .card-badge    { background: rgba(184,42,26,0.15); color: var(--red-bright); border: 1px solid rgba(184,42,26,0.3); }
.species-card.nonvenomous .card-badge { background: rgba(46,112,64,0.15); color: var(--green-bright); border: 1px solid rgba(46,112,64,0.3); }
.species-card.lizards .card-badge     { background: rgba(196,120,48,0.15); color: var(--amber); border: 1px solid rgba(196,120,48,0.3); }

.card-scientific {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  padding-right: 3.5rem;
  line-height: 1.4;
}
.card-common {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
}

.card-image {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.6rem 0 0.4rem;
  pointer-events: none;
}
.card-image svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.card-hint {
  position: absolute;
  bottom: 0.6rem; right: 0.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
}
.species-card:hover .card-hint { opacity: 1; }

/* ── Species Popup ───────────────────────────────────────────── */
.species-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.species-popup.active {
  opacity: 1;
  pointer-events: all;
}

.popup-card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  animation: popupIn 0.3s var(--ease-out) both;
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.popup-close:hover { color: var(--text); border-color: var(--text-muted); }

.popup-image {
  width: 220px;
  height: 160px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-image svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.popup-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.popup-badge.badge-venomous    { background: rgba(184,42,26,0.15); color: var(--red-bright); border: 1px solid rgba(184,42,26,0.3); }
.popup-badge.badge-nonvenomous { background: rgba(46,112,64,0.15); color: var(--green-bright); border: 1px solid rgba(46,112,64,0.3); }
.popup-badge.badge-lizards     { background: rgba(196,120,48,0.15); color: var(--amber); border: 1px solid rgba(196,120,48,0.3); }

.popup-common {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.popup-scientific {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Content Sections ────────────────────────────────────────── */
.content-section {
  padding: 6rem 0;
  background: var(--bg);
}
.alt-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Two-col layout (Mission) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}
.col-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.col-text p:last-child { margin-bottom: 0; }

.col-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-block { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.stat-lbl {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Ethics Grid */
.ethics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.ethics-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.2s;
}
.ethics-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.ethics-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
}
.ethics-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.ethics-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Steps (Importing) */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
}
.step + .step { border-top: 1px solid var(--border-sub); }

.step-num {
  flex-shrink: 0;
  width: 58px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  position: relative;
  z-index: 1;
}
.step-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  padding-top: 0.9rem;
}
.step-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-sub);
  gap: 2rem;
}
.contact-lbl {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
}
.contact-val {
  font-size: 0.9rem;
  color: var(--text);
  text-align: right;
}
.contact-social-row {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
}
.social-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.social-pill:hover { border-color: var(--gold-dim); color: var(--gold); }

.contact-cta-box {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.contact-cta-box h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.contact-cta-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.legal-note {
  font-size: 0.75rem !important;
  color: var(--text-dim) !important;
  margin-top: 1.2rem !important;
  margin-bottom: 0 !important;
  line-height: 1.6 !important;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.footer-brand { flex: 1; min-width: 180px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 0.75rem; }
.footer-name {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.4rem;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.06em;
}
.footer-links a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.footer-bottom {
  border-top: 1px solid var(--border-sub);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-legal {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.footer-copy {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* ── Signup Modal ────────────────────────────────────────────── */
.signup-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.signup-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.signup-modal {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.modal-close:hover { color: var(--text); border-color: var(--text-muted); }

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
}
.modal-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.req { color: var(--red-bright); }
.form-group input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input::placeholder { color: var(--text-dim); }
.form-group input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-check {
  margin: 1rem 0 1.5rem;
}
.check-label {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.check-box {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-card);
  margin-top: 2px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.check-label input:checked ~ .check-box {
  background: var(--gold);
  border-color: var(--gold);
}
.check-label input:checked ~ .check-box::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
}
.check-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.btn-submit {
  width: 100%;
  padding: 0.85rem;
  background: #0047AB;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: #0055cc; transform: translateY(-1px); }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
.form-success.visible { display: block; }
.success-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(46,112,64,0.15);
  border: 2px solid var(--green);
  color: var(--green-bright);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.form-success h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.form-success p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Floating Button ─────────────────────────────────────────── */
.float-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  background: #0047AB;
  color: #fff;
  border-radius: 40px;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(0,71,171,0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  transform: translateY(0);
}
.float-btn:hover {
  background: #0055cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,71,171,0.55);
}

/* ── Rich Species Popup ──────────────────────────────────────── */
.popup-card--rich {
  max-width: 960px;
  width: 96vw;
  padding: 0;
  max-height: 90vh;
  overflow: hidden;
  text-align: left;
  animation: popupIn 0.3s var(--ease-out) both;
}

.rich-popup {
  display: flex;
  height: 100%;
  max-height: 90vh;
  min-height: 520px;
}

/* Left panel — scrollable info */
.rich-left {
  flex: 0 0 56%;
  padding: 1.8rem 1.6rem 1.8rem 2rem;
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.rich-left::-webkit-scrollbar { width: 4px; }
.rich-left::-webkit-scrollbar-track { background: transparent; }
.rich-left::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Right panel — split: photo top, map bottom */
.rich-right {
  flex: 0 0 44%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  border-left: 1px solid var(--border);
}
.rich-right-top {
  flex: 0 0 50%;
  min-height: 0;
  background: #080e08;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--border);
}
.rich-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
}
.rich-right-bottom {
  flex: 0 0 50%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(4,8,4,0.95);
  border-radius: 0 0 var(--radius-lg) 0;
  overflow: hidden;
}
.rich-right-bottom .map-section-label {
  border-top: none;
  padding-top: 0;
  margin-bottom: 0.5rem;
  text-align: center;
  width: 100%;
}
.rich-right-bottom .th-map-svg {
  width: auto;
  height: 100%;
  max-height: 100%;
  flex: 1 1 auto;
}

/* Headings */
.rich-common {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin: 0.5rem 0 0.25rem;
  line-height: 1.2;
}
.rich-scientific {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  letter-spacing: 0.02em;
}

/* Facts */
.rich-facts { display: flex; flex-direction: column; }

.fact-section-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
  padding: 0.9rem 0 0.4rem;
  border-top: 1px solid var(--border-sub);
  margin-top: 0.3rem;
}

.fact-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.fact-icon {
  font-size: 0.88rem;
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
  margin-top: 0.2rem;
  opacity: 0.85;
}
.fact-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.12rem;
}
.fact-value {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.55;
}

/* Map label (used in right panel) */
.map-section-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-sub);
  margin-bottom: 0.75rem;
}

/* CB species origin note (replaces map for non-Thai natives) */
.origin-note-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  height: 100%;
}
.origin-note-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* Thailand map SVG — fills right-bottom panel */
.th-map-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(7,8,8,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 0.5rem;
    z-index: 99;
  }
  .nav-toggle { display: flex; }

  .two-col { grid-template-columns: 1fr; }
  .col-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .stat-block { flex: 1; min-width: 100px; }

  .ethics-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .category-tabs { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .rich-popup { flex-direction: column; }
  .rich-right { flex: 0 0 200px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); order: -1; }
  .rich-left  { flex: 1 1 auto; max-height: none; }
  .popup-card--rich { max-height: 94vh; overflow-y: auto; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .steps::before { display: none; }
  .float-btn span { display: none; }
  .float-btn { padding: 0.85rem; border-radius: 50%; }
  .nav-social { display: none; }
  .nav-actions .btn-wholesale { display: none; }
  .nav-actions .btn-member { display: none; }
}
