
/* =========================================
   IMAM KHOMEINI STADIUM
   Main Website Stylesheet
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --gold: #bd9650;
    --gold-light: #d6b779;
    --black: #111111;
    --dark: #191919;
    --white: #ffffff;
    --cream: #f7f6f2;
    --gray: #777777;
    --border: #e8e5df;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.9;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

/* =========================================
   LANDING PAGE
========================================= */

.landing-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: var(--black);
}

.background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.78),
        rgba(0,0,0,.25)
    );
}

.landing-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 35px 7%;
}

.landing-brand,
.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.landing-brand img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.landing-brand span {
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
}

.language-links {
    display: flex;
    gap: 12px;
}

.language-links a {
    color: var(--white);
    border: 1px solid rgba(255,255,255,.6);
    padding: 7px 18px;
    transition: .3s;
}

.language-links a:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.landing-content {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 10%;
    color: var(--white);
}

.landing-content h1 {
    font-size: clamp(35px, 6vw, 75px);
    font-weight: 900;
    line-height: 1.4;
}

.landing-content p {
    color: var(--gold-light);
    font-size: 20px;
    margin-top: 15px;
}

/* =========================================
   INNER HEADER
========================================= */

.inner-header {
    width: 100%;
    min-height: 90px;
    padding: 12px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--black);
    color: var(--white);
    position: relative;
    z-index: 10;
}

.header-brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.header-brand span {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-navigation a {
    color: #eeeeee;
    font-size: 13px;
    font-weight: 500;
    transition: .3s;
}

.main-navigation a:hover {
    color: var(--gold-light);
}

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

.page-hero {
    position: relative;
    min-height: 430px;
    background:
        linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.72)),
        url('../images/stadium.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.2),
        rgba(0,0,0,.55)
    );
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.page-hero-content span {
    color: var(--gold-light);
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 700;
}

.page-hero-content h1 {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 900;
    margin: 12px 0;
}

.page-hero-content p {
    font-size: 16px;
    color: #eeeeee;
}

/* =========================================
   SECTION HEADINGS
========================================= */

.section-heading {
    text-align: center;
    margin: 0 auto 65px;
    max-width: 750px;
    padding: 0 20px;
}

.section-heading span {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: clamp(27px, 4vw, 40px);
    font-weight: 900;
    color: var(--black);
    line-height: 1.5;
}

.section-heading p {
    margin-top: 12px;
    color: var(--gray);
    font-size: 14px;
}

/* =========================================
   ABOUT / HISTORY INTRO
========================================= */

.stadium-history {
    padding: 100px 8% 40px;
    background: var(--white);
}

.history-intro {
    max-width: 950px;
    margin: 0 auto 100px;
    text-align: center;
}

.history-intro .section-heading {
    margin-bottom: 25px;
}

.history-intro > p {
    color: #666;
    font-size: 16px;
    line-height: 2.4;
}

/* =========================================
   HISTORY CHAPTERS
========================================= */

.history-chapter {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr 1.15fr;
    align-items: center;
    gap: 45px;
    max-width: 1250px;
    margin: 0 auto 120px;
    min-height: 350px;
}

.history-chapter.reverse {
    grid-template-columns: 90px 1fr 1.15fr;
}

.history-chapter.reverse .chapter-text {
    order: 3;
}

.history-chapter.reverse .chapter-photo {
    order: 2;
}

.chapter-number {
    font-size: clamp(55px, 8vw, 105px);
    font-weight: 900;
    line-height: 1;
    color: rgba(189,150,80,.25);
    align-self: start;
    padding-top: 15px;
}

.chapter-text {
    padding: 25px 0;
}

.chapter-label {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
}

.chapter-label::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin-top: 8px;
}

.chapter-text h2 {
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.6;
    margin-bottom: 18px;
}

.chapter-text p {
    color: #666;
    font-size: 14px;
    line-height: 2.5;
    text-align: justify;
}

.chapter-photo {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: var(--cream);
    position: relative;
}

.chapter-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(189,150,80,.3);
    pointer-events: none;
}

.chapter-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.chapter-photo:hover img {
    transform: scale(1.05);
}

/* =========================================
   HISTORY SECTION
========================================= */

.history-section {
    padding: 100px 8% 20px;
    background: var(--cream);
}

.history-section .history-chapter {
    margin-bottom: 90px;
}

/* =========================================
   GALLERY
========================================= */

.gallery-section {
    padding: 100px 7%;
    background: var(--white);
}

.gallery-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-item {
    height: 270px;
    overflow: hidden;
    position: relative;
    background: var(--cream);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease, opacity .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    opacity: .85;
}

/* =========================================
   LIGHTBOX
========================================= */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,.94);
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 45px;
    cursor: pointer;
}

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

.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 55px 20px;
    text-align: center;
}

.footer-content img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin: 0 auto 15px;
}

