/* About Us Page Fixes
   This CSS fixes styling and centering issues on the About Us page
*/

/* Fix for headings alignment and spacing */
.about-intro h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-red);
    position: relative;
    padding-bottom: 15px;
    font-size: 2rem;
}

.about-intro h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-red);
}

/* Fix for the FAQ section title container */
.faq-section h2 {
    margin: 0 auto 40px;
    text-align: center;
}

/* Fix for image display and centering */
.full-width-image {
    display: block;
    margin: 30px auto;
}

/* Fix for timeline section alignment */
.timeline {
    margin: 0 auto;
}

/* Ensure proper padding for sections */
section {
    padding: 60px 0;
}

/* Fix container padding on mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Fix FAQ section alignment and spacing */
.faq-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-item {
    width: 100%;
}

/* Fix for the luxury CTA section on mobile */
@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

/* Fix certification grid alignment */
.certification-grid {
    justify-content: center;
}

/* Ensure proper spacing between sections */
.about-intro,
.mission-vision,
.company-timeline,
.meet-the-team,
.sustainability-section,
.certifications-section,
.luxury-cta,
.faq-section,
.contact-section {
    margin-bottom: 0;
}

/* Fix for contact form alignment */
.contact-section .container {
    justify-content: center;
}

/* Fix for the sustainability items */
.sustainability-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Improve responsive behavior for two column layouts */
@media (max-width: 991px) {
    .sustainability-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sustainability-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix animation timing for a smoother experience */
.fade-in {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Fix for hero section on smaller screens */
@media (max-width: 768px) {
    .luxury-title {
        font-size: 2.2rem;
    }
    
    .about-hero {
        padding: 40px 0;
    }
}

/* Fix for team member cards to be equal height */
.team-member {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Fix for form alignment */
.wpforms-container {
    margin: 0 auto !important;
}

/* Fix table of contents on mobile */
@media (max-width: 768px) {
    .table-of-contents ul {
        padding: 0;
    }
    
    .table-of-contents li {
        margin-bottom: 10px;
    }
}