/* --- css/about.css --- */

/* Shorter Parallax Header for sub-pages */
.page-header {
    height: 100vh !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FCFAF5;
    text-align: center;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

/* =========================================
   Team Group Photo Layout
========================================= */
.team-group-wrapper {
    text-align: center;
    margin-top: 50px;
    padding: 0 20px;
}

.team-group-photo {
    width: 100%;
    max-width: 1000px; /* Constrains it on massive monitors */
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 25px 50px rgba(58, 53, 50, 0.15); /* Soft, earthy shadow */
    border: 1px solid #EAE1D3;
    display: inline-block;
}

.team-caption {
    margin-top: 25px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #5A5552;
}

/* Mobile Fixes for the Group Photo */
@media (max-width: 900px) {
    .team-group-wrapper { margin-top: 30px; padding: 0; }
    .team-group-photo { box-shadow: 0 15px 30px rgba(58, 53, 50, 0.1); }
    .team-caption { font-size: 1.1rem; margin-top: 15px; }
}

/* --- The Mission (Numbered Grid) --- */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* FIXED: Contained cards so the numbers don't float randomly */
.mission-item {
    position: relative;
    padding: 40px 30px;
    background-color: #ffffff;
    border: 1px solid #EAE1D3;
    border-radius: 4px;
    overflow: hidden;
    /* Keeps the giant number neatly inside the box */
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.mission-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(140, 74, 50, 0.08);
    border-color: #8C4A32;
}

/* FIXED: Numbers moved to the top right, and transition explicitly set to 'all' */
.mission-num {
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 7.5rem;
    font-family: 'Playfair Display', serif;
    color: #F4EFE6;
    font-weight: 700;
    line-height: 1;
    z-index: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smooth, premium animation curve */
}

/* FIXED: Smoothly changes color, opacity, and scales up slightly */
.mission-item:hover .mission-num {
    color: #8C4A32;
    opacity: 0.1;
    transform: scale(1.1) translate(-5px, 5px);
}

.mission-item p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    color: #5A5552;
    line-height: 1.8;
    margin-top: 20px;
}

/* --- The Philosophy (Edge-to-Edge Split) --- */
.edge-split {
    display: flex;
    padding: 0 !important;
    align-items: stretch;
    background-color: #F4EFE6;
}

/* FIXED: Uses background-image properties instead of an img tag */
.edge-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
}

.edge-content {
    flex: 1;
    padding: 100px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.edge-content h2 {
    text-align: left;
}

.edge-content h2::after {
    margin: 15px 0 0 0;
}

.edge-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #5A5552;
}

/* --- Mobile Fixes --- */
/* --- Mobile Fixes --- */
@media (max-width: 900px) {
    .page-header h1 { font-size: 2.5rem; line-height: 1.2; }
    .page-header p { font-size: 1rem; }

    /* Shrink the massive Vision section */
    #vision { padding: 80px 5% !important; }
    #vision p { font-size: 1.6rem !important; margin-top: 20px; line-height: 1.4; }

    /* Shrink the giant numbers so they fit inside the cards */
    .mission-grid { gap: 20px; margin-top: 40px; }
    .mission-item { padding: 30px 20px; }
    .mission-num { font-size: 5rem; top: -10px; right: -5px; }
    .mission-item p { font-size: 1rem; margin-top: 15px; }

    /* Edge-to-edge Philosophy fixes */
    .edge-split { flex-direction: column; }
    .edge-image { min-height: 300px; }
    .edge-content { padding: 60px 5%; }
    .edge-content h2 { text-align: center; font-size: 2.2rem; }
    .edge-content h2::after { margin: 15px auto 0; }
    .edge-content p { font-size: 1rem; }

    /* Shrink Team Cards */
    .team-grid { gap: 20px; }
    .team-card { padding: 30px 15px; }
}