/* ============================================
   Lake Country Kids — Landing Page Styles
   /META-INF/resources/css/landing.css
   ============================================ */

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

:root {
  --green-dark:   #17252A;
  --green-mid:    #2B7A78;
  --green-light:  #DEF2F1;
  --green-bright: #3AAFA9;
  --green-text:   #17252A;
  --amber-bg:     #fef5e7;
  --amber-text:   #8a5c00;
  --pink-bg:      #fce8f0;
  --pink-text:    #993556;
  --blue-bg:      #e8eef8;
  --blue-text:    #185fa5;
  --text-primary: #17252A;
  --text-muted:   #2B7A78;
  --border:       rgba(23,37,42,0.1);
  --bg-page:      #FEFFFF;
  --bg-card:      #FEFFFF;
  --radius-md:    10px;
  --radius-lg:    14px;
}

main {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
}

.event-desc {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

a { text-decoration: none; color: inherit; }



/* Image banner sits cleanly below */
.family-banner {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.family-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 320px;
  object-fit: cover;
  object-position: center center;
}
.hero-dots {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero p {
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 28px;
}

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* The photo — <img> tag so object-position works reliably at every size */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* desktop: show the full spread */
  z-index: 0;
}
/* Tablet: nudge left to favor the kids over background */
@media (max-width: 900px) {
  .hero-bg-img { object-position: 42% center; }
}
/* Large phone: anchor on the two center LCK-shirt boys (~38% across image) */
@media (max-width: 640px) {
  .hero-bg-img { object-position: 38% center; }
}
/* Small phone: pull a bit more left to show blonde boy + center group */
@media (max-width: 420px) {
  .hero-bg-img { object-position: 32% center; }
}

/* Gradient overlay on top of photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(23,37,42,0.82) 0%,
    rgba(43,122,120,0.76) 60%,
    rgba(58,175,169,0.70) 100%
  );
  z-index: 1;
}

/* Dots + content sit above both layers */
.hero-dots,
.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: calc(56px + 70px) 24px 52px;
}

/* Tall enough that the photo shows well on mobile */
@media (max-width: 640px) {
  .hero { min-height: 540px; }
  .hero-inner { padding: calc(48px + 60px) 20px 44px; }
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-lck-primary {
  background: #FEFFFF;
  color: #17252A;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 28px;
  border: 2px solid #FEFFFF;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero .btn-lck-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  background: #f0fffe;  /* very slight tint so it visibly reacts */
  color: #17252A;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 28px;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.9); }

/* ---- Features ---- */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 24px 40px;
}
.section-intro {
  text-align: center;
  margin-bottom: 28px;
}
.section-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.section-intro p {
  font-size: 14px;
  color: #6b7280;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  display: block;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover {
  border-color: #3AAFA9;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(58,175,169,0.15);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.icon-green { background: #DEF2F1; color: #17252A; }
.icon-amber { background: var(--amber-bg); color: var(--amber-text); }
.icon-pink  { background: var(--pink-bg);  color: var(--pink-text); }
.icon-blue  { background: var(--blue-bg);  color: var(--blue-text); }

.feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.feature-card p {
  font-size: 12px;
  color: #6b7280 !important; /* override --text-muted which is teal */
  line-height: 1.4;
}

/* ---- Events ---- */

.events {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 48px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
}

.see-all {
  font-size: 13px;
  font-weight: 600;
  color: #3AAFA9;
}

.see-all:hover {
  text-decoration: underline;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* =========================================
   EVENT CARD
========================================= */

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

/* TOP SECTION */

.event-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* DATE */

.event-date {
  background: #DEF2F1;
  color: #17252A;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 92px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.event-date .month {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2B7A78;
  line-height: 1;
}

.event-date .day {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin: 4px 0;
}

.event-date .time {
  font-size: 13px;
  font-weight: 600;
  color: #2B7A78;
}

/* MAIN CONTENT */

.event-main {
  flex: 1;
  min-width: 0;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.event-info {
  flex: 1;
  min-width: 0;
}

.event-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.event-meta {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* BADGE */

.event-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.badge-free {
  background: #DEF2F1;
  color: #17252A;
}

.badge-low {
  background: var(--amber-bg);
  color: var(--amber-text);
}

/* DESCRIPTION */

.event-description-area {
  margin-top: 14px;
}

.event-desc-preview,
.event-desc-full {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
}

.event-desc-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-desc-full {
  display: none;
}

.event-card.expanded .event-desc-preview {
  display: none;
}

.event-card.expanded .event-desc-full {
  display: block;
}

/* MORE BUTTON */

.event-more-btn {
  margin-top: 8px;
  background: none;
  border: none;
  padding: 0;

  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);

  cursor: pointer;
}

.event-more-btn:hover {
  opacity: 0.8;
}



/* =========================================
   SMALL MOBILE
========================================= */



@media (max-width: 768px) {

  .event-card {
    display: block;
  }

}

/* ---- Sponsors ---- */
.sponsors {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
}
.sponsors-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.sponsor-tile img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.8;
  transition: opacity 0.2s, filter 0.2s;
}
.sponsor-tile:hover img { opacity: 1; filter: none; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: #17252A;
  padding: 28px 24px;
  margin-top: 0;
}
.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.cta-sub {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}
.btn-cta {
  background: #FEFFFF;
  color: #17252A;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s;
}
.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.btn-cta:hover { transform: translateY(-1px); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .nav-links { display: none; }
  /* hero padding handled by .hero-inner above */
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .event-title { white-space: normal; }
  .cta-inner { flex-direction: column; text-align: center; }
}

/* ---- Landing page overrides to neutralize site_1.css conflicts ---- */

/* Fix secondary button in hero — site_1.css overwrites it */
.hero .btn-secondary {
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.6) !important;
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.9) !important;
  color: #ffffff !important;
}

/* Fix nav-links layout — site_1.css forces inline-flex on 576px+ */
.navbar .nav-links {
  display: none !important;
}
@media screen and (min-width: 576px) {
  .navbar .nav-links {
    display: inline-flex !important;
    align-items: center;
    gap: 0;
  }
}

/* EVENT DATE */

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
}

.event-date .month {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

.event-date .day {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    margin: 0.2rem 0;
}

.event-date .time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.25rem;
}


/* EVENT DESCRIPTION */

.event-description-area {
    margin-top: 0.6rem;
}

.event-desc-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.35rem;
    margin-bottom: 0.4rem;
}

.event-desc-preview,
.event-desc-full {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.event-desc-full {
    display: none;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.event-card.expanded .event-desc-full {
    display: block;
}

.event-card.expanded .event-desc-preview {
    display: none;
}


/* MORE BUTTON */

.event-more-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--green-dark);
}

.event-more-btn:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {

    .event-top {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
    }

    .event-main {
        flex: 1;
        min-width: 0;
    }

    .event-header {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .event-description-area {
        /* handled by the second mobile block below */
        margin-top: 0.6rem;
        width: 100%;
    }

    .event-badge {
        flex-shrink: 0;
    }

}



/* =========================================
   MOBILE
========================================= */
@media (max-width: 768px) {

  .event-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .event-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .event-main {
    flex: 1;
    min-width: 0;
  }

  .event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }

  .event-description-area {
    /* Pull left past the date block (72px min-width + 14px gap) to span full card width */
    margin-left: calc(-72px - 14px);
    width: calc(100% + 72px + 14px);
    margin-top: 0.75rem;
    padding-left: 0;
  }

  .event-desc-preview,
  .event-desc-full {
    width: 100%;
    max-width: 100%;
  }

}