/* style/about.css */

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

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--f8bey-text-main); /* Default text color for the page */
    background-color: var(--f8bey-bg-dark); /* Ensure body background is handled by shared.css */
    line-height: 1.6;
}

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__section-title {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* Responsive font size */
    color: var(--f8bey-text-main);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--f8bey-primary);
    border-radius: 2px;
}

.page-about__text-block {
    color: var(--f8bey-text-secondary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: 20px; /* Space between image and content */
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Using clamp for responsive h1 */
    color: var(--f8bey-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    max-width: 600px; /* Restrict width for better readability */
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-description {
    font-size: 1.2rem;
    color: var(--f8bey-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    background: var(--f8bey-btn-gradient);
    color: var(--f8bey-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

/* Introduction Section */
.page-about__introduction {
    background-color: var(--f8bey-bg-dark);
}

/* History Section */
.page-about__history {
    background-color: var(--f8bey-card-bg);
}

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

.page-about__content-flex--reverse {
    flex-direction: row-reverse;
}

.page-about__text-content {
    flex: 1;
}

.page-about__image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

/* Vision and Mission */
.page-about__vision-mission {
    background-color: var(--f8bey-bg-dark);
}

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

.page-about__card {
    background-color: var(--f8bey-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--f8bey-border);
}

.page-about__card-title {
    font-size: 1.5rem;
    color: var(--f8bey-gold);
    margin-bottom: 15px;
}

/* Core Values */
.page-about__core-values {
    background-color: var(--f8bey-card-bg);
}

.page-about__value-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-about__value-item {
    background-color: var(--f8bey-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--f8bey-divider);
}

.page-about__value-heading {
    font-size: 1.3rem;
    color: var(--f8bey-primary);
    margin-bottom: 10px;
}

/* Products and Services */
.page-about__products-services {
    background-color: var(--f8bey-bg-dark);
}

.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(--f8bey-card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--f8bey-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-about__product-title {
    font-size: 1.4rem;
    color: var(--f8bey-gold);
    margin-bottom: 10px;
}

.page-about__product-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--f8bey-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-about__product-link:hover {
    color: var(--f8bey-glow);
    text-decoration: underline;
}

/* Commitment Section */
.page-about__commitment {
    background-color: var(--f8bey-card-bg);
}

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

.page-about__commitment-item {
    background-color: var(--f8bey-bg-dark);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--f8bey-divider);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__commitment-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--f8bey-glow)); /* Only for icon, not changing color */
}

.page-about__commitment-heading {
    font-size: 1.3rem;
    color: var(--f8bey-primary);
    margin-bottom: 10px;
}

.page-about__cta-wrapper {
    margin-top: 40px;
}

/* Why Choose Us */
.page-about__why-choose-us {
    background-color: var(--f8bey-bg-dark);
}

.page-about__advantages-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-about__advantage-item {
    background-color: var(--f8bey-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--f8bey-divider);
}

.page-about__advantage-heading {
    font-size: 1.3rem;
    color: var(--f8bey-gold);
    margin-bottom: 10px;
}

/* Team Section */
.page-about__team {
    background-color: var(--f8bey-card-bg);
}

/* FAQ Section */
.page-about__faq {
    background-color: var(--f8bey-bg-dark);
}

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

.page-about__faq-item {
    background-color: var(--f8bey-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--f8bey-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--f8bey-text-main);
    font-weight: bold;
    user-select: none;
}

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

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

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--f8bey-gold);
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-image {
        max-height: 400px;
    }
    .page-about__content-flex {
        flex-direction: column;
        text-align: center;
    }
    .page-about__content-flex--reverse {
        flex-direction: column;
    }
    .page-about__image {
        max-width: 80%;
        margin-bottom: 30px;
    }
    .page-about__text-content {
        flex: none;
        width: 100%;
    }
    .page-about__value-list,
    .page-about__product-grid,
    .page-about__commitment-grid,
    .page-about__advantages-list,
    .page-about__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .page-about__text-block {
        font-size: 1rem;
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
    }
    .page-about__hero-image {
        max-height: 300px;
    }
    .page-about__hero-content {
        padding: 30px 15px;
        margin-top: 15px;
    }
    .page-about__main-title {
        font-size: 2.2rem;
    }
    .page-about__hero-description {
        font-size: 1.1rem;
    }
    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__container {
        padding: 0 15px;
    }

    /* Image responsive styles */
    .page-about img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-about__hero-section,
    .page-about__introduction,
    .page-about__history,
    .page-about__vision-mission,
    .page-about__core-values,
    .page-about__products-services,
    .page-about__commitment,
    .page-about__why-choose-us,
    .page-about__team,
    .page-about__faq {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__product-card,
    .page-about__value-item,
    .page-about__commitment-item,
    .page-about__advantage-item,
    .page-about__card {
        padding: 20px;
    }
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* Button specific mobile rules */
    .page-about__cta-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    .page-about__cta-button {
        width: 100%; /* Ensure full width for single buttons */
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8rem;
    }
    .page-about__hero-description {
        font-size: 1rem;
    }
    .page-about__section-title {
        font-size: 1.8rem;
    }
    .page-about__card-title,
    .page-about__value-heading,
    .page-about__product-title,
    .page-about__commitment-heading,
    .page-about__advantage-heading {
        font-size: 1.2rem;
    }
}