/* --- About Page Specific Styles --- */

.about-header {
    position: relative;
    padding: 8rem 2rem;
    min-height: 60vh;
    text-align: center;
    color: white;
    background-image: url('/static/img/willow-garden-mobile.webp');
    background-size: cover;
    background-position: center 58%;
    background-attachment: fixed; /* Creates a beautiful parallax effect */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(58, 90, 64, 0.65);
    z-index: 1;
}

.about-header h1,
.about-header .lead-text {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: min(900px, 100%);
    box-sizing: border-box;
}

.about-header h1 {
    font-size: 3.5rem;
}

.about-header .lead-text {
    font-size: 1.5rem;
    max-width: 700px;
}


/* --- Story Section with Image --- */
.story-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.story-image-container img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.story-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.story-text p {
    font-size: 1.15rem;
    line-height: 1.8;
}

.section-kicker {
    margin: 0 0 0.75rem;
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --- Leadership Section --- */
.leadership-section {
    padding: 6rem 2rem;
    background: #FFFFFF;
}

.leadership-heading {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.leadership-heading h2 {
    margin-bottom: 0;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1180px;
    margin: 0 auto;
}

.leader-card {
    display: flow-root;
    background: var(--color-background);
    border: 1px solid rgba(58, 90, 64, 0.12);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

/* Float the portrait so the bio sits beside it at the top and then wraps
   to full width underneath, instead of leaving empty space below the image. */
.leader-card img {
    float: left;
    width: 200px;
    max-width: 42%;
    margin: 0.3rem 1.75rem 1rem 0;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: calc(var(--border-radius) - 2px);
}

.leader-card-content h3 {
    text-align: left;
    margin: 0 0 1rem;
    color: var(--color-secondary);
    font-size: 1.75rem;
}

.leader-role {
    margin: 0 0 0.4rem;
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.leader-card-content p:not(.leader-role) {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.65;
}

.leader-card-content p:last-child {
    margin-bottom: 0;
}

/* --- "The Willow Difference" Section --- */
.difference-section {
    /* A new, slightly different warm off-white for subtle contrast */
    background-color: #F1ECE7;
    padding: 6rem 2rem;
}

.difference-section h2 {
    margin-bottom: 3rem;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: auto;
}

.difference-card {
    background: var(--color-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.difference-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.difference-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.difference-card:hover img {
    transform: scale(1.06);
}

.difference-card-content {
    padding: 1.5rem 2rem 2rem 2rem;
}

.difference-card-content h3 {
    color: var(--color-secondary);
    margin-top: 0;
}

/* --- Founders "Family Project" Section --- */
.founders-section {
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    margin: auto;
}

.founders-image {
    flex: 0 0 40%;
    max-width: 420px;
    position: relative;
}

.founders-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* This decorative element gives a scrapbook, family-project feel */
.founders-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    opacity: 0.1;
    border-radius: var(--border-radius);
    z-index: -1;
    transition: transform 0.3s ease;
}

.founders-section:hover .founders-image::after {
    transform: rotate(-3deg);
}

.founders-bio {
    flex: 1;
}

.founders-bio h2 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.founders-bio .subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.founders-bio p {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* --- Closing Image Section --- */
.closing-section {
    position: relative;
    padding: 10rem 2rem;
    color: white;
    text-align: center;
    /* The peaceful field image creates an emotional closing */
    background-image: none;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.closing-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(45, 58, 46, 0.6);
    z-index: 1;
}

.closing-section blockquote {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


/* --- Responsive Overrides for Mobile --- */
@media (min-width: 769px) {
    .about-header { background-image: url('/static/img/willow-garden.webp'); }
}

@media (max-width: 992px) {
    .story-section {
        grid-template-columns: 1fr;
    }
    .story-image-container {
        order: -1; /* Move image to the top on mobile */
        max-width: 500px;
        margin: 0 auto;
    }
    .story-text h2 {
        text-align: center;
    }
    .founders-section {
        flex-direction: column;
        text-align: center;
    }
    .founders-bio h2 {
        text-align: center;
    }
    .leadership-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .about-header {
        width: 100%;
        max-width: 100%;
        padding: 6rem 1.25rem;
        min-height: 56vh;
        background-attachment: scroll;
        box-sizing: border-box;
        overflow: hidden;
    }
    .about-header h1 {
        font-size: 2.25rem;
        line-height: 1.18;
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }
    .about-header .lead-text {
        font-size: 1.1rem;
        line-height: 1.75;
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }
    .closing-section blockquote { font-size: 2rem; }
    .leadership-section {
        padding: 4rem 1.25rem;
    }
    .leader-card img {
        float: none;
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 1.25rem;
    }
    .leader-card-content h3,
    .leader-role {
        text-align: center;
    }
}
