/* --- Base Resets & Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.max-width-md { max-width: 750px; text-align: center; }
.max-width-sm { max-width: 550px; }

/* --- Header --- */
.site-header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.05em;
}

/* --- Hero Section --- */
.hero-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    background-color: #ebf8ff;
    color: #2b6cb0;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.15rem;
    color: #4a5568;
    margin-bottom: 30px;
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.hero-logo-img {
    width: 100%;
    max-width: 380px; /* Limits maximum size so it looks elegant on desktop layouts */
    height: auto;     /* Maintains native aspect ratio rules automatically */
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05)); /* Adds a subtle floating shadow */
    transition: transform 0.3s ease;
}

/* Fun interactive hover response rule for visitors */
.hero-logo-img:hover {
    transform: translateY(-5px);
}

/* --- Components: Buttons --- */
.btn {
    display: inline-block;
    background-color: #4c51bf;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #434190;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* --- Mission Section --- */
.mission-section {
    padding: 80px 0;
    background-color: #edf2f7;
}

.mission-section h2 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 20px;
}

.mission-section p {
    font-size: 1.2rem;
    color: #4a5568;
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.contact-section h2 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 12px;
    text-align: center;
}

.contact-section > .container > p {
    text-align: center;
    color: #4a5568;
    margin-bottom: 40px;
}

.contact-form {
    background: #f7fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    color: #2d3748;
}

/* Specific rules to fix the text box behavior */
.form-group textarea {
  resize: vertical;      /* Prevents widening out of the box completely */
  min-height: 120px;     /* Sets a comfortable starting height */
  max-height: 300px;     /* Optional: caps how far down they can stretch it */
  overflow-y: auto;      /* Automatically adds a scrollbar when text overflows */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4c51bf;
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.1);
}
/* --- Form Privacy Disclaimer Styling --- */
.form-privacy-note {
    font-size: 0.8rem;         /* Makes the text small and unobtrusive */
    line-height: 1.4;
    color: #718096;            /* A muted, professional grey tone */
    margin-top: 15px;          /* Pushes it down slightly away from the button */
    text-align: center;
    border-top: 1px dashed #e2e8f0; /* Adds a clean separating divider line */
    padding-top: 12px;
}

/* --- Footer --- */
.site-footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.footer-email {
    margin-top: 10px;
}

/* --- Responsive Layout Rules (Mobile Formatting) --- */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-graphic {
        order: -1; /* Puts the graphic above text on phone layouts */
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212; /* Deep charcoal dark background */
        color: #e2e8f0;            /* Soft white/silver text for legibility */
    }

    .site-header {
        background-color: #1a1a1a;
        border-bottom: 1px solid #2d3748;
    }

    .logo {
        color: #ffffff;
    }

    .hero-section {
        background-color: #1a1a1a;
    }

    .hero-text h1 {
        color: #ffffff;
    }

    .hero-text p {
        color: #cbd5e0;
    }

    .mission-section {
        background-color: #121212;
    }

    .mission-section h2 {
        color: #ffffff;
    }

    .mission-section p {
        color: #cbd5e0;
    }

    .contact-section {
        background-color: #1a1a1a;
    }

    .contact-section h2 {
        color: #ffffff;
    }

    .contact-section > .container > p {
        color: #cbd5e0;
    }

    .contact-form {
        background: #2d3748;
        border: 1px solid #4a5568;
    }

    .form-group label {
        color: #cbd5e0;
    }

    .form-group input,
    .form-group textarea {
        background-color: #1a202c;
        border: 1px solid #4a5568;
        color: #ffffff;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    }
    
    .form-privacy-note {
        color: #a0aec0;        /* Lightens the grey slightly in dark mode for contrast */
        border-top: 1px dashed #4a5568;
    }
}