/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #1a1a1a; /* Inherited from body, but explicitly set for safety */
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 60px;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevent image overflow */
}

.page-contact__hero-section .page-contact__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-contact__hero-content {
    flex: 1;
    min-width: 300px;
    z-index: 1;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-contact__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-contact__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element for max-width */
}

/* Why Contact Section */
.page-contact__why-contact-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-contact__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

.page-contact__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__feature-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
}

.page-contact__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__feature-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #017439; /* Brand primary color for titles */
}

.page-contact__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-contact__methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__method-icon {
    max-width: 100px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(1.2); /* Slightly brightens icons to stand out, but doesn't change color */
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce min-size for content images */
    min-height: 200px;
}

.page-contact__method-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-contact__method-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-contact__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-contact__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439; /* Brand primary color */
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Plus to X (minus) */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px 25px;
}

.page-contact__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* Commitment Section */
.page-contact__commitment-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-contact__commitment-section .page-contact__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-contact__commitment-content {
    flex: 1;
    min-width: 300px;
    z-index: 1;
}

.page-contact__commitment-image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__commitment-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;
    text-align: center;
}

.page-contact__cta-container {
    max-width: 800px;
}

.page-contact__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-contact__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Button Styles */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box; /* Include padding in width calculation */
}

.page-contact__btn-primary {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-contact__btn-primary:hover {
    background-color: #005f2f; /* Darker green on hover */
    border-color: #005f2f;
    color: #ffffff;
}

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color for text */
    border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #005f2f;
    color: #005f2f;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__cta-title {
        font-size: 2em;
    }
    .page-contact__hero-section .page-contact__container,
    .page-contact__commitment-section .page-contact__container {
        flex-direction: column;
        text-align: center;
    }
    .page-contact__hero-content,
    .page-contact__commitment-content {
        order: 2; /* Content below image on mobile */
    }
    .page-contact__hero-image-wrapper,
    .page-contact__commitment-image-wrapper {
        order: 1; /* Image above content on mobile */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
    }
    .page-contact__feature-title {
        font-size: 1.4em;
    }
    .page-contact__method-title {
        font-size: 1.3em;
    }
    .page-contact__faq-title {
        font-size: 1.1em;
    }
    .page-contact__cta-title {
        font-size: 1.8em;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Video responsiveness (if any) */
    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px; /* Space between stacked buttons */
    }

    /* General container padding for mobile */
    .page-contact__container,
    .page-contact__section,
    .page-contact__card {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Ensure no content area image is smaller than 200px (this is a check, not a style to force) */
    .page-contact__hero-image,
    .page-contact__method-icon,
    .page-contact__commitment-image {
        min-width: 200px;
        min-height: 200px;
    }
}