/* --- Kim Munnerley Consulting --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #0A192F;
    --bg-light: #F8F9FA;
    --text-light: #E2E8F0;
    --text-dark: #1F2937;
    --subtle-text: #64748B;
    --accent-color: #00F5C4;
    /* Vibrant Teal */
    --accent-color-hover: #00DBC2;
    --border-color-dark: #1E293B;
    --border-color-light: #E5E7EB;
    --card-dark: #1E293B;
    --font-primary: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.7;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

.section-subtitle {
    display: block;
    text-align: center;
    color: var(--subtle-text);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--accent-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 245, 196, 0.15);
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-bottom 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid transparent;
    background-color: var(--bg-dark);
}

.main-header.scrolled {
    background-color: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color-dark);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

.header-nav {
    display: none;
}

.header-cta {
    display: none;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .mobile-nav-menu {
    right: 0;
}

.mobile-nav-menu a {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 500;
    margin: 1rem 0;
}

.mobile-nav-close {
    position: absolute;
    top: 28px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

/* --- HERO & HEADER --- */
#hero {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding-top: 140px;
    padding-bottom: 100px;
}

#hero h1 {
    color: var(--text-light);
}

#hero p {
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
    color: #94A3B8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    background-color: var(--card-dark);
    border: 1px solid var(--border-color-dark);
    border-radius: 12px;
    padding: 20px 30px;
    text-align: center;
}

.stat-item .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-item .label {
    font-size: 0.9rem;
    color: #94A3B8;
    letter-spacing: 0.5px;
}

/* --- CLIENTS --- */
.clients-section {
    padding: 40px 0;
    background-color: #E2E8F0;
}

.logo-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    filter: grayscale(1) opacity(0.7);
    flex-wrap: wrap;
    gap: 40px;
}

.logo-bar img {
    height: 24px;
}

/* --- SERVICES --- */
#services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 4rem;
}

.service-card {
    background-color: white;
    border: 1px solid var(--border-color-light);
    border-radius: 12px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.service-card .icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--subtle-text);
    margin-top: 0.5rem;
}

/* --- FEATURES --- */
#features {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

#features h2 {
    color: var(--text-light);
}

.features-container {
    margin-top: 4rem;
    background: linear-gradient(145deg, #1E293B, #0A192F);
    border: 1px solid var(--border-color-dark);
    border-radius: 24px;
    padding: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item h3 {
    color: var(--text-light);
}

.feature-item p {
    color: #94A3B8;
}

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    height: 100%;
}

/* --- TESTIMONIALS --- */
#testimonials {
    background-color: var(--bg-dark);
    color: var(--text-light);
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(10, 25, 47, 0.85);
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

#testimonials h2 {
    color: var(--text-light);
}

.testimonial-box {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
}

.testimonial-text {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-light);
}

.testimonial-author {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* --- FINAL CTA --- */
#final-cta {
    background-color: var(--bg-light);
    text-align: center;
}

/* --- FOOTER --- */
footer {
    background-color: #030712;
    color: #9CA3AF;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-col a {
    color: #9CA3AF;
    line-height: 2;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color-dark);
}

/* --- RESPONSIVE STYLES --- */

/* Desktop Navigation Styles (from 992px upwards) */
@media (min-width: 992px) {
    .header-nav {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .header-nav a {
        color: var(--text-light);
        font-weight: 500;
        transition: color 0.2s ease;
        position: relative;
        padding: 5px 0;
    }

    .header-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--accent-color);
        transition: width 0.3s ease;
    }

    .header-nav a:hover::after {
        width: 100%;
    }

    .header-cta {
        display: inline-flex;
    }

    .mobile-nav-toggle {
        display: none;
    }
}


/* Tablet and Smaller Desktops (up to 991px) */
@media (max-width: 991px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 80px 0;
    }

    .services-grid,
    .features-container {
        grid-template-columns: 1fr;
    }

    .features-container {
        padding: 40px 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Mobile Devices (up to 767px) */
@media (max-width: 767px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }

    #hero {
        padding-top: 120px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .testimonial-text {
        font-size: 1.2rem;
    }

    #subscribe-form {
        flex-direction: column;
    }

    #subscribe-form button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 20px;
    }
}