/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --color-sunshine: #F9B234;
  --color-sunshine-light: #FDE8B1;
  --color-sky: #4A90D9;
  --color-sky-light: #D4E6F9;
  --color-meadow: #5EAD56;
  --color-meadow-light: #D4EDCF;
  --color-berry: #E25B45;
  --color-berry-light: #FADADD;
  --color-bark: #5C3D2E;
  --color-cream: #FFF9F0;
  --color-white: #FFFFFF;
  --color-text: #3A3A3A;
  --color-text-light: #6B6B6B;

  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --radius-soft: 16px;
  --radius-round: 50%;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-berry);
}

/* ===== UTILITY ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-bark);
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
}

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

/* ===== DECORATIVE ELEMENTS ===== */
.squiggle {
  display: block;
  width: 80px;
  height: 6px;
  border-radius: 3px;
  margin: 16px auto 24px;
}

.squiggle--sunshine { background: var(--color-sunshine); }
.squiggle--sky { background: var(--color-sky); }
.squiggle--meadow { background: var(--color-meadow); }
.squiggle--berry { background: var(--color-berry); }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 12px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo img {
  height: 56px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-bark);
  line-height: 1.2;
}

.nav__logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-sunshine);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav__links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  background: var(--color-sunshine-light);
  color: var(--color-bark);
}

.nav__cta {
  background: var(--color-sunshine) !important;
  color: var(--color-white) !important;
  font-weight: 600 !important;
  border-radius: 24px !important;
  padding: 10px 24px !important;
}

.nav__cta:hover {
  background: var(--color-berry) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-bark);
  border-radius: 2px;
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--color-sky-light) 0%, var(--color-sunshine-light) 50%, var(--color-meadow-light) 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__logo {
  max-width: 360px;
  margin-bottom: 24px;
}

.hero__text h1 {
  margin-bottom: 20px;
  color: var(--color-bark);
}

.hero__text h1 em {
  color: var(--color-sunshine);
  font-style: normal;
}

.hero__text p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__image {
  position: relative;
}

.hero__image img {
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
}

.hero__image::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 3px dashed var(--color-sunshine);
  border-radius: var(--radius-soft);
  z-index: 0;
}

.hero__image img {
  position: relative;
  z-index: 1;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

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

.btn--primary:hover {
  background: var(--color-berry);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--color-sky);
  border: 2px solid var(--color-sky);
}

.btn--secondary:hover {
  background: var(--color-sky);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ===== FEATURE CARDS ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.feature-card {
  background: var(--color-white);
  padding: 36px 28px;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.feature-card__icon--sunshine { background: var(--color-sunshine-light); }
.feature-card__icon--sky { background: var(--color-sky-light); }
.feature-card__icon--meadow { background: var(--color-meadow-light); }

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== PHOTO GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.gallery__item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}

.gallery__item:hover {
  transform: scale(1.03);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== ABOUT PAGE ===== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro__image {
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.philosophy-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--color-sunshine);
}

.philosophy-card:nth-child(2) { border-left-color: var(--color-sky); }
.philosophy-card:nth-child(3) { border-left-color: var(--color-meadow); }
.philosophy-card:nth-child(4) { border-left-color: var(--color-berry); }

.philosophy-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 40px auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-sunshine-light);
  border-radius: 2px;
}

.timeline__item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}

.timeline__dot {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-round);
  background: var(--color-sunshine);
  border: 3px solid var(--color-cream);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  left: 17px;
  z-index: 1;
}

.timeline__content {
  background: var(--color-white);
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  flex: 1;
}

.timeline__year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-sunshine);
  font-size: 1.1rem;
}

/* ===== ENROLLMENT FORM ===== */
.enrollment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.enrollment-info {
  padding-top: 20px;
}

.enrollment-info ul {
  list-style: none;
  padding: 0;
}

.enrollment-info li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  border-bottom: 1px solid var(--color-sunshine-light);
}

.enrollment-info li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-meadow);
  font-weight: 700;
  font-size: 1.1rem;
}

.form-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-bark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E8E8E8;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition);
  background: var(--color-cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sunshine);
  background: var(--color-white);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.contact-card:hover {
  transform: translateY(-2px);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  background: var(--color-sunshine-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-card__text h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-card__text p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-sunshine) 0%, var(--color-berry) 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--color-white);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

.cta-banner .btn {
  background: var(--color-white);
  color: var(--color-bark);
}

.cta-banner .btn:hover {
  background: var(--color-bark);
  color: var(--color-white);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-bark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand img {
  height: 48px;
  margin-bottom: 16px;
  filter: brightness(10);
}

.footer__brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 300px;
}

.site-footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--color-sunshine);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== PAGE HERO (internal pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--color-sky-light) 0%, var(--color-sunshine-light) 100%);
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--color-cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== CREEK CLUB SECTION ===== */
.creek-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.creek-section__image {
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.creek-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== SCHEDULE TABLE ===== */
.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: 24px;
}

.schedule-table th {
  background: var(--color-sunshine);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 14px 20px;
  text-align: left;
}

.schedule-table td {
  padding: 14px 20px;
  background: var(--color-white);
  border-bottom: 1px solid #F0F0F0;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tr:hover td {
  background: var(--color-sunshine-light);
}

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }

  .hero__content,
  .about-intro,
  .enrollment-grid,
  .contact-grid,
  .creek-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__image::before {
    display: none;
  }
}

@media (max-width: 700px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 4px;
  }

  .nav__links.active {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .section {
    padding: 60px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* ===== DONATE PAGE ===== */
.donate-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 700px) {
  .donate-cards {
    grid-template-columns: 1fr;
  }
}

.donate-card {
  background: var(--color-white);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  padding: 40px 32px;
  text-align: center;
  transition: box-shadow var(--transition);
}

.donate-card:hover {
  box-shadow: var(--shadow-hover);
}

.donate-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.donate-card__qr {
  width: 220px;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 12px;
}

.donate-card__handle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-sky);
  margin-bottom: 12px;
}

.donate-card__payable {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.donate-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-bark);
  margin-bottom: 16px;
}

.donate-card__address {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.6;
}

.donate-card__instruction {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* ===== EDITOR GUIDE PAGE ===== */
.guide {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.guide h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.guide h2 {
  font-size: 1.5rem;
  margin-top: 56px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-sunshine);
}

.guide h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--color-sky);
}

.guide p,
.guide li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.guide ol,
.guide ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.guide img {
  display: block;
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  margin: 20px 0 28px;
}

.guide blockquote {
  background: var(--color-sky-light);
  border-left: 4px solid var(--color-sky);
  border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.guide blockquote p {
  margin: 0;
}

.guide hr {
  border: none;
  border-top: 1px solid var(--color-sunshine-light);
  margin: 40px 0;
}

.guide strong {
  color: var(--color-bark);
}

.guide a {
  color: var(--color-sky);
  text-decoration: underline;
}

.guide-header {
  background: var(--color-cream);
  padding: 40px 24px 0;
  text-align: center;
}

.guide-header p {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-top: 8px;
}

/* ===== PRINT STYLES (guide page) ===== */
@media print {
  .site-header,
  .site-footer,
  .guide-header__download {
    display: none !important;
  }

  .guide {
    padding: 20px;
  }

  .guide img {
    box-shadow: none;
    border: 1px solid #ddd;
    max-width: 100%;
    page-break-inside: avoid;
  }

  .guide h2 {
    page-break-before: auto;
  }
}
