/* ===================================
   ABOUT US CUSTOM STYLES - BRANDED DESIGN
   QuickPlateRecipe.com - GeneratePress Child Theme
   Brand Colors: Purple #6B2F5F, Green #4A7156, Orange #D4840A, Cream #F5F3E9
   ================================== */

/* Reset and base styles for the About Us page */
.about-us-container {
    width: 100%;
    overflow-x: hidden;
}

/* Hero Section - Branded Green Theme */
.about-hero-section {
    background: linear-gradient(135deg, #4A7156 0%, #5A8666 100%);
    padding: 80px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
}

/* HERO IMAGE POSITIONING - DESKTOP */
/* Add this class to your hero image HTML: class="hero-image" */
/* To move image UP: Use negative margin-top values (e.g., -20px, -50px) */
/* To move image DOWN: Use positive margin-top values (e.g., 20px, 50px) */
/* Example: margin-top: -30px; (moves image 30px UP on desktop) */
/* Example: margin-top: 40px; (moves image 40px DOWN on desktop) */
/* Default position: 0px (no additional positioning) */
.hero-image {
    margin-top: 50px;
}

.about-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    font-family: 'Playfair Display', 'Merriweather', serif;
}

.about-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.about-hero-content .button {
    margin: 0 10px;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.about-hero-content .btn-primary {
    background: linear-gradient(135deg, #D4840A 0%, #FFA042 100%);
    color: #FFFFFF;
    position: relative;
    z-index: 10;
}

.about-hero-content .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about-hero-content .btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    position: relative;
    z-index: 10;
}

.about-hero-content .btn-secondary:hover {
    background-color: #FFFFFF;
    color: #4A7156;
}

/* Our Story Section - Cream/Purple Accents */
.our-story-section {
    display: flex;
    align-items: center;
    padding: 70px 0;
    gap: 50px;
    background-color: #F5F3E9;
}

.our-story-image {
    flex: 1;
}

.our-story-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.our-story-content {
    flex: 1;
    padding: 0 50px;
}

.our-story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #6B2F5F;
}

.our-story-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #5A5A5A;
}

/* Meet the Team Section - Branded Green */
.meet-the-team-section {
    padding: 70px 0;
    text-align: center;
    background: linear-gradient(135deg, #4A7156 0%, #5A8666 100%);
    color: #FFFFFF;
}

.meet-the-team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.team-member {
    flex: 0 1 300px;
    margin-bottom: 40px;
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #2C2C2C;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #D4840A;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #6B2F5F;
}

.team-member-link {
    color: #6B2F5F;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.team-member-link:hover {
    color: #D4840A;
    border-bottom-color: #D4840A;
    transform: translateY(-1px);
}

.team-member .expertise {
    font-weight: 600;
    color: #4A7156;
    /* Improved contrast for accessibility */
    margin-bottom: 15px;
}

.team-member blockquote {
    font-style: italic;
    color: #5A5A5A;
    position: relative;
    padding: 0 20px;
}

.team-member blockquote:before {
    content: "“";
    font-size: 3rem;
    color: #D4840A;
    position: absolute;
    left: 0;
    top: -10px;
}

/* Our Philosophy Section - Cream with Orange Accents */
.our-philosophy-section {
    padding: 70px 0;
    text-align: center;
    position: relative;
    background:
        /* Subtle background texture at 0.2 opacity - easy to adjust */
        linear-gradient(rgba(245, 243, 233, 0.8), rgba(250, 245, 240, 0.8)),
        /* Background image centered and covering entire section */
        url('../assets/images/about-us-team-images/6_ philosophy-butter-background.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.philosophy-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.philosophy-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.philosophy-content {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #6B2F5F;
}

.philosophy-content>p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #5A5A5A;
}

.philosophy-content ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin-top: 30px;
    flex-wrap: wrap;
}

.philosophy-content ul li {
    flex: 0 1 200px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.philosophy-content ul li:hover {
    transform: translateY(-5px);
}

.philosophy-content .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    color: #D4840A;
}

.philosophy-content .value-text strong {
    color: #D4840A;
}

/* What We Create Section - Branded Purple */
.what-we-create-section {
    padding: 70px 0;
    text-align: center;
    background: linear-gradient(135deg, #6B2F5F 0%, #8B4A7A 100%);
    color: #FFFFFF;
}

.what-we-create-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #FFFFFF;
}

.category-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category-card {
    flex: 0 1 300px;
    background-color: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #2C2C2C;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    font-size: 1.5rem;
    margin: 20px 20px 10px;
    color: #6B2F5F;
}

