/* ============================================================
   PAGES.CSS — shared styles for inner pages
   ============================================================ */

/* ── Dropdown Nav ──────────────────────────────────────────── */
.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item > a::after {
    content: '▾';
    font-size: 0.65em;
    opacity: 0.6;
    transition: transform var(--transition);
}

.nav-item:hover > a::after {
    transform: rotate(180deg);
}

/* ── KEY FIX: use padding-top instead of gap so no physical void exists ── */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;          /* flush with the bottom of the nav-item */
    left: 0;
    padding-top: 10px;  /* invisible hover-bridge — no gap the mouse falls through */
    min-width: 280px;
    z-index: 200;
}

/* Inner white box */
.nav-dropdown-inner {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    animation: dropdown-in 0.16s ease;
}

@keyframes dropdown-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text) !important;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    background: transparent !important;
    border-radius: 0 !important;
}

.nav-dropdown a:hover {
    background: var(--off-white) !important;
    color: var(--navy) !important;
}

.nav-dropdown a .dd-icon {
    font-size: 1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.nav-dropdown .dd-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* ── Mobile hamburger button ───────────────────────────────── */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    background: var(--navy);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ── Mobile nav drawer ─────────────────────────────────────── */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 0 20px;
    box-shadow: var(--shadow-md);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.mobile-nav a:hover {
    background: var(--off-white);
    color: var(--navy);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav .mobile-nav-section {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 16px 20px 6px;
}

.mobile-nav .mobile-cta {
    margin: 14px 20px 0;
    display: flex !important;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--navy) !important;
    border-radius: 50px !important;
    font-weight: 700;
    padding: 14px 20px !important;
    border-bottom: none !important;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    .header-nav,
    .header-tagline {
        display: none !important;
    }
    .header-contact {
        align-items: center;
    }
    .header-phone {
        font-size: 1rem;
    }
    .header-inner {
        flex-wrap: nowrap;
    }
}

/* ── Active nav link ──────────────────────────────────────── */
.header-nav a.active {
    color: var(--navy);
    background: rgba(13, 33, 55, 0.07);
    font-weight: 700;
}

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    background: url('hero.png') center 40% / cover no-repeat;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(13, 33, 55, 0.92) 0%,
        rgba(13, 33, 55, 0.75) 60%,
        rgba(13, 33, 55, 0.4) 100%
    );
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 70px 20px;
    max-width: 700px;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-hero-title .highlight { color: var(--gold); }

.page-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.65;
    margin-bottom: 28px;
}

/* ── Coverage Stats Bar ────────────────────────────────────── */
.coverage-intro-section {
    background: var(--navy);
    padding: 32px 0;
}

.coverage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    text-align: center;
}

.cov-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cov-stat-num {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.02em;
}

.cov-stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── States Section ────────────────────────────────────────── */
.states-section {
    padding: 80px 0;
    background: var(--off-white);
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.state-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 20px 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.state-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.state-abbr {
    display: inline-block;
    background: var(--navy);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
}

.state-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.state-cities {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 0;
    margin: 0;
}

.state-cities li {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    position: relative;
}

.state-cities li:not(:last-child)::after {
    content: '·';
    margin-left: 8px;
    color: var(--border);
}

.state-cta {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-decoration: none;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    transition: color var(--transition);
}

.state-cta:hover { color: var(--navy); }

/* ── Services Detail Section ───────────────────────────────── */
.services-detail-section {
    padding: 80px 0;
    background: var(--off-white);
}

.service-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 28px;
    transition: all var(--transition);
}

.service-detail-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.svc-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.svc-blue   { background: rgba(26, 75, 122, 0.1); }
.svc-gold   { background: rgba(212, 137, 26, 0.1); }
.svc-teal   { background: rgba(26, 122, 106, 0.1); }
.svc-purple { background: rgba(90, 45, 130, 0.1); }
.svc-orange { background: rgba(192, 57, 43, 0.1); }

.svc-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.svc-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.svc-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin-bottom: 20px;
}

.svc-feature {
    font-size: 0.88rem;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1.35;
}

.svc-feature span {
    color: var(--gold-dark);
    font-weight: 700;
    flex-shrink: 0;
}

.svc-ideal {
    background: var(--off-white);
    border-left: 3px solid var(--gold);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.svc-ideal strong {
    color: var(--navy);
    font-weight: 700;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 700px) {
    .service-detail-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .svc-icon-wrap {
        width: 56px;
        height: 56px;
    }

    .svc-features {
        grid-template-columns: 1fr;
    }

    .page-hero { min-height: 300px; }
    .page-hero-content { padding: 50px 20px; }
}

@media (max-width: 500px) {
    .states-grid {
        grid-template-columns: 1fr 1fr;
    }
    .state-card { padding: 14px; }
}

/* ── Individual Service Page Layout ────────────────────────── */
.svc-page-section {
    padding: 72px 0 80px;
    background: var(--off-white);
}

.svc-page-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.svc-page-main h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.svc-page-main h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 28px 0 14px;
}

.svc-page-main p {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

/* Feature check grid */
.feature-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
    margin-bottom: 20px;
}

.fcheck {
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 9px;
    line-height: 1.4;
}

.fcheck span {
    color: var(--gold-dark);
    font-weight: 800;
    flex-shrink: 0;
}

/* Info table */
.info-table {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.info-row:last-child { border-bottom: none; }

.info-row:nth-child(even) { background: var(--off-white); }

.info-row span:first-child { color: var(--text); font-weight: 500; }
.info-row span:last-child  { color: var(--text-muted); text-align: right; font-size: 0.85rem; }

/* Info box */
.info-box {
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.35);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-box strong { color: var(--navy); }

/* Use case grid */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.use-case {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    transition: all var(--transition);
}

.use-case:hover {
    border-color: var(--gold);
    color: var(--navy);
}

/* Sidebar cards */
.sidebar-cta-card {
    background: var(--navy);
    color: white;
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 20px;
}

.sidebar-cta-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 10px;
}

.sidebar-cta-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.55;
    margin-bottom: 18px;
}

.sidebar-facts {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sidebar-facts li {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.other-services-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.other-services-card h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.other-services-card a {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}

.other-services-card a:last-child { border-bottom: none; }

.other-services-card a:hover { color: var(--navy); font-weight: 600; }

/* ── Responsive svc-page ───────────────────────────────────── */
@media (max-width: 900px) {
    .svc-page-inner {
        grid-template-columns: 1fr;
    }
    .svc-page-sidebar {
        order: -1;
    }
    .feature-check-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .use-case-grid {
        grid-template-columns: 1fr 1fr;
    }
}

