/* =========================================================
   BATTLE OF YARMOUK
   HISTORY EXPLORER — EVENTS
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #090807;
    color: #d5c4a0;
    font-family: "Libre Baskerville", serif;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

section {
    position: relative;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    min-height: 78px;
    padding: 15px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(8, 7, 6, 0.97);

    border-bottom: 1px solid #4b3b27;

    backdrop-filter: blur(14px);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: "Cinzel", serif;
    font-size: 12px;
    letter-spacing: 4px;
    color: #b28a4d;
}

.project-name {
    font-family: "Cinzel", serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: #dfcc9f;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 27px;
}

.navbar nav a {
    position: relative;

    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 1.4px;

    color: #918777;

    transition: color 0.3s ease;
}

.navbar nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 100%;
    height: 1px;

    background: #a77b40;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.3s ease;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: #d2ac6b;
}

.navbar nav a:hover::after,
.navbar nav a.active::after {
    transform: scaleX(1);
}


/* =========================================================
   COMMON HEADINGS
   ========================================================= */

.section-heading {
    max-width: 900px;

    margin: 0 auto 65px;

    text-align: center;
}

.section-label {
    display: block;

    font-family: "Cinzel", serif;

    font-size: 10px;
    letter-spacing: 4px;

    color: #a77b43;
}

.section-heading h2 {
    margin-top: 15px;

    font-family: "Cinzel", serif;

    font-size: clamp(32px, 5vw, 54px);

    line-height: 1.2;

    color: #dfcc9f;
}

.section-heading p {
    margin-top: 17px;

    color: #8e8576;

    font-size: 12px;
}

.section-ornament {
    margin-top: 23px;

    color: #a77b43;

    font-size: 10px;

    letter-spacing: 8px;
}


/* =========================================================
   HERO
   ========================================================= */

.event-hero {
    min-height: 94vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 110px 6%;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(10, 8, 6, 0.36),
            rgba(7, 6, 5, 0.97)
        ),
        url("../assets/images/yarmouk.webp");

    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            transparent 0%,
            rgba(5, 4, 3, 0.91) 88%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 1100px;

    text-align: center;

    animation: heroReveal 1.2s ease both;
}

@keyframes heroReveal {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.hero-kicker {
    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 5px;

    color: #b18a4f;
}

.hero-symbol {
    margin: 25px 0 15px;

    font-size: 54px;

    color: #c59b5b;

    filter:
        drop-shadow(
            0 0 20px rgba(197, 155, 91, 0.22)
        );
}

.hero-content h1 {
    font-family: "Cinzel", serif;

    font-size: clamp(43px, 8vw, 88px);

    line-height: 1.02;

    letter-spacing: 4px;

    color: #ead6a8;

    text-shadow:
        0 6px 30px rgba(0, 0, 0, 0.9);
}

.hero-line {
    margin: 30px 0;

    color: #9d733c;

    letter-spacing: 6px;
}

.hero-date {
    font-family: "Cinzel", serif;

    font-size: 15px;

    letter-spacing: 4px;

    color: #c99d5d;
}

.hero-location {
    margin-top: 8px;

    font-size: 10px;

    letter-spacing: 3px;

    color: #918777;
}

.hero-description {
    max-width: 800px;

    margin: 28px auto;

    color: #aaa08f;

    font-size: 13px;

    line-height: 2;
}

.hero-button {
    display: inline-block;

    margin-top: 14px;

    padding: 15px 30px;

    border: 1px solid #9b733e;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 2px;

    color: #c59a59;

    transition: all 0.35s ease;
}

.hero-button:hover {
    color: #100c07;

    background: #b58a4c;

    transform: translateY(-4px);

    box-shadow:
        0 12px 35px rgba(181, 138, 76, 0.2);
}


/* =========================================================
   EVENT SNAPSHOT
   ========================================================= */

.event-snapshot {
    padding: 125px 6%;

    background:
        radial-gradient(
            circle at top,
            #18140e,
            #0b0907 70%
        );
}

.snapshot-grid {
    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.snapshot-card {
    position: relative;

    min-height: 285px;

    padding: 38px 30px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #18140e,
            #100e0b
        );

    border: 1px solid #4d3d29;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.snapshot-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: #b08348;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.4s ease;
}

.snapshot-card:hover {
    transform: translateY(-9px);

    border-color: #a77a40;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.4);
}

.snapshot-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    display: block;

    margin-bottom: 20px;

    font-size: 28px;
}

