:root {
    --primary-blue: #2c3e50;
    --secondary-gray: #6c757d;
    --light-gray: #fdfbf5;
    --dark-text: #2c3e50;
    --light-text: #5a6877;
    --white: #ffffff;
    --accent-beige: #f2d79e;
}

body {
    font-family: "Myriad Pro", "Inter", sans-serif; /* Myriad Pro for sans-serif, fallback to Inter and generic sans-serif */
    margin: 0;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--light-gray);
}

/* Apply Minion Pro to specific elements that might contain longer text, like question and explanation */
.question-text, .explanation-text {
    font-family: "Minion Pro", Georgia, serif; /* Minion Pro for serif, fallback to Georgia and generic serif */
    font-size: 1.3em; /* Slightly larger for readability */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Header */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo {
    height: 70px;
    width: auto;
}

.logo-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('./images/chalk-doodles.png'); /* Placeholder for chalk doodles */
    background-repeat: repeat;
    background-size: auto; /* Use natural size */
    background-position: center center; /* Center the image */
    background-blend-mode: multiply; /* Blend with background color */
}

.hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-beige);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #1e2c3a;
    color: var(--white);
}

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

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-danger {
    background-color: #dc3545;
    color: var(--white);
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 60px;
    font-weight: 700;
    color: var(--dark-text);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.card p {
    color: var(--light-text);
}

/* Forms */
form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-weight: 500;
    color: var(--dark-text);
}

form input[type="email"],
form input[type="password"],
form input[type="text"],
form input[type="tel"],
form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width */
}

form button {
    margin-top: 20px;
    width: auto;
    align-self: flex-start;
}

/* Footer */
.main-footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        flex-direction: column;
        gap: 10px;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .section-title {
        font-size: 2em;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 25px;
    }

    form {
        padding: 25px;
    }
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8em;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darken the screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of everything */
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--accent-beige) !important; /* Use accent color for spinner */
}

.loading-overlay p {
    color: var(--white);
    margin-top: 1rem;
    font-size: 1.2rem;
}

