/* style/about.css */

/* Color Variables */
:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* --- Base Styles --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page, derived from body background */
    background-color: var(--background); /* Overall background color */
}

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

.page-about__section-title {
    font-size: clamp(2.2em, 4vw, 2.8em); /* Responsive font size */
    font-weight: bold;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__subsection-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--gold); /* Using gold for secondary titles for accent */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__section-description,
.page-about__lead-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure contrast for all text elements */
h1.page-about__main-title, .page-about h2, .page-about h3, .page-about h4, .page-about h5, .page-about h6 {
    color: var(--text-main);
}
.page-about p, .page-about li {
    color: var(--text-secondary);
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--deep-green); /* A darker shade for the hero background */
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast, not color change */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--main-color); /* Using main color for text on dark background */
    border: 2px solid var(--main-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary:hover {
    background: var(--main-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-about__btn-inline {
    background: transparent;
    color: var(--gold); /* Use gold for inline button */
    border: 1px solid var(--gold);
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
    margin-top: 10px;
    display: inline-block;
}

.page-about__btn-inline:hover {
    background: var(--gold);
    color: var(--background);
}

/* --- Intro Section --- */
.page-about__intro-section {
    padding: 60px 0;
    background-color: var(--background);
}

.page-about__content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.page-about__text-block {
    flex: 2;
    min-width: 300px;
    color: var(--text-main);
}

.page-about__text-block p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.page-about__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us {
    padding: 80px 0;
    background-color: var(--card-bg); /* Darker background for this section */
    color: var(--text-main);
}

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

.page-about__feature-card {
    background-color: var(--deep-green); /* Even darker background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    border: 1px solid var(--divider);
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-about__feature-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px; /* Added for consistency */
}

.page-about__card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--gold); /* Gold for card titles */
    margin-bottom: 15px;
}

.page-about__feature-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    color: var(--text-secondary);
}

.page-about__feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.page-about__feature-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--glow); /* Green glow for checkmark */
}

/* --- CTA Section --- */
.page-about__cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color)); /* Gradient background for CTA */
    text-align: center;
    color: #ffffff;
}

.page-about__cta-section .page-about__section-title {
    color: #ffffff;
}

.page-about__cta-section .page-about__section-description {
    color: rgba(255, 255, 255, 0.9);
}

/* --- FAQ Section --- */
.page-about__faq-section {
    padding: 60px 0;
    background-color: var(--background);
}

.page-about__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-about__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--divider);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--gold); /* Gold for FAQ questions */
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

.page-about__faq-question:hover {
    background-color: var(--deep-green);
}

.page-about__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 30px;
    text-align: center;
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Sufficiently large for content */
    padding-top: 10px;
}

.page-about__faq-answer p {
    margin-bottom: 10px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__subsection-title {
        font-size: 1.6em;
    }
    .page-about__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
        padding-bottom: 40px;
    }

    .page-about__main-title {
        font-size: clamp(2em, 8vw, 2.8em);
    }

    .page-about__lead-text {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about 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 !important;
        padding-right: 15px !important;
    }
    
    .page-about__btn-inline {
        width: auto !important; /* Allow inline buttons to be smaller */
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-about__intro-section,
    .page-about__why-choose-us,
    .page-about__cta-section,
    .page-about__faq-section {
        padding: 40px 0;
    }

    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__content-grid {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__feature-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Ensure all images are responsive and don't overflow */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__hero-image-wrapper,
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-about__faq-answer {
        padding: 0 20px 15px;
    }

    /* Content area images CSS dimensions lower bound */
    .page-about__text-block img,
    .page-about__image-block img,
    .page-about__feature-card img {
        min-width: 200px !important;
        min-height: 200px !important;
        width: auto !important; /* Allow auto width to maintain aspect ratio */
        height: auto !important;
        object-fit: contain;
    }
}