:root {
    --primary-blue: #1F3A8A;
    --accent-orange: #F58220;
    --brand-green: #2E8B57;
    --deep-navy: #1C2533;
    --light-text: #F5F7FA;
    --muted-text: #C7CED6;
    --text-color: #333333; /* Keep for body text */
    --white: #ffffff;
    --border-radius: 4px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section, .section {
    padding: 25px 0;
}

section h2, .section h2 {
    margin-bottom: 15px;
}

section p, .section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.bg-light {
    background-color: var(--light-text);
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    text-decoration: none;
}

.site-logo {
    max-height: 60px;
    width: auto;
    display: block;
    transition: opacity 0.3s;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.btn-cta {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

.btn-cta:hover {
    background-color: var(--accent-orange);
}

/* Hero Section */
.hero {
    background-color: var(--deep-navy);
    color: var(--light-text);
    min-height: 60vh;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    min-height: calc(var(--vh, 1vh) * 60);
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1 1 60%;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    color: var(--muted-text);
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-accent {
    width: 60px;
    height: 4px;
    background-color: var(--brand-green);
    margin: 20px 0;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.hero-visual::before,
.hero-visual::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--accent-orange);
}

.hero .btn-primary {
    background-color: var(--primary-blue);
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--primary-blue);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.card-link:hover {
    color: var(--accent-orange);
}

/* Footer */
footer {
    background-color: var(--deep-navy);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-orange);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social a {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: #aaa;
}

.copyright p {
    margin: 0 0 10px;
    font-size: 0.9rem;
}

.footer-legal {
    font-size: 0.85rem;
}

.footer-legal a {
    color: #aaa;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-top: 20px;
    }
    .hero {
        padding: 48px 0;
        text-align: center;
    }
    .hero-wrapper {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    .hero-visual {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 36px 0;
    }
    .hero h1 {
        font-size: 24px;
    }
}

/* Controlled spacing for consulting-style layout */
.content-block {
    padding: 35px 0;
}

.content-block + .content-block {
    padding-top: 10px;
}

.content-block h2 {
    margin-bottom: 12px;
}

.content-block p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.form-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
}

/* ---------- MOBILE HEADER FIX ---------- */
@media (max-width: 768px) {

    header {
        position: relative;   /* prevents viewport lock */
        padding: 12px 16px;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        height: auto;
    }

    .site-logo {
        max-height: 60px;
        height: auto;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px;
    }

    .btn-cta {
        width: auto;
        padding: 10px 18px;
    }
}