/*
 * home.css
 * Page-specific styles for the Funky Jives home page (index.html).
 * Covers: hero, about, and classes sections.
 *
 * Global styles (reset, header, footer, buttons, utilities) live in css/style.css.
 * Mobile-first: base styles for small screens, min-width breakpoints below.
 */


/* =============================================================
   Hero Section
   Full-width gradient banner with headline, description, and CTAs.
   ============================================================= */

/*
 * The gradient acts as a placeholder until a real hero photo is ready.
 * To swap in a real image, add these properties to .hero:
 *   background-image: url('../../images/hero/hero.jpg');
 *   background-size: cover;
 *   background-position: center;
 * and add a semi-transparent overlay if needed for text contrast.
 */
.hero {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  color: var(--color-white);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.hero__title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  line-height: 1.15;
}

.hero__description {
  font-size: var(--font-size-md);
  color: rgba(255, 255, 255, 0.92);
  max-width: 580px;
  margin: 0 auto var(--space-lg);
  line-height: 1.6;
}

/* CTA buttons — stacked vertically on mobile */
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}


/* =============================================================
   About Section
   Introduction to Kat — image placeholder on top, text below.
   ============================================================= */

.about {
  padding: var(--space-xl) 0;
}

/* Stacks vertically on mobile: image first, then text */
.about__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

/*
 * Circular placeholder for Kat's photo.
 * When the real photo is available:
 *   1. Remove the .about__image-placeholder div.
 *   2. Uncomment the <img> tag in the HTML.
 *   3. The .about__image class below will apply to it.
 */
.about__image-placeholder {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);   /* Circle */
  flex-shrink: 0;
}

/* Applied to the real <img> once Kat's photo is available */
.about__image {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

/* Text column — centred on mobile, left-aligned on desktop */
.about__content {
  text-align: center;
}

/* Small coloured pill label above the heading */
.about__label {
  display: inline-block;
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.about__title {
  margin-bottom: var(--space-sm);
}

.about__text {
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-sm);
}

.about__content .btn {
  margin-top: var(--space-xs);
}


/* =============================================================
   Classes Section
   Two-card summary of what Funky Jives offers, with a booking CTA.
   ============================================================= */

/* Alternate background colour to visually separate this section */
.classes {
  background-color: var(--color-bg-alt);
  padding: var(--space-xl) 0;
}

/* Centred heading and subtitle above the card grid */
.classes__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.classes__subtitle {
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

/* Single column on mobile; becomes two columns on tablet (see breakpoint below) */
.classes__grid {
  display: grid;
  gap: var(--space-md);
}

/* Individual class card */
.class-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

/* Large emoji icon at the top of each card */
.class-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

/* Coloured pill tag showing the target age group */
.class-card__tag {
  display: inline-block;
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

.class-card__title {
  margin-bottom: var(--space-xs);
}

.class-card__description {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  flex-grow: 1;   /* Push the detail line and button to the bottom of the card */
}

/* Small detail line showing duration and frequency (e.g. "45 minutes • Weekly") */
.class-card__detail {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

/* CTA button at the bottom of each card */
.class-card .btn {
  align-self: flex-start;
}

/* Booking CTA centred below the card grid */
.classes__footer {
  text-align: center;
  margin-top: var(--space-lg);
}


/* =============================================================
   Tablet — min-width: 600px
   ============================================================= */

@media (min-width: 600px) {

  /* Larger hero heading on tablet */
  .hero__title {
    font-size: var(--font-size-2xl);
  }

  /* CTA buttons side by side */
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  /* Two cards per row on tablet — third card sits centred below */
  .classes__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Centre the third card when it sits alone on the second row */
  .classes__grid .class-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

}


/* =============================================================
   Desktop — min-width: 1024px
   ============================================================= */

@media (min-width: 1024px) {

  /* Full-size hero heading on desktop */
  .hero__title {
    font-size: var(--font-size-3xl);
  }

  /* All three cards in a single row on desktop */
  .classes__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Reset the centring override from the tablet breakpoint */
  .classes__grid .class-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  /* About section: image on the left, text on the right */
  .about__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  /* Larger photo on desktop */
  .about__image-placeholder,
  .about__image {
    width: 280px;
    height: 280px;
  }

  /* Left-align text when it sits beside the image */
  .about__content {
    text-align: left;
  }

}