.card-label {
    font-family: "Cinzel", serif;

    font-size: 9px;

    letter-spacing: 3px;

    color: #a67b43;
}

.snapshot-card h3 {
    margin-top: 10px;

    font-family: "Cinzel", serif;

    font-size: 20px;

    line-height: 1.4;

    color: #dac391;
}

.snapshot-card p {
    margin-top: 13px;

    color: #918776;

    font-size: 10px;

    line-height: 1.9;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

.background-section {
    padding: 125px 6%;

    background: #0d0b09;

    border-top: 1px solid #352a1d;
}

.content-wrapper {
    max-width: 850px;

    margin: auto;
}

.content-wrapper > p {
    margin-bottom: 26px;

    color: #a69b88;

    font-size: 13px;

    line-height: 2.05;
}


/* =========================================================
   OPPOSING FORCES
   ========================================================= */

.forces-section {
    padding: 125px 6%;

    background:
        linear-gradient(
            180deg,
            #15120d,
            #090807
        );
}

.forces-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 100px 1fr;

    align-items: center;

    gap: 20px;
}

.force-card {
    position: relative;

    min-height: 410px;

    padding: 45px;

    background:
        linear-gradient(
            145deg,
            #18140f,
            #100e0b
        );

    border: 1px solid #4b3a27;

    transition: all 0.4s ease;
}

.force-card:hover {
    transform: translateY(-8px);

    border-color: #a77a42;

    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.38);
}

.force-number {
    position: absolute;

    top: 20px;
    right: 25px;

    font-family: "Cinzel", serif;

    font-size: 26px;

    color: rgba(190, 150, 88, 0.2);
}

.force-label {
    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 3px;

    color: #a67b43;
}

.force-card h3 {
    margin: 14px 0 17px;

    font-family: "Cinzel", serif;

    font-size: 30px;

    color: #dbc493;
}

.force-card p {
    color: #958a77;

    font-size: 11px;

    line-height: 1.95;
}

.force-card ul {
    margin-top: 25px;

    padding-left: 18px;

    color: #a19682;

    font-size: 10px;

    line-height: 2.1;
}

.versus {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin: auto;

    border: 1px solid #896a3d;

    border-radius: 50%;

    background: #0c0a08;

    font-family: "Cinzel", serif;

    font-size: 12px;

    letter-spacing: 2px;

    color: #c29a5c;

    box-shadow:
        0 0 35px rgba(183, 139, 73, 0.08);
}


/* =========================================================
   CINEMATIC BATTLEFIELD
   ========================================================= */

.siege-image-section {
    min-height: 640px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 120px 6%;

    text-align: center;

    background:
        linear-gradient(
            rgba(10, 8, 5, 0.38),
            rgba(7, 6, 5, 0.96)
        ),
        url("../assets/images/battle-of-yarmouk.jpeg");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;
}

.image-content {
    max-width: 850px;
}

.image-content h2 {
    margin-top: 17px;

    font-family: "Cinzel", serif;

    font-size: clamp(40px, 6vw, 68px);

    color: #e2cea1;

    text-shadow:
        0 5px 25px rgba(0, 0, 0, 0.85);
}

.ornamental-line {
    margin: 28px 0;

    color: #a77b43;

    letter-spacing: 6px;
}

.image-content p {
    color: #aaa08e;

    font-size: 13px;

    line-height: 2;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.timeline-section {
    padding: 130px 6%;

    background: #0b0907;
}

.event-timeline {
    position: relative;

    max-width: 900px;

    margin: auto;

    padding-left: 55px;
}

.event-timeline::before {
    content: "";

    position: absolute;

    left: 14px;

    top: 0;
    bottom: 0;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            #745b36 10%,
            #745b36 90%,
            transparent
        );
}

.timeline-item {
    position: relative;

    margin-bottom: 45px;
}

