/*
 * The home page (views/index.hbs).
 *
 * These rules lived in a <style media="screen"> block inside the
 * template, re-sent with every page view (cnas#4). They are the same
 * rules, in the same place in the cascade, inside @media screen {}: the
 * template links this sheet where the block used to be.
 */

@media screen {
  /* ─── Hero ─────────────────────────── */
  .home-hero {
      position: relative;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      text-align: center;
      min-height: 85vh;
      background-image:
          url('/assets/imgs/hero-optimized.jpg?v=1');
      background-image:
          image-set(
              url('/assets/imgs/hero-optimized.avif?v=1')
                  type('image/avif'),
              url('/assets/imgs/hero-optimized.jpg?v=1')
                  type('image/jpeg')
          );
      background-size: cover;
      background-position: center;
      padding: 0 5% 5% 5%;
  }

  .home-hero-content {
      position: relative;
      z-index: 2;
      max-width: min(90%, 640px);
      color: var(--color-text);
      /* Solid white card (not a black wall) so the brand reads
         light/airy; opaque enough that the models' shirt logos
         don't show through behind the headline — see
         Docs/ux-audit-2026-07-03/09-homepage-hero-overlay.md */
      background-color: #ffffff;
      border-radius: var(--radius-md);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
      padding: 2.5rem 3rem;
  }

  .home-hero-eyebrow {
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--color-accent-hover);
      margin: 0 0 1rem;
  }

  .home-hero-content h1 {
      font-family: var(--font-heading);
      font-size: 2.4rem;
      font-weight: 300;
      line-height: 1.25;
      letter-spacing: 0.5px;
      margin: 0 0 1rem;
  }

  .home-hero-content p {
      font-size: 1.05rem;
      line-height: 1.6;
      color: var(--color-text-muted);
      margin: 0 auto 2rem auto;
      max-width: 520px;
      font-weight: 400;
      letter-spacing: 0.3px;
  }

  .home-hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
  }

  .home-hero-btn {
      display: inline-block;
      padding: 14px 32px;
      text-decoration: none;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      font-size: 0.82rem;
      font-weight: 600;
      border-radius: var(--radius-sm);
      transition: all 0.25s ease;
  }

  .home-hero-btn-primary {
      background-color: var(--color-accent);
      color: #ffffff !important;
      border: 1.5px solid var(--color-accent);
  }

  .home-hero-btn-primary:hover {
      background-color: var(--color-accent-hover);
      border-color: var(--color-accent-hover);
  }

  .home-hero-btn-secondary {
      background-color: transparent;
      color: var(--color-primary) !important;
      border: 1.5px solid var(--color-primary);
  }

  .home-hero-btn-secondary:hover {
      background-color: var(--color-primary);
      color: #ffffff !important;
  }

  /* ─── System section ──────────────── */
  .home-system {
      padding: 5.5rem 5% 4rem;
      background: var(--color-bg);
      text-align: center;
  }

  .home-section-eyebrow {
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--color-accent-hover);
      margin: 0 0 0.75rem;
  }

  .home-section-title {
      font-family: var(--font-heading);
      font-size: 2rem;
      font-weight: 300;
      letter-spacing: 0.5px;
      color: var(--color-text);
      margin: 0 0 0.75rem;
  }

  .home-section-subtitle {
      font-size: 1rem;
      color: var(--color-text-muted);
      max-width: 620px;
      margin: 0 auto 3rem;
      line-height: 1.6;
  }

  .home-system-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
      max-width: 1300px;
      margin: 0 auto;
      text-align: left;
  }

  .home-system-step {
      position: relative;
      background: var(--color-bg-muted);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      padding: 2.25rem 1.75rem;
      display: flex;
      flex-direction: column;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .home-system-step:hover {
      transform: translateY(-4px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
  }

  .home-system-step-icon {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--color-accent-soft);
      color: var(--color-accent);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      margin-bottom: 1.25rem;
  }

  .home-system-step-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--color-accent-hover);
      margin-bottom: 0.4rem;
  }

  .home-system-step h3 {
      font-family: var(--font-heading);
      font-size: 1.25rem;
      font-weight: 500;
      margin: 0 0 0.6rem;
      color: var(--color-text);
  }

  .home-system-step p {
      font-size: 0.92rem;
      line-height: 1.55;
      color: var(--color-text-muted);
      margin: 0 0 1.25rem;
      flex-grow: 1;
  }

  .home-system-step a {
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: var(--color-primary);
      text-decoration: none;
      border-bottom: 1.5px solid var(--color-accent);
      padding-bottom: 2px;
      align-self: flex-start;
  }

  .home-system-step a:hover {
      color: var(--color-accent-hover);
  }

  /* ─── Stats bar ────────────────────── */
  .home-stats {
      background: #faf9f6;
      border-top: 1px solid #ececec;
      border-bottom: 1px solid #ececec;
      padding: 3rem 5%;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
      text-align: center;
  }

  .home-stat-number {
      font-family: var(--font-heading);
      font-size: 2.4rem;
      font-weight: 600;
      color: var(--color-accent);
      line-height: 1.1;
  }

  .home-stat-label {
      margin-top: 0.5rem;
      font-size: 0.85rem;
      letter-spacing: 0.5px;
      color: var(--color-text-muted);
  }

  /* ─── Products section ─────────────── */
  .home-products {
      padding: 5rem 5%;
  }

  /* ─── Explore grid ─────────────────── */
  .luxury-menu-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 2rem;
      padding: 1rem 5% 5.5rem;
      background: white;
      max-width: 1300px;
      margin: 0 auto;
  }

  .luxury-menu-card {
      background: var(--color-bg-muted);
      padding: 2.5rem 2rem;
      text-align: center;
      text-decoration: none;
      color: var(--color-text);
      border-radius: var(--radius-lg);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border: 1px solid transparent;
  }

  .luxury-menu-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
      border-color: #eee;
  }

  .luxury-menu-card h2 {
      font-size: 1.3rem;
      font-weight: 400;
      margin-bottom: 0.75rem;
      letter-spacing: 0.5px;
  }

  .luxury-menu-card p {
      font-size: 0.9rem;
      color: var(--color-text-muted);
      line-height: 1.5;
  }

  @media (max-width: 900px) {
      .home-system-grid {
          grid-template-columns: repeat(2, 1fr);
      }

      .home-stats {
          grid-template-columns: 1fr;
          gap: 1.5rem;
      }
  }

  @media (max-width: 768px) {
      .home-hero {
          min-height: 65vh;
          padding: 4rem 5%;
      }

      .home-hero-content h1 {
          font-size: 1.8rem;
      }

      .home-system-grid {
          grid-template-columns: 1fr;
      }

      .home-reviews-grid {
          grid-template-columns: 1fr;
      }
  }

  /* ─── Featured reviews (ChevuCloud#201) ────── */
  .home-reviews-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
  }

  .home-review-card {
      background: var(--color-bg-muted);
      border-radius: var(--radius-md);
      padding: 1.5rem;
  }

  .home-review-stars-outer {
      position: relative;
      display: inline-block;
      width: fit-content;
  }

  .home-review-stars-inner {
      position: absolute;
      top: 0;
      left: 0;
      white-space: nowrap;
      overflow: hidden;
      width: 0;
  }

  .home-review-stars-outer::before {
      content: "★★★★★";
      font-size: 16px;
      color: var(--color-border);
  }

  .home-review-stars-inner::before {
      content: "★★★★★";
      font-size: 16px;
      /* Brand yellow, matching the same star color already used
         on the product page — not gold, and never the green
         accent (rating stars aren't a CTA). */
      color: #ffdc52;
  }

  .home-review-card-title {
      font-size: 1rem;
      color: var(--color-text);
      margin: 0.6rem 0 0.4rem;
  }

  .home-review-card-body {
      font-size: 0.9rem;
      line-height: 1.6;
      color: var(--color-text-muted);
      margin: 0 0 0.75rem;
  }

  .home-review-card-name {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--color-text);
  }
}
