/* ============================================
   EXOTIC HAVEN - MAIN STYLESHEET
   Premium Wildlife & Exotic Pets
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Lato:wght@300;400;700;900&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
  --green-deep:   #1B4332;
  --green-mid:    #2D6A4F;
  --green-light:  #40916C;
  --black:        #0A0A0A;
  --charcoal:     #111111;
  --charcoal-mid: #1A1A1A;
  --charcoal-light:#242424;
  --gold:         #D4A017;
  --gold-light:   #E8C547;
  --amber:        #FF8C00;
  --amber-light:  #FFA833;
  --white:        #FFFFFF;
  --off-white:    #F5F5F0;
  --text-muted:   #A0A0A0;
  --text-light:   #CCCCCC;
  --border:       rgba(255,255,255,0.08);
  --border-gold:  rgba(212,160,23,0.3);
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.6);
  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --font-head:    'Playfair Display', serif;
  --font-body:    'Lato', sans-serif;
  --transition:   all 0.3s ease;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--charcoal);
  color: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; color: var(--text-light); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}
.gold-text { color: var(--gold); }
.amber-text { color: var(--amber); }
.green-text { color: var(--green-light); }

/* ============ LAYOUT ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-dark { background: var(--charcoal-mid); }
.section-darker { background: var(--black); }

/* ============ HEADER / NAV ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.site-logo img {
  height: 42px;
  width: auto;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.logo-text span { color: var(--gold); }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  border-radius: var(--radius);
  transition: var(--transition);
}
.main-nav > li > a:hover,
.main-nav > li > a.active { color: var(--gold); }

/* Mega Dropdown */
.has-dropdown:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--charcoal-mid);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-lg);
}
.mega-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-light);
}
.mega-menu a:hover { background: var(--border); color: var(--gold); }
.mega-menu a .icon { font-size: 1.1rem; }

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--off-white);
  transition: var(--transition);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--charcoal-mid);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.mobile-nav a:hover { color: var(--gold); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,140,0,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--off-white);
  border: 2px solid var(--border-gold);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,160,23,0.4);
}
.btn-green {
  background: var(--green-mid);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1f14 0%, #0d2818 40%, #111111 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(27,67,50,0.4) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(212,160,23,0.08) 0%, transparent 50%);
}
.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1px at 20% 30%, rgba(212,160,23,0.4) 0%, transparent 100%),
    radial-gradient(circle 1px at 80% 20%, rgba(212,160,23,0.3) 0%, transparent 100%),
    radial-gradient(circle 1px at 60% 70%, rgba(212,160,23,0.2) 0%, transparent 100%),
    radial-gradient(circle 1px at 40% 90%, rgba(64,145,108,0.4) 0%, transparent 100%),
    radial-gradient(circle 1px at 90% 60%, rgba(64,145,108,0.3) 0%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,160,23,0.1);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-item { }
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-image-grid {
  position: absolute;
  right: 0;
  top: 70px;
  bottom: 0;
  width: 45%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  opacity: 0.85;
}
.hero-img-cell {
  overflow: hidden;
  position: relative;
}
.hero-img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-img-cell:hover img { transform: scale(1.05); }
.hero-img-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4));
}
.hero-img-overlay {
  position: absolute;
  left: 0;
  top: 70px;
  bottom: 0;
  width: 48%;
  background: linear-gradient(to right, var(--charcoal) 40%, transparent);
  z-index: 1;
  pointer-events: none;
}

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--green-deep);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.trust-item .icon { font-size: 1.1rem; }
.trust-sep { color: rgba(255,255,255,0.2); font-size: 1.2rem; }

