/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2D3748;
    background-color: #F8FAFC;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    position: -webkit-sticky; /* Safari support */
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0F766E;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #4A5568;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0F766E;
}

/* Buttons */
.btn-primary {
    background-color: #0F766E;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #115E59;
}

.btn-outline {
    border: 2px solid #0F766E;
    color: #0F766E;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: #0F766E;
    color: #FFFFFF;
}

.btn-secondary {
    background-color: #E2E8F0;
    color: #2D3748;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #CBD5E1;
}

/* Top Banner Image */
.top-banner-image {
    padding: 2rem 0 0 0;
    background: #F8FAFC;
}

.hero-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem 0;
    background: linear-gradient(135deg, #F0FDFA 0%, #F8FAFC 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background-color: #CCFBF1;
    color: #115E59;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: #1E293B;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.125rem;
    color: #64748B;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-card-accent {
    background: #0F766E;
    color: #FFFFFF;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-card-accent h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Sections General */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #1E293B;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-title p {
    color: #64748B;
    font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1E293B;
}

.service-card p {
    color: #64748B;
}

/* Why Us Section */
.why-us {
    background-color: #FFFFFF;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    background: #F8FAFC;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #0F766E;
}

.feature-item h3 {
    margin-bottom: 0.75rem;
    color: #1E293B;
}

.feature-item p {
    color: #64748B;
}

.full-service-banner {
    background: #F0FDFA;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #99F6E4;
    text-align: center;
}

.full-service-banner h3 {
    color: #0F766E;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.full-service-banner p {
    color: #334155;
    max-width: 900px;
    margin: 0 auto;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card p {
    font-style: italic;
    color: #475569;
    margin-bottom: 1.5rem;
}

.testimonial-card h4 {
    color: #0F766E;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    background-color: #FFFFFF;
    border-top: 1px solid #E2E8F0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item h3 {
    font-size: 1.2rem;
    color: #1E293B;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: #64748B;
}

/* Footer */
.site-footer {
    background-color: #0F172A;
    color: #FFFFFF;
    padding: 4rem 0 2rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-info h2 {
    color: #2DD4BF;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: #94A3B8;
}

.footer-contact h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-contact p {
    color: #94A3B8;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1E293B;
    color: #64748B;
    font-size: 0.875rem;
}

/* Hamburger Toggle Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #0F766E;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsive Design & Mobile Menu */
@media (max-width: 768px) {
    /* Force the header to stay locked to the top on mobile */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    /* Add padding to the top of the body/first section so content doesn't hide under the fixed header */
    body {
        padding-top: 70px; /* Matches the mobile nav container height */
    }

    .menu-toggle {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-container {
        position: relative;
        height: 70px; /* Adjust height for mobile */
    }

    /* Mobile Dropdown Container */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        border-bottom: 1px solid #E2E8F0;
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
        
        /* Hidden by default */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    /* Active State when toggled via JS */
    .nav-links.active {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F0FDFA 0%, #F8FAFC 100%);
    min-height: calc(100vh - 80px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-card {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.contact-info-card h2 {
    font-size: 2rem;
    color: #1E293B;
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: #64748B;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item h4 {
    color: #0F766E;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-detail-item p, .contact-detail-item a {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
}

.contact-detail-item a:hover {
    color: #0F766E;
}

/* Form Card Styling */
.contact-form-card {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.contact-form-card h2 {
    font-size: 2rem;
    color: #1E293B;
    margin-bottom: 0.5rem;
}

.contact-form-card .subtitle {
    color: #64748B;
    margin-bottom: 2rem;
}

/* Django Form Overrides & Custom Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Custom classes replacing Bootstrap widgets */
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #2D3748;
    background-color: #F8FAFC;
    transition: all 0.2s;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: #0F766E;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.contact-form-card select {
    height: 52px;
}

.errorlist {
    list-style: none;
    color: #E11D48;
    font-size: 0.875rem;
    margin-top: 0.4rem;
}

/* Mobile responsiveness for contact page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-form-card, .contact-info-card {
        padding: 2rem 1.5rem;
    }
}

/* Success Page Layout & Footer Sticking */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px); /* Subtracts the fixed header height */
}

.success-section {
    flex: 1; /* Pushes everything else away and takes available space */
    padding: 6rem 0;
    background: linear-gradient(135deg, #F0FDFA 0%, #F8FAFC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    background: #FFFFFF;
    padding: 3.5rem 3rem;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
}

.success-icon {
    width: 70px;
    height: 70px;
    background-color: #CCFBF1;
    color: #0F766E;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
}

.success-card h2 {
    font-size: 2.25rem;
    color: #1E293B;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.success-card p {
    color: #64748B;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    justify-content: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .success-section {
        padding: 4rem 1rem;
    }
    .success-card {
        padding: 2.5rem 1.5rem;
    }
    .success-card h2 {
        font-size: 1.8rem;
    }
}