/* ===== CSS Custom Properties ===== */
:root {
    --primary: #1e3a8a;
    --primary-dark: #1e2a5a;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-dark: #334155;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    width: min(90%, 1200px);
    margin-inline: auto;
    padding: 2rem 0;
}

/* ===== Navbar ===== */
.navbar {
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.nav-cta {
    margin-left: 0.5rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 36px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='nonzero'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM12 16v-4h4v4h2v2H8v-2h4v-4h2v4h4v2H8v-2h4zm30-8v4h2v2h4v-2h-2V8h-4zm-8 28v4h2v2h4v-2h-2v-4h-4zm22-8h-2v4h2v2h4v-2h-2v-4zm-6-18v4h2v2h4v-2h-2V8h-4zM12 36v4h2v2h4v-2h-2v-4H12zm22 22v-4h-2v-4h-4v-2h4v4h2v4h4v2h-2v-4h-4v-2h4v4h2v4h-4zM12 52v4h4v-4h2v-2H8v2h4v4h4v-4h-4zm30-22v4h2v2h4v-2h-2v-4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-inline: auto;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-sub {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-inline: auto;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-dark);
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== Value Props ===== */
.value-props {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.value-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Services Grid ===== */
.services-preview {
    padding: 4rem 0;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== About Strip ===== */
.about-strip {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.about-inner {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.about-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== Credentials ===== */
.credentials {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 3rem 0;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.credential-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.credential-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.credential-value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* ===== CTA Strip ===== */
.cta-strip {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 3.5rem 0;
}

.cta-inner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.cta-inner p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-blurb {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-creds p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Page Hero (for later passes) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        border-top: 1px solid var(--border);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links.open {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links .nav-link,
    .nav-links .nav-cta {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links .nav-link:last-child {
        border-bottom: none;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
