/* ===================================
   ABOUT US CUSTOM STYLES - BRANDED DESIGN
   QuickPlateRecipe.com - GeneratePress Child Theme
   Brand Colors: Purple var(--color-purple), Green var(--color-dark-green), Orange var(--color-orange-secondary), Cream var(--color-bg-light)
   ================================== */

/* 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, var(--color-about-hero-bg) 0%, var(--color-primary-light) 100%);
    padding: 80px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--color-text-white);
}

/* 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: var(--color-text-white);
    text-shadow: 1px 1px 3px var(--color-shadow-medium);
    font-family: 'Playfair Display', 'Merriweather', serif;
}

.about-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-text-white);
}

.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, var(--color-orange-secondary) 0%, var(--color-orange-light) 100%);
    color: var(--color-text-white);
    position: relative;
    z-index: 10;
}

.about-hero-content .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px var(--color-shadow-medium);
}

.about-hero-content .btn-secondary {
    background-color: transparent;
    color: var(--color-text-white);
    border: 2px solid var(--color-text-white);
    position: relative;
    z-index: 10;
}

.about-hero-content .btn-secondary:hover {
    background-color: var(--color-text-white);
    color: var(--color-dark-green);
}

/* Our Story Section - Cream/Purple Accents */
.our-story-section {
    display: flex;
    align-items: center;
    padding: 70px 0;
    gap: 50px;
    background-color: var(--color-bg-light);
}

.our-story-image {
    flex: 1;
}

.our-story-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 20px var(--color-shadow-light);
}

.our-story-content {
    flex: 1;
    padding: 0 50px;
}

.our-story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-purple);
}

.our-story-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Meet the Team Section - Branded Green */
.meet-the-team-section {
    padding: 70px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--color-dark-green) 0%, var(--color-green-light) 100%);
    color: var(--color-text-white);
}

.meet-the-team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--color-text-white);
    text-shadow: 1px 1px 3px var(--color-shadow-medium);
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.team-member {
    flex: 0 1 300px;
    margin-bottom: 40px;
    background-color: var(--color-text-white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 20px var(--color-transparent-black-15);
    color: var(--color-text-primary);
    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 var(--color-orange-secondary);
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-purple);
}

.team-member-link {
    color: var(--color-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.team-member-link:hover {
    color: var(--color-orange-secondary);
    border-bottom-color: var(--color-orange-secondary);
    transform: translateY(-1px);
}

.team-member .expertise {
    font-weight: 600;
    color: var(--color-dark-green);
    /* Improved contrast for accessibility */
    margin-bottom: 15px;
}

.team-member blockquote {
    font-style: italic;
    color: var(--color-text-secondary);
    position: relative;
    padding: 0 20px;
}

.team-member blockquote:before {
    content: "“";
    font-size: 3rem;
    color: var(--color-orange-secondary);
    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 image is sourced from JSON via HTML for modularity */
    /* Only gradient overlay defined here */
    background: linear-gradient(var(--color-transparent-white-80), var(--color-transparent-white-80));
    background-size: cover;
    background-position: center;
}

.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.3;
}

.philosophy-content {
    position: relative;
    z-index: 1;
    background-color: var(--color-transparent-white-80);
    padding: 40px;
    border-radius: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-purple);
}

.philosophy-content>p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

.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: var(--color-orange-secondary);
}

.philosophy-content .value-text strong {
    color: var(--color-orange-secondary);
}

/* What We Create Section - Branded Purple */
.what-we-create-section {
    padding: 70px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-light) 100%);
    color: var(--color-text-white);
}

.what-we-create-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--color-text-white);
}

.category-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category-card {
    flex: 0 1 300px;
    background-color: var(--color-text-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--color-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-primary);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--color-transparent-black-15);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    font-size: 1.5rem;
    margin: 20px 20px 10px;
    color: var(--color-purple);
}

.category-card p {
    padding: 0 20px 20px;
    color: var(--color-text-secondary);
}

.category-card .cta {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-orange-secondary) 0%, var(--color-orange-light) 100%);
    color: var(--color-text-white);
    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: var(--color-bg-light);
}

.behind-the-scenes-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-dark-green);
}

.text-overlay {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    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 var(--color-shadow-light);
    border: 4px solid var(--color-orange-secondary);
}

.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 image is sourced from JSON via HTML for modularity */
    /* Only gradient overlay defined here */
    background: linear-gradient(var(--color-transparent-gold-90), var(--color-transparent-orange-90));
    background-size: cover;
    background-position: center;
    color: var(--color-text-white);
}

.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 var(--color-text-white);
    border-radius: 25px;
    font-size: 1rem;
}

.community-call-section button {
    padding: 12px 30px;
    background-color: var(--color-purple);
    color: var(--color-text-white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.community-call-section button:hover {
    background-color: var(--color-dark-green);
    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: var(--color-purple);
}

/* 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 var(--color-text-white);
    border-radius: 25px;
    font-size: 1rem;
    width: 100%;
    /* Ensure it takes full width of flex item */
    background: var(--color-transparent-white-90);
}

/* Submit Button Styling */
.butter-about-form-wrapper input[type="submit"] {
    padding: 12px 30px;
    background-color: var(--color-purple);
    color: var(--color-text-white);
    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: var(--color-dark-green);
    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: var(--color-transparent-white-90);
    text-align: center;
    color: #333;
    width: 100%;
}