/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-pad);
  /* Above the mobile nav overlay (z-overlay − 1) so the slide-in #nav-links,
     trapped in this fixed element's stacking context, isn't covered by it. */
  z-index: var(--z-overlay);
  transition: box-shadow var(--t-base);
}

#site-nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.3); }

.nav__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  white-space: nowrap;
}

.nav__logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-navy);
  border: 2px solid rgba(255,255,255,0.18);
}

.nav__logo-text { color: var(--color-white); }
.nav__logo-text span { color: var(--color-coral); }

#nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

#nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
  position: relative;
  padding-bottom: var(--sp-1);
}

#nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--color-coral);
  transition: width var(--t-base);
}

#nav-links a:hover,
#nav-links a.active { color: var(--color-white); }
#nav-links a:hover::after,
#nav-links a.active::after { width: 100%; }

/* ── Animated language slider ── */
.lang-slider {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-full);
  padding: 3px;
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}

.lang-slider__track {
  position: relative;
  display: flex;
  align-items: stretch;
}

.lang-slider__indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--color-coral);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 2px 8px rgba(255,107,53,0.4);
}

.lang-slider__indicator.is-animated {
  transition: transform 0.38s cubic-bezier(0.34, 1.4, 0.64, 1),
              width     0.38s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.lang-btn {
  position: relative;
  z-index: 1;
  padding: 5px 9px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  transition: color var(--t-fast);
  cursor: pointer;
  background: none;
  border: none;
  white-space: nowrap;
  user-select: none;
}

.lang-btn:hover:not(.active) { color: rgba(255,255,255,0.85); }
.lang-btn.active              { color: var(--color-white); }

/* Hamburger (mobile only) */
#nav-hamburger {
  display: none;
  color: var(--color-white);
  font-size: var(--fs-xl);
  line-height: 1;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  z-index: calc(var(--z-overlay) + 1);
}

/* Mobile nav overlay */
#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: calc(var(--z-overlay) - 1);
}
#nav-overlay.visible { display: block; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--color-coral);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(255,107,53,0.35);
}
.btn--primary:hover {
  background: #e85d28;
  box-shadow: 0 6px 20px rgba(255,107,53,0.45);
  transform: translateY(-1px);
}

.btn--outline {
  border: 2px solid currentColor;
  color: var(--color-white);
  background: transparent;
}
.btn--outline:hover { background: rgba(255,255,255,0.1); }

.btn--whatsapp {
  background: #25d366;
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.btn--whatsapp:hover {
  background: #1ebe59;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   MENU ITEM CARDS
══════════════════════════════════════ */
.menu-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  transition: background var(--t-fast);
}
.menu-item:hover { background: rgba(255,255,255,0.14); }

.menu-item__icon {
  font-size: 1.75rem;
  margin-bottom: var(--sp-2);
}

.menu-item__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-white);
}

/* ══════════════════════════════════════
   SPECIES CARDS
══════════════════════════════════════ */
.species-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.species-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.species-card__img-wrap {
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d4f6e 0%, #0a7a8f 100%);
}

.species-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.species-card:hover .species-card__img { transform: scale(1.05); }

.species-card__body {
  padding: var(--sp-5);
  flex: 1;
}

.species-card__name {
  font-size: var(--fs-xl);
  color: var(--color-navy);
  margin-bottom: var(--sp-4);
}

.species-card__attrs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.species-attr {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.species-attr__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
}

.species-attr__value {
  font-size: var(--fs-sm);
  color: var(--color-text);
}

/* ══════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════ */
.about__text h2 {
  font-size: var(--fs-3xl);
  color: var(--color-navy);
  margin-bottom: var(--sp-6);
}

.about__text p {
  font-size: var(--fs-lg);
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}

.about__ta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  background: #00af87;
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: background var(--t-fast), transform var(--t-fast);
}
.about__ta-link:hover { background: #009e79; transform: translateY(-1px); }

/* ══════════════════════════════════════
   GALLERY
══════════════════════════════════════ */
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.05);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery-item:hover .gallery-img { transform: scale(1.06); }

/* ══════════════════════════════════════
   CONTACT / HOURS
══════════════════════════════════════ */
.contact__info h2 {
  font-size: var(--fs-3xl);
  color: var(--color-white);
  margin-bottom: var(--sp-6);
}

