/* style/about.css */

/* Custom Variables based on provided palette */
:root {
    --page-about-bg-color: #08160F; /* Background */
    --page-about-card-bg: #11271B; /* Card BG */
    --page-about-text-main: #F2FFF6; /* Text Main */
    --page-about-text-secondary: #A7D9B8; /* Text Secondary */
    --page-about-border-color: #2E7A4E; /* Border */
    --page-about-glow-color: #57E38D; /* Glow */
    --page-about-gold-color: #F2C14E; /* Gold */
    --page-about-divider-color: #1E3A2A; /* Divider */
    --page-about-deep-green: #0A4B2C; /* Deep Green */
    --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
    --page-about-primary-color: #11A84E; /* Main color */
    --page-about-secondary-color: #22C768; /* Auxiliary color */
}

.page-about {
    background-color: var(--page-about-bg-color);
    color: var(--page-about-text-main); /* Dark background, so light text */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

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

.page-about__container--flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.page-about__section-title {
    font-size: clamp(28px, 4vw, 42px); /* H1 font size constraint */
    color: var(--page-about-gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, body handles --header-offset */
    overflow: hidden; /* Ensure no overflow from image */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

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

.page-about__hero-content {
    position: relative; /* Ensure content is above image but not overlapping */
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly, but not over image */
    z-index: 1; /* Ensure content is above image */
}

.page-about__main-title {
    font-size: clamp(32px, 5vw, 56px); /* H1 font size constraint */
    color: var(--page-about-gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-about__description {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--page-about-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__cta-buttons--center {
    margin-top: 40px;
    justify-content: center;
}

.page-about__cta-buttons--end {
    justify-content: flex-end;
}

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

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: var(--page-about-text-main); /* White text on dark/gradient button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-gold-color);
    border: 2px solid var(--page-about-gold-color);
}

.page-about__btn-secondary:hover {
    background-color: var(--page-about-gold-color);
    color: var(--page-about-bg-color);
    transform: translateY(-2px);
}

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

/* History Section */
.page-about__history-section {
    padding: 60px 0;
    background-color: var(--page-about-deep-green); /* Use a darker green for contrast */
}

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

.page-about__text-content {
    flex: 1;
    min-width: 300px;
}

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

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

/* Values Section */
.page-about__values-section {
    padding: 60px 0;
    background-color: var(--page-about-bg-color);
}

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

.page-about__value-card {
    background-color: var(--page-about-card-bg); /* Card BG color */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-about-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-about__value-icon {
    width: 200px; /* Minimum size enforcement */
    height: 200px; /* Minimum size enforcement */
    object-fit: contain;
    margin: 0 auto 20px;
    border-radius: 5px;
    display: block;
}

.page-about__value-title {
    font-size: 24px;
    color: var(--page-about-gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Products Section */
.page-about__products-section {
    padding: 60px 0;
    background-color: var(--page-about-deep-green); /* Darker green */
}

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

.page-about__product-card {
    background-color: var(--page-about-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-about-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-about__product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-about__product-image {
    width: 100%;
    height: 200px; /* Fixed height for product images, ensuring min size */
    object-fit: cover;
    display: block;
}

.page-about__product-title {
    font-size: 22px;
    color: var(--page-about-gold-color);
    margin: 20px 20px 10px;
    font-weight: 600;
}

.page-about__product-title a {
    color: var(--page-about-gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__product-title a:hover {
    color: var(--page-about-glow-color);
    text-decoration: underline;
}

.page-about__product-card .page-about__text-block {
    padding: 0 20px 20px;
    margin-bottom: 0;
    color: var(--page-about-text-secondary);
    flex-grow: 1;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 60px 0;
    background-color: var(--page-about-bg-color);
}

.page-about__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__list-item {
    background-color: var(--page-about-card-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 5px solid var(--page-about-gold-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--page-about-text-main);
}

.page-about__list-item strong {
    color: var(--page-about-gold-color);
}

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

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

.page-about__faq-item {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: var(--page-about-gold-color);
    background-color: var(--page-about-card-bg);
    user-select: none;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-about-glow-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: "−"; /* Changes to minus when open */
}

/* Hide default marker for details/summary */
.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-about__faq-item summary {
    list-style: none;
}

.page-about__faq-answer {
    padding: 0 20px 20px;
    font-size: 16px;
    color: var(--page-about-text-secondary);
}

/* Final CTA Section */
.page-about__final-cta {
    padding: 60px 0;
    background-color: var(--page-about-bg-color);
    text-align: center;
}

.page-about__final-cta .page-about__section-title {
    margin-bottom: 20px;
}

.page-about__final-cta .page-about__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-content {
        margin-top: -50px;
        padding: 30px 15px;
    }
    .page-about__content-flex {
        flex-direction: column;
    }
    .page-about__image-wrapper {
        order: -1; /* Image first on smaller screens */
    }
    .page-about__container--flex {
        flex-direction: column;
        text-align: center;
    }
    .page-about__cta-buttons--end {
        justify-content: center;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 15px;
        line-height: 1.5;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 30px;
    }
    .page-about__main-title {
        font-size: clamp(28px, 7vw, 48px);
        margin-bottom: 15px;
    }
    .page-about__description {
        font-size: clamp(16px, 3vw, 20px);
        margin-bottom: 25px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__hero-section,
    .page-about__intro-section,
    .page-about__history-section,
    .page-about__values-section,
    .page-about__products-section,
    .page-about__why-choose-us,
    .page-about__faq-section,
    .page-about__final-cta,
    .page-about__card,
    .page-about__container,
    .page-about__content-flex,
    .page-about__image-wrapper,
    .page-about__value-card,
    .page-about__product-card,
    .page-about__faq-item,
    .page-about__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px; /* Add padding to content sections */
        padding-right: 15px; /* Add padding to content sections */
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-about__hero-content {
        margin-top: 0; /* No negative margin on mobile */
    }

    .page-about__value-icon,
    .page-about__product-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-about__value-icon {
        width: 100% !important; /* Make icons fill width on mobile */
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-about__section-title {
        font-size: clamp(22px, 8vw, 32px);
    }
    .page-about__main-title {
        font-size: clamp(26px, 9vw, 40px);
    }
}