/* ===================================================== */
/* RESET */
/* ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

/* ===================================================== */
/* GLOBAL BODY */
/* ===================================================== */
body {
    font-family: "Eagle Lake", serif;
    background: url("/img/backgroundinexhtml.webp") no-repeat center center fixed;
    background-size: cover;

    color: #8b4513;
    overflow-x: hidden;

    display: flex;
    flex-direction: column;
    min-height: 100vh;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ===================================================== */
/* HEADER */
/* ===================================================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1.8vh 2vw;
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header h1 {
    font-size: clamp(20px, 2.3vw, 36px);
    margin-bottom: 0.4vh;
    font-weight: 400;
}

.logo {
    width: clamp(120px, 14vw, 240px);
}

.intro {
    font-size: clamp(12px, 1.4vw, 22px);
    margin-top: 0.3vh;
}


/* ===================================================== */
/* DESKTOP NAV */
/* ===================================================== */
.nav-left,
.nav-right {
    position: absolute;
    top: 2.5vh;
}

.nav-left { left: 5vw; }
.nav-right { right: 5vw; }

.menu-item {
    font-size: clamp(14px, 1.3vw, 22px);
    padding: 1vh 1.5vw;
    color: #8b4513;
    text-decoration: none;
    display: inline-block;

    transition: transform .3s ease;
    white-space: nowrap;
}

.menu-item:hover {
    transform: translateY(-0.3vh);
}


/* ===================================================== */
/* HAMBURGER */
/* ===================================================== */
.menu-toggle {
    display: none;
    position: absolute;
    right: 3vw;
    top: 2vh;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 10000;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px 0;
    background: #8b4513;
    transition: all .25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: #fff;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: #fff;
}


/* ===================================================== */
/* MOBILE MENU */
/* ===================================================== */
.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;

    background: rgba(139,69,19,0.97);
    width: 100%;
    padding: 5vh 0;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 9000;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-logo {
    width: 80px;
    margin-bottom: 3vh;
}

.mobile-menu-item {
    color: #f5deb3;
    padding: 2.5vh 0;
    font-size: 7vw;
    text-decoration: none;
}


/* ===================================================== */
/* BOOKS SECTION */
/* ===================================================== */
main.hero-books {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding-top: 10vh;
    padding-bottom: 10vh;

    perspective: 1000px;
}

.hero-book-link {
    position: absolute;
    transition: transform .35s ease, z-index .35s ease;
    will-change: transform;
}

.hero-book-link img {
    width: clamp(280px, 30vw, 380px);
    height: auto;
    display: block;

    transition: transform .35s ease, opacity .35s ease;
    transform: translateZ(0); /* GPU boost */
}

/* LEFT BOOK */
.left-book {
    transform: translateX(-6vw) translateY(0) scale(1.20);
    z-index: 1;
    opacity: 0.95;
}

/* RIGHT BOOK */
.right-book {
    transform: translateX(6vw) translateY(3vh) scale(1.00);
    z-index: 5;
}

/* HOVER EFFECT */
.hero-book-link:hover {
    z-index: 10;
}

.hero-book-link:hover img {
    transform: scale(1.12);
    opacity: 1;
}


/* ===================================================== */
/* MOBILE VERSION */
/* ===================================================== */
@media (max-width: 650px) {

    main.hero-books {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        padding-top: 18vh;
        padding-bottom: 4vh;
        gap: 0;
    }

    .hero-book-link {
        position: relative;
        margin: 0 -7vw;
        transform: none;
    }

    .hero-book-link img {
        width: 42vw;
        max-width: 260px;
        transform: translateZ(0);
    }

    .left-book {
        z-index: 1;
        transform: translateY(-2vh) scale(1.20);
        opacity: 0.9;
    }

    .right-book {
        z-index: 5;
        transform: scale(1.05);
    }
}


/* ===================================================== */
/* RESPONSIVE NAV */
/* ===================================================== */
@media (max-width: 900px) {
    .nav-left,
    .nav-right { display: none; }
    .menu-toggle { display: block; }
}


/* ===================================================== */
/* FOOTER */
/* ===================================================== */
.footer {
    width: 100%;
    font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #8f6b6b;
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

.footer-copy {
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-icons img {
    width: 34px;
    margin: 0 8px;
}


/* ===================================================== */
/* SEO HIDDEN */
/* ===================================================== */
.seo-hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}



.side-text {
    font-family: "Eagle Lake", serif;
    position: absolute;

    /* bardziej responsywne wyśrodkowanie */
    top: clamp(28vh, 46vh, 54vh);

    /* tekst ani za mały, ani za duży */
    font-size: clamp(20px, 3vw, 60px);

    line-height: 1.1;
    color: #5b3a1a;
    font-weight: 400;
    white-space: nowrap;
    pointer-events: none;
}

.left-side-text {
    left: clamp(50px, 12vw, 350px);
}

.right-side-text {
    right: clamp(30px, 4vw, 120px);
    text-align: right;
}

@media (max-width: 900px) 
{ 
    .side-text { display: none; } 
}