/* ==========================================================================
   MaK Reptiles — shared stylesheet
   --------------------------------------------------------------------------
   Design tokens are declared as CSS variables below. If you ever want to
   retheme the site, this is the only place you should need to touch colors.
   ========================================================================== */

:root {
  /* --- Color: pulled from the pricelist's forest palette + banding rust,
         the warm rust/red-orange found on the milk & kingsnakes themselves --- */
  --forest:     #1e4620;  /* deep forest — headers, nav, dark surfaces        */
  --moss:       #2d6a31;  /* working green — buttons, links, primary accent   */
  --moss-dark:  #1f4d22;  /* hover state for moss                             */
  --mist:       #eef2ee;  /* page background — sage mist                      */
  --mint:       #e8f5e9;  /* card / section tint                              */
  --rust:       #a8461f;  /* banding rust — signature accent, used sparingly  */
  --rust-dark:  #863518;
  --ink:        #17241a;  /* body text                                        */
  --ink-soft:   #55665a;  /* secondary / muted text                           */
  --paper:      #ffffff;  /* card surfaces                                    */
  --line:       #cfdccf;  /* hairline borders                                 */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(23, 36, 26, 0.09);
  --shadow-lg: 0 20px 50px rgba(23, 36, 26, 0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--mist);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

:focus-visible {
  outline: 2.5px solid var(--rust);
  outline-offset: 2px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================== BAND MOTIF ==============================
   The signature element: an irregular ring/band pattern lifted straight
   from the animals themselves (kingsnake rings, gecko banding). Used as a
   crisp structural divider between sections, and — very faint — as hero
   texture. Pure CSS, no image assets required.
   ========================================================================== */

.band-divider {
  height: 9px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--forest) 0 30px,
    var(--paper) 30px 36px,
    var(--rust) 36px 50px,
    var(--paper) 50px 56px,
    var(--forest) 56px 92px,
    var(--paper) 92px 98px,
    var(--moss) 98px 122px,
    var(--paper) 122px 128px
  );
}

.band-texture {
  background-image: repeating-linear-gradient(
    115deg,
    rgba(30, 70, 34, 0.05) 0 40px,
    rgba(30, 70, 34, 0) 40px 64px,
    rgba(168, 70, 31, 0.05) 64px 78px,
    rgba(30, 70, 34, 0) 78px 130px
  );
}

/* ============================== NAV ============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--forest);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: #fff;
  letter-spacing: 0.01em;
}
.wordmark span { color: var(--rust); font-style: italic; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: #cfe4cf;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.nav-cta {
  background: var(--rust);
  color: #fff;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--rust-dark); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links { position: fixed; top: 62px; left: 0; right: 0; background: var(--forest); flex-direction: column; align-items: stretch; padding: 10px 14px 16px; gap: 2px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; box-shadow: 0 16px 30px rgba(0,0,0,0.28); border-radius: 0 0 14px 14px; }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { display: block; padding: 14px 16px; font-size: 16px; }
  .nav-toggle {
    display: block; background: none; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 6px;
  }
}

/* ============================== HERO ============================== */

.hero {
  background: var(--forest);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255,255,255,0.035) 0 40px,
    rgba(255,255,255,0) 40px 64px,
    rgba(168,70,31,0.09) 64px 78px,
    rgba(255,255,255,0) 78px 130px
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1120px;
  padding: 84px 24px 92px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb499;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.12;
  font-weight: 600;
  margin: 0 auto 20px;
  max-width: 26ch;
}
.hero p.lead {
  font-size: 17px;
  color: #d9e8da;
  max-width: 56ch;
  margin: 0 auto 34px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================== BUTTONS ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 7px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-moss { background: var(--moss); color: #fff; }
.btn-moss:hover { background: var(--moss-dark); }
.btn-ghost-dark { background: transparent; color: var(--moss); border-color: var(--moss); }
.btn-ghost-dark:hover { background: var(--mint); }

/* ============================== SECTIONS ============================== */

section.block { padding: 76px 0; }
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { color: var(--rust); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); font-size: 15.5px; }

/* Species cards */
.species-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .species-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .species-grid { grid-template-columns: 1fr; } }

.species-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px 22px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--band-color, var(--moss));
  text-align: center;
}
.species-icon { width: 46px; height: 46px; margin: 0 auto 16px; display: block; }
.species-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--forest);
  margin-bottom: 4px;
}
.species-card .latin {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 10px;
  display: block;
}
.species-card p { font-size: 13.5px; color: var(--ink-soft); }

/* How to buy */
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 760px) { .path-grid { grid-template-columns: 1fr; } }

.path-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
.path-card .path-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}
.path-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--forest);
  margin-bottom: 12px;
}
.path-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; }

/* ============================== FOOTER ============================== */

.site-footer {
  background: var(--forest);
  color: #cfe4cf;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 36px;
  text-align: center;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffb499;
  margin-bottom: 14px;
}
.footer-grid p, .footer-grid a { font-size: 14px; color: #cfe4cf; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 12.5px;
  color: #8fae90;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  text-align: center;
}

/* ============================== ANIMALS PAGE ============================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--moss);
  background: var(--paper);
  border: 1.5px solid var(--line);
  padding: 9px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-btn:hover { border-color: var(--moss); }
.filter-btn.active { background: var(--moss); border-color: var(--moss); color: #fff; }

.legend {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 6px 0 40px;
}
.legend b { color: var(--forest); }

.animal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .animal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .animal-grid { grid-template-columns: 1fr; } }

.animal-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.animal-art { height: 150px; position: relative; }
.animal-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.animal-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.animal-name { font-family: var(--font-display); font-size: 16.5px; color: var(--forest); font-weight: 600; line-height: 1.3; }
.animal-morph { font-size: 12.5px; color: var(--ink-soft); font-style: italic; }
.sex-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--moss);
  background: var(--mint);
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}
.animal-meta { font-size: 12.5px; color: var(--ink-soft); }
.animal-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.animal-price { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--forest); }
.status-pill { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border-radius: 100px; }
.status-available { background: #e3f3e4; color: var(--moss-dark); }
.status-reserved { background: #fdf1e2; color: #9a6a1a; }
.status-sold { background: #f1e5e2; color: var(--rust-dark); }
.status-hold { background: #fff3d6; color: #8a6d00; }
.animal-actions { display: flex; gap: 8px; margin-top: 4px; }
.animal-actions .btn { flex: 1; padding: 9px 10px; font-size: 12.5px; justify-content: center; }

.page-hero {
  background: var(--forest);
  color: #fff;
  padding: 56px 0 44px;
  text-align: center;
}
.page-hero h1 { font-family: var(--font-display); font-size: 34px; font-weight: 600; margin-bottom: 12px; }
.page-hero p { color: #d9e8da; max-width: 56ch; margin: 0 auto; font-size: 15px; }

.animals-intro {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.empty-note {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-soft);
  font-size: 14px;
}
