/* style/about.css */

/* Custom Colors */
:root {
    --page-about-bg: #08160F;
    --page-about-card-bg: #11271B;
    --page-about-text-main: #F2FFF6;
    --page-about-text-secondary: #A7D9B8;
    --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-about-border: #2E7A4E;
    --page-about-glow: #57E38D;
    --page-about-gold: #F2C14E;
    --page-about-divider: #1E3A2A;
    --page-about-deep-green: #0A4B2C;
}

.page-about {
    background-color: var(--page-about-bg);
    color: var(--page-about-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* 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;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Ensure image doesn't exceed wrapper height */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    color: var(--page-about-text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-about__hero-description {
    font-size: 1.2rem;
    color: var(--page-about-text-secondary);
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
    min-width: 180px; /* Ensure a minimum width for buttons */
}

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: var(--page-about-card-bg); /* Darker background for secondary button */
    color: var(--page-about-glow); /* Green Gold text for contrast */
    border: 2px solid var(--page-about-glow);
}

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

.page-about__btn-link {
    background: transparent;
    color: var(--page-about-glow);
    border: 1px solid var(--page-about-glow);
    padding: 10px 20px;
    font-size: 1rem;
    min-width: auto;
}

.page-about__btn-link:hover {
    background: var(--page-about-glow);
    color: var(--page-about-card-bg);
}

/* Sections */
.page-about__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-about-divider);
}

.page-about__section:last-of-type {
    border-bottom: none;
}

.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--page-about-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-about__introduction p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--page-about-text-secondary);
}

/* Dark Sections for contrast */
.page-about__dark-section {
    background-color: var(--page-about-deep-green); /* Use deep green for dark sections */
    color: var(--page-about-text-main);
}

.page-about__dark-section .page-about__section-title {
    color: var(--page-about-text-main);
}

/* Mission & Vision */
.page-about__mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__mission-card {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__mission-icon {
    width: 400px; /* HTML width attribute */
    height: 300px; /* HTML height attribute */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-about__mission-card p {
    color: var(--page-about-text-secondary);
    font-size: 1rem;
}

/* Why Choose Us */
.page-about__why-choose-us {
    background-color: var(--page-about-bg); /* Ensure light text on dark bg */
}

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

.page-about__feature-card {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-icon {
    width: 300px; /* HTML width attribute */
    height: 200px; /* HTML height attribute */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-about__feature-card p {
    color: var(--page-about-text-secondary);
    font-size: 1rem;
}

/* Products & Services */
.page-about__product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__product-card {
    background-color: var(--page-about-card-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-about__product-image {
    width: 100%;
    height: 200px; /* Fixed height for product images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-about__product-card p {
    color: var(--page-about-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

/* Commitment */
.page-about__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__commitment-list li {
    background-color: var(--page-about-card-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: var(--page-about-text-main);
    font-size: 1.1rem;
    border-left: 5px solid var(--page-about-glow);
}

.page-about__commitment-list li strong {
    color: var(--page-about-gold);
}

.page-about__commitment p {
    font-size: 1.1rem;
    margin-top: 30px;
    text-align: center;
    color: var(--page-about-text-secondary);
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--page-about-deep-green);
    color: var(--page-about-text-main);
}

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

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

.page-about__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-about-text-main);
    transition: background-color 0.3s ease;
}

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

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

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--page-about-text-main);
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
    content: "−"; /* Change to minus when open, handled by JS for non-details */
}

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

/* CTA Bottom */
.page-about__cta-bottom {
    text-align: center;
    padding: 80px 0;
}

.page-about__cta-content {
    max-width: 800px;
}

.page-about__cta-bottom p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--page-about-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-about__hero-description {
        font-size: 1.1rem;
    }
    .page-about__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-about__mission-icon,
    .page-about__feature-icon {
        width: 100%; /* HTML width attribute is larger, but CSS scales */
        height: auto; /* HTML height attribute is larger, but CSS scales */
        max-height: 250px;
    }
    .page-about__product-image {
        height: auto;
        max-height: 180px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-bottom: 40px;
    }
    .page-about__hero-image {
        max-height: 400px;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-about__hero-description {
        font-size: 1rem;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-about__container,
    .page-about__introduction,
    .page-about__mission-grid,
    .page-about__feature-grid,
    .page-about__product-grid,
    .page-about__commitment-list,
    .page-about__faq-list,
    .page-about__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__hero-image-wrapper,
    .page-about__mission-card,
    .page-about__feature-card,
    .page-about__product-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__mission-icon,
    .page-about__feature-icon {
        width: 100% !important;
        height: auto !important; /* Allow height to adjust */
        max-height: 150px !important; /* Max height to prevent overly tall images */
    }

    .page-about__product-image {
        height: auto !important;
        max-height: 180px !important; /* Max height for product images */
    }

    .page-about__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px 15px;
    }
    .page-about__faq-toggle {
        font-size: 1.5rem;
    }
}