/* ═══════════════════════════════════════════════════════════
   SwitzerHealth — Homepage Styles
   Section system, hero, services, stats, FAQ, contact form.
   Pairs with css/base.css.
   ═══════════════════════════════════════════════════════════ */

html { scroll-padding-top: 88px; }

    /* ─── Section System ─── */
    section { padding: 120px 0; }
    section.compact { padding: 80px 0; }
    section.flush { padding: 0; }
    section.bg-light { background: var(--gray-100); }
    section.bg-dark { background: var(--black); color: #FFF; }

    /* ─── Hero ─── */
    .hero {
      min-height: calc(100vh - 108px);
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
      background: var(--black);
      color: #FFF;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }
    .hero-text h1 {
      font-size: clamp(2.4rem, 4.5vw, 3.6rem);
      font-weight: 700;
      line-height: 1.08;
      letter-spacing: -0.03em;
      margin-bottom: 20px;
    }
    .hero-text h1 em {
      font-style: normal;
      color: var(--red);
    }
    .hero-text .hero-category {
      font-size: 1.05rem;
      line-height: 1.55;
      color: rgba(255,255,255,0.85);
      max-width: 460px;
      margin-bottom: 16px;
      font-weight: 500;
    }
    .hero-text .subtitle {
      font-size: 1rem;
      line-height: 1.6;
      color: rgba(255,255,255,0.7);
      max-width: 440px;
      margin-bottom: 36px;
      font-style: italic;
    }
    .hero-text .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

    .hero-visual {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .hero-visual svg { width: 100%; max-width: 480px; }

    @media (max-width: 900px) {
      .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
      .hero-text .hero-category, .hero-text .subtitle { margin-left: auto; margin-right: auto; }
      .hero-text .btn-row { justify-content: center; }
      .hero-visual { order: -1; }
      .hero-visual svg { max-width: 320px; }
    }

    /* ─── Section Headings ─── */
    .sh { margin-bottom: 56px; }
    .sh-label {
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--red);
      margin-bottom: 12px;
    }
    .sh h2 {
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 700;
      line-height: 1.18;
      letter-spacing: -0.02em;
      color: var(--black);
      max-width: 560px;
    }
    section.bg-dark .sh h2 { color: #FFF; }
    .sh p {
      font-size: 1rem;
      color: var(--gray-700);
      max-width: 520px;
      margin-top: 14px;
    }
    section.bg-dark .sh p { color: rgba(255,255,255,0.75); }   /* was 0.55: AA */
    .sh.centered { text-align: center; }
    .sh.centered h2, .sh.centered p { margin-left: auto; margin-right: auto; }

    /* ─── Two-col Layout ─── */
    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 72px;
      align-items: center;
    }
    .two-col.reverse > :first-child { order: 2; }
    .two-col.reverse > :last-child { order: 1; }
    @media (max-width: 768px) {
      .two-col { grid-template-columns: 1fr; gap: 40px; }
      .two-col.reverse > :first-child { order: 0; }
      .two-col.reverse > :last-child { order: 0; }
    }

    .text-block p { margin-bottom: 16px; font-size: 1rem; color: var(--gray-700); }
    .text-block p:last-child { margin-bottom: 0; }
    .text-block strong { color: var(--charcoal); }
    .text-block .btn { margin-top: 24px; }

    /* Visual placeholders */
    .vis {
      width: 100%;
      aspect-ratio: 1 / 0.85;
      border-radius: 6px;
      overflow: hidden;
      background: var(--gray-100);
    }
    .vis svg { width: 100%; height: 100%; }

    /* ─── Services ─── */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--gray-200);
      border: 1px solid var(--gray-200);
      border-radius: 6px;
      overflow: hidden;
    }
    .svc {
      background: var(--white);
      padding: 40px 32px;
      transition: background 0.2s var(--ease);
    }
    .svc:hover { background: var(--gray-100); }
    .svc-icon { width: 40px; height: 40px; margin-bottom: 20px; }
    .svc-icon svg { width: 100%; height: 100%; }
    .svc h3 {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--black);
      margin-bottom: 10px;
      letter-spacing: -0.01em;
    }
    .svc p { font-size: 0.92rem; color: var(--gray-700); line-height: 1.65; }
    @media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

    /* ─── Stats ─── */
    .stats-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 6px;
      overflow: hidden;
      margin-top: 56px;
    }
    .stat { padding: 36px 32px; text-align: center; background: rgba(255,255,255,0.03); }
    .stat-num {
      font-size: 2.2rem;
      font-weight: 700;
      letter-spacing: -0.03em;
      color: #FFF;
      line-height: 1;
      margin-bottom: 6px;
    }
    .stat-label {
      font-size: 0.85rem;
      letter-spacing: 0.03em;
      color: rgba(255,255,255,0.75);    /* was 0.45: AA */
      line-height: 1.45;
    }
    @media (max-width: 600px) { .stats-row { grid-template-columns: 1fr; } }

    /* ─── FAQ accordion (AI-citation surface + buyer education) ─── */
    .faq-list { max-width: 720px; margin: 0 auto; }
    .faq-item { border-bottom: 1px solid var(--gray-200); }
    .faq-item summary {
      cursor: pointer;
      list-style: none;
      padding: 22px 0;
      font-weight: 600;
      font-size: 1rem;
      color: var(--charcoal);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
    }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after {
      content: "+";
      font-size: 1.4rem;
      font-weight: 400;
      color: var(--red);
      transition: transform 0.2s var(--ease);
    }
    .faq-item[open] summary::after { content: "−"; }
    .faq-item p {
      padding: 0 0 22px 0;
      color: var(--gray-700);
      font-size: 0.98rem;
      line-height: 1.7;
      max-width: 640px;
    }

    /* ─── Contact Form ─── */
    .form-wrap { max-width: 560px; margin: 0 auto; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
    .form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
    label {
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 6px;
      color: var(--gray-700);
    }
    label .req { color: var(--red); }
    input, textarea {
      font-family: var(--font);
      font-size: 0.95rem;
      padding: 12px 14px;
      border: 1px solid var(--gray-300);
      border-radius: 4px;
      outline: none;
      background: var(--white);
      color: var(--charcoal);
      transition: border-color 0.2s var(--ease);
    }
    input:focus, textarea:focus { border-color: var(--charcoal); outline: 2px solid var(--red); outline-offset: 1px; }
    textarea { resize: vertical; min-height: 100px; }
    @media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

    /* Netlify honeypot (visually hidden, off-screen, not tabbable) */
    .hp-field {
      position: absolute !important;
      left: -10000px !important;
      top: auto !important;
      width: 1px !important;
      height: 1px !important;
      overflow: hidden !important;
    }

    .form-consent {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin: 8px 0 20px;
      padding: 14px 16px;
      background: #FAFAFA;
      border: 1px solid var(--gray-200);
      border-radius: 4px;
    }
    .form-consent input[type="checkbox"] {
      flex: 0 0 auto;
      width: 18px;
      height: 18px;
      margin: 2px 0 0 0;
      padding: 0;
      cursor: pointer;
      accent-color: var(--red);
    }
    .form-consent label {
      font-size: 0.85rem;
      font-weight: 400;
      letter-spacing: 0;
      text-transform: none;
      color: var(--gray-700);
      line-height: 1.55;
      margin: 0;
      cursor: pointer;
    }
    .form-consent label a { color: var(--charcoal); text-decoration: underline; }
    .form-consent label a:hover { color: var(--red); }

    .form-success, .form-error {
      display: none;
      padding: 14px 16px;
      border-radius: 4px;
      font-size: 0.92rem;
      margin-top: 16px;
    }
    .form-success { background: #F0F8F0; border: 1px solid #B5D9B5; color: #1F5C1F; }
    .form-error { background: #FDF2F0; border: 1px solid #F1B5AE; color: #82221B; }

    .disclaimer {
      font-size: 0.78rem;
      color: var(--gray-700);          /* was --gray-500: AA */
      max-width: 560px;
      margin: 32px auto 0;
      text-align: center;
      line-height: 1.6;
    }

    /* ─── Divider ─── */
    .divider { width: 48px; height: 2px; background: var(--red); margin: 0 0 24px 0; }
    .sh.centered .divider { margin: 0 auto 24px; }

