/* ============================================================
   service-page.css - shared template for the 7 service / platform
   detail pages (taxes, bookkeeping, payroll, outsourced-cfo,
   new-business-formation, trust-estate-cpa, platforms/xero).
   Linked AFTER site.css, BEFORE each page's inline <style>.
   Page-unique rules stay in each page's inline <style>.
   ============================================================ */
/* Section headers left-aligned (Redesign 2026-08) - breaks the
   centered-everything "generic CPA" rhythm; measure capped below. */
      .section-label,
      .section-title,
      .section-sub { text-align: left; }
      .section-sub { max-width: 640px; margin-left: 0; margin-right: 0; font-size: 1.1rem; }
      #local .lead { text-align: left; max-width: 640px; margin-left: 0; margin-right: 0; }

      .section-label {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        margin-bottom: 0.75rem;
      }
      .section-title {
        font-size: clamp(1.6rem, 2.5vw, 2.2rem);
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 1rem;
      }
      .section-sub {
        max-width: 560px;
        line-height: 1.7;
      }

      .hero {
        background: var(--primary);
        color: white;
        padding: 5rem 0 4rem;
        overflow: hidden;
      }
      .hero-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
      }
      .hero-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 100px;
        padding: 0.35rem 1rem;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        margin-bottom: 1.25rem;
      }
      .hero-breadcrumb {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
      }
      .hero-breadcrumb a {
        color: rgba(255, 255, 255, 0.5);
        transition: color 0.15s;
      }
      .hero-breadcrumb a:hover {
        color: white;
      }
      .hero-breadcrumb span {
        color: rgba(255, 255, 255, 0.25);
      }
      .hero h1 {
        font-family: "Space Grotesk", sans-serif;
        font-size: clamp(2rem, 3.8vw, 3.2rem);
        font-weight: 700;
        line-height: 1.12;
        margin-bottom: 0.9rem;
      }
      .hero h1 em {
        font-style: italic;
        font-family: var(--font-display);
        font-weight: 300;
        color: var(--accent);
        line-height: 1.15;
      }
      .hero-sub {
        font-size: 1.05rem;
        color: rgba(255, 255, 255, 0.75);
        line-height: 1.7;
        max-width: 480px;
        margin-bottom: 1.5rem;
      }
      .hero-trust {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        align-items: center;
        margin-bottom: 1.75rem;
      }
      .hero-trust-item {
        font-size: 0.78rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.6);
        display: flex;
        align-items: center;
        gap: 5px;
      }
      .hero-trust-item::before {
        content: "✓";
        color: var(--accent);
      }
      .hero-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
      }
      .hero-img-col {
        position: relative;
      }
      .hero-deco-shape {
        display: none;
      }
      .hero-img-wrap {
        position: relative;
        z-index: 2;
        border-radius: var(--radius-xl);
        overflow: hidden;
        aspect-ratio: 4/3;
        box-shadow:
          0 24px 60px rgba(0, 20, 60, 0.32),
          0 6px 18px rgba(0, 20, 60, 0.18);
      }
      .hero-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .ps-section {
        background: white;
        padding: 5rem 0;
      }
      .ps-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-top: 3rem;
      }
      .ps-card {
        border-radius: var(--radius-xl);
        padding: 2.5rem;
      }
      .ps-card-problem {
        background: #1a2235;
        color: white;
      }
      .ps-card-solution {
        background: var(--off-white);
        border: 1px solid var(--border);
      }
      .ps-card-label {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 1.25rem;
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .ps-card-problem .ps-card-label {
        color: #ff6b6b;
      }
      .ps-card-solution .ps-card-label {
        color: var(--accent);
      }
      .ps-list {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
      }
      .ps-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 0.95rem;
        line-height: 1.55;
      }
      .ps-card-problem .ps-list li {
        color: rgba(255, 255, 255, 0.8);
      }
      .ps-card-solution .ps-list li {
        color: var(--text);
      }
      .ps-icon {
        flex-shrink: 0;
        width: 20px;
        margin-top: 2px;
      }

      .included-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2.5rem;
      }
      .included-item {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        background: white;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1.25rem 1.5rem;
      }
      .included-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #ebf4fa;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }
      .included-icon svg {
        width: 18px;
        height: 18px;
        stroke: var(--primary);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      .included-item strong {
        display: block;
        font-size: 0.9rem;
        font-weight: 700;
        margin-bottom: 0.2rem;
      }
      .included-item span {
        font-size: 0.83rem;
        color: var(--muted);
        line-height: 1.5;
      }

      .hiw {
        background: var(--primary);
        color: white;
        padding: 5rem 0;
      }
      .hiw-header {
        text-align: center;
        margin-bottom: 3.5rem;
      }
      .hiw-header .section-label {
        color: rgba(141, 179, 49, 0.9);
      }
      .hiw-header .section-title {
        color: white;
        max-width: none;
      }
      .hiw-steps {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        position: relative;
      }
      .hiw-steps::before {
        content: "";
        position: absolute;
        top: 28px;
        left: calc(12.5% + 28px);
        right: calc(12.5% + 28px);
        height: 2px;
        background: rgba(255, 255, 255, 0.2);
        z-index: 0;
      }
      .hiw-step {
        text-align: center;
        padding: 0 1rem;
        position: relative;
        z-index: 1;
      }
      .step-num {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        border: 2px solid rgba(255, 255, 255, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: "Space Grotesk", sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        color: white;
        margin: 0 auto 1.25rem;
        transition:
          background 0.2s,
          border-color 0.2s;
      }
      .hiw-step:hover .step-num {
        background: var(--accent);
        border-color: var(--accent);
      }
      .hiw-step h3 {
        font-family: "Space Grotesk", sans-serif;
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
      }
      .hiw-step p {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.65);
        line-height: 1.6;
      }

      .why-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-top: 3rem;
      }
      .why-card {
        background: white;
        border: 1px solid var(--border);
        border-radius: var(--radius-xl);
        padding: 2rem;
      }
      .why-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.25rem;
      }
      .why-icon svg {
        width: 24px;
        height: 24px;
        stroke: #fff;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      .why-card h3 {
        font-family: "Space Grotesk", sans-serif;
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
      }
      .why-card p {
        font-size: 0.88rem;
        color: var(--muted);
        line-height: 1.65;
      }

      .faq-list {
        margin-top: 2.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
      }
      .faq-item {
        background: white;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
      }
      .faq-btn {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        font-family: "Space Grotesk", sans-serif;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text);
        text-align: left;
      }
      .faq-icon {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 2px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 1.1rem;
        color: var(--muted);
        transition:
          transform 0.25s,
          background 0.2s,
          border-color 0.2s;
      }
      .faq-item.open .faq-icon {
        transform: rotate(45deg);
        background: var(--accent);
        border-color: var(--accent);
        color: white;
      }
      .faq-answer {
        display: none;
        padding: 0 1.5rem 1.25rem;
        font-size: 0.9rem;
        color: var(--muted);
        line-height: 1.7;
      }
      .faq-item.open .faq-answer {
        display: block;
      }

      .related-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-top: 2.5rem;
      }
      .related-card {
        background: white;
        border: 1px solid var(--border);
        border-radius: var(--radius-xl);
        padding: 1.75rem;
        position: relative;
        transition:
          box-shadow 0.2s,
          transform 0.2s;
      }
      .related-card:hover {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
      }
      .related-card-link::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: var(--radius-xl);
      }
      .related-card-icon {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
      }
      .related-card h3 {
        font-family: "Space Grotesk", sans-serif;
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
      }
      .related-card p {
        font-size: 0.83rem;
        color: var(--muted);
        line-height: 1.55;
      }
      .related-card .arrow {
        margin-top: 1rem;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--primary);
        display: flex;
        align-items: center;
        gap: 4px;
      }

      .final-cta {
        background: linear-gradient(135deg, var(--primary) 0%, #004e73 100%);
        color: white;
        padding: 6rem 0;
        text-align: center;
      }
      .final-cta h2 {
        font-family: "Space Grotesk", sans-serif;
        font-size: clamp(1.8rem, 3vw, 2.6rem);
        font-weight: 700;
        margin-bottom: 1rem;
      }
      .final-cta p {
        font-size: 1.05rem;
        color: rgba(255, 255, 255, 0.75);
        max-width: 520px;
        margin: 0 auto 2.5rem;
        line-height: 1.7;
      }
      .final-cta-actions {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
      }

      @media (max-width: 1024px) {
        .hiw-steps {
          grid-template-columns: repeat(2, 1fr);
          gap: 2rem;
        }
        .hiw-steps::before {
          display: none;
        }
      }
      @media (max-width: 900px) {
        .hero-inner {
          grid-template-columns: 1fr;
          gap: 2.5rem;
        }
        .hero-img-col {
          order: -1;
          max-width: 480px;
          margin: 0 auto;
          width: 100%;
        }
        .ps-grid {
          grid-template-columns: 1fr;
        }
        .why-grid {
          grid-template-columns: 1fr;
        }
        .related-grid {
          grid-template-columns: 1fr 1fr;
        }
      }
      @media (max-width: 640px) {
        .section {
          padding: 3.5rem 0;
        }
        .included-grid {
          grid-template-columns: 1fr;
        }
        .hiw-steps {
          grid-template-columns: 1fr;
        }
        .related-grid {
          grid-template-columns: 1fr;
        }
      }
    
    /* == Redesign 2026-08 - Preserve-mode modernization =================
       Left-align any header variants + reshape the three equal "Why us"
       cards into a 1-over-2 asymmetric bento (desktop only; mobile keeps
       a single column). Header base rules live near the top of this file. */
    .hiw-header,
    .section-header { text-align: left; }
    .section-header { margin-left: 0; margin-right: 0; max-width: 760px; }
    @media (min-width: 769px) {
      .why-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
      .why-grid > *:first-child { grid-column: 1 / -1; }
    }
