/* ============================================================
   Home Page Template — assets/css/home.css
   Styles for page-templates/home.php only (loaded on top of
   main.css — see tvrd_scripts() in functions.php).
   Reuses main.css's design tokens (--clr-*, --font-sans, etc.)
   so this page matches the rest of the site.
   ============================================================ */

.sp-wrap { display: block; }

.sp-full { width: 100%; }

.sp-container {
    width: 100%;
    max-width: var(--max-width, 1200px);
    margin-inline: auto;
    padding-inline: 1rem;
}
@media (min-width: 640px)  { .sp-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .sp-container { padding-inline: 2rem; } }

/* Buttons: home.php now uses the sitewide .btn / .btn--white / .btn--wa
   classes (see assets/css/critical.css) instead of its own variants, so
   Call/WhatsApp buttons look identical on every page of the site. */

/* ── Hero ────────────────────────────────────────────────── */
.sp-hero {
    background: linear-gradient(135deg, var(--clr-primary, #0055b3), var(--clr-primary-dk, #003d82));
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}
.sp-hero h1 {
    color: #fff;
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.sp-hero h1 em { color: var(--clr-accent, #ffb800); font-style: normal; }
.sp-hero-sub {
    max-width: 42rem;
    margin: 0 auto 1.5rem;
    color: rgba(255,255,255,.9);
    font-size: 1.05rem;
}
.sp-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 1.75rem;
}
.sp-badge {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    padding: .4rem .85rem;
    border-radius: 999px;
}
.sp-hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}
.sp-hero-btns .btn { flex: 1 1 0; min-width: 200px; }
@media (min-width: 768px) {
    .sp-hero { padding: 4.5rem 0; }
    .sp-hero h1 { font-size: 2.5rem; }
    .sp-hero-sub { font-size: 1.15rem; }
}

/* ── Trust bar ───────────────────────────────────────────── */
.sp-trust-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--clr-bg-alt, #f4f6fb);
    border-bottom: 1px solid var(--clr-border, #e0e4ef);
}
.sp-trust-item {
    text-align: center;
    padding: 1.25rem .5rem;
    border-right: 1px solid var(--clr-border, #e0e4ef);
    border-bottom: 1px solid var(--clr-border, #e0e4ef);
}
.sp-trust-item:nth-child(2n)  { border-right: none; }
.sp-trust-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--clr-primary, #0055b3);
}
.sp-trust-lbl {
    display: block;
    font-size: .78rem;
    color: var(--clr-text-muted, #6b7280);
    margin-top: .15rem;
}
@media (min-width: 640px) {
    .sp-trust-bar { grid-template-columns: repeat(3, 1fr); }
    .sp-trust-item:nth-child(2n)  { border-right: 1px solid var(--clr-border, #e0e4ef); }
    .sp-trust-item:nth-child(3n)  { border-right: none; }
}
@media (min-width: 1024px) {
    .sp-trust-bar { grid-template-columns: repeat(6, 1fr); }
    .sp-trust-item { border-bottom: none; }
    .sp-trust-item:nth-child(3n)  { border-right: 1px solid var(--clr-border, #e0e4ef); }
    .sp-trust-item:last-child     { border-right: none; }
}

/* ── Generic section shell ──────────────────────────────── */
.sp-section        { padding: 3rem 0; }
.sp-section-alt     { background: var(--clr-bg-alt, #f4f6fb); }
.sp-section-dark {
    background: var(--clr-text, #1a1a2e);
    color: rgba(255,255,255,.9);
}
.sp-tag {
    display: inline-block;
    background: var(--clr-bg-alt, #f4f6fb);
    color: var(--clr-primary, #0055b3);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .35rem .85rem;
    border-radius: 999px;
    margin-bottom: .75rem;
}
.sp-tag-light { background: rgba(255,255,255,.1); color: var(--clr-accent, #ffb800); }
.sp-title {
    font-size: 1.5rem;
    margin-bottom: .75rem;
    max-width: 42rem;
}
.sp-title-light { color: #fff; }
.sp-lead {
    color: var(--clr-text-muted, #6b7280);
    max-width: 42rem;
    margin-bottom: 2rem;
    font-size: 1rem;
}
.sp-lead-light { color: rgba(255,255,255,.75); }
@media (min-width: 768px) {
    .sp-title { font-size: 1.9rem; }
    .sp-lead  { font-size: 1.05rem; }
}

.sp-divider {
    border: none;
    border-top: 1px solid var(--clr-border, #e0e4ef);
    margin: 0;
}

/* ── Intro ───────────────────────────────────────────────── */
.sp-intro-grid { display: grid; gap: 1.25rem; }
.sp-intro-grid p { color: var(--clr-text-muted, #6b7280); }
@media (min-width: 900px) { .sp-intro-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

/* ── Service cards ───────────────────────────────────────── */
.sp-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.sp-card {
    background: #fff;
    border: 1px solid var(--clr-border, #e0e4ef);
    border-radius: var(--radius-lg, 12px);
    padding: 1.5rem;
    transition: box-shadow var(--transition, .15s ease), transform var(--transition, .15s ease);
}
.sp-card:hover { box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,.1)); transform: translateY(-2px); }
.sp-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.sp-card h3 a { color: inherit; text-decoration: none; }
.sp-card h3 a:hover,
.sp-card h3 a:focus-visible { color: var(--clr-primary, #0055b3); text-decoration: underline; }
.sp-card p  { color: var(--clr-text-muted, #6b7280); font-size: .92rem; margin-bottom: 1rem; }
.sp-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.sp-card-actions .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; }
@media (min-width: 640px)  { .sp-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sp-cards { grid-template-columns: repeat(3, 1fr); } }

/* ── Process steps ───────────────────────────────────────── */
.sp-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.sp-step { text-align: left; }
.sp-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--clr-primary, #0055b3);
    color: #fff;
    font-weight: 800;
    margin-bottom: .75rem;
}
.sp-step h3 { font-size: 1rem; margin-bottom: .4rem; }
.sp-step p  { color: var(--clr-text-muted, #6b7280); font-size: .9rem; }
@media (min-width: 768px)  { .sp-steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sp-steps { grid-template-columns: repeat(5, 1fr); } }

/* ── CTA strips ──────────────────────────────────────────── */
.sp-cta-strip {
    background: var(--clr-primary, #0055b3);
    color: #fff;
    padding: 2.5rem 0;
    text-align: center;
}
.sp-cta-strip h2 { color: #fff; font-size: 1.4rem; margin-bottom: .5rem; }
.sp-cta-strip p  { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }
.sp-cta-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}
.sp-cta-btns .btn { flex: 1 1 0; min-width: 200px; }
@media (min-width: 768px) { .sp-cta-strip h2 { font-size: 1.75rem; } }

/* ── Common problems ─────────────────────────────────────── */
.sp-problems {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.sp-problem-item {
    background: #fff;
    border-left: 3px solid var(--clr-accent, #ffb800);
    border-radius: var(--radius-sm, 4px);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.08));
}
.sp-problem-item h3 { font-size: .98rem; margin-bottom: .35rem; }
.sp-problem-item p  { color: var(--clr-text-muted, #6b7280); font-size: .9rem; }
@media (min-width: 768px)  { .sp-problems { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sp-problems { grid-template-columns: repeat(4, 1fr); } }

/* ── Why choose us (dark section) ───────────────────────── */
.sp-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.sp-why-item h3 { color: #fff; font-size: 1rem; margin-bottom: .35rem; }
.sp-why-item p  { color: rgba(255,255,255,.7); font-size: .9rem; }
@media (min-width: 768px)  { .sp-why-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sp-why-grid { grid-template-columns: repeat(6, 1fr); } }

/* ── Pricing table ───────────────────────────────────────── */
.sp-pricing-wrap { overflow-x: auto; border: 1px solid var(--clr-border, #e0e4ef); border-radius: var(--radius-md, 8px); }
.sp-pricing { width: 100%; border-collapse: collapse; min-width: 420px; }
.sp-pricing th, .sp-pricing td {
    text-align: left;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--clr-border, #e0e4ef);
    font-size: .92rem;
}
.sp-pricing thead th {
    background: var(--clr-bg-alt, #f4f6fb);
    font-weight: 700;
    color: var(--clr-text, #1a1a2e);
}
.sp-pricing tbody tr:last-child td { border-bottom: none; }
.sp-pricing tbody tr:hover td { background: var(--clr-bg-alt, #f4f6fb); }

/* ── Brands / Areas tag lists ─────────────────────────────── */
.sp-brands, .sp-areas {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.sp-brand-tag {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    font-size: .85rem;
    padding: .45rem .9rem;
    border-radius: 999px;
}
.sp-area-tag {
    background: var(--clr-bg-alt, #f4f6fb);
    border: 1px solid var(--clr-border, #e0e4ef);
    color: var(--clr-text, #1a1a2e);
    font-size: .85rem;
    padding: .45rem .9rem;
    border-radius: 999px;
}

/* ── Maintenance tips ─────────────────────────────────────── */
.sp-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: .6rem .75rem;
    list-style: none;
    padding-left: 0;
}
.sp-tips li {
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--clr-success, #16a34a);
    color: var(--clr-text-muted, #6b7280);
    font-size: .92rem;
}
@media (min-width: 768px) { .sp-tips { grid-template-columns: repeat(2, 1fr); } }

/* ── FAQ ─────────────────────────────────────────────────── */
.sp-faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.sp-faq-item {
    background: #fff;
    border: 1px solid var(--clr-border, #e0e4ef);
    border-radius: var(--radius-md, 8px);
    padding: 1.1rem 1.25rem;
}
.sp-faq-q {
    font-weight: 700;
    font-size: .98rem;
    margin-bottom: .4rem;
    color: var(--clr-text, #1a1a2e);
}
.sp-faq-a { color: var(--clr-text-muted, #6b7280); font-size: .92rem; }
@media (min-width: 900px) { .sp-faq-grid { grid-template-columns: repeat(2, 1fr); } }
