/* ========================================
   GENERAL
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: Georgia, "Times New Roman", serif;
    color: #2f2115;
    background: #f4ead8;
}

a {
    color: inherit;
}


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

.hero {
    width: 100%;
    min-height: 100vh;

    color: white;

    background-image:
        linear-gradient(
            90deg,
            rgba(15, 7, 2, 0.78) 0%,
            rgba(15, 7, 2, 0.57) 48%,
            rgba(15, 7, 2, 0.38) 100%
        ),
        url("images/fundalIstoric.png");

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


/* ========================================
   NAVIGATION
======================================== */

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

    width: 100%;
    padding: 30px 5%;

    background: rgba(20, 9, 3, 0.2);
    border-bottom: 1px solid rgba(229, 189, 114, 0.25);
}

.logo {
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.menu {
    display: flex;
    align-items: center;
    gap: 30px;

    list-style: none;
}

.menu a {
    position: relative;

    padding: 8px 0;

    color: white;
    font-size: 18px;
    text-decoration: none;

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}

.menu a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    width: 0;
    height: 2px;
    margin: auto;

    content: "";
    background: #e5bd72;

    transition: width 0.3s ease;
}

.menu a:hover,
.menu a.active {
    color: #e5bd72;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}


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

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: calc(100vh - 105px);
    max-width: 780px;
    padding: 70px 6% 100px;
}

.hero-label {
    margin-bottom: 18px;

    color: #e5bd72;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 4px;
    line-height: 1.5;
}

