
/* =========================================
   ECAC HOMEPAGE STYLESHEET
   Ellis County Alumnae Chapter

   Compact Welcome Section
   Single Featured Chapter Event Flyer
   Community Engagement Events

   ========================================= */


/* =========================================
   1. HOMEPAGE VARIABLES & CONTAINER
   ========================================= */

.ecac-home {
  --home-red: #b5121b;
  --home-dark-red: #880c13;
  --home-gold: #d7b56d;
  --home-black: #111111;
  --home-cream: #fbf7f2;

  color: var(--home-black);
}

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

.ecac-home .container {
  width: min(1200px, calc(100% - 36px));
  margin-inline: auto;
}


/* =========================================
   2. CHAPTER MOTTO
   ========================================= */

.ecac-home .home-motto {
  padding: 13px 20px;
  text-align: center;
  color: var(--home-dark-red);
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.5;
  background: #ffffff;
}


/* =========================================
   3. COMPACT WELCOME SECTION
   ========================================= */

.ecac-home .home-welcome {
  padding: 20px 0 30px;
  background: #ffffff;
}

.ecac-home .home-welcome-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.4fr)
    minmax(0, 1.1fr);

  align-items: center;
  gap: 28px;
}


/* CHAPTER LOGO */

.ecac-home .home-logo-area {
  text-align: center;
  min-width: 0;
}

.ecac-home .home-eyebrow {
  color: var(--home-dark-red);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  line-height: 1.5;
}

.ecac-home .home-chapter-logo {
  display: block;
  width: 100%;
  max-width: 245px;
  height: auto;
  margin: 12px auto 0;
  object-fit: contain;
}


/* WELCOME TEXT */

.ecac-home .home-welcome-content {
  text-align: center;
  min-width: 0;
}

.ecac-home .home-welcome-content h1 {
  color: var(--home-dark-red);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
  margin: 0 0 12px;
}

.ecac-home .home-introduction {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

.ecac-home .home-mission {
  color: var(--home-dark-red);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.6;
  letter-spacing: 0.35px;
  margin: 0 0 8px;
}

.ecac-home .home-separator {
  display: block;
  width: 70%;
  max-width: 190px;
  height: auto;
  margin: 8px auto 14px;
}

.ecac-home .home-description {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 auto 20px;
  max-width: 460px;
}


/* WELCOME BUTTONS */

.ecac-home .home-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ecac-home .home-button-row .button {
  font-size: 0.78rem;
  padding: 11px 14px;
  text-decoration: none;
}


/* CHAPTER PHOTOGRAPH */

.ecac-home .home-photo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.ecac-home .home-chapter-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 14px;
}


/* =========================================
   4. UPCOMING EVENTS MAIN SECTION
   ========================================= */

.ecac-home .home-events {
  padding: 38px 0 60px;
  background: var(--home-cream);
  border-top: 3px solid var(--home-gold);
}

.ecac-home .home-events-intro {
  text-align: center;
  margin-bottom: 27px;
}

.ecac-home .home-events-intro h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  color: var(--home-dark-red);
  margin: 5px 0 10px;
}

.ecac-home .home-events-intro > p:last-child {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}


/* =========================================
   5. TWO MAIN EVENT COLUMNS
   ========================================= */

.ecac-home .home-events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  align-items: stretch;
}

.ecac-home .home-event-column {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e8ddd9;
  border-radius: 16px;
  overflow: hidden;

  box-shadow:
    0 7px 25px rgba(17, 17, 17, 0.055);
}


/* EVENT COLUMN HEADERS */

.ecac-home .home-event-column-heading {
  padding: 23px 25px;
  background: var(--home-dark-red);
  color: #ffffff;
}

.ecac-home .home-event-label {
  display: inline-block;
  color: var(--home-gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ecac-home .home-event-column-heading h3 {
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0 0 9px;
}

.ecac-home .home-event-column-heading p {
  color: #ffffff;
  opacity: 0.92;
  font-size: 0.87rem;
  line-height: 1.55;
  margin: 0;
}


/* =========================================
   6. SINGLE CHAPTER EVENT FLYER
   ========================================= */

/* One featured flyer, not two cards */

.ecac-home .home-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: 100%;
  gap: 20px;
  padding: 24px;
}


/* FEATURED FLYER CARD */

.ecac-home .home-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  width: 100%;
  max-width: 420px;
  min-width: 0;

  padding: 22px;

  background: #fbf7f2;
  border: 1px solid #eaded5;
  border-radius: 14px;

  color: var(--home-black);
  text-decoration: none;

  box-shadow:
    0 5px 16px rgba(17, 17, 17, 0.06);
}


/* FLYER IMAGE CONTAINER */

.ecac-home .home-feature-image {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: auto;
  min-height: 250px;

  background: #ffffff;
  padding: 12px;
  margin-bottom: 16px;

  border-radius: 10px;
}


/* FLYER IMAGE */

