
/* =========================================================
   POD VLÁDOU NEŽIVÉHO
   Modern Nature / Organic Editorial Design
   ========================================================= */

/* 1. FAREBNÁ PALETA A PREMENNÉ */

:root {
    --forest: #244B38;
    --forest-dark: #183C30;
    --forest-deep: #122E26;

    --green: #56845B;
    --green-light: #85A77A;

    --turquoise: #4AA89A;
    --turquoise-light: #DCEDE5;

    --gold: #D9A441;
    --gold-light: #F1D99B;

    --cream: #F8F4E8;
    --cream-dark: #F0E9D8;

    --sage: #E7EEDC;
    --white: #FFFFFF;

    --text: #34483B;
    --text-muted: #657366;

    --border: rgba(36, 75, 56, 0.15);

    --shadow:
        0 12px 35px rgba(36, 75, 56, 0.09);

    --shadow-hover:
        0 18px 45px rgba(36, 75, 56, 0.15);

    --radius: 22px;
    --radius-small: 12px;

    --content-width: 1120px;
}


/* 2. RESET A ZÁKLADNÉ NASTAVENIA */

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

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

body {
    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--text);
    background:
        radial-gradient(
            ellipse at 8% 8%,
            rgba(217, 164, 65, 0.10),
            transparent 35%
        ),
        radial-gradient(
            ellipse at 95% 40%,
            rgba(74, 168, 154, 0.09),
            transparent 35%
        ),
        var(--cream);

    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--turquoise);
    color: white;
}

a {
    color: var(--green);
    text-decoration: none;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

a:hover {
    color: var(--turquoise);
}

img {
    max-width: 100%;
    height: auto;
}

.wrap {
    width: min(
        calc(100% - 48px),
        var(--content-width)
    );
    margin: 0 auto;
}


/* 3. NAVIGÁCIA */

nav {
    position: sticky;
    top: 0;
    z-index: 100;

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

    padding: 18px 0;
    margin-bottom: 65px;

    border-bottom: 1px solid var(--border);

    background: rgba(248, 244, 232, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

nav > div {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: var(--forest);
    font-size: 0.91rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--gold);
    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}

nav > div:last-child a {
    background: var(--forest);
    color: white;
    padding: 9px 23px;
    border-radius: 30px;
}

nav > div:last-child a:hover {
    background: var(--turquoise);
}


/* 4. ÚVODNÁ HERO SEKCIA */

.wrap > div:nth-of-type(1) {
    position: relative;
    padding: 65px 55px 75px;

    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(217, 164, 65, 0.22),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #E9F0DF,
            #F8F4E8 55%,
            #E3EEE3
        );

    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.8);

    box-shadow: var(--shadow);
    overflow: hidden;
}

.wrap > div:nth-of-type(1)::before {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;

    right: -80px;
    bottom: -150px;

    border: 2px solid rgba(74, 168, 154, 0.20);
    border-radius: 50%;
    box-shadow:
        0 0 0 25px rgba(74, 168, 154, 0.04),
        0 0 0 55px rgba(74, 168, 154, 0.04);
}

h1 {
    position: relative;
    z-index: 1;

    max-width: 850px;

    color: var(--forest-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 5.8rem);

    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.055em;
}

h1 span {
    color: var(--turquoise);
    font-style: italic;
}

.sub {
    margin-top: 18px;

    color: var(--green);
    font-family: Georgia, serif;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-style: italic;
}

.slogan {
    max-width: 650px;
    margin-top: 35px;

    color: var(--forest-dark);
    font-size: clamp(1.1rem, 2.3vw, 1.5rem);
    font-weight: 600;
    line-height: 1.5;
}


/* 5. CTA TLAČIDLÁ */

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 25px;

    border: 1px solid var(--green);
    border-radius: 40px;

    color: var(--forest);
    background: rgba(255,255,255,0.55);

    font-size: 0.93rem;
    font-weight: 700;
    text-align: center;

    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    color: var(--forest);
    background: white;
    box-shadow: var(--shadow);
}

.btn.fill {
    color: white;
    background: var(--forest);
    border-color: var(--forest);
}

.btn.fill:hover {
    color: white;
    background: var(--turquoise);
    border-color: var(--turquoise);
    box-shadow: 0 8px 25px rgba(74, 168, 154, 0.25);
}


/* 6. SEKČIE */

section {
    position: relative;
    padding: 75px 0;
    border-bottom: 1px solid var(--border);
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    position: relative;

    margin-bottom: 30px;
    padding-left: 22px;

    color: var(--forest-dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

h2::before {
    content: "";
    position: absolute;

    left: 0;
    top: 5px;
    bottom: 5px;

    width: 5px;
    border-radius: 5px;

    background: linear-gradient(
        to bottom,
        var(--gold),
        var(--turquoise)
    );
}

h3 {
    margin-bottom: 13px;

    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.35;
}

p {
    margin-bottom: 17px;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    color: var(--forest-dark);
    font-weight: 750;
}

em {
    color: var(--green);
}


/* 7. ZVÝRAZNENÝ ÚVODNÝ TEXT */

.big {
    max-width: 900px;

    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.45;
}


/* 8. STĹPCOVÉ ROZLOŽENIA */

.cols {
    display: grid;
    gap: 24px;
}

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

.cols.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* 9. DEFINIČNÉ PANELY */

.def {
    padding: 28px;

    background: rgba(255,255,255,0.68);
    border: 1px solid rgba(74, 132, 91, 0.15);
    border-radius: var(--radius);

    box-shadow: 0 6px 22px rgba(36,75,56,0.04);

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

.def:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--turquoise);
}

.def h3 {
    color: var(--forest);
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border);
}

