/* css/landing.css — Earby Events Group Public Landing Page (Family-Friendly Light Mode) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ───── Brand Tokens ───── */
:root {
  --earby-green-dark:  #143a22;   /* deep, legible dark green */
  --earby-green-mid:   #2e7d32;   /* main warm green (gentle & calming) */
  --earby-green-soft:  #f2f7f3;   /* soft green tint background */
  --earby-green-light: #81c784;   /* dragon badge light green */
  --earby-orange:      #f57c00;   /* friendly warm orange */
  --earby-yellow:      #fbc02d;   /* warm sunny yellow */
  --earby-brown:       #5d2e17;   /* warm brown from logo text */
  --earby-cream-bg:    #faf8f4;   /* soft warm off-white bg */
  --card-bg:           #ffffff;   /* clean white cards for contrast */
  --card-border:       rgba(46, 125, 50, 0.1);
  --text-main:         #1c2e24;   /* highly legible dark green-charcoal */
  --text-muted:        #4e6659;   /* soft but highly readable body text */
  --section-pad:       5.5rem 2rem;
  --radius-lg:         24px;      /* organic extra-rounded corners */
  --radius-md:         16px;
  --shadow-sm:         0 4px 15px rgba(28, 46, 36, 0.04);
  --shadow-md:         0 10px 30px rgba(46, 125, 50, 0.06);
  --shadow-lg:         0 20px 45px rgba(46, 125, 50, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--earby-cream-bg);
  background-image:
    radial-gradient(circle at top left, rgba(129, 199, 132, 0.18) 0%, transparent 45%),
    radial-gradient(circle at bottom right, rgba(251, 192, 45, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(245, 124, 0, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; border-radius: var(--radius-md); }

a { color: var(--earby-green-mid); text-decoration: none; transition: color 0.2s, text-decoration 0.2s; font-weight: 500; }
a:hover { color: var(--earby-orange); text-decoration: underline; }

/* ───── Utility ───── */
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ───── Buttons ───── */
.btn-earby {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  text-decoration: none !important;
}

.btn-gold {
  background: linear-gradient(135deg, var(--earby-orange) 0%, #ff9800 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 124, 0, 0.45);
  filter: brightness(1.05);
}

.btn-outline-gold {
  background: transparent;
  border: 2px solid var(--earby-orange);
  color: var(--earby-orange);
}
.btn-outline-gold:hover {
  background: rgba(245, 124, 0, 0.08);
  transform: translateY(-3px);
}

.btn-outline-light {
  background: transparent;
  border: 2px solid var(--earby-green-mid);
  color: var(--earby-green-dark);
}
.btn-outline-light:hover {
  background: rgba(46, 125, 50, 0.08);
  transform: translateY(-2px);
}

/* ───── Nav ───── */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.5rem;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(46, 125, 50, 0.08);
  transition: all 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
}
.nav-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.nav-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--earby-green-dark);
  line-height: 1.15;
}
.nav-logo-text span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links-right a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
  text-decoration: none !important;
}
.nav-links-right a:hover { color: var(--earby-green-dark); }

/* ───── Hero Section ───── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-text { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 124, 0, 0.08);
  border: 1px solid rgba(245, 124, 0, 0.2);
  color: var(--earby-orange);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: '★'; font-size: 0.75rem; }

.hero-headline {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--earby-green-dark);
  margin-bottom: 1.5rem;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--earby-green-mid) 0%, var(--earby-orange) 60%, var(--earby-brown) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-main);
  font-weight: 500;
  max-width: 580px;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.hero-sub-2 {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatLogo 6s ease-in-out infinite;
}

.logo-glow-wrap {
  position: relative;
  display: inline-block;
}
.logo-glow-wrap::before {
  content: '';
  position: absolute;
  inset: -25px;
  background: radial-gradient(circle, rgba(129, 199, 132, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
}
.hero-logo {
  width: clamp(240px, 30vw, 360px);
  filter: drop-shadow(0 10px 30px rgba(46, 125, 50, 0.15));
  position: relative;
  z-index: 1;
}

/* ───── Stats Strip ───── */
.stats-strip {
  background: linear-gradient(90deg, var(--earby-green-mid) 0%, var(--earby-green-dark) 100%);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.stat-item { animation: fadeIn 0.6s ease both; }
.stat-number {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--earby-yellow);
  display: block;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ───── About Section ───── */
.about {
  padding: var(--section-pad);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.18);
  color: var(--earby-green-mid);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--earby-green-dark);
  margin-bottom: 0.75rem;
}

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

.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 125, 50, 0.25);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--earby-green-dark);
  margin-bottom: 0.85rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ───── Past Events Gallery ───── */
.gallery-section {
  padding: var(--section-pad);
  background-color: var(--earby-green-soft);
  position: relative;
  border-top: 1px solid rgba(46, 125, 50, 0.06);
  border-bottom: 1px solid rgba(46, 125, 50, 0.06);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.gallery-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s, box-shadow 0.35s;
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.gallery-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}
.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.gallery-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--earby-green-dark);
  margin-bottom: 0.4rem;
}
.gallery-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ───── Events Section ───── */
.events-section {
  padding: var(--section-pad);
  position: relative;
}

.events-grid {
  max-width: 1100px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.event-card-public {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.event-card-public:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 125, 50, 0.25);
}

.event-card-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.event-banner-dragon {
  background: linear-gradient(135deg, var(--earby-green-mid) 0%, var(--earby-yellow) 100%);
}
.event-banner-christmas {
  background: linear-gradient(135deg, #e65100 0%, #ff8f00 50%, var(--earby-yellow) 100%);
}
.event-banner-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.event-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--earby-green-mid);
  margin-bottom: 0.75rem;
}
.event-tag-gold {
  color: var(--earby-orange);
}

.event-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--earby-green-dark);
  margin-bottom: 0.1rem;
}

.event-card-subtitle {
  font-size: 0.95rem;
  color: var(--earby-orange);
  font-weight: 700;
  margin-bottom: 1rem;
}

.event-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.event-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(46, 125, 50, 0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.event-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-main);
}
.event-meta-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: -0.05rem;
}

/* ───── Volunteer / Donate Section ───── */
.community-section {
  padding: var(--section-pad);
  background-color: var(--earby-green-soft);
  position: relative;
  border-top: 1px solid rgba(46, 125, 50, 0.06);
}

.community-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.community-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s;
}
.community-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.community-card-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }
.community-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--earby-green-dark);
  margin-bottom: 1rem;
}
.community-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ───── Footer ───── */
.landing-footer {
  background: #ffffff;
  border-top: 1px solid rgba(46, 125, 50, 0.1);
  padding: 4rem 2rem 2.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(46, 125, 50, 0.08);
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo-row { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo-row img { width: 44px; height: 44px; object-fit: contain; }
.footer-logo-row .footer-brand-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--earby-green-dark);
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--earby-green-mid);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
  font-weight: 500;
}
.footer-col ul li a:hover { color: var(--earby-orange); text-decoration: none; }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-admin-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
}
.footer-admin-link:hover { color: var(--earby-orange); text-decoration: underline; }

/* ───── Animations ───── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: none; }
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.12); opacity: 0.9; }
}

/* ───── Scroll Animations ───── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-text { order: 2; }
  .hero-visual { order: 1; }
  .hero-sub, .hero-sub-2 { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: 1fr; max-width: 500px; margin: 3rem auto 0; }
  .events-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .community-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  .landing-nav { padding: 0.85rem 1.25rem; }
  .hero-headline { font-size: 2.2rem; }
  .stats-inner { justify-content: center; }
  .nav-links-right .hide-mobile { display: none; }
}