.hero-content h1 {
    margin-bottom: 25px;

    color: #fff7e8;
    font-size: clamp(56px, 7vw, 94px);
    line-height: 0.98;

    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.hero-description {
    max-width: 650px;
    margin-bottom: 42px;

    color: #f6ead6;
    font-size: 24px;
    line-height: 1.65;

    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}


/* ========================================
   BUTTONS
======================================== */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.download-button,
.library-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 245px;
    min-height: 60px;
    padding: 16px 25px;

    border: 1px solid #c99520;
    border-radius: 12px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

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

.download-button {
    color: white;
    background: linear-gradient(135deg, #b67b08, #d39b18);

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.download-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #c98b0b, #e4ae2d);

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

.library-button {
    color: #fff4df;
    background: rgba(31, 16, 7, 0.7);
    border-color: rgba(229, 189, 114, 0.8);
}

.library-button:hover {
    transform: translateY(-3px);
    color: #2f2115;
    background: #e5bd72;
}


/* ========================================
   SHARED HOME SECTIONS
======================================== */

.home-introduction,
.books,
.story-preview,
.final-cta {
    position: relative;
    padding: 110px 7%;
}

.section-label {
    margin-bottom: 18px;

    color: #a46d18;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 4px;
    line-height: 1.5;
}

.home-introduction h2,
.books h2,
.story-preview h2,
.final-cta h2 {
    margin-bottom: 22px;

    color: #613915;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.12;
}

.section-description,
.books-subtitle {
    max-width: 800px;
    margin: 0 auto 55px;

    color: #66513e;
    font-size: 20px;
    line-height: 1.8;
}


/* ========================================
   INTRODUCTION — READ, EXPLORE, LEARN, PLAY
======================================== */

.home-introduction {
    text-align: center;

    background:
        linear-gradient(
            rgba(250, 242, 225, 0.97),
            rgba(239, 218, 183, 0.97)
        ),
        url("images/fundalIstoric.png");

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

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;

    width: min(1250px, 100%);
    margin: 0 auto;
}

.experience-card {
    padding: 38px 25px;

    background: rgba(255, 252, 244, 0.86);
    border: 1px solid rgba(154, 104, 24, 0.3);
    border-radius: 18px;

    box-shadow: 0 15px 35px rgba(79, 45, 17, 0.12);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

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

    box-shadow: 0 22px 44px rgba(79, 45, 17, 0.2);
}

.experience-icon {
    display: block;
    margin-bottom: 20px;

    font-size: 45px;
}

.experience-card h3 {
    margin-bottom: 13px;

    color: #754817;
    font-size: 27px;
}

.experience-card p {
    color: #695544;
    font-size: 17px;
    line-height: 1.65;
}


/* ========================================
   LIBRARY SECTION
======================================== */

.books {
    color: #f7ead2;
    text-align: center;

    background:
        linear-gradient(
            rgba(23, 10, 3, 0.91),
            rgba(42, 20, 7, 0.93)
        ),
        url("images/fundalIstoric.png");

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

.books .section-label {
    color: #e5bd72;
}

.books h2 {
    color: #f3d396;
}

.books-subtitle {
    color: #eadac1;
}

.books .download-button {
    margin: 0 auto;
}


/* ========================================
   STORY PREVIEW
======================================== */

.story-preview {
    min-height: 600px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(246, 232, 207, 0.98) 0%,
            rgba(246, 232, 207, 0.93) 55%,
            rgba(246, 232, 207, 0.64) 100%
        ),
        url("images/fundalIstoric.png");

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

.story-preview-content {
    max-width: 720px;
    padding: 55px;

    background: rgba(255, 250, 239, 0.88);
    border: 1px solid rgba(154, 104, 24, 0.32);
    border-radius: 22px;

    box-shadow: 0 20px 50px rgba(56, 31, 11, 0.17);
}

.story-preview-content > p:not(.section-label) {
    margin-bottom: 28px;

    color: #634e3c;
    font-size: 20px;
    line-height: 1.8;
}

.text-link {
    display: inline-block;

    color: #8b5915;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.text-link:hover {
    transform: translateX(5px);
    color: #c1881c;
}


/* ========================================
   FINAL CALL TO ACTION
======================================== */

.final-cta {
    color: white;
    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(112, 68, 18, 0.46),
            rgba(15, 7, 2, 0.95)
        ),
        url("images/fundalIstoric.png");

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

.final-cta .section-label {
    color: #e5bd72;
}

.final-cta h2 {
    color: #f3d396;
}

.final-cta > p:not(.section-label) {
    margin-bottom: 35px;

    color: #ecddc6;
    font-size: 21px;
}

.final-cta .hero-buttons {
    justify-content: center;
}


/* ========================================
   PRIVACY POLICY PAGE
======================================== */

.privacy-page {
    min-height: 100vh;
    color: #f7ead2;

    background-image:
        linear-gradient(
            rgba(20, 9, 3, 0.88),
            rgba(20, 9, 3, 0.92)
        ),
        url("images/fundalIstoric.png");

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

.privacy-navbar {
    background: rgba(20, 9, 3, 0.78);
    border-bottom: 1px solid rgba(216, 178, 110, 0.45);
}

.privacy-container {
    width: min(900px, 90%);
    margin: 0 auto;
    padding: 70px 0 90px;
}

.privacy-container h1 {
    margin-bottom: 12px;

    color: #e5bd72;
    font-size: 52px;
}

.last-updated {
    margin-bottom: 45px;

    color: #d6c4a8;
    font-style: italic;
}

.privacy-container section {
    margin-bottom: 35px;
    padding: 28px;

    background: rgba(38, 18, 7, 0.78);
    border: 1px solid rgba(216, 178, 110, 0.35);
    border-radius: 14px;
}

.privacy-container h2 {
    margin-bottom: 16px;

    color: #e5bd72;
    font-size: 27px;
}

.privacy-container p {
    margin-bottom: 14px;

    font-size: 18px;
    line-height: 1.75;
}

.privacy-container a {
    color: #efc879;
}

.back-home-button {
    display: inline-block;

    margin-top: 15px;
    padding: 15px 24px;

    color: white !important;
    text-decoration: none;

    background: #9a6818;
    border-radius: 10px;
}

.back-home-button:hover {
    background: #bd8628;
}


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

@media (max-width: 1100px) {
    .navbar {
        flex-direction: column;
        gap: 22px;
        padding: 25px 4%;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 25px;
    }

    .hero-content {
        min-height: calc(100vh - 165px);
    }

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


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

@media (max-width: 700px) {
    .navbar {
        padding: 22px 18px;
    }

    .logo {
        font-size: 27px;
    }

    .menu {
        gap: 10px 18px;
    }

    .menu a {
        font-size: 15px;
    }

    .hero {
        min-height: 900px;
        background-position: 64% center;
    }

    .hero-content {
        align-items: center;

        min-height: 680px;
        padding: 65px 25px 85px;

        text-align: center;
    }

    .hero-label {
        font-size: 12px;
        letter-spacing: 2.5px;
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .hero-description {
        font-size: 19px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;

        width: 100%;
    }

    .download-button,
    .library-button {
        width: 100%;
        max-width: 330px;
    }

    .home-introduction,
    .books,
    .story-preview,
    .final-cta {
        padding: 75px 6%;
    }

    .home-introduction h2,
    .books h2,
    .story-preview h2,
    .final-cta h2 {
        font-size: 38px;
    }

    .section-description,
    .books-subtitle {
        font-size: 18px;
    }

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

    .story-preview {
        min-height: auto;
    }

    .story-preview-content {
        padding: 35px 25px;
    }

    .privacy-container h1 {
        font-size: 38px;
    }

    .privacy-container section {
        padding: 20px;
    }
}