/* ============ CATEGORY CARDS ============ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.category-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem 1.25rem;
}
.category-icon { font-size: 2rem; display: block; margin-bottom: 0.25rem; }
.category-card-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}
.category-card-count {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.category-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-deep), var(--charcoal-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

/* ============ ANIMAL CARDS ============ */
.animals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.animal-card {
  background: var(--charcoal-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.animal-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.animal-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--charcoal-light);
}
.animal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.animal-card:hover .animal-card-img img { transform: scale(1.06); }
.animal-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--green-deep), var(--charcoal-mid));
}
.badge {
  position: absolute;
  top: 0.75rem;
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-left { left: 0.75rem; }
.badge-right { right: 0.75rem; }
.badge-cb { background: var(--green-deep); color: #fff; }
.badge-permit { background: rgba(212,160,23,0.9); color: var(--black); }
.badge-featured { background: var(--amber); color: var(--black); }
.badge-sold { background: rgba(180,0,0,0.85); color: #fff; }
.badge-reserved { background: rgba(100,60,0,0.85); color: #fff; }

.animal-care-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.care-beginner { background: rgba(27,67,50,0.5); color: #74c69d; border: 1px solid rgba(116,198,157,0.3); }
.care-intermediate { background: rgba(120,80,0,0.4); color: #e8c547; border: 1px solid rgba(232,197,71,0.3); }
.care-expert { background: rgba(120,20,20,0.4); color: #ff8c8c; border: 1px solid rgba(255,140,140,0.3); }

.animal-card-body { padding: 1.25rem; }
.animal-card-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.animal-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.animal-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}
.animal-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.animal-card-footer {
  display: flex;
  gap: 0.5rem;
}

/* ============ WHY CHOOSE US ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.why-card {
  background: var(--charcoal-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: var(--transition);
}
.why-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}
.why-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--border-gold);
}
.why-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.why-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ============ BLOG CARDS ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--charcoal-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--charcoal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-cat {
  display: inline-block;
  background: rgba(27,67,50,0.5);
  color: var(--green-light);
  border: 1px solid rgba(64,145,108,0.3);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.blog-card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover .blog-card-title { color: var(--gold); }
.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--charcoal-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--border-gold); }
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
}
.stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--green-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.9rem; color: var(--white); }
.author-location { font-size: 0.78rem; color: var(--text-muted); }

/* ============ NEWSLETTER ============ */
.newsletter-section {
  background: linear-gradient(135deg, var(--green-deep) 0%, #0d2818 100%);
  padding: 4rem 0;
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}
.newsletter-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.newsletter-inner h2 { color: var(--white); margin-bottom: 0.75rem; }
.newsletter-inner p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  color: var(--white);
  font-size: 0.95rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
}

/* ============ FORMS ============ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  background: var(--charcoal-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--off-white);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============ INQUIRY FORM SECTION ============ */
.inquiry-box {
  background: var(--charcoal-mid);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.inquiry-box h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.inquiry-box > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* ============ ANIMAL DETAIL PAGE ============ */
.animal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--charcoal-mid);
  border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.animal-detail-price {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
  margin: 1rem 0;
}
.animal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.spec-item {
  background: var(--charcoal-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}
.spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}
.spec-value {
  font-size: 0.9rem;
  color: var(--off-white);
  font-weight: 700;
}
.live-arrival-banner {
  background: linear-gradient(135deg, var(--green-deep), #0d2818);
  border: 1px solid rgba(64,145,108,0.4);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}
.live-arrival-banner .icon { font-size: 1.5rem; flex-shrink: 0; }
.live-arrival-banner strong { color: var(--white); font-size: 0.85rem; display: block; }
.live-arrival-banner span { color: var(--text-muted); font-size: 0.8rem; }

/* ============ BREADCRUMB ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.4; }
.breadcrumb-current { color: var(--text-light); }

/* ============ PAGE HERO ============ */
.page-hero {
  background: linear-gradient(135deg, #0a1f14 0%, #111111 100%);
  padding: 7rem 0 4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(27,67,50,0.3) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; margin: 0; }

/* ============ FILTER BAR ============ */
.filter-bar {
  background: var(--charcoal-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-bar label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.filter-select {
  background: var(--charcoal-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  color: var(--off-white);
  font-size: 0.85rem;
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--gold); }
.filter-search {
  flex: 1;
  min-width: 200px;
  background: var(--charcoal-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  color: var(--off-white);
  font-size: 0.9rem;
}
.filter-search:focus { outline: none; border-color: var(--gold); }

/* ============ CARE GUIDE SECTIONS ============ */
.care-section {
  background: var(--charcoal-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.care-section h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
}
.care-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.care-item {
  background: var(--charcoal-light);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--green-mid);
}
.care-item strong { color: var(--white); font-size: 0.85rem; display: block; margin-bottom: 0.25rem; }
.care-item span { font-size: 0.82rem; color: var(--text-muted); }

/* ============ LOCATION PAGE ============ */
.location-hero-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.location-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.location-meta-item .icon { color: var(--green-light); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo-text { font-size: 1.5rem; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); max-width: 280px; margin-bottom: 1.5rem; }
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 38px;
  height: 38px;
  background: var(--charcoal-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.social-link:hover {
  background: var(--green-deep);
  border-color: var(--border-gold);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--off-white); padding-left: 4px; }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-legal a:hover { color: var(--off-white); }

/* ============ FLASH MESSAGES ============ */
.flash {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.flash-success {
  background: rgba(27,67,50,0.4);
  border: 1px solid rgba(64,145,108,0.4);
  color: #74c69d;
}
.flash-error {
  background: rgba(180,0,0,0.2);
  border: 1px solid rgba(220,50,50,0.4);
  color: #ff8c8c;
}

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--charcoal-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition);
}
.page-link:hover, .page-link.active {
  background: var(--green-deep);
  border-color: var(--border-gold);
  color: var(--white);
}

/* ============ RELATED ANIMALS ============ */
.related-section { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--border); }

/* ============ SUCCESS / 404 PAGE ============ */
.success-page, .error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.success-icon, .error-icon {
  font-size: 5rem;
  display: block;
  margin-bottom: 1.5rem;
}
.success-page h1 { color: var(--green-light); }
.error-page h1 { color: var(--amber); }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--green-deep);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--green-mid); transform: translateY(-3px); }

/* ============ DIVIDER ============ */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============ LOADING / SPINNER ============ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-image-grid { width: 40%; }
  .hero-img-overlay { width: 43%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .animal-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .hamburger { display: flex; }
  .hero-image-grid, .hero-img-overlay { display: none; }
  .hero-content { max-width: 100%; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .trust-bar-inner { gap: 1rem; }
  .trust-sep { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .animals-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .animals-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .inquiry-box { padding: 1.5rem; }
}