.timeline-marker {
    position: absolute;

    left: -55px;

    top: 28px;

    width: 70px;
    height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #8c6b3d;

    border-radius: 50%;

    background: #0d0b09;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 1px;

    color: #c39b5d;

    text-align: center;

    z-index: 2;
}

.timeline-card {
    padding: 32px 38px;

    background:
        linear-gradient(
            145deg,
            #17130e,
            #0f0d0a
        );

    border: 1px solid #453725;

    transition: all 0.35s ease;
}

.timeline-card:hover {
    transform: translateX(8px);

    border-color: #9f7744;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.32);
}

.timeline-card span {
    font-family: "Cinzel", serif;

    font-size: 9px;

    letter-spacing: 3px;

    color: #a77c44;
}

.timeline-card h3 {
    margin: 10px 0;

    font-family: "Cinzel", serif;

    font-size: 24px;

    color: #d8c18f;
}

.timeline-card p {
    color: #938977;

    font-size: 11px;

    line-height: 1.9;
}


/* =========================================================
   TURNING POINT
   ========================================================= */

.fall-section {
    min-height: 620px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 120px 6%;

    text-align: center;

    background:
        linear-gradient(
            rgba(10, 8, 5, 0.5),
            rgba(7, 6, 5, 0.96)
        ),
        url("../assets/images/battle-of-yarmouk.jpeg");

    background-size: cover;

    background-position: center;
}

.fall-content {
    max-width: 850px;
}

.fall-content h2 {
    margin-top: 15px;

    font-family: "Cinzel", serif;

    font-size: clamp(40px, 6vw, 70px);

    line-height: 1.2;

    color: #dfc99d;
}

.fall-content p {
    margin-bottom: 20px;

    color: #aaa08c;

    font-size: 13px;

    line-height: 2;
}


/* =========================================================
   AFTERMATH
   ========================================================= */

.aftermath-section {
    padding: 125px 6%;

    background:
        linear-gradient(
            180deg,
            #15120d,
            #0b0907
        );
}

.aftermath-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.aftermath-grid article {
    min-height: 280px;

    padding: 40px;

    background: #15120d;

    border: 1px solid #473725;

    transition: all 0.35s ease;
}

.aftermath-grid article:hover {
    transform: translateY(-8px);

    border-color: #9c7542;

    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.3);
}

.aftermath-grid span {
    font-family: "Cinzel", serif;

    font-size: 9px;

    letter-spacing: 3px;

    color: #a77b43;
}

.aftermath-grid h3 {
    margin: 15px 0;

    font-family: "Cinzel", serif;

    font-size: 21px;

    color: #d4bd8b;
}

.aftermath-grid p {
    color: #928875;

    font-size: 11px;

    line-height: 1.9;
}


/* =========================================================
   HISTORICAL SIGNIFICANCE
   ========================================================= */

.significance-section {
    padding: 125px 6%;

    background:
        radial-gradient(
            circle at center,
            #18140e,
            #090807 72%
        );

    text-align: center;
}

.significance-section .content-wrapper {
    max-width: 850px;
}

.significance-section p {
    margin-bottom: 22px;

    color: #a59a86;

    font-size: 13px;

    line-height: 2;
}


/* =========================================================
   LEGACY
   ========================================================= */

.legacy-section {
    min-height: 680px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 120px 6%;

    text-align: center;

    background:
        linear-gradient(
            rgba(10, 8, 5, 0.43),
            rgba(7, 6, 5, 0.96)
        ),
        url("../assets/images/yarmouk.webp");

    background-size: cover;

    background-position: center;
}

.legacy-content {
    max-width: 850px;
}

.legacy-content h2 {
    margin-top: 15px;

    font-family: "Cinzel", serif;

    font-size: clamp(40px, 6vw, 68px);

    line-height: 1.2;

    color: #dfc99d;

    text-shadow:
        0 5px 25px rgba(0, 0, 0, 0.8);
}

.legacy-line {
    margin: 27px 0;

    color: #a77b43;

    letter-spacing: 6px;
}

.legacy-content p {
    margin-bottom: 21px;

    color: #aaa08b;

    font-size: 13px;

    line-height: 2;
}