.def p {
    font-size: 0.95rem;
}

.def .ex {
    margin-top: 18px;
    padding: 14px 16px;

    background: var(--sage);
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;

    color: var(--forest);
    font-size: 0.91rem;
    font-style: italic;
}


/* 10. SEKCIA PRE KOHO JE KNIHA */

#who {
    padding: 65px 40px;
    margin: 30px 0;

    background:
        linear-gradient(
            120deg,
            rgba(231, 238, 220, 0.9),
            rgba(248, 244, 232, 0.65)
        );

    border-radius: 28px;
    border: 1px solid rgba(86,132,91,0.12);
}

#who h3 {
    margin-top: 25px;
}

#who .cols > div {
    padding: 10px;
}


/* 11. ZOZNAMY */

ul,
ol {
    padding-left: 25px;
    margin: 15px 0;
}

li {
    padding: 4px 0 4px 5px;
}

li::marker {
    color: var(--turquoise);
    font-weight: 700;
}


/* 12. OBSAH KNIHY - ROZBALOVACIE KAPITOLY */

details {
    margin: 13px 0;
    padding: 19px 24px;

    background: rgba(255,255,255,0.7);

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    transition: all 0.3s ease;
}

details[open] {
    background: white;
    border-color: rgba(74,168,154,0.45);
    box-shadow: var(--shadow);
}

summary {
    position: relative;

    color: var(--forest);
    font-size: 1.05rem;
    font-weight: 700;

    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;

    transform: translateY(-50%);

    color: var(--turquoise);
    font-size: 1.5rem;
    font-weight: 400;
}

details[open] summary::after {
    content: "−";
}

details ol {
    margin-top: 20px;
    padding-top: 15px;

    border-top: 1px solid var(--border);
}

details li {
    padding: 7px 0;
}


/* 13. KONVERZÁCIA - PANEL */

.panel {
    position: relative;

    padding: 42px;

    background:
        radial-gradient(
            circle at 95% 10%,
            rgba(217,164,65,0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--sage),
            #F8F4E8
        );

    border: 1px solid rgba(86,132,91,0.18);
    border-radius: 28px;

    box-shadow: var(--shadow);
}

.panel .big {
    color: var(--forest-dark);
}


/* 14. ČÍTANIE */

#read .cols > div {
    padding: 30px;

    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

#read .cols > div:first-child {
    border-top: 4px solid var(--turquoise);
}

#read .cols > div:last-child {
    border-top: 4px solid var(--gold);
}


/* 15. AUTOR */

#author {
    padding: 65px 40px;

    background:
        linear-gradient(
            135deg,
            rgba(231,238,220,0.8),
            rgba(248,244,232,0.4)
        );

    border-radius: 28px;
}

#author p {
    max-width: 950px;
}

#author strong {
    color: var(--turquoise);
    font-family: Georgia, serif;
    font-size: 1.2rem;
}


/* 16. FOOTER */

footer {
    margin-top: 70px;
    padding: 50px 0;

    color: rgba(255,255,255,0.82);

    background:
        radial-gradient(
            ellipse at 90% 0%,
            rgba(74,168,154,0.20),
            transparent 45%
        ),
        var(--forest-dark);
}

footer .wrap {
    max-width: var(--content-width);
}

footer p {
    font-size: 0.88rem;
    line-height: 1.8;
}

footer a {
    color: var(--gold-light);
}

footer a:hover {
    color: white;
}


/* 17. ODKAZY A INTERAKTÍVNE PRVKY */

a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px;
    border-radius: 5px;
}


/* 18. ANIMÁCIE */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

.wrap > div:nth-of-type(1) {
    animation: fadeUp 0.8s ease both;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* 19. TABLETY */

@media (max-width: 900px) {

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

    .wrap > div:nth-of-type(1) {
        padding: 50px 35px 60px;
    }

    nav {
        margin-bottom: 40px;
    }

    nav > div {
        gap: 18px;
    }

    section {
        padding: 55px 0;
    }
}


/* 20. MOBILNÉ ZARIADENIA */

@media (max-width: 650px) {

    body {
        font-size: 15px;
    }

    .wrap {
        width: min(
            calc(100% - 30px),
            var(--content-width)
        );
    }

    nav {
        position: relative;
        flex-direction: column;
        gap: 17px;

        margin-bottom: 25px;
        padding: 18px 0;
    }

    nav > div {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 19px;
    }

    nav a {
        font-size: 0.82rem;
    }

    nav > div:last-child a {
        padding: 7px 19px;
    }

    .wrap > div:nth-of-type(1) {
        padding: 42px 25px 48px;
        border-radius: 22px;
    }

    h1 {
        font-size: clamp(2.7rem, 12vw, 4rem);
    }

    .slogan {
        margin-top: 25px;
    }

    .cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    section {
        padding: 45px 0;
    }

    h2 {
        font-size: 2rem;
    }

    .cols.two,
    .cols.three {
        grid-template-columns: 1fr;
    }

    .def {
        padding: 23px;
    }

    #who,
    #author {
        padding: 35px 22px;
    }

    .panel {
        padding: 28px 23px;
    }

    #read .cols > div {
        padding: 24px;
    }

    footer {
        margin-top: 45px;
        padding: 35px 0;
    }
}


/* 21. VEĽMI MALÉ MOBILY */

@media (max-width: 380px) {

    .wrap {
        width: calc(100% - 22px);
    }

    nav > div {
        gap: 10px 13px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .wrap > div:nth-of-type(1) {
        padding: 35px 20px;
    }
}
