﻿/* =========================
   GLOBAL RESET
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #050b1a;
    color: #e6ecff;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(5,11,26,0.95), rgba(5,11,26,0.7));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand strong {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.brand span {
    font-size: 12px;
    color: #9fb4ff;
}

.nav {
    display: flex;
    gap: 22px;
}

    .nav a {
        color: #c7d2fe;
        text-decoration: none;
        font-size: 14px;
    }

        .nav a:hover {
            color: #ffffff;
        }

    .nav .btn-primary:hover {
        box-shadow: 0 0 0 2px rgba(96,165,250,0.35);
    }

/* =========================
   HERO SECTION
========================= */

.hero {
    background: radial-gradient(circle at 20% 20%, #142a52 0%, #0b1730 45%, #050b1a 100%);
    padding: 100px 0 30px;
}

.hero-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 620px;
    gap: 48px;
    align-items: flex-start;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 18px;
}

    .hero h1 span {
        color: #60a5fa;
    }

.hero-sub {
    font-weight: 600;
    color: #b7c6ff;
    font-size: 15px;
    margin-bottom: 28px;
}

.hero-lead {
    font-size: 17px;
    line-height: 1.6;
    color: #dbe7ff;
    margin-bottom: 14px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #c7d2fe;
}

    .hero-points li {
        margin-bottom: 6px;
    }

.hero-image {
    position: relative;
}

    .hero-image img {
        width: 100%;
        border-radius: 14px;
        padding-top: 60px;
    }

    .hero-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to left, rgba(5,11,26,0.65), transparent 60%);
        border-radius: 14px;
    }

/* =========================
   BUTTONS
========================= */

.btn-primary,
.btn-secondary {
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

    .btn-primary:hover,
    .btn-primary:focus-visible {
        background: #1d4ed8;
        box-shadow: 0 10px 30px rgba(37,99,235,0.35);
        transform: translateY(-1px);
    }

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
}

    .btn-secondary:hover,
    .btn-secondary:focus-visible {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.45);
        transform: translateY(-1px);
    }

/* =========================
   HOW I CAN HELP
========================= */

.home-services {
    background: #070f24;
    padding: 15px 15px 30px;
}

.services-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 32px;
}

.home-services h2 {
    font-size: 32px;
    margin-bottom: 28px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.service-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 28px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        border-color: rgba(96,165,250,0.35);
    }

    .service-card h3 {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.6;
        color: #aab8e8;
    }

/* =========================
   CASE STUDIES (BASE – UNCHANGED)
========================= */

.case-studies {
    background: linear-gradient(180deg, #050b1a, #020617);
    padding: 15px 15px 45px;
}

.case-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 32px;
}

.case-intro {
    color: #c7d2fe;
    margin-bottom: 28px;
}

.case-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 28px;
}

    .case-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

.case-desc {
    font-size: 14.5px;
    color: #dbe7ff;
    margin-bottom: 14px;
}

.case-card ul {
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: #c7d2fe;
}

    .case-card ul li strong {
        color: #93c5fd;
    }

/* =========================
   SAFE PAGE-SCOPED FIXES
========================= */

/* HOME PAGE ONLY */
body.home #case-studies .case-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 420px);
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 22px;
}

body.home #case-studies .case-card {
    scroll-snap-align: start;
}

/* CASE STUDIES PAGE ONLY */
body.case-studies-page #case-studies .case-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto 0;
}

/* =========================
   CONTACT CTA
========================= */

.contact-section {
    background: radial-gradient(circle at center, rgba(37,99,235,0.18), #050b1a 70%);
    padding: 30px 32px;
}

.contact-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 32px;
}

.contact-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-lead {
    font-size: 18px;
    color: #dbe7ff;
    margin-bottom: 32px;
}

/*FAQ*/
.faq-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 32px;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    max-width: 1500px;
    margin: 40px auto 0;
    padding: 20px 32px;
    font-size: 12px;
    color: #8fa3d8;
    text-align: center;
}

/* =========================================================
   CASE STUDIES – DEDICATED PAGE ONLY (SAFE, ISOLATED)
   Affects ONLY body.case-studies-page
   DOES NOT TOUCH HOME PAGE
========================================================= */

body.case-studies-page .case-studies {
    padding-top: 70px; /* clears fixed header */
}

body.case-studies-page .case-container {
    max-width: 1500px;
    margin: 0 auto;
}

body.case-studies-page .case-intro {
    max-width: 900px;
    margin-bottom: 48px;
    font-size: 16px;
    line-height: 1.7;
}

/* Proper grid for case studies page */
body.case-studies-page .case-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 32px;
}

/* Card styling ONLY for case studies page */
body.case-studies-page .case-card {
    background: linear-gradient( 180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02) );
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 28px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

    body.case-studies-page .case-card:hover {
        transform: translateY(-4px);
        border-color: rgba(96,165,250,0.35);
    }

    body.case-studies-page .case-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

body.case-studies-page .case-desc {
    color: #dbe7ff;
    margin-bottom: 16px;
}

.case-card-link,
.case-card-link h3,
.case-card-link p {
    color: inherit;
    text-decoration: none;
}

/* =========================
   CASE STUDIES PAGE – SAFE ISOLATION
   (Does NOT affect Home)
========================= */

.case-studies-page main {
    padding-top: 10px; /* clears fixed header */
}

/* Constrain overall content width slightly for readability */
.case-studies-page .case-container {
    max-width: 1200px;
}

/* Add breathing room above cards */
.case-studies-page .case-track {
    margin-top: 48px;
}

/* Strengthen card presence (no color changes) */
.case-studies-page .case-card {
    background: linear-gradient( 180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02) );
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 28px;
}

    /* Slight hover lift (desktop only feel) */
    .case-studies-page .case-card:hover {
        transform: translateY(-4px);
        transition: transform 0.25s ease;
    }



/* Mobile safety */
@media (max-width: 768px) {
    body.case-studies-page .case-track {
        grid-template-columns: 1fr;
    }
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image img {
        width: 360px;
        padding-top: 40px;
    }

    .hero-actions {
        justify-content: center;
    }
}

section {
    scroll-margin-top: 90px;
}
