:root {
    --primary: #0050b3;
    --primary-dark: #003a84;
    --accent: #ffb100;
    --bg: #0b1020;
    --bg-alt: #141a30;
    --text-main: #f5f7ff;
    --text-muted: #c4c8dd;
    --card-bg: #1a223b;
    --border-subtle: #2b3556;
    --radius-lg: 1.2rem;
    --shadow-soft: 0 18px 35px rgba(0,0,0,0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #263b80 0, #060814 52%, #020308 100%);
    color: var(--text-main);
}

/* Layout helpers */
.container {
    width: min(1100px, 100% - 2.5rem);
    margin-inline: auto;
}

.section {
    padding: 3.5rem 0;
}

.section-muted {
    background: rgba(7, 11, 30, 0.9);
}

.strip {
    padding: 2.5rem 0;
    background: rgba(5, 9, 26, 0.95);
    border-block: 1px solid #161d33;
}

.strip-alt {
    background: radial-gradient(circle at top left, #16234c, #050816);
}

/* Header & nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(to right, rgba(3,7,21,0.96), rgba(7,12,35,0.96));
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 0;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 1rem;
    color: #ffffff;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.92rem;
    padding: 0.35rem 0.4rem;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.06);
}

.nav-active {
    color: #ffffff;
    background: rgba(0, 123, 255, 0.22);
}

/* CTA button */
.btn-cta,
.btn-primary,
.btn-outline,
.btn-lg {
    font-family: inherit;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    background: radial-gradient(circle at top left, #1d7af2, #0e52b5);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.btn-cta:hover {
    filter: brightness(1.03);
}

/* Generic buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 16px 30px rgba(0,0,0,0.5);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.06);
}

.btn-lg {
    padding-inline: 2.4rem;
    padding-block: 0.9rem;
    font-size: 1rem;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0.3rem;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
}

/* Hero */
.hero {
    padding: 3.5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.5fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    margin-bottom: 0.8rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.lead {
    font-size: 1.02rem;
    color: var(--text-muted);
    max-width: 34rem;
}

.hero-actions {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-list {
    margin-top: 1.3rem;
    padding-left: 1.1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero-list li {
    margin-bottom: 0.35rem;
}

.hero-media {
    position: relative;
}

.hero-card {
    background: radial-gradient(circle at top, #3153a8, #060814);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.04);
}

.hero-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: -14px;
    right: 10px;
    background: rgba(6,12,34,0.96);
    padding: 0.7rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 16px 40px rgba(0,0,0,0.7);
    max-width: 220px;
}

.badge-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-text {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* Grids & cards */
.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.card-map {
    padding: 1rem;
}

.map-embed iframe {
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 0.9rem;
}

/* Pills */
.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.pill-grid span,
.pill-grid a {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(10,16,35,0.8);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
}

.pill-grid-links a:hover {
    border-color: var(--accent);
    color: #fff;
}

/* Lists */
.check-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.check-list li {
    padding-left: 1.4rem;
    position: relative;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 0.85rem;
}

.numbered {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.numbered li {
    counter-increment: step;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.numbered li::before {
    content: counter(step) ".";
    font-weight: 600;
    color: #fff;
    margin-right: 0.4rem;
}

.note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Page hero */
.page-hero {
    padding: 2.8rem 0 2.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: radial-gradient(circle at top, #1f356b, transparent 60%);
}

.page-hero h1 {
    font-size: clamp(2rem, 2.6vw, 2.3rem);
    margin-bottom: 0.6rem;
}

/* Contact */
.contact-list {
    list-style: none;
    padding-left: 0;
    color: var(--text-muted);
}

.contact-list li {
    margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
    padding: 2.5rem 0 1.5rem;
    background: #02030a;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0,2fr) repeat(2, minmax(0,1fr));
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-grid h3,
.footer-grid h4 {
    color: #fff;
}

.footer-grid ul {
    list-style: none;
    padding-left: 0;
}

.footer-grid a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #757a93;
}

/* Helpers */
.center {
    text-align: center;
}

.ta-center {
    text-align: center;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0,1fr);
    }
    .two-col,
    .grid-2,
    .grid-3,
    .footer-grid {
        grid-template-columns: minmax(0,1fr);
    }
    .footer-grid {
        gap: 1.4rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        inset: 58px 1rem auto;
        background: rgba(6,10,30,0.98);
        flex-direction: column;
        padding: 0.75rem;
        border-radius: 0.9rem;
        border: 1px solid rgba(255,255,255,0.08);
        transform-origin: top;
        transform: scaleY(0.6);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }
    .main-nav.nav-open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }
    .header-inner {
        position: relative;
    }
    .menu-toggle {
        display: flex;
    }
    .header-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 1.5rem, 100%);
    }
    .hero {
        padding-top: 2.4rem;
    }
}
/* Disable template default nav so custom header behaves correctly */
nav {
    all: unset;
    display: contents; /* keeps links working if template nav still exists on other pages */
}

nav::before {
    display: none !important;
}
/* ============================================================
   FIX 1 — Add solid, cross-browser background to hero text
   ============================================================ */

.hero-text,
.page-hero .container {
    background: rgba(0, 0, 0, 0.55) !important;
    padding: 1.4rem 1.6rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45) !important;
}

/* ============================================================
   FIX 2 — Make important text readable (stop using muted gray)
   ============================================================ */

/* Home page hero */
.hero-text .lead,
.hero-text .eyebrow,
.hero-text p,
.hero-text li {
    color: #ffffff !important;
}

/* Any lead paragraph site-wide */
.lead {
    color: #e9ecf7 !important;
}

/* Section titles */
h1, h2, h3, h4 {
    color: #ffffff !important;
}

/* General paragraphs inside dark sections */
.section p {
    color: #ffb100 !important;
}

/* Lists */
.check-list li,
.numbered li {
    color: #dfe4f5 !important;
}

/* Pills (Common computer problems, etc.) */
.pill-grid span,
.pill-grid a {
    color: #f9f9f9 !important;
    background: rgba(0,0,0,0.45) !important;
    border-color: rgba(255,255,255,0.3) !important;
}
/* ============================================================
   READABILITY FIX – INDEX HERO + FIRST TWO SECTIONS
   ============================================================ */

/* A) Top hero text block */
.hero-text {
    background: rgba(0, 0, 0, 0.70);   /* solid, cross-browser dark overlay */
    padding: 1.5rem 1.7rem;
    border-radius: 1.0rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.55);
}

/* Hero text colors */
.hero-text h1,
.hero-text p,
.hero-text li,
.hero-text .lead,
.hero-text .eyebrow {
    color: #ffffff !important;
}

/* B) "Common Computer Problems I Fix" section */
.strip.strip-alt .container.strip-grid {
    background: rgba(0, 0, 0, 0.70);
    padding: 1.6rem 1.8rem;
    border-radius: 1.0rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.55);
}

/* Text colors inside that strip */
.strip.strip-alt h2,
.strip.strip-alt p,
.strip.strip-alt .pill-grid span {
    color: #f5f7ff !important;
}

/* Make the pills clearly readable */
.strip.strip-alt .pill-grid span {
    background: rgba(0, 0, 0, 0.60);
    border: 1px solid rgba(255,255,255,0.35);
}

/* C) "Why Work With a Local Repair Guy?" two-column section */
.section .container.two-col {
    background: rgba(0, 0, 0, 0.70);
    padding: 1.6rem 1.8rem;
    border-radius: 1.0rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.55);
}

/* Text colors in that two-column block */
.section .two-col h2,
.section .two-col h3,
.section .two-col p,
.section .two-col li {
    color: #f5f7ff !important;
}
/* ============================================================
   FIX: SECTION C READABILITY + HEIGHT ADJUSTMENT
   Targets the .section .two-col block on the index page
   ============================================================ */

/* Section C wrapper (two-column block) */
.index-section-c,
.section .container.two-col {
    background: rgba(0, 0, 0, 0.72) !important;
    padding: 1.8rem 1.8rem !important;   /* reduced height by ~35px */
    border-radius: 1rem;
    box-shadow: 0 6px 22px rgba(0,0,0,0.55);
}

/* Text inside Section C */
.section .two-col h2,
.section .two-col h3,
.section .two-col h4,
.section .two-col p,
.section .two-col li,
.section .two-col ol,
.section .two-col ul {
    color: #ffffff !important;
}

/* List icons & subtle text */
.section .two-col li::before {
    color: #ffb100 !important;
}

.section .two-col p,
.section .two-col li,
.section .two-col ol {
    color: #f2f3ff !important;
}

/* Ensure map card inside Section C remains readable */
.section .two-col .card-map {
    background: rgba(0, 0, 0, 0.65) !important;
    border: 1px solid rgba(255,255,255,0.18);
}

/* Slightly reduce top/bottom spacing inside the map card */
.section .two-col .card-map {
    padding: 0.9rem !important;
}
/* ============================================================
   UNIFIED READABILITY FIX – HERO (A), STRIP (B), TWO-COL (C)
   Desktop-only so mobile (which looks good) stays mostly the same
   ============================================================ */
@media (min-width: 801px) {

    /* A) HERO TEXT BLOCK (top of index) */
    .hero-text {
        background: rgba(0, 0, 0, 0.72) !important;
        padding: 1.5rem 1.7rem !important;   /* slightly tighter, reduces height */
        border-radius: 1rem !important;
        box-shadow: 0 6px 22px rgba(0,0,0,0.55) !important;
    }

    .hero-text h1,
    .hero-text p,
    .hero-text .lead,
    .hero-text .eyebrow,
    .hero-text li {
        color: #ffffff !important;
    }

    /* B) "Common Computer Problems I Fix" STRIP */
    .strip.strip-alt .container.strip-grid {
        background: rgba(0, 0, 0, 0.72) !important;
        padding: 1.5rem 1.7rem !important;   /* reduced by ~35px */
        border-radius: 1rem !important;
        box-shadow: 0 6px 22px rgba(0,0,0,0.55) !important;
    }

    .strip.strip-alt h2,
    .strip.strip-alt p,
    .strip.strip-alt .pill-grid span {
        color: #f5f7ff !important;
    }

    .strip.strip-alt .pill-grid span {
        background: rgba(0, 0, 0, 0.60) !important;
        border: 1px solid rgba(255,255,255,0.35) !important;
    }

    /* C) TWO-COLUMN SECTION ("Why Work With a Local Repair Guy?") */
    .section .container.two-col {
        background: rgba(0, 0, 0, 0.72) !important;
        padding: 1.5rem 1.7rem !important;   /* height reduced ~35px here too */
        border-radius: 1rem !important;
        box-shadow: 0 6px 22px rgba(0,0,0,0.55) !important;
    }

    .section .two-col h2,
    .section .two-col h3,
    .section .two-col h4,
    .section .two-col p,
    .section .two-col li,
    .section .two-col ol,
    .section .two-col ul {
        color: #f5f7ff !important;
    }

    .section .two-col li::before {
        color: #ffb100 !important;  /* keep the accent checkmark */
    }

    /* Map card inside Section C stays readable */
    .section .two-col .card-map {
        background: rgba(0, 0, 0, 0.65) !important;
        border: 1px solid rgba(255,255,255,0.18) !important;
        padding: 0.9rem !important;
    }
}
/* === Page Hero Readability Fix (all pages) === */
.page-hero {
    padding: 2.8rem 0 2.2rem;
}

/* Dark panel behind the hero content so text always pops */
.page-hero .container {
    background: rgba(0, 0, 0, 0.70);
    border-radius: 1rem;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

/* High-contrast text in the page hero */
.page-hero h1,
.page-hero p,
.page-hero .lead {
    color: #ffffff !important;
}

.page-hero .lead {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
}