.category-card p {
    padding: 0 20px 20px;
    color: #5A5A5A;
}

.category-card .cta {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #D4840A 0%, #FFA042 100%);
    color: #FFFFFF;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-card .cta:hover {
    transform: scale(1.05);
}

/* Behind the Scenes - Cream with Green/Orange */
.behind-the-scenes-section {
    padding: 70px 0;
    text-align: center;
    background-color: #F5F3E9;
}

.behind-the-scenes-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #4A7156;
}

.text-overlay {
    font-size: 1.2rem;
    color: #5A5A5A;
    margin-bottom: 40px;
    font-style: italic;
}

.gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    flex: 0 1 300px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 4px solid #D4840A;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Community Call Section - Orange Gradient */
.community-call-section {
    padding: 70px 0;
    text-align: center;
    background:
        /* Subtle background texture at 0.2 opacity - easy to adjust */
        linear-gradient(rgba(212, 132, 100, .9), rgba(255, 160, 66, 0.9)),
        /* Background image centered and covering entire section */
        url('../assets/images/about-us-team-images/14-2_ community-call-butter-family.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: #FFFFFF;
}

.community-call-section h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: black;
}

.community-call-section>p {
    font-size: 1.7rem;
    margin-bottom: 40px;
    color: white;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.community-call-section form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.community-call-section input[type="email"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #FFFFFF;
    border-radius: 25px;
    font-size: 1rem;
}

.community-call-section button {
    padding: 12px 30px;
    background-color: #6B2F5F;
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.community-call-section button:hover {
    background-color: #4A7156;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero-content h1 {
        font-size: 2.5rem;
    }

    /* Optimized spacing for mobile */
    .about-hero-section {
        padding: 40px 20px;
        gap: 20px;
    }

    .about-hero-content {
        margin-bottom: 15px;
    }

    .hero-image {
        margin-top: -20px;
        max-width: max-width
            /* HERO IMAGE POSITIONING - MOBILE */
            /* To move image UP: Use negative margin-top values (e.g., -10px, -30px) */
            /* To move image DOWN: Use positive margin-top values (e.g., 10px, 30px) */
            /* Example: margin-top: -20px; (moves image 20px UP on mobile) */
            /* Example: margin-top: 25px; (moves image 25px DOWN on mobile) */

            /* Current position: 15px DOWN from default on mobile */
            /* margin-top: 15px; */
    }

    /* Optimized button spacing on mobile */
    .about-hero-content .button {
        margin: 8px 5px;
        display: block;
        width: 100%;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }

    .our-story-section {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }

    .our-story-content {
        padding: 0 20px;
    }

    /* Reduce spacing in philosophy content lists */
    .philosophy-content ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }

    .philosophy-content ul li {
        margin-bottom: 15px;
    }

    .community-call-section form {
        flex-direction: column;
    }
}

/* Fix behind-the-scenes section title color */
.behind-the-scenes-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #6B2F5F;
}

/* Contact Form 7 Styling for About Us Page */
.butter-about-form-wrapper .wpcf7-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Handle CF7 paragraph wrappers */
.butter-about-form-wrapper .wpcf7-form p {
    margin: 0;
    width: 100%;
    display: flex;
    gap: 10px;
}

/* If CF7 wraps inputs in separate paragraphs, we might need this */
.butter-about-form-wrapper .wpcf7-form>p {
    display: contents;
    /* Removes the p tag from the layout flow */
}

/* Input Styling */
.butter-about-form-wrapper input[type="email"],
.butter-about-form-wrapper input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #FFFFFF;
    border-radius: 25px;
    font-size: 1rem;
    width: 100%;
    /* Ensure it takes full width of flex item */
    background: rgba(255, 255, 255, 0.9);
}

/* Submit Button Styling */
.butter-about-form-wrapper input[type="submit"] {
    padding: 12px 30px;
    background-color: #6B2F5F;
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.butter-about-form-wrapper input[type="submit"]:hover {
    background-color: #4A7156;
    transform: translateY(-3px);
}

/* Mobile Responsiveness for Form */
@media (max-width: 768px) {
    .butter-about-form-wrapper .wpcf7-form {
        flex-direction: column;
    }

    .butter-about-form-wrapper .wpcf7-form p {
        flex-direction: column;
    }

    .butter-about-form-wrapper input[type="submit"] {
        width: 100%;
    }
}

/* Hide CF7 Response Output/Loader if desired for cleaner look, or style it */
.butter-about-form-wrapper .wpcf7-response-output {
    border: none !important;
    padding: 10px !important;
    margin: 10px 0 0 !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    color: #333;
    width: 100%;
}