/* --- COLOR & FONT VARIABLES --- */
:root {
    --color-primary: #0437F2; /* Medium Blue */
    --color-secondary-bg: #E5E4E2; /* Platinum Grey */
    --color-background: #FAF9F6; /* Off White */
    --color-text-dark: #111111; /* Jet Black for contrast */
    --color-text-light: #ffffff;
    --font-family-primary: 'Arial', sans-serif;
}

/* --- GLOBAL STYLES & RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TYPOGRAPHY --- */
h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
}

h1 strong {
    color: var(--color-primary);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 800;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

.pre-header {
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* --- BUTTONS & LINKS --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: #032baa; /* Darker blue */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

/* --- HEADER & NAVIGATION --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(250, 249, 246, 0.95); /* Off-white with slight transparency */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
}

.nav-menu a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 600;
    margin-left: 30px;
    transition: color 0.3s;
}

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

.cta-link {
    background-color: var(--color-primary);
    color: var(--color-text-light) !important;
    padding: 8px 18px;
    border-radius: 5px;
}

.menu-toggle {
    display: none; /* Hide on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* --- SECTIONS --- */

/* Hero Section */
.hero-section {
    background-color: var(--color-background);
    text-align: center;
    padding: 100px 0;
}

.hero-section h1 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .sub-header {
    font-size: 1.3rem;
    color: var(--color-text-dark);
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* ROTATING TEXT STYLING */
.hero-section h1 .stars {
    color: var(--color-primary);
    font-size: 0.9em;
    padding: 0 5px;
}
#rotatingText {
    color: var(--color-primary);
    transition: opacity 0.5s ease-in-out;
}

/* Process Section */
.process-section {
    background-color: var(--color-secondary-bg); /* Platinum Grey Background */
    padding: 80px 0;
    text-align: center;
}

.step-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    flex: 1;
    padding: 30px;
    background-color: var(--color-background);
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 15px;
}

/* SERVICES / RESULTS SECTION STYLES */
.services-results-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-background);
}

.service-cards-grid {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.service-card {
    flex: 1;
    padding: 40px 30px;
    background-color: var(--color-secondary-bg); /* Platinum Grey for cards */
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(4, 55, 242, 0.15); /* Subtle blue shadow on hover */
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.service-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-list li {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.service-list li i {
    color: var(--color-primary);
    margin-right: 10px;
}


/* About Section */
.about-section {
    padding: 100px 0;
}

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

.about-content h2 {
    text-align: center;
    margin-bottom: 30px;
}

.about-content ul {
    list-style: none;
    text-align: left;
    margin: 30px auto;
    max-width: 400px;
}

.about-content ul li {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.about-content ul li i {
    color: var(--color-primary);
    margin-right: 10px;
}


/* CTA Final Section */
.cta-final-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 80px 0;
    text-align: center;
}

.cta-final-section h2 {
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.cta-final-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-final-section .btn-primary {
    background-color: var(--color-text-light);
    color: var(--color-primary);
    border-color: var(--color-text-light);
}

.cta-final-section .btn-primary:hover {
    background-color: var(--color-secondary-bg);
    color: var(--color-primary);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-text-dark); /* Jet Black */
    color: var(--color-secondary-bg); /* Platinum Grey text */
    padding: 50px 0;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex-basis: 30%;
    min-width: 200px;
}

.footer-col h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

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

.footer-col a {
    display: block;
    color: var(--color-secondary-bg);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}

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

/* --- QUIZ MODAL STYLING --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Over everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7); /* Dark semi-transparent background */
    padding-top: 50px;
}

.modal-content {
    background-color: var(--color-background);
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.close-btn {
    color: var(--color-text-dark);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-primary);
    text-decoration: none;
}

.quiz-steps {
    margin-bottom: 20px;
}

.quiz-step {
    display: none; /* Only the active step is shown by JS */
}

.quiz-step.active {
    display: block;
}

.quiz-step h4 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.quiz-step label {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid var(--color-secondary-bg);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    font-weight: 600;
}

.quiz-step label:hover {
    background-color: #f0f0f0;
    border-color: var(--color-primary);
}

.quiz-step input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--color-primary);
}

.quiz-step input[type="text"],
.quiz-step input[type="email"],
.quiz-step input[type="tel"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--color-secondary-bg);
    border-radius: 5px;
}

.quiz-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}


/* --- RESPONSIVENESS (Mobile First) --- */

/* Tablet and Mid-Range Devices (992px to 769px) */
@media (max-width: 992px) {
    .hero-section {
        padding: 80px 0;
    }
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2rem;
    }
    /* Process Grid - switches to a column on tablets */
    .step-grid {
        flex-direction: column;
        gap: 20px;
    }
    .step-card {
        text-align: left;
    }
    .step-number {
        text-align: left;
    }
    /* Service Card Grid - switches to a column on tablets */
    .service-cards-grid {
        flex-direction: column;
        gap: 20px;
    }
    .service-card {
        text-align: left;
    }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
    /* Mobile Navigation Override */
    .nav-menu {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-background);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        border-top: 1px solid var(--color-secondary-bg);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        margin: 10px 0;
        text-align: center;
        padding: 10px 0;
    }

    .cta-link {
        display: block;
        width: 80%;
        margin: 20px auto;
        padding: 12px 20px;
    }

    .menu-toggle {
        display: block;
    }

    /* Smaller Font Sizes on Mobile */
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    
    /* Section Padding Adjustments */
    .process-section, .about-section, .cta-final-section, .services-results-section {
        padding: 60px 0;
    }

    /* Footer Layout */
    .footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-col {
        min-width: 100%;
    }
    
    /* Quiz Modal Layout */
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
    .quiz-controls {
        flex-direction: column;
        gap: 10px;
    }
    .quiz-controls button {
        width: 100%;
    }
}