.ecac-home .home-feature-image img {
  display: block;

  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 340px;

  object-fit: contain;
}


/* FLYER TITLE */

.ecac-home .home-feature-card h4 {
  width: 100%;
  max-width: 350px;

  color: var(--home-dark-red);
  font-size: 1.1rem;
  line-height: 1.35;

  margin: 0 0 10px;
}


/* FLYER DESCRIPTION */

.ecac-home .home-feature-card p {
  width: 100%;
  max-width: 350px;

  font-size: 0.87rem;
  line-height: 1.6;

  margin: 0 0 18px;
}


/* =========================================
   7. VIEW FLYER BUTTON
   ========================================= */

.ecac-home a.home-feature-link {
  display: inline-block;

  margin-top: auto;
  padding: 12px 25px;

  background: var(--home-dark-red);
  color: #ffffff;

  border-radius: 8px;

  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ecac-home a.home-feature-link:hover {
  background: var(--home-red);
  color: #ffffff;

  transform: translateY(-2px);

  box-shadow:
    0 5px 12px rgba(136, 12, 19, 0.2);
}

.ecac-home a.home-feature-link:focus-visible {
  outline: 3px solid var(--home-gold);
  outline-offset: 3px;
}


/* =========================================
   8. COMMUNITY ENGAGEMENT EVENT LIST
   ========================================= */

.ecac-home .home-event-list {
  padding: 18px;
}

.ecac-home .home-event-card {
  display: flex;
  align-items: flex-start;
  gap: 17px;

  padding: 19px 5px;

  border-bottom: 1px solid #eaeaea;
}

.ecac-home .home-event-card:last-child {
  border-bottom: none;
}


/* COMMUNITY EVENT DATE TILES */

.ecac-home .home-event-date {
  flex: 0 0 67px;
  min-height: 72px;

  padding: 10px 5px;

  background: #fff4f3;
  border: 1px solid #edc8c8;
  border-radius: 10px;

  text-align: center;
}

.ecac-home .home-date-month {
  display: block;

  color: var(--home-dark-red);

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ecac-home .home-date-day {
  display: block;

  color: var(--home-black);

  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
}


/* COMMUNITY EVENT DETAILS */

.ecac-home .home-event-details {
  flex: 1;
  min-width: 0;
}

.ecac-home .home-event-details h4 {
  color: var(--home-dark-red);

  font-size: 1.02rem;
  line-height: 1.35;

  margin: 0 0 7px;
}

.ecac-home .home-event-details p {
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0 0 7px;
}

.ecac-home .home-event-location {
  font-weight: 700;
  color: #666666;
}


/* =========================================
   9. TABLET RESPONSIVENESS
   ========================================= */

@media (max-width: 1050px) {

  .ecac-home .home-welcome-grid {
    grid-template-columns:
      minmax(0, 0.85fr)
      minmax(0, 1.15fr);

    gap: 25px;
  }

  .ecac-home .home-photo-area {
    grid-column: 1 / -1;
  }

  .ecac-home .home-chapter-photo {
    max-height: 220px;
  }

  .ecac-home .home-chapter-logo {
    max-width: 210px;
  }

  .ecac-home .home-feature-grid {
    padding: 18px;
  }

  .ecac-home .home-feature-card {
    padding: 16px;
  }

}


/* =========================================
   10. MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 700px) {

  /* MOTTO */

  .ecac-home .home-motto {
    font-size: 0.85rem;
    padding: 12px 16px;
  }


  /* WELCOME SECTION */

  .ecac-home .home-welcome {
    padding: 18px 0 25px;
  }

  .ecac-home .home-welcome-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .ecac-home .home-chapter-logo {
    max-width: 175px;
  }

  .ecac-home .home-welcome-content h1 {
    font-size: 1.65rem;
  }

  .ecac-home .home-photo-area {
    grid-column: auto;
  }

  .ecac-home .home-chapter-photo {
    max-height: none;
  }


  /* EVENT SECTIONS */

  .ecac-home .home-events {
    padding: 30px 0 45px;
  }

  .ecac-home .home-events-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .ecac-home .home-event-column-heading {
    padding: 20px;
  }


  /* FEATURED FLYER */

  .ecac-home .home-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 15px;
  }

  .ecac-home .home-feature-card {
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }

  .ecac-home .home-feature-image {
    min-height: 0;
    height: auto;
    padding: 10px;
  }

  .ecac-home .home-feature-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 320px;
  }


  /* COMMUNITY EVENTS */

  .ecac-home .home-event-list {
    padding: 14px;
  }

  .ecac-home .home-event-card {
    gap: 13px;
  }

  .ecac-home .home-event-date {
    flex-basis: 60px;
  }

}


/* =========================================
   11. REDUCED MOTION ACCESSIBILITY
   ========================================= */

@media (prefers-reduced-motion: reduce) {

  .ecac-home a.home-feature-link {
    transition: none;
  }

  .ecac-home a.home-feature-link:hover {
    transform: none;
  }

}
