/* ============================================
   The Serack Family's Epic 4th - Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #B22234;
  --red-dark: #8B1A28;
  --blue: #3C3B6E;
  --blue-light: #4A5899;
  --white: #FFFFFF;
  --cream: #FFF8F0;
  --gold: #FFD700;
  --navy: #1B1B4B;
  --text: #2D2D2D;
  --text-light: #666666;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.2);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(27, 27, 75, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--red);
  transition: all var(--transition);
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
}

.nav-logo {
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 40%, var(--red-dark) 100%);
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 80% 50%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255,215,0,0.4), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(255,215,0,0.3), transparent),
    radial-gradient(1px 1px at 50% 90%, rgba(255,215,0,0.4), transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  font-family: 'Georgia', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 .accent {
  color: var(--gold);
  display: block;
  font-size: 1.15em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  font-style: italic;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 20px;
  border-radius: 50px;
  color: var(--white);
  font-size: 0.95rem;
}

.hero-detail .icon {
  font-size: 1.2rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(178,34,52,0.4);
}

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

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

/* --- Countdown --- */
.countdown-section {
  background: var(--navy);
  padding: 48px 24px;
  text-align: center;
}

.countdown-section h2 {
  color: var(--white);
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  font-family: 'Georgia', serif;
}

.countdown-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-red {
  background: var(--red);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: 'Georgia', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
  color: var(--navy);
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

/* --- Activity Cards (Landing Page) --- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.activity-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-light), var(--navy));
}

.activity-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover .activity-card-img img {
  transform: scale(1.05);
}

.activity-card-img .card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.3;
}

.activity-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-card-body h3 {
  font-family: 'Georgia', serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.activity-card-body p {
  color: var(--text-light);
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap var(--transition);
}

.card-link:hover {
  gap: 12px;
  color: var(--red-dark);
}

/* --- Flyer Section --- */
.flyer-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(180deg, var(--cream) 0%, #EEE8DD 100%);
}

.flyer-wrapper {
  max-width: 550px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 4px solid var(--white);
}

/* --- What to Bring Section --- */
.bring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.bring-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.bring-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.bring-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.bring-card h3 {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.bring-card p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* --- Detail Page Styles --- */
.detail-hero {
  position: relative;
  padding: 160px 24px 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  text-align: center;
  overflow: hidden;
}

.detail-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--cream), transparent);
}

.detail-hero .hero-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
}

.detail-hero h1 {
  font-family: 'Georgia', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 12px;
}

.detail-hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}

.detail-content {
  padding: 60px 0 80px;
}

.detail-content .container {
  max-width: 900px;
}

.detail-block {
  margin-bottom: 48px;
}

.detail-block h2 {
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}

.detail-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.detail-block ul {
  list-style: none;
  padding: 0;
}

.detail-block ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.7;
}

.detail-block ul li::before {
  content: '\2605';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.85rem;
  top: 10px;
}

/* Image gallery on detail pages */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.detail-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #ddd, #eee);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-text {
  color: #999;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  display: block;
  opacity: 0.4;
}

/* --- Highlight Box --- */
.highlight-box {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  margin: 32px 0;
  text-align: center;
}

.highlight-box h3 {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.highlight-box p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
}

/* --- Info Box --- */
.info-box {
  background: var(--white);
  border-left: 4px solid var(--blue);
  padding: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.info-box h4 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.info-box p {
  margin-bottom: 0;
}

/* --- Back Navigation --- */
.back-nav {
  padding: 20px 0;
  margin-bottom: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap var(--transition);
}

.back-link:hover {
  gap: 12px;
  color: var(--red-dark);
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 48px 24px;
  border-top: 4px solid var(--red);
}

.footer h3 {
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.footer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.footer-detail .icon {
  font-size: 1.3rem;
}

.footer-note {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 24px;
}

/* --- Divider --- */
.star-divider {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 12px;
  color: var(--red);
  margin: 40px 0;
  opacity: 0.5;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 16px;
    border-bottom: 3px solid var(--red);
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 24px 60px;
  }

  .hero-details {
    flex-direction: column;
    align-items: center;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .countdown {
    gap: 16px;
  }

  .countdown-number {
    font-size: 2.2rem;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .footer-details {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .bring-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 50px 0;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
