/* ------------------------------------------------------------
   Color System — Jungle House Cohesive Palette
------------------------------------------------------------ */

:root {
  /* Backgrounds */
  --bg-page: #3c2858;
  --bg-page-alt: #452b68;
  --card-bg: #f7eee3;
  --card-bg-soft: #fdf7f0;

  /* Text */
  --text-main: #3a2f42;
  --text-muted: #6e6278;
  --text-subtle: #9e93aa;

  /* Brand accents */
  --accent-purple: #4f3472;
  --accent-purple-soft: #7a5ca3;
  --accent-orange: #e28a33;

  /* Greens */
  --accent-green: #4e8b40;
  --accent-green-hover: #3a6b31;
  --accent-green-soft: #dcebd7;

  /* Shadows & borders */
  --shadow-soft: 0 18px 40px rgba(15, 7, 28, 0.35);
  --border-subtle: rgba(44, 36, 53, 0.14);

  /* Backwards compatibility */
  --purple-bg: var(--accent-purple);
  --button-green: var(--accent-green);
  --button-green-hover: var(--accent-green-hover);
  --swatch-purple: var(--accent-purple);
  --swatch-orange: var(--accent-orange);
  --swatch-green: #5ba64a;
}

/* ------------------------------------------------------------
   Base Layout
------------------------------------------------------------ */

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, var(--bg-page-alt), var(--bg-page));
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
}

.page {
  max-width: 1120px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.card {
  background: var(--card-bg);
  border-radius: 26px;
  padding: 2rem 2.5rem 2.25rem;
  box-shadow: var(--shadow-soft);
}

/* ------------------------------------------------------------
   Hero Section (Refined Proportions)
------------------------------------------------------------ */

/* Two-column layout (desktop) */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;                    /* align text to top of image */
  gap: clamp(2.2rem, 4vw, 3rem);             /* responsive gap */
  flex-wrap: nowrap;
  margin-bottom: 3.5rem;
  padding-top: 1.25rem;                      /* reduces top "floatiness" */
}

/* Left column container */
.hero-text {
  flex: 1 1 0;
  min-width: 280px;
  max-width: 540px;                          /* a touch wider for nicer line length */
  padding-top: 0;                            /* align with top of image */
}

/* Logo + title row */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.6rem;                     /* slightly more space under brand row */
}

/* Logo sizing */
.hero-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Title typography */
.hero-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.7rem, 4.4vw, 3.2rem);   /* bigger: stronger hierarchy */
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--text-main);
}

/* Lead paragraph */
.lead {
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
  font-size: 1.32rem;                        /* slightly down so title dominates */
  line-height: 1.48;
  color: var(--text-muted);
  max-width: 38rem;
}

/* Right column: Image block */
.hero-image {
  flex: 0 0 min(400px, 38%);                 /* proportional to viewport width */
  max-width: 440px;
  margin-top: 0.2rem;                        /* fine-tune vertical alignment */
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;                       /* slightly tighter radius for polish */
}

/* ------------------------------------------------------------
   Responsive (Hero)
------------------------------------------------------------ */

@media (max-width: 900px) {
  .hero {
    gap: 2.2rem;
    margin-bottom: 2.5rem;
  }

  .hero-logo {
    width: 52px;
    height: 52px;
  }

  .hero-image {
    flex: 0 0 360px;
    max-width: 380px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 5vw, 2.9rem);
  }
}

@media (max-width: 800px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    padding-top: 0.75rem;
    gap: 1.8rem;
  }

  .hero-image {
    order: -1;                               /* image above text */
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 1.3rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.1rem, 6vw, 2.7rem);
    line-height: 1.08;
  }

  .card {
    padding: 1.7rem 1.5rem 1.9rem;           /* keep your tighter padding on small screens */
  }
}

@media (max-width: 640px) {
  .hero-logo {
    width: 44px;
    height: 44px;
  }

  .hero-brand {
    gap: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .lead {
    font-size: 1rem;
  }
}

/* ------------------------------------------------------------
   Subscribe CTA Section
------------------------------------------------------------ */

.subscribe-cta {
  margin-top: 3.2rem;                        /* tiny bump for clearer separation */
  padding: 2.5rem 2rem;
  background: var(--card-bg-soft);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.subscribe-cta h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.subscribe-tagline {
  margin: 0 auto 1.5rem;
  max-width: 420px;
  font-size: 1rem;
  color: var(--text-muted);
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.subscribe-input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 999px;
  min-width: 260px;
  max-width: 340px;
  flex: 1;
  border: 2px solid rgba(44, 36, 53, 0.22);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.subscribe-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(79, 52, 114, 0.15);
}

.subscribe-submit {
  padding: 0.8rem 1.7rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-green) 0%, #5ea44f 100%);
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 3px rgba(255, 255, 255, 0.4);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.25s ease;
}

.subscribe-submit:hover {
  background: linear-gradient(135deg, var(--accent-green-hover) 0%, #4c813e 100%);
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 4px rgba(255, 255, 255, 0.5);
}

.subscribe-submit:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.subscribe-submit:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(78, 139, 64, 0.35),
    0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ------------------------------------------------------------
   Upcoming Events Section
------------------------------------------------------------ */

.upcoming-events {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.upcoming-events h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin: 0 0 0.4rem;
  color: var(--text-main);
}

.upcoming-tagline {
  margin: 0 0 1.6rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--card-bg-soft);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  align-items: flex-start;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.event-date-badge {
  min-width: 60px;
  text-align: center;
  border-radius: 16px;
  padding: 0.4rem 0.3rem;
  background: var(--accent-purple);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-month {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.event-day {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.event-content {
  flex: 1;
}

.event-title {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--text-main);
}

.event-meta {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.event-description {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.event-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  transition: background 0.12s ease, transform 0.1s ease,
    box-shadow 0.12s ease;
}

.event-link:hover {
  background: var(--accent-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.18);
}

.event-link:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
}

/* ------------------------------------------------------------
   Responsive Tweaks (Events etc.)
------------------------------------------------------------ */

@media (max-width: 640px) {
  .event-card {
    align-items: stretch;
  }

  .event-date-badge {
    min-width: 52px;
  }
}

/* ------------------------------------------------------------
   Welcome Page
------------------------------------------------------------ */

.welcome-cta {
  text-align: center;
  padding: 3rem 2.5rem 2.8rem;
}

.welcome-title {
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  margin: 0 0 1.2rem;
  color: var(--text-main);
}

.welcome-text { font-size: 1rem; }
.welcome-text.subtle { font-size: 0.95rem; }

.welcome-button {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition:
    background 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.15s ease;
}

.welcome-button:hover {
  background: var(--accent-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.2);
}

.welcome-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}


/* Extra mobile polish */
@media (max-width: 600px) {
  body {
    font-size: 17px;              /* make text feel less tiny on phones */
  }

  .page {
    margin: 1.5rem auto;          /* reduce top/bottom whitespace */
    padding: 0 0.75rem;
  }

  .card {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .subscribe-cta {
    padding: 2rem 1.5rem;
  }

  .event-title {
    font-size: 1.1rem;
  }

  .event-description,
  .event-meta {
    font-size: 0.98rem;
  }
}


