/* =============================================================
   index.css — Lytton Studio
   Homepage-specific styles
   Mobile-first · WCAG 2.2 AA
   Created: 26 April 2026
   Updated: 18 July 2026
   ============================================================= */

/* ── Hero section ───────────────────────────────────────────── */
.hero-section {
  padding-bottom: 2.5rem;
}

.hero-eyebrow {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  font-variant: small-caps;
  color: var(--ls-text-muted);
  margin-bottom: 0.75rem;
}

.hero-h1 {
  font-family: "Poppins", "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw + 1rem, 3rem);
  font-weight: 700;
  color: var(--ls-teal);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-h1 em {
  font-style: italic;
  color: var(--ls-forest);
}

.hero-lead {
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.15rem);
  color: var(--ls-text-muted);
  max-width: 70ch;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.hero-lead--secondary {
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.15rem);
  color: var(--ls-text-muted);
  max-width: 65ch;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* ── Pills and CTA spacing ──────────────────────────────────── */
.hero-pills {
  margin-bottom: 1.25rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}


/* ── Homepage hero grid override ────────────────────────────────
   .home-hero-grid wraps ONLY the hero section + Bill quote sidebar.
   On mobile: single column, quote drops below hero.
   On tablet+: 3fr left (hero) + 1fr right (quote).
   On desktop+: 2fr left + 1fr right, quote card sticks to top.
──────────────────────────────────────────────────────────────── */
.home-hero-grid {
  margin-bottom: 0;
}

.home-hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 64rem) {
  .home-hero-sidebar {
    position: sticky;
    top: 5rem;
  }
}


/* ── Full-width section wrapper ─────────────────────────────────
   Sits outside about-grid. Spans the full content column width.
   Provides consistent vertical rhythm between sections.
──────────────────────────────────────────────────────────────── */
.home-fullwidth {
  margin-top: 2rem;
}

.home-fullwidth > section,
.home-fullwidth > div {
  margin-bottom: 1.5rem;
}

.home-fullwidth > section:last-of-type,
.home-fullwidth > div:last-child {
  margin-bottom: 0;
}


/* ── Working Together CTA section ───────────────────────────── */
.cta {
  margin-top: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ls-border);
}


/* =============================================================
   FOUR PILLARS SECTION
   Last updated: 08 May 2026
   ============================================================= */

/* ── Pillars section wrapper ────────────────────────────────── */
.ls-pillars-section {
  margin: 0 0 1.5rem;
  padding: 2.25rem 1.25rem 1.5rem;
  border-top: 1px solid var(--ls-border);
}

/* Heading hugs the grid below it. */
.ls-pillars-heading {
  font-size: clamp(0.72rem, 0.3vw + 0.68rem, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ls-text-muted);
  margin-top: 0;
  margin-bottom: 0.35rem;
}

/* ── Grid — mobile first ────────────────────────────────────── */
.ls-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .ls-pillars-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (min-width: 64rem) {
  .ls-pillars-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* ── Individual pillar card ─────────────────────────────────── */
.ls-pillar-card {
  background: var(--ls-bg);
  border: 1px solid var(--ls-border);
  border-top: 3px solid var(--ls-teal);
  border-radius: var(--ls-radius);
  padding: 1.25rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ls-shadow);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.ls-pillar-card:hover {
  box-shadow: 0 0.75rem 1.75rem rgba(63, 107, 76, 0.14);
  transform: translateY(-2px);
}

/* ── Number ─────────────────────────────────────────────────── */
.ls-pillar-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ls-text-muted);
  margin-top: 0;
  margin-bottom: 0.2rem;
}

/* ── Title ──────────────────────────────────────────────────── */
.ls-pillar-title {
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.1rem);
  font-weight: 600;
  color: var(--ls-teal);
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0.2rem;
}

/* ── Sub-line ───────────────────────────────────────────────── */
.ls-pillar-sub {
  font-size: clamp(0.85rem, 0.3vw + 0.82rem, 0.93rem);
  color: var(--ls-text-muted);
  line-height: 1.55;
  margin-top: 0;
  margin-bottom: 0;
  flex: 1;
}

/* ── Link ───────────────────────────────────────────────────── */
.ls-pillar-link {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ls-teal);
  text-decoration: none;
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ls-border);
  transition: color 0.15s ease;
}

.ls-pillar-link:hover,
.ls-pillar-link:focus {
  color: var(--ls-forest);
  text-decoration: underline;
}

.ls-pillar-link:focus-visible {
  outline: 2px solid var(--ls-teal);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ── Reduced motion ─────────────────────────────────────────────
   Respects user OS preference. Removes card lift animation only.
──────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ls-pillar-card {
    transition: none;
  }
  .ls-pillar-card:hover {
    transform: none;
  }
}


/* ── Fractional panel ───────────────────────────────────────────
   Replaces the old inline style block.
   Teal border, white background, pill buttons below.
──────────────────────────────────────────────────────────────── */
.fractional-panel {
  background: var(--ls-bg);
  border: 2px solid var(--ls-teal);
  border-radius: var(--ls-radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

/* ── Button group — replaces &nbsp; spacer, wraps cleanly on mobile */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}


.fractional-panel__lead {
  font-weight: 600;
  color: var(--ls-teal);
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.1rem);
}
