:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --brand: #174a7a;
    --brand-2: #2f87cc;
    --brand-3: #67c0cc;
    --line: #e2e8f0;
    --shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

main {
    padding-top: 120px;
}

a {
    color: inherit;
    text-decoration: none;
}

.nav-links a:focus-visible,
.mini-call-btn:focus-visible,
.card-link:focus-visible,
.direct-call:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.floating-call-btn:focus-visible,
footer a:focus-visible {
    outline: 3px solid rgba(103, 192, 204, 0.55);
    outline-offset: 3px;
    border-radius: 8px;
}

.services-hero {
    padding: 1.2rem 0 1.2rem;
}

.services-hero .hero-shell {
    background: transparent;
}

.hero-shell {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 1rem;
    align-items: stretch;
}

.services-hero .hero-card {
    background-color: #174a7a !important;
    background-image: linear-gradient(115deg, #2f87cc, #174a7a) !important;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    border-radius: 18px;
    padding: 3rem 2.4rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    clip-path: inset(0 round 18px);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    border-radius: inherit;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 2.2px;
    font-size: 0.74rem;
    color: #111827;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.hero-card h1 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(2.1rem, 5.5vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
    color: #111827;
    text-shadow: none;
}

.hero-card h1 span {
    color: #67c0cc;
}

.hero-card p {
    max-width: 760px;
    margin-bottom: 1.2rem;
    font-size: 1.03rem;
    color: #111827;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.mini-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    border-width: 1px;
}

.mini-call-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.22);
}

.hero-actions .btn-primary {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.hero-actions .btn-primary:hover {
    background: #111827;
    transform: translateY(-2px);
}

.hero-actions .btn-outline {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.22);
}

.hero-actions .btn-outline:hover {
    background: #f8fafc;
    border-color: #0f172a;
    color: #0f172a;
    transform: translateY(-2px);
}

.hero-panel {
    background: #0f2136;
    color: #e2e8f0;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-panel h3 {
    font-family: "Outfit", sans-serif;
    color: #fff;
    margin-bottom: 0.75rem;
}

.hero-panel ul {
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.hero-panel li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.hero-panel i {
    color: var(--brand-3);
}

.panel-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
    border-radius: 8px;
    background: rgba(103, 192, 204, 0.18);
    border: 1px solid rgba(103, 192, 204, 0.38);
    color: #fff;
    padding: 0.7rem 0.95rem;
    font-weight: 700;
}

.service-process {
    padding: 1.2rem 0 2.2rem;
}

.service-process h2 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    margin-bottom: 1rem;
}

.process-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.process-track article {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.process-track span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e0f2fe;
    color: var(--brand);
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.process-track h4 {
    font-family: "Outfit", sans-serif;
    margin-bottom: 0.3rem;
}

.process-track p {
    color: var(--muted);
    font-size: 0.93rem;
}

.specialties {
    padding: 0.4rem 0 3rem;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.specialties h2 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.section-head p {
    color: var(--muted);
    max-width: 520px;
}

.bento-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 1.1rem;
}

.bento-card {
    grid-column: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(23, 74, 122, 0.35);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.bento-card img {
    width: 100%;
    height: 46%;
    min-height: 46%;
    max-height: 46%;
    object-fit: cover;
    display: block;
}

.bento-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.bento-card h3 {
    font-family: "Outfit", sans-serif;
    font-size: 1.18rem;
    line-height: 1.2;
    margin-bottom: 0.55rem;
}

.bento-card h3 i {
    color: var(--brand);
    margin-right: 0.35rem;
}

.bento-card p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-card .card-link {
    margin-top: auto;
}

.card-link {
    display: inline-block;
    border: 1px solid #0f172a;
    border-radius: 4px;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.card-link:hover {
    background: #0f172a;
    color: #fff;
}

.contact-icon {
    color: var(--brand);
    font-size: 2.3rem;
    margin-bottom: 0.45rem;
}

.bento-highlight {
    grid-column: auto;
    background: linear-gradient(155deg, #0f2136, #13385d);
    color: #e2e8f0;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.bento-highlight h3,
.bento-highlight p {
    color: #e2e8f0;
}

.direct-call {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--brand);
    color: #fff;
    border-radius: 6px;
    padding: 0.65rem 0.95rem;
    font-weight: 700;
}

.bottom-cta {
    padding: 3.8rem 0 4.6rem;
}

.cta-box {
    text-align: center;
    background: radial-gradient(circle at top, #12365a 0%, #0f2136 70%);
    padding: 2.5rem 1.3rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.bottom-cta h2 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.bottom-cta p {
    max-width: 760px;
    margin: 0 auto 1.45rem;
    color: #cbd5e1;
}

.cta-actions {
    display: inline-flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
    display: inline-block;
    border-radius: 6px;
    padding: 0.72rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.btn-primary {
    background: #1e293b;
    color: #fff;
}

.btn-outline {
    border-color: var(--brand);
    color: var(--brand);
    background: transparent;
}

.btn-primary:hover {
    background: #0f172a;
}

.btn-outline:hover {
    background: rgba(23, 74, 122, 0.08);
}

.services-footer {
    background: #0f2136;
    color: #dbeafe;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    padding: 3rem 0 2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.footer-top h3 {
    font-family: "Outfit", sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.7rem;
    color: #fff;
}

.footer-top p {
    color: #bfdbfe;
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.footer-links a,
.footer-contact a {
    color: #dbeafe;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-links a[aria-current="page"] {
    color: var(--brand-3);
}

.footer-contact p {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 0 1.4rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: #93c5fd;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .hero-shell {
        grid-template-columns: 1fr;
    }

    .process-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card,
    .bento-wide,
    .bento-highlight {
        grid-column: auto;
    }

}

@media (max-width: 780px) {
    main {
        padding-top: 95px;
    }

    .process-track,
    .bento-services {
        grid-template-columns: 1fr;
    }

    .bento-card,
    .bento-highlight {
        aspect-ratio: auto;
    }

    .hero-card {
        padding: 2.2rem 1rem;
    }

    .section-head {
        display: block;
    }

    .floating-call-btn { bottom: 0.8rem; right: 0.8rem; }
}

/* Match index header/footer while keeping active tab */
header#mainHeader {
    background: rgba(20, 62, 107, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header#mainHeader .nav-links {
    gap: 3rem;
}

header#mainHeader .nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    position: static;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #cbd5e1;
}

header#mainHeader .nav-links a.active,
header#mainHeader .nav-links a[aria-current="page"] {
    color: var(--clr-accent);
}

footer.section-dark .footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #CBD5E1;
    font-size: 0.85rem;
}
