*, *::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: #d46a1a;
  --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;           /* space for the overflow above */
}

.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;           /* allow image to escape the circle */
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.25);
  transition: box-shadow 0.2s;
}

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

.category-circle img {
    width: 105%;                 /* larger than the circle */
    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%);
}

.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 ── */
.sightings-section {
  background: var(--brown-section);
  padding: 60px 32px;
}

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

.sightings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.sighting-item {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  border: 2px solid rgba(255,255,255,0.08);
}

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

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

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

.shop-item {
  background: var(--white);
  border-radius: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

footer h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--yellow);
  margin-bottom: 16px;
}

footer p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ── 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; }
  .shop-grid { grid-template-columns: repeat(2, 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;
}