.back-button {
    display: inline-block;

    margin-top: 22px;

    padding: 14px 27px;

    border: 1px solid #99723f;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 2px;

    color: #c29859;

    transition: all 0.35s ease;
}

.back-button:hover {
    background: #b58a4c;

    color: #100c07;

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(181, 138, 76, 0.2);
}


/* =========================================================
   EDUCATIONAL DISCLAIMER
   ========================================================= */

.disclaimer-section {
    padding: 90px 6%;

    background:
        linear-gradient(
            180deg,
            #0b0907,
            #12100c
        );

    border-top: 1px solid #3d3020;
}

.disclaimer-card {
    max-width: 950px;

    margin: auto;

    padding: 48px 52px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #18140e,
            #100e0b
        );

    border: 1px solid #50412b;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.32);
}

.disclaimer-label {
    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 4px;

    color: #a87942;
}

.disclaimer-card h2 {
    margin: 14px 0 22px;

    font-family: "Cinzel", serif;

    font-size: 28px;

    color: #dcc79a;
}

.disclaimer-card p {
    max-width: 800px;

    margin: 0 auto 18px;

    color: #958a76;

    font-size: 11px;

    line-height: 1.95;
}

.disclaimer-card .disclaimer-note {
    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #403223;

    color: #b99867;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 65px 6% 45px;

    text-align: center;

    background: #080706;

    border-top: 1px solid #493a27;
}

.footer-logo {
    font-family: "Cinzel", serif;

    font-size: 18px;

    letter-spacing: 4px;

    color: #bd914f;
}

footer > p:first-of-type {
    margin-top: 12px;

    color: #8f8675;

    font-size: 11px;
}

.footer-line {
    width: 85px;

    height: 1px;

    margin: 25px auto;

    background: #815f36;
}

.developer {
    color: #77705f;

    font-size: 11px;
}

.developer strong {
    color: #c2a36c;

    font-family: "Cinzel", serif;

    font-weight: 500;
}

.powered {
    margin-top: 8px;

    color: #77705f;

    font-size: 11px;
}

.powered strong {
    color: #b37f45;

    font-family: "Cinzel", serif;

    font-weight: 500;
}

.copyright {
    margin-top: 25px;

    color: #4f4a40;

    font-size: 10px;

    letter-spacing: 0.5px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .navbar {
        flex-direction: column;

        gap: 18px;
    }

    .navbar nav {
        flex-wrap: wrap;

        justify-content: center;

        gap: 14px 21px;
    }

    .snapshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .forces-grid {
        grid-template-columns: 1fr;

        max-width: 700px;
    }

    .versus {
        width: 60px;
        height: 60px;
    }

    .aftermath-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .navbar {
        padding: 15px 4%;
    }

    .navbar nav {
        gap: 11px 15px;
    }

    .navbar nav a {
        font-size: 8px;
    }

    .event-hero {
        min-height: 88vh;

        padding: 80px 5%;
    }

    .hero-kicker {
        font-size: 8px;

        letter-spacing: 3px;
    }

    .hero-symbol {
        font-size: 44px;
    }

    .hero-content h1 {
        font-size: 40px;

        letter-spacing: 2px;
    }

    .hero-date {
        font-size: 12px;
    }

    .hero-location {
        font-size: 8px;

        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 11px;

        line-height: 1.9;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .snapshot-grid {
        grid-template-columns: 1fr;
    }

    .snapshot-card {
        min-height: 245px;
    }

    .force-card {
        min-height: auto;

        padding: 32px;
    }

    .event-timeline {
        padding-left: 35px;
    }

    .event-timeline::before {
        left: 9px;
    }

    .timeline-marker {
        left: -35px;

        width: 50px;
        height: 50px;

        font-size: 7px;
    }

    .timeline-card {
        padding: 28px 23px;
    }

    .timeline-card h3 {
        font-size: 20px;
    }

    .siege-image-section,
    .fall-section,
    .legacy-section {
        background-attachment: scroll;
    }

    .disclaimer-card {
        padding: 34px 22px;
    }

    .disclaimer-card h2 {
        font-size: 22px;
    }

    .disclaimer-card p {
        font-size: 10px;
    }
}