.contact__detail {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-5);
}

.contact__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
}

.contact__value {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.9);
}

.contact__value a {
  color: rgba(255,255,255,0.9);
  transition: color var(--t-fast);
}
.contact__value a:hover { color: var(--color-coral); }

.hours-table {
  margin-top: var(--sp-6);
}

.hours-table h3 {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  margin-bottom: var(--sp-3);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.8);
}

.hours-row:last-child { border-bottom: none; }
.hours-row--closed .hours-val { color: var(--color-muted); }

.social-links {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  font-size: var(--fs-sm);
  transition: background var(--t-fast), transform var(--t-fast);
}
.social-link:hover { background: var(--color-coral); transform: translateY(-2px); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,0.05);
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: #07121f;
  color: rgba(255,255,255,0.5);
  padding: var(--sp-8) var(--container-pad);
  text-align: center;
  font-size: var(--fs-sm);
}

footer a { color: rgba(255,255,255,0.5); transition: color var(--t-fast); }
footer a:hover { color: var(--color-white); }

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}

.footer__tagline { color: rgba(255,255,255,0.3); font-style: italic; }

/* ══════════════════════════════════════
   WHATSAPP FAB
══════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: #25d366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: var(--z-fab);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 26px rgba(37,211,102,0.55);
}

.whatsapp-fab svg {
  width: 28px; height: 28px;
  fill: var(--color-white);
}

/* ══════════════════════════════════════
   WHOLESALE
══════════════════════════════════════ */
.wholesale__body {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.wholesale__body p {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sp-8);
  line-height: 1.8;
}

.wholesale__stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-12);
  margin-bottom: var(--sp-10);
  flex-wrap: wrap;
}

.wholesale__stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 900;
  color: var(--color-coral);
}
@keyframes stat-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wholesale__stat-num.stat-reveal { animation: stat-reveal 500ms ease both; }
@media (prefers-reduced-motion: reduce) {
  .wholesale__stat-num.stat-reveal { animation: none; }
}

.wholesale__stat-label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
}

/* ══════════════════════════════════════
   DEMO NOTICE
══════════════════════════════════════ */
#board-demo-note {
  display: none;
  background: rgba(255,107,53,0.12);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--color-coral);
  margin-bottom: var(--sp-6);
  text-align: center;
}

.demo-badge {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  background: var(--color-coral);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  z-index: 2;
}

/* Board messages */
.board-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-12);
  color: var(--color-muted);
  font-size: var(--fs-lg);
}

.board-message--error { color: #ef4444; }

/* Board timestamp */
#board-updated-time {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-muted);
  margin-top: var(--sp-2);
}

/* ══════════════════════════════════════
   GALLERY
══════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-4);
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  /* Reserve space before the image loads to avoid layout shift (CLS) */
  aspect-ratio: 4 / 3;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-fast);
}

.gallery-item:hover .gallery-img { transform: scale(1.05); }

/* Clean ampersand inside ornate (Playfair) headings */
.amp { font-family: var(--font-body); font-weight: 600; font-style: normal; }

/* Clickable photos open a lightbox (whole species card is clickable) */
.gallery-img, .species-card { cursor: zoom-in; }

/* ══════════════════════════════════════
   LIGHTBOX (gallery + species photos)
══════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-cart) + 20); /* above the quick-add popup (+10) */
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  background: rgba(0, 0, 0, 0.85);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: var(--fs-xl);
  cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: var(--fs-2xl);
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__nav--prev { left: var(--sp-4); }
.lightbox__nav--next { right: var(--sp-4); }
@media (max-width: 639px) {
  .lightbox__nav { width: 40px; height: 40px; }
}

/* Subscribe note */
.catch-subscribe {
  text-align: center;
  margin-top: var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--color-muted);
}

.catch-subscribe a {
  color: var(--color-teal);
  font-weight: 600;
}

/* Feedback form */
.feedback-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.feedback-form__field {
  width: 100%;
  box-sizing: border-box;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-white);
}
.feedback-form__field:focus { outline: 2px solid var(--color-teal); outline-offset: 1px; }
.feedback-form__textarea { resize: vertical; min-height: 110px; }
.feedback-form__submit { align-self: center; margin-top: var(--sp-1); }
.feedback-form__status {
  text-align: center;
  margin: 0;
  min-height: 1.2em;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-teal);
}