.footer-content h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.footer-content p {
    color: var(--gold-light);
    font-size: 13px;
    margin-bottom: 20px;
}

.footer-content span {
    display: block;
    color: #999;
    font-size: 11px;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 25px;
}

/* =========================================
   ENGLISH VERSION
========================================= */

html[lang="en"] body {
    font-family: Arial, Helvetica, sans-serif;
    direction: ltr;
}

html[lang="en"] .chapter-text p {
    text-align: left;
}

html[lang="en"] .chapter-label::after {
    margin-left: 0;
    margin-right: auto;
}

html[lang="en"] .lightbox-close {
    right: auto;
    left: 35px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .inner-header {
        padding: 15px 4%;
    }

    .main-navigation {
        gap: 15px;
    }

    .history-chapter,
    .history-chapter.reverse {
        grid-template-columns: 65px 1fr 1fr;
        gap: 25px;
    }

    .chapter-photo {
        height: 300px;
    }

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

@media (max-width: 700px) {

    .inner-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .header-brand span {
        font-size: 14px;
    }

    .main-navigation {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .main-navigation a {
        font-size: 12px;
    }

    .page-hero {
        min-height: 320px;
    }

    .stadium-history,
    .history-section,
    .gallery-section {
        padding: 65px 6%;
    }

    .history-intro {
        margin-bottom: 65px;
    }

    .history-chapter,
    .history-chapter.reverse {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 75px;
    }

    .history-chapter.reverse .chapter-text,
    .history-chapter.reverse .chapter-photo {
        order: initial;
    }

    .chapter-number {
        font-size: 65px;
        padding: 0;
    }

    .chapter-text {
        padding: 5px 0 15px;
    }

    .chapter-photo {
        height: 250px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gallery-item {
        height: 250px;
    }

    .landing-header {
        padding: 25px 5%;
    }

    .landing-brand img {
        width: 48px;
        height: 48px;
    }

    .landing-brand span {
        font-size: 15px;
    }

    .landing-content {
        padding: 30px 7%;
    }
}

@media (max-width: 400px) {

    .main-navigation {
        gap: 10px;
    }

    .main-navigation a {
        font-size: 11px;
    }

    .chapter-photo {
        height: 210px;
    }

    .gallery-item {
        height: 210px;
    }
}

/* =====================================
   LANDING PAGE FINAL DESIGN
===================================== */

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    isolation: isolate;
    background: #111;
}

.landing-page .background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.landing-page .landing-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.82) 0%,
        rgba(0,0,0,.55) 55%,
        rgba(0,0,0,.25) 100%
    );
}

.landing-header {
    width: 100%;
    padding: 30px 7%;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.landing-brand img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.landing-brand div {
    display: flex;
    flex-direction: column;
}

.landing-brand span {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.landing-brand small {
    color: #d5b778;
    font-size: 12px;
}

.landing-content {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 70px 10%;
    align-items: flex-start;
    text-align: right;
}

.landing-subtitle {
    color: #d5b778;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
}

.landing-content h1 {
    color: #fff;
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 900;
    line-height: 1.55;
    margin: 18px 0;
}

.landing-content p {
    color: #eee;
    font-size: 19px;
    margin-bottom: 35px;
}

.landing-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.landing-button {
    min-width: 190px;
    padding: 13px 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: #bd9650;
    border: 1px solid #bd9650;
    color: #111;
    font-size: 14px;
    font-weight: 800;
    transition: .3s ease;
}

.landing-button:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-4px);
}

.landing-button.secondary {
    direction: ltr;
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.65);
}

.landing-button.secondary:hover {
    background: #bd9650;
    color: #111;
    border-color: #bd9650;
}

.landing-footer {
    width: 100%;
    padding: 20px 7%;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.7);
    font-size: 10px;
    letter-spacing: 1px;
}

@media(max-width: 700px) {
    .landing-header {
        padding: 20px;
        flex-wrap: wrap;
        gap: 20px;
    }

    .landing-brand img {
        width: 52px;
        height: 52px;
    }

    .landing-brand span {
        font-size: 15px;
    }

    .landing-content {
        padding: 50px 25px;
    }

    .landing-content h1 {
        font-size: 43px;
    }

    .landing-content p {
        font-size: 15px;
    }

    .landing-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .landing-button {
        width: 100%;
    }

    .landing-footer {
        padding: 15px 20px;
        gap: 10px;
        flex-wrap: wrap;
        font-size: 8px;
    }
}

html[lang="en"] .landing-content {
    direction: ltr;
    text-align: left;
    align-items: flex-start;
}

/* انتقال محتوای صفحه ورودی به بالای صفحه */

.landing-page {
    justify-content: flex-start;
}

.landing-content {
    margin: 0 auto;
    padding-top: 45px;
    min-height: auto;
    justify-content: flex-start;
}

.landing-footer {
    margin-top: auto;
}
