/* ==============================
   PAGE CONTAINER
============================== */

.memorial-container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}


/* ==============================
   HERO SECTION
============================== */

.hero {
    padding: 60px 20px 40px;
    text-align: center;
    background: linear-gradient(180deg, #f7fbff 0%, #e8f1f9 100%);
    border-bottom: 1px solid var(--raf-border);
    border-radius: 0 0 18px 18px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--raf-navy);
}

.hero .subtitle {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: #3f556d;
}


/* ==============================
   GENERAL SECTIONS
============================== */

section {
    padding: 50px 20px;
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-left: 4px solid var(--raf-red);
    padding-left: 12px;
    color: var(--raf-navy);
}


/* ==============================
   QUICK FACTS
============================== */

.quickfacts {
    background-color: transparent;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    font-size: 1rem;
}

.facts-grid div {
    background: var(--raf-surface);
    padding: 14px 15px;
    border-left: 4px solid var(--raf-blue);
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
}


/* ==============================
   MISSION
============================== */

.mission {
    background: var(--raf-surface);
    border: 1px solid var(--raf-border);
    border-radius: 16px;
    margin: 10px 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.mission-text {
    max-width: 950px;
}

.mission-text p {
    margin-bottom: 15px;
}

.mission-text p:last-child {
    margin-bottom: 0;
}


/* ==============================
   CREW SECTION
============================== */

.crew {
    background-color: transparent;
}

.section-intro {
    max-width: 850px;
    margin-bottom: 25px;
}


/* ==============================
   CREW GRID
============================== */

.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}


/* ==============================
   CREW CARDS
============================== */

.crew-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 22px;

    background: var(--raf-surface);
    border: 1px solid var(--raf-border);
    border-left: 4px solid var(--raf-blue);
    border-radius: 12px;

    box-shadow: 0 1px 7px rgba(15, 23, 42, 0.06);

    color: var(--raf-text);
    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.crew-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    border-left-color: var(--raf-red);
    text-decoration: none;
}


/* Crew rank */

.crew-rank {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--raf-red);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}


/* Crew member name */

.crew-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--raf-navy);
    line-height: 1.35;
    margin-bottom: 10px;
}


/* Crew position */

.crew-position {
    font-weight: 600;
    color: var(--raf-blue);
    margin-bottom: 8px;
}


/* Crew fate */

.crew-fate {
    font-size: 0.9rem;
    color: #58697a;
    margin-bottom: 20px;
}


/* Crew profile link */

.crew-link {
    margin-top: auto;
    color: var(--raf-red);
    font-size: 0.9rem;
    font-weight: 700;
}

.crew-dates {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #526171;
}

.crew-home-state {
    margin-top: 2px;
    font-size: 0.85rem;
    color: #526171;
}

/* ==============================
   MEMORIAL HISTORY
============================== */

.about {
    background-color: transparent;
}

.about-text {
    max-width: 950px;
}

.about-text p {
    margin-bottom: 15px;
}

.about-text p:last-child {
    margin-bottom: 0;
}


/* ==============================
   RENOVATION / UNVEILING
============================== */

.unveiling {
    background: linear-gradient(
        135deg,
        #f7fbff 0%,
        #e8f1f9 100%
    );

    border: 1px solid var(--raf-border);
    border-radius: 16px;
    margin: 20px 0;
}

.unveiling-text {
    max-width: 950px;
}

.unveiling-text p {
    margin-bottom: 15px;
}

.unveiling-text p:last-child {
    margin-bottom: 0;
}


/* ==============================
   LOCATION / MAP
============================== */

.map {
    background-color: transparent;
}

.location-text {
    max-width: 850px;
    margin-bottom: 20px;
}

.map iframe {
    display: block;
    width: 100%;
    margin-top: 15px;
    border-radius: 12px;
    border: 1px solid var(--raf-border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}


/* ==============================
   PHOTO GALLERY
============================== */

.gallery {
    background-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.gallery-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;

    border-radius: 12px;
    border: 1px solid var(--raf-border);
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}


/* ==============================
   LINKS
============================== */

a {
    color: var(--raf-blue);
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    text-decoration: underline;
}


/* ==============================
   LANGUAGE SWITCH
============================== */

.language-switch {
    margin-top: 20px;
}

.language-switch a {
    color: var(--raf-red);
    font-weight: 600;
    text-decoration: none;
}

.language-switch a:hover {
    text-decoration: underline;
}


/* ==============================
   CALL TO ACTION
============================== */

.cta-section {
    background: linear-gradient(
        135deg,
        var(--raf-blue),
        var(--raf-navy)
    );

    color: #ffffff;
    padding: 70px 20px;
    margin-top: 70px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
    border: none;
    padding-left: 0;
}

.cta-section p {
    max-width: 850px;
    margin: 0 auto 18px;
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 30px;

    background-color: var(--raf-red);
    color: #ffffff;

    border-radius: 8px;
    font-weight: 600;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    background-color: #8f1020;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


/* ==============================
   MOBILE OPTIMIZATION
============================== */

@media (max-width: 768px) {

    .memorial-container {
        width: calc(100% - 24px);
    }

    .hero {
        padding: 42px 16px 30px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    section {
        padding: 34px 16px;
    }

    section h2 {
        font-size: 1.3rem;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .crew-grid {
        grid-template-columns: 1fr;
    }

    .crew-card {
        min-height: auto;
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 50px 20px;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 320px;
    }
}