/* Core Layout & Reset */
html {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body, h1, h2, h3, p {
    margin: 0;
    padding: 0;
}

body {
    color: #333333;
    line-height: 1.6;
    background-color: #ffffff;
}

/* Sticky Navigation Header */
header {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.brand {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 20px;
    width: auto;
    display: block;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #4da6ff;
}

section h2 {
    font-weight: 400; /* 400 is standard/normal weight. Use 300 for an even lighter font. */
}

/* Default Section Layout */
section {
    padding: 120px 2rem 5rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

/* Centered Full-Screen Hero Layout (White Background) */
.hero {
    background-color: #ffffff;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 2rem 4rem;
    box-sizing: border-box;
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.hero-image-container a {
    display: block;
    max-width: 100%;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-image-container a:hover {
    transform: none;
    opacity: 1;
}

.hero-img {
    max-width: 75% !important;
    max-height: calc(100vh - 280px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: none !important;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #4a4a4a;
}

/* Secondary Hero Image Controls */
.secondary-hero-container {
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.secondary-hero-container .hero-img {
    max-width: 65% !important;
}


.features {
    background-color: #000000;
    padding-top: 60px;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
    text-align: left;
}

.feature-item {
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    /* Elevated multi-layered drop shadow to simulate depth over background images */
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 6px 14px rgba(0, 0, 0, 0.30);
    border: 1px solid #000000;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: cover, 145% auto;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional hover state to enhance interactive depth */
.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.20), 0 6px 12px rgba(0, 0, 0, 0.12);
}

/* Individual Card Background Images - Higher alpha (0.94) fades the background images */
.feature-item.card-qb {
    background-image: linear-gradient(rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.94)), url('Images/QBO Logo Black.png');
}

.feature-item.card-ai {
    background-image: linear-gradient(rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.94)), url('Images/NeuralNetworkIcon.png');
}

.feature-item.card-human {
    background-image: linear-gradient(rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.94)), url('Images/ProfitGrid_HITL.png');
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #d6d5d5;
    font-size: 1.5rem;
}

.feature-item p {
    color: #b3b1b1;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #faf3e1;
    padding-top: 60px;
}

.testimonials-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.testimonials-section p {
    font-size: 1.2rem;
    color: #4a4a4a;
    max-width: 800px;
    margin: 0 auto;
}

/* ProfitGrid Section */
.profitgridscore-section {
    background-color: #faf3e1;
    padding-top: 60px;
}

.profitgridscore-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.profitgridscore-section p {
    font-size: 1.2rem;
    color: #4a4a4a;
    max-width: 800px;
    margin: 0 auto;
}

#ProfitGridScore .secondary-hero-container .hero-img {
    max-width: 40% !important;
    height: auto !important;
    width: auto !important;
}

/* Call To Action Section (Grow Your Vision / Get Started) */
.cta {
    background-color: #011123;
    padding-top: 60px; /* Reduced top spacing for desktop */
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.cta-hero-container {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* Scaled third hero image for desktop */
.cta-hero-container .hero-img {
    max-width: 25% !important;
}

/* Call To Action Button */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e96804;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #d55c03;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* Tablet Responsiveness (iPads / 769px to 1024px) */
@media (max-width: 1024px) {
    section {
        padding: 100px 1.5rem 4rem;
    }

    .features {
        padding-top: 50px;
    }

    .cta {
        padding-top: 50px; /* Responsive top spacing for tablet */
    }

    .hero-img {
        max-width: 85% !important;
        max-height: 45vh !important;
    }

    .secondary-hero-container .hero-img {
        max-width: 70% !important;
    }

    /* Scaled third hero image for tablet */
    .cta-hero-container .hero-img {
        max-width: 35% !important;
    }

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

/* Mobile Responsiveness (Phones / 768px and below) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 0.75rem 1rem;
    }

    .brand {
        margin-bottom: 0.5rem;
    }

    nav {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 0.75rem; /* Reduced from 1.25rem to save space */
        flex-wrap: wrap; /* Allows menu items to drop to a second line */
    }

    nav a {
        margin-left: 0;
        font-size: 0.9rem;
        white-space: normal; /* Removed nowrap to prevent horizontal clipping */
    }

    .hero {
        padding-top: 110px;
        min-height: auto;
    }

    .features {
        padding-top: 40px;
    }

    .cta {
        padding-top: 40px; /* Responsive top spacing for mobile */
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .hero-img {
        max-width: 95% !important;
        max-height: 35vh !important;
    }

    .secondary-hero-container .hero-img {
        max-width: 100% !important; 
    }

    /* Scaled third hero image for mobile */
    .cta-hero-container .hero-img {
        max-width: 40% !important;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 1.75rem;
    }
}


/* --- COMPACT MODAL OVERLAY STYLING (PASTE EVERYTHING BELOW HERE) --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    align-items: center;
    justify-content: center;
}

/* Small, Centered Popup Window */
.modal-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px; 
    width: 90%;
    max-width: 380px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
    position: relative;
    box-sizing: border-box;
}

/* Compact Typography & Headers */
.modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem !important;
    color: #1a1a1a;
    text-align: center;
}

/* Close Button Positioning */
.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #999999;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #1a1a1a;
}

/* Tighter Form Spacing */
#startNowForm {
    display: flex;
    flex-direction: column;
}

#startNowForm label {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: #444444;
}

#startNowForm input {
    margin-bottom: 0.85rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-family: inherit;
}

#startNowForm input:focus {
    outline: none;
    border-color: #4da6ff;
    box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.2);
}

.submit-btn {
    margin-top: 0.5rem;
    padding: 10px;
    border-radius: 20px;
    font-size: 1rem;
    width: 100%;
}

.pac-container {
    z-index: 9999 !important;
}

#deepIntelligence h2 {
    color: #ffffff; /* Your existing color override */
    margin-bottom: 0.5rem; /* Reduced from 2rem to tighten the gap */
}