/* style/about.css */

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

    /* Fallback for body background if not set in shared */
    --bg-body: var(--vin77-background); /* Assuming shared sets this, fallback to our background */
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--vin77-text-main); /* Default text color for the page */
    background-color: var(--bg-body); /* Inherit from body, which should be set 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__container--center {
    text-align: center;
}

.page-about__section {
    padding: 60px 0;
    position: relative;
}

.page-about__dark-section {
    background-color: var(--vin77-background);
    color: var(--vin77-text-main);
}

.page-about__light-bg {
    background-color: var(--vin77-card-bg); /* Use card background for a lighter section */
    color: var(--vin77-text-main);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding as per rule, body takes care of header offset */
    overflow: hidden; /* Ensure nothing overflows */
}

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

.page-about__hero-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    object-fit: cover; /* Cover the area */
}

.page-about__hero-content {
    position: relative; /* Not absolute, to ensure it's below the image */
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-about__main-title {
    font-size: clamp(2.2em, 5vw, 3.5em); /* Responsive font size */
    color: var(--vin77-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__intro-text {
    font-size: 1.1em;
    color: var(--vin77-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Titles & Text */
.page-about__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    color: var(--vin77-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
    text-shadow: 0 0 5px rgba(17, 168, 78, 0.3);
}

.page-about__sub-title {
    font-size: clamp(1.4em, 3vw, 2em);
    color: var(--vin77-gold);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-about p {
    margin-bottom: 1em;
    color: var(--vin77-text-main);
}

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

/* CTA Buttons */
.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-about__cta-button--primary {
    background: var(--vin77-button-gradient);
    color: #ffffff;
    border: none;
}

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

.page-about__cta-button--secondary {
    background-color: transparent;
    color: var(--vin77-primary);
    border: 2px solid var(--vin77-primary);
}

.page-about__cta-button--secondary:hover {
    background-color: var(--vin77-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Grids */
.page-about__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

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

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

.page-about__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Feature Lists */
.page-about__feature-list,
.page-about__security-list,
.page-about__history-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1em;
}

.page-about__feature-list li,
.page-about__security-list li,
.page-about__history-list li {
    background: var(--vin77-card-bg);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid var(--vin77-primary);
    border-radius: 5px;
    color: var(--vin77-text-main);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.page-about__feature-list li:hover,
.page-about__security-list li:hover,
.page-about__history-list li:hover {
    transform: translateX(5px);
}

.page-about__feature-list li strong,
.page-about__security-list li strong,
.page-about__history-list li strong {
    color: var(--vin77-gold);
}

/* Core Values Grid */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__value-card {
    background: var(--vin77-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--vin77-divider);
}

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

.page-about__card-title {
    font-size: 1.5em;
    color: var(--vin77-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__value-card p {
    color: var(--vin77-text-secondary);
}

/* Our Team Section */
.page-about__team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__team-member {
    text-align: center;
    background: var(--vin77-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--vin77-divider);
}

.page-about__team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--vin77-primary);
    box-shadow: 0 0 0 5px var(--vin77-deep-green); /* Inner glow effect */
    min-width: 200px; /* Ensure minimum size is met, even for circular images */
    min-height: 200px;
}

.page-about__member-name {
    font-size: 1.3em;
    color: var(--vin77-gold);
    margin-bottom: 5px;
    font-weight: bold;
}

.page-about__member-role {
    color: var(--vin77-text-secondary);
    font-size: 0.95em;
}

.page-about__team-motto {
    text-align: center;
    margin-top: 50px;
    font-style: italic;
    color: var(--vin77-text-secondary);
    font-size: 1.1em;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background: var(--vin77-card-bg);
    border: 1px solid var(--vin77-divider);
    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: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--vin77-primary);
    cursor: pointer;
    background: var(--vin77-deep-green);
    border-bottom: 1px solid var(--vin77-divider);
    transition: background-color 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-question {
    background: var(--vin77-primary);
    color: #ffffff;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    color: #ffffff;
}

.page-about__faq-question:hover {
    background-color: var(--vin77-primary);
    color: #ffffff;
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: inherit; /* Inherit from parent, allowing hover change */
}

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

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

.page-about__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--vin77-text-secondary);
    background: var(--vin77-card-bg);
}

.page-about__faq-answer p {
    color: var(--vin77-text-secondary);
    margin-bottom: 10px;
}

.page-about__faq-answer a {
    color: var(--vin77-primary);
    text-decoration: underline;
}

.page-about__faq-answer a:hover {
    color: var(--vin77-gold);
}

/* Details/Summary specific styling */
.page-about__faq-item summary {
    list-style: none; /* Remove default marker */
}

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

/* Call to Action Section */
.page-about__call-to-action {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--vin77-deep-green) 0%, var(--vin77-primary) 100%);
    color: #ffffff;
}

.page-about__call-to-action .page-about__section-title {
    color: var(--vin77-gold);
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-about__call-to-action .page-about__section-description {
    color: #ffffff;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__content-grid {
        flex-direction: column;
    }
    .page-about__content-grid--reverse {
        flex-direction: column; /* Keep column for reverse on smaller screens */
    }
    .page-about__image-block {
        order: -1; /* Move image above text block in column layout */
        margin-bottom: 30px;
    }
    .page-about__hero-image-wrapper {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }

    .page-about__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body takes care of header offset */
    }

    .page-about__hero-image-wrapper {
        max-height: 300px;
    }

    .page-about__main-title {
        font-size: 2em;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: 1.3em;
    }

    .page-about__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0;
    }

    .page-about__cta-button-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-about__image,
    .page-about__team-photo {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-about__container,
    .page-about__section,
    .page-about__card,
    .page-about__value-card,
    .page-about__team-member,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden; /* Ensure content doesn't overflow */
    }

    .page-about p,
    .page-about li,
    .page-about__faq-answer p {
        font-size: 16px;
        line-height: 1.6;
    }

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

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.6em;
    }
    .page-about__sub-title {
        font-size: 1.2em;
    }
    .page-about__value-card,
    .page-about__team-member {
        padding: 20px;
    }
}

/* Accessibility - Contrast Fix (for dark-bg sections with potential light text issues) */
/* This is a safeguard, assuming the base color choices are good */
.page-about__dark-section p,
.page-about__dark-section li {
    color: var(--vin77-text-main); /* Ensure light text on dark background */
}

/* Ensure all content images meet the minimum size requirement and are responsive */
.page-about__content-area img,
.page-about__image-block img,
.page-about__team-photo {
  min-width: 200px;
  min-height: 200px;
}