/**
 * Landing page component styles — Smart Catering Child
 *
 * Net-new components for page-landing.php:
 *  - .sc-landing-supervision  Icon+text supervision/feature block (ADR-003b)
 *  - .sc-landing-coverage     Geographic coverage section (ADR-003c)
 *
 * SmartCatering design tokens only: --color-gold (#D99E39),
 * --color-gold-ink (#a87410 for AA on light), --color-cream,
 * Merriweather (display) + Overpass (body).
 * Convention: @layer components + body.scc-fase0 unlayered override
 * (specificity 0,2,0) — mirrors button.css / nav.css / bodas.css pattern.
 * Motion: transform + opacity only, ≤300ms, ease-out/in, prefers-reduced-motion guard.
 * A11y: icons aria-hidden; semantics carried by h3/p; list uses <ul>.
 *
 * DO NOT: teal, League Spartan, JetBrains Mono, Hanken Grotesk — those are
 * the Zanovix/OpenPencil agency brand, not this client.
 *
 * @package SmartCateringChild
 * @since   0.4.0
 */

/* ===================================================================== */
/* 1. SUPERVISION / FEATURE BLOCK                                         */
/*    Folio-numbered editorial stacked list (01 · 02 · 03)               */
/*    Asymmetric 2-col on desktop, stacked on mobile.                    */
/*    Icon slot: inline SVG (aria-hidden, currentColor, 28px).           */
/* ===================================================================== */

@layer components {
  .sc-landing-supervision__header {
    margin-bottom: var(--space-10, 2.5rem);
  }

  .sc-landing-supervision__title {
    font-family: var(--font-serif, "Merriweather", serif);
    font-size: var(--fs-3xl, 1.875rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-ink, #1a1a1a);
    margin: 0;
  }

  /* Stacked editorial list — NOT a card grid */
  .sc-landing-supervision__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sc-landing-supervision__item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: var(--space-5, 1.25rem);
    align-items: start;
    padding: var(--space-8, 2rem) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .sc-landing-supervision__item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  /* Folio number (sc-index style) */
  .sc-landing-supervision__folio {
    font-family: var(--font-serif, "Merriweather", serif);
    font-size: var(--fs-sm, 0.875rem);
    font-weight: 400;
    color: var(--color-gold-ink, #a87410); /* AA on white: ~5.8:1 — was gold ~2.3:1 */
    letter-spacing: 0.05em;
    line-height: 1;
    padding-top: 0.35rem; /* optical alignment with h3 */
    white-space: nowrap;
    user-select: none;
  }

  .sc-landing-supervision__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 0.75rem);
  }

  .sc-landing-supervision__item-title {
    font-family: var(--font-serif, "Merriweather", serif);
    font-size: var(--fs-xl, 1.25rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-ink, #1a1a1a);
    margin: 0;
  }

  .sc-landing-supervision__item-body {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(0, 0, 0, 0.72);
    margin: 0;
  }

  /* Tablet+: switch to 2-col asymmetric grid (wider text, narrower folio) */
  @media (min-width: 768px) {
    .sc-landing-supervision__list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
    }

    /* Full-width separator for odd items when grid wraps */
    .sc-landing-supervision__item {
      border-top: 1px solid rgba(0, 0, 0, 0.1);
      border-bottom: none;
    }

    .sc-landing-supervision__item:last-child {
      border-bottom: none;
    }
  }
}

/* Unlayered override (body.scc-fase0 specificity 0,2,0) — wins over @layer */
body.scc-fase0 .sc-landing-supervision {
  /* inherits sc-section--white padding from section.css */
}

body.scc-fase0 .sc-landing-supervision__title {
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--color-ink, #1a1a1a);
}

body.scc-fase0 .sc-landing-supervision__folio {
  color: var(--color-gold-ink, #a87410); /* AA on white: ~5.8:1 */
}

body.scc-fase0 .sc-landing-supervision__item-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

/* [data-reveal] hook — mirrors section.css pattern: opacity:0 initially,
   GSAP sets opacity:1 + translateY(0) on scroll entry via app.js */
body.scc-fase0 .sc-landing-supervision__item[data-reveal] {
  /* section.css already applies [data-reveal] globally; no extra rule needed */
}

/* ===================================================================== */
/* 2. GEOGRAPHIC COVERAGE SECTION                                         */
/*    sc-section--cream; heading + <ul> town pills.                      */
/*    Town list sourced from scc_schema_area_served() in PHP so visual   */
/*    and schema never drift.                                             */
/* ===================================================================== */

@layer components {
  .sc-landing-coverage__header {
    margin-bottom: var(--space-8, 2rem);
    text-align: center;
  }

  .sc-landing-coverage__title {
    font-family: var(--font-serif, "Merriweather", serif);
    font-size: var(--fs-3xl, 1.875rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-ink, #1a1a1a);
    margin: 0 0 var(--space-4, 1rem);
  }

  .sc-landing-coverage__lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.7);
    max-width: 48rem;
    margin: 0 auto;
  }

  .sc-landing-coverage__towns {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3, 0.75rem);
    justify-content: center;
    margin-top: var(--space-8, 2rem);
  }

  .sc-landing-coverage__town {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.125rem;
    border: 1px solid rgba(217, 158, 57, 0.4); /* --color-gold at 40% */
    border-radius: 2rem;
    font-size: var(--fs-sm, 0.875rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-gold-ink, #a87410);
    background: rgba(217, 158, 57, 0.06); /* very subtle gold wash */
    white-space: nowrap;
  }
}

/* Unlayered override */
body.scc-fase0 .sc-landing-coverage {
  /* inherits sc-section--cream padding from section.css */
}

body.scc-fase0 .sc-landing-coverage__title {
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
}

body.scc-fase0 .sc-landing-coverage__town {
  border-color: rgba(217, 158, 57, 0.4);
  color: var(--color-gold-ink, #a87410);
  background: rgba(217, 158, 57, 0.06);
}

body.scc-fase0 .sc-landing-coverage__town:hover {
  background: rgba(217, 158, 57, 0.12);
  border-color: var(--color-gold, #D99E39);
}

/* ===================================================================== */
/* 3. MOTION — prefers-reduced-motion guard                               */
/* ===================================================================== */

@media (prefers-reduced-motion: reduce) {
  .sc-landing-supervision__item,
  .sc-landing-coverage__towns,
  .sc-landing-coverage__town {
    transition: none !important;
    animation: none !important;
  }
}
