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

:root {
  --navy: #005398;
  --navy-dark: #193C53;
  --navy-deeper: #0a2334;
  --yellow: #FFC810;
  --orange: #EC6625;
  --orange-hover: #c35500;
  --green: #227032;
  --white: #ffffff;
  --cream: #F1E5E2;
  --brown-section: #864E2E;
  --brown-dark: #4a3a2d;
  --tan: #917D6F;
  --gray-section: #E8E8E8;
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: var(--navy-dark);
  border-bottom: 2px solid rgba(245, 197, 24, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-logo .logo-placeholder {
  width: 45px;
  height: 45px;
  background: none;   
  border-radius: 0;       
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;    
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

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

/* ── HERO ── */
.hero {
  padding: 110px 32px 60px;
  text-align: center;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

.hero-sky {
  display: block;
  max-width: 500px;
  width: 80%;
  margin: 0 auto;
  object-fit: contain;
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  color: var(--yellow);
  font-size: 1.2rem;
  animation: twinkle 3s infinite ease-in-out;
}

.star:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { top: 10%; right: 25%; animation-delay: 1s; font-size: 0.8rem; }
.star:nth-child(3) { top: 25%; left: 45%; animation-delay: 0.5s; font-size: 0.9rem; }
.star:nth-child(4) { top: 8%; right: 15%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 30%; left: 12%; animation-delay: 2s; font-size: 0.7rem; }

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-moon {
  width: 100px;
  height: 100px;
  background: var(--yellow);
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
  box-shadow: 0 0 40px rgba(245, 197, 24, 0.4), 0 0 80px rgba(245, 197, 24, 0.15);
}

.hero-moon::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 15px;
  width: 80px;
  height: 80px;
  background: var(--navy);
  border-radius: 50%;
}

.hero-title {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  display: block;
}

.hero::after {
  content: '';
  position: absolute;
/* bottom: -100px;                  */
  left: -5%;
  width: 110%;
  height: 200px;            
  background: var(--navy);
  border-radius: 90% 90% 0 0;
  z-index: 1;
}

/* ── ABOUT SECTION ── */
.about-section {
  padding: 50px 32px 60px;
  text-align: center;
  background: var(--navy);
  max-width: 700px;
  margin: 0 auto;
    position: relative;
  z-index: 2;
}

.about-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.about-header .icon-placeholder {
  width: 100px;
  height: 100px;
  background: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-header .icon-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  font-weight: 700;
}

.about-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

/* ── CATEGORY CIRCLES ── */
.categories {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 50px 32px 70px;
  background: var(--navy);
  flex-wrap: wrap;
}

.category-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 40px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-item:hover { transform: translateY(-4px); }

.category-circle {
  width: 150px;
  height: 150px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  position: relative;
  overflow: visible;          
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.25);
  transition: box-shadow 0.2s;
}

.category-circle span {
  position: absolute;
  bottom: 17px;                  
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.category-circle img {
  width: 105%;
  max-height: 160px;
  object-fit: contain;
}

.category-item:hover .category-circle {
  box-shadow: 0 6px 30px rgba(245, 197, 24, 0.4);
}

.category-label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

/* ── SECTION HEADERS ── */
.section-header {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 30px;
}

/* ── MIFFY MEDIA ── */
.media-section {
  background: var(--green);
  padding: 60px 32px;
}

.media-section .section-header {
  color: var(--yellow);
}

.media-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 170px 170px;
  gap: 14px;
  max-width: 750px;
  margin: 0 auto 30px;
}

.media-item {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  text-decoration: none;
  background-color: rgba(0,0,0,0.2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.2s, box-shadow 0.2s;
}

.media-item.large {
  grid-row: span 2;
}

.media-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.media-item:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.media-thumb-1 {
  background-image: url("../images/home-images/media-feature.jpg");
}

.media-thumb-2 {
  background-image: url("../images/home-images/media-thumb-1.jpg");
}

.media-thumb-3 {
  background-image: url("../images/home-images/media-thumb-2.jpg");
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.88);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.media-item:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255,255,255,1);
}

.play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid var(--navy);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.section-cta {
  text-align: center;
}

@media (max-width: 640px) {
  .media-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 200px 200px 200px;
  }

  .media-item.large {
    grid-row: span 1;
  }
}

/* ── SIGHTINGS CARDS ── */
.sightings-section {
  background: var(--brown-section);
  padding: 70px 32px;
}

.sightings-section .section-header {
  color: var(--yellow);
  margin-bottom: 12px;
}

.sightings-subtext {
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  line-height: 1.7;
}

.sightings-grid {
  max-width: 820px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sighting-card {
  appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sighting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.sighting-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.sighting-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.sighting-card-info {
  padding: 14px 16px 16px;
}

.sighting-card-info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--yellow);
  margin-bottom: 4px;
}

.sighting-card-info p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.4;
}

/* ── MAP MODAL ── */
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}

.map-modal.open {
  display: block;
}

.map-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 35, 52, 0.72);
  backdrop-filter: blur(4px);
}

.map-modal-content {
  position: relative;
  width: min(90vw, 760px);
  margin: 6vh auto 0;
  background: var(--cream);
  color: var(--navy-deeper);
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.map-modal-header {
  padding: 22px 24px 16px;
}

.map-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.map-modal-header p {
  font-size: 0.95rem;
  color: rgba(10, 35, 52, 0.75);
}

.map-modal-frame-wrap {
  width: 100%;
  height: 420px;
}

.map-modal-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.map-modal-close:hover {
  background: var(--orange-hover);
  transform: scale(1.05);
}

@media (max-width: 800px) {
  .sightings-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .sightings-grid {
    grid-template-columns: 1fr;
  }

  .map-modal-content {
    width: min(92vw, 760px);
    margin-top: 4vh;
  }

  .map-modal-frame-wrap {
    height: 300px;
  }
}

/* ── SHOP ── */
.shop-section {
  background: var(--navy);
  padding: 70px 32px;
}

.shop-section .section-header {
  color: var(--yellow);
  margin-bottom: 12px;
}

.shop-subtext {
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto 30px;
}

.shop-card {
  display: block;
  text-decoration: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.18);
}

.shop-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.shop-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.shop-card-info {
  padding: 14px 14px 16px;
}

.shop-card-info h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.15;
  color: var(--yellow);
  margin-bottom: 5px;
}

.shop-card-info p {
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-deeper);
  border-top: 2px solid rgba(245, 197, 24, 0.12);
  padding: 48px 32px 24px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.footer-brand h3,
.footer-links h4,
.footer-note h4 {
  font-family: var(--font-display);
  color: var(--yellow);
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-links h4,
.footer-note h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand p,
.footer-note p,
.footer-links a,
.footer-bottom p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-source {
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
}

.footer-bottom {
  max-width: 1000px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    text-align: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.75rem; }
  .categories { gap: 24px; }
  .category-circle { width: 100px; height: 100px; }
  .media-grid { grid-template-columns: 1fr; }
  .media-item.large { grid-row: span 1; min-height: 200px; }
  .shop-grid { grid-template-columns: 1fr; }
  .sightings-grid { grid-template-columns: 1fr; }
}

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

.hero h1, .about-section, .categories, .media-section, .sightings-section, .shop-section {
  animation: fadeUp 0.6s ease-out both;
}