/*
Theme Name: Oáza života
Version: 1.40
*/
:root {
    color-scheme: light;
    --ink: #39291f;
    --accent: #a04420;
    --deep: #482c21;
    --muted: #634a3d;
    --paper: #fcf8f3;
    --line: #ead8ca;
    --display: Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.0625rem/1.7 "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: .23em; }
a:focus-visible { outline: 3px solid #ad6828; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { background: #fffaf6; }
.masthead, .brand, .footer-layout, .actions { display: flex; align-items: center; gap: 1rem; }
.masthead, .footer-layout { justify-content: space-between; padding-block: 1.15rem; }
.brand { color: #42271b; max-width: 100%; padding: .55rem .9rem; border: 1px solid #c67d59; border-radius: .9rem; background: #fffaf6; box-shadow: 0 3px 10px #482c211a; text-decoration: none; line-height: 1.15; font: bold 1.65rem/1.15 var(--display); }
.brand small { display: block; margin-top: .3rem; color: var(--muted); font: 600 .75rem/1.4 "Segoe UI", sans-serif; }
.brand-logo { display: block; width: auto; height: clamp(3.25rem, 6vw, 4.25rem); flex-shrink: 0; }
.call-link, .button { display: inline-block; border: 1px solid var(--accent); border-radius: 999px; padding: .58rem 1rem; font-weight: 700; text-decoration: none; }
.call-link { white-space: nowrap; }
.nav-bar { border-block: 1px solid var(--line); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem clamp(.65rem, 1.6vw, 1.4rem); padding-block: .45rem; }
nav a { padding: .35rem .15rem; font-size: .9rem; font-weight: 650; text-decoration: none; }

.front-feature { background: linear-gradient(120deg, #fcf0e4, #f1d6c0); border-bottom: 1px solid var(--line); }
.feature-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding-block: clamp(2rem, 6vw, 5.25rem); }
.feature-image { margin: 0; }
.feature-image img { display: block; width: 100%; aspect-ratio: 2000 / 1199; object-fit: cover; border-radius: 1.35rem; box-shadow: 0 18px 42px #482c2126; }
.eyebrow { margin: 0; color: var(--accent); font-weight: 700; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; }
h1 { margin: 0 0 .6em; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.04em; }
.feature-copy :is(h1, .feature-title) { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.04em; margin: .3em 0 .55em; font-size: clamp(2.6rem, 5.5vw, 4.85rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
.actions { flex-wrap: wrap; }
.button.primary { background: var(--accent); color: #fff; }

.page-content { padding-block: clamp(1.75rem, 5vw, 4rem); }
.original-page, .page-content > .hero, .card { border: 1px solid var(--line); border-radius: 1.3rem; background: #fff; padding: clamp(1.15rem, 4.5vw, 3.5rem); }
.original-page > p, .original-page > ul, .original-page > ol { max-width: 74ch; }
.original-page a { overflow-wrap: anywhere; }
.original-page figure { max-width: 100%; margin-inline: 0; }
.original-page table { display: block; overflow-x: auto; max-width: 100%; }
.original-page .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .85rem; }
.original-page .wp-block-gallery.has-nested-images figure.wp-block-image { width: auto !important; margin: 0; }
.original-page .wp-block-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .65rem; }
.original-page .wp-block-gallery figcaption { grid-column: 1 / -1; }
.site-footer { background: var(--deep); color: #fff; }
.site-footer a { color: inherit; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: #fff; padding: .75rem; }
@media (max-width: 700px) {
    .wrap { width: calc(100% - 2rem); }
    .feature-layout { grid-template-columns: 1fr; }
    .feature-image img { border-radius: 1rem; }
    nav a { min-height: 2.5rem; }
}
@media (max-width: 380px) {
    .masthead { align-items: flex-start; flex-direction: column; }
}



.quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    padding-block: 1rem 0;
}
.quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .8rem;
    font-size: 1rem;
}
.quick-links a:hover { background: #fff2e8; }
.quick-links a span { font-size: 1.25em; }
.home .page-content { padding-top: 1rem; }
@media (max-width: 700px) {
    .quick-links { grid-template-columns: 1fr; }
}


@keyframes oaza-intro {
    from { opacity: .45; transform: translateY(.65rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
    .feature-copy { animation: oaza-intro 480ms ease-out both; }
    .feature-image { animation: oaza-intro 560ms ease-out 80ms both; }
    .quick-links { animation: oaza-intro 440ms ease-out 150ms both; }
}




.price-document {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: .9rem;
    padding: clamp(1rem, 3vw, 1.7rem);
    margin-top: 1rem;
}
.price-document-featured { background: #fcf0e4; }
.price-document h2 { margin: 0; }
.price-format { color: var(--accent); font-weight: 750; font-size: .8rem; margin: 0 0 .35rem; }
.price-contact { margin: 1.5rem 0 0; }


:where(.button, .call-link, .quick-links a, .wp-element-button, .wp-block-file__button) {
    min-height: 2.75rem;
    border-radius: .65rem;
    box-shadow: 0 2px 3px #482c2114;
    text-decoration: none;
}
.button, .call-link, .wp-block-file .wp-block-file__button, .wp-block-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .58rem 1rem;
    border: 1px solid var(--accent);
    border-radius: .65rem;
    background: #fff8f2;
    color: var(--accent);
    font-weight: 700;
}
.button.primary {
    background: var(--accent);
    color: #fff;
}
:is(.button, .call-link, .quick-links a, .wp-element-button, .wp-block-file__button):focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}
:is(.button, .call-link, .quick-links a, .wp-element-button, .wp-block-file__button):active {
    box-shadow: inset 0 1px 4px #482c2130;
}
@media (hover: hover) {
    :is(.button, .call-link, .quick-links a, .wp-element-button, .wp-block-file__button):hover {
        background: #f9e6d7;
        color: var(--deep);
    }
    .button.primary:hover {
        background: #7e3218;
        color: #fff;
    }
}
@media (prefers-reduced-motion: no-preference) {
    :is(.button, .call-link, .quick-links a, .wp-element-button, .wp-block-file__button) {
        transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    }
    .quick-links a span { transition: transform 180ms ease; }
    @media (hover: hover) {
        :is(.button, .call-link, .quick-links a, .wp-element-button, .wp-block-file__button):hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 12px #482c2126;
        }
        .quick-links a:hover span { transform: translateX(3px); }
    }
    :is(.button, .call-link, .quick-links a, .wp-element-button, .wp-block-file__button):active {
        transform: translateY(1px);
    }
}


.nav-bar a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .45rem .55rem;
    border: 1px solid #c68e70;
    background: #fff8f2;
    border-radius: .5rem;
}
.nav-bar a::after {
    content: "";
    position: absolute;
    inset-inline: .55rem;
    bottom: .32rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
}
.nav-bar a[aria-current="page"], .nav-bar a:focus-visible { background: #fae8da; }
.nav-bar a[aria-current="page"]::after, .nav-bar a:focus-visible::after { transform: scaleX(1); }
.nav-bar a:active { background: #f1d6c0; }
@media (hover: hover) {
    .nav-bar a:hover { background: #fae8da; }
    .nav-bar a:hover::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: no-preference) {
    .nav-bar a { transition: background-color 180ms ease, transform 180ms ease; }
    .nav-bar a::after { transition: transform 220ms ease-out; }
    .nav-bar a:active { transform: translateY(1px); }
}



.feature-intro { max-width: 38ch; margin: 0 0 1.4rem; color: var(--muted); }
.menu-toggle { display: none; }
@media (max-width: 700px) {
    .menu-toggle:not([hidden]) {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 44px;
        padding: .55rem;
        border: 0;
        background: transparent;
        color: var(--accent);
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }
    .menu-toggle:not([hidden])[aria-expanded="false"] + nav { display: none; }
    .nav-bar nav { display: grid; grid-template-columns: 1fr; padding-bottom: .7rem; }
}


.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
    gap: 1rem;
    margin-block: 1.75rem;
}
.service-card {
    padding: clamp(1rem, 2.5vw, 1.6rem);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: .85rem;
    background: var(--paper);
}
.service-card h2 { margin: 0 0 .65rem; font-size: 1.4rem; }
.service-card p, .service-contact p { margin: 0; }
.service-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    border-radius: .85rem;
    padding: 1rem 1.25rem;
    background: #f8e7d8;
}


.front-feature { position: relative; isolation: isolate; background: var(--deep); }
.feature-layout {
    display: flex;
    align-items: center;
    min-height: clamp(30rem, 52vw, 43rem);
}
.feature-image { position: absolute; inset: 0; z-index: -2; animation: none; }
.feature-image img { height: 100%; width: 100%; object-fit: cover; object-position: center; border-radius: 0; box-shadow: none; }
.front-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #21140ff2, #21140fc9 33%, #21140f52 65%, transparent);
}
.feature-copy { max-width: 35rem; color: white; }
.feature-copy .eyebrow, .feature-intro { color: #fff4eb; }
@media (max-width: 700px) {
    .feature-layout { align-items: flex-end; min-height: 34rem; }
    .feature-image img { object-position: 58% center; }
    .front-feature::before { background: linear-gradient(0deg, #21140ff5, #21140fc7 54%, #21140f18 94%); }
}




/* Keep navigation labels readable across the warm header gradient. */
.nav-bar a { color: #351d13; }
.nav-bar a[aria-current="page"],
.nav-bar a:focus-visible { background: #fff4ea; }
.menu-toggle:not([hidden]) { color: #351d13; }
.front-feature .button:not(.primary) { background: #fff4ea; color: #542816; }








.home-hero-shell { position: relative; isolation: isolate; background: var(--deep); }
.home-hero-photo { position: absolute; inset: 0; z-index: -1; }
.home-hero-photo .feature-image { z-index: auto; }
.home-hero-shell .site-header { background: #261811e8; color: #fff; }
.home-hero-shell .brand,
.home-hero-shell .brand small,
.home-hero-shell .call-link,
.home-hero-shell .nav-bar a,
.home-hero-shell .menu-toggle:not([hidden]) { color: #fff7f0; }
.home-hero-shell .brand,
.home-hero-shell .call-link,
.home-hero-shell .nav-bar a { background: #ffffff12; border-color: #ffffff55; }
.home-hero-shell .nav-bar { border-color: #ffffff38; }
.home-hero-shell .nav-bar a:is(:hover, :focus-visible, [aria-current="page"]),
.home-hero-shell .call-link:is(:hover, :focus-visible) { background: #fff1e5; color: #351d13; }
.home-hero-shell .front-feature { background: transparent; border-bottom: 0; }


/* Action hierarchy across the light pages and the photo header. */
.button, .call-link, .wp-block-file .wp-block-file__button, .wp-block-button .wp-block-button__link {
    min-height: 2.85rem;
    padding: .62rem 1.15rem;
    border-color: #b87959;
    border-radius: .8rem;
}
.button.primary {
    background: #913b1d;
    border-color: #913b1d;
    color: #fff;
    box-shadow: 0 3px 0 #652811;
}
.front-feature .button:not(.primary) {
    background: #fff8f1;
    border-color: #fff8f1;
    color: #542816;
}
.home-hero-shell .call-link {
    background: #fff4e9;
    border-color: #fff4e9;
    color: #542816;
}
.nav-bar a {
    border-color: transparent;
    background: transparent;
    padding-inline: .7rem;
}
.nav-bar a[aria-current="page"] {
    background: #fae8da;
    border-color: #d9ac92;
}
.home-hero-shell .nav-bar a {
    background: transparent;
    border-color: transparent;
}
.home-hero-shell .nav-bar a[aria-current="page"] {
    background: #fff1e5;
    border-color: #fff1e5;
    color: #351d13;
}
.home-hero-shell :is(a, button):focus-visible { outline-color: #ffd4b5; }
@media (hover: hover) {
    .button.primary:hover { background: #732b14; border-color: #732b14; }
    .front-feature .button:not(.primary):hover, .home-hero-shell .call-link:hover { background: #f7dec9; }
    .home-hero-shell .nav-bar a:hover { background: #fff1e5; color: #351d13; }
}
.button.primary:active { box-shadow: 0 1px 0 #652811; }


.home-hero-shell .masthead { display: none; }
.home-hero-shell .feature-layout {
    align-items: flex-start;
    padding-top: clamp(1rem, 3vw, 2.75rem);
}
.home-hero-shell .feature-copy .brand {
    display: inline-flex;
    background: #281a14d9;
}

.feature-brand-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }


.home #obsah { background: #35251f; color: #fff4ea; }
.site-header > .nav-bar { background: #412c24; border-color: #6d4c3d; border-top: 0; }
.site-header > .nav-bar a, .site-header .menu-toggle:not([hidden]) { color: #fff4ea; }
.site-header > .nav-bar a:is(:hover, :focus-visible, [aria-current="page"]) {
    background: #f4d9c7;
    color: #38241c;
}
.home .quick-links a, .home #obsah .original-page {
    background: #4b3329;
    border-color: #805a49;
    color: #fff4ea;
}
.home .quick-links a:hover { background: #624237; }
.home #obsah .original-page a { color: #ffd1b5; }
.home :is(.nav-bar, #obsah) :is(a, button):focus-visible { outline-color: #ffd1b5; }
.home .site-footer { background: #291c17; border-top: 1px solid #6d4c3d; }



.home .feature-intro { max-width: 34ch; line-height: 1.6; }
.home #obsah .about-page { padding: clamp(1.4rem, 5vw, 4rem); }
.about-title { font-size: clamp(2.5rem, 5vw, 4rem); margin: 0 0 .5em; }
.about-title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    margin-top: .65rem;
    background: #e4a47d;
}
.about-lead { max-width: 58ch; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    align-items: start;
    gap: clamp(1rem, 4vw, 3rem);
    margin-top: 1.8rem;
}
.about-grid :is(h2, h3) { font-size: clamp(1.35rem, 2.5vw, 1.8rem); margin: 0 0 .65rem; }
.about-grid p { margin: 0; }
.about-care { padding-block: 1rem; max-width: 48ch; }
.about-details {
    padding: clamp(1rem, 3vw, 1.5rem);
    background: #3e2a22;
    border: 1px solid #a47a67;
    border-radius: .8rem;
}
.about-details dl { margin-bottom: 0; }
.about-details dt { color: #f5cfb7; font-size: .9rem; }
.about-details dd { margin: 0 0 .65rem; font-weight: 650; overflow-wrap: anywhere; }

body:not(.home) { background: #35251f; color: #fff4ea; }
body:not(.home) .site-header,
body:not(.home) .nav-bar { background: #412c24; border-color: #805a49; }
body:not(.home) :is(.original-page, .page-content > .hero, .card) {
    background: #4b3329;
    border-color: #805a49;
}
body:not(.home) :is(.price-document, .service-card, .service-contact) {
    background: #3e2a22;
    border-color: #a47a67;
}
body:not(.home) :is(.price-document-featured, .service-card) { border-top-color: #e4a47d; }
body:not(.home) :is(.original-page a:not(.button):not(.wp-element-button), .price-format, .eyebrow) {
    color: #ffd1b5;
}
body:not(.home) .site-footer { background: #291c17; border-top-color: #805a49; }
body:not(.home) :is(.site-header, main, .site-footer) :is(a, button):focus-visible { outline-color: #ffd1b5; }
body:not(.home) .menu-toggle:not([hidden]) { color: #fff4ea; }




.original-page .vlasta-photo { margin: 1.6rem 0 0; }
.vlasta-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .85rem; }


.gallery-page .wp-block-gallery {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: clamp(.75rem, 2vw, 1.3rem);
    margin: 1.6rem 0;
}
.gallery-page figure.wp-block-image {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #a47a67;
    border-radius: .85rem;
    background: #3e2a22;
}
.gallery-page figure.wp-block-image img { display: block; border-radius: 0; }
.gallery-page > figure.wp-block-image { max-width: 28rem; margin: 1.3rem auto 0; }




.gallery-page .wp-block-gallery.has-nested-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.gallery-page .wp-block-gallery.has-nested-images > figure.wp-block-image {
    display: block;
    width: auto !important;
    max-width: none;
    margin: 0;
    aspect-ratio: 4 / 3;
}
.gallery-page .wp-block-gallery.has-nested-images > figure.wp-block-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 20;
}
#obsah, #podstranky { scroll-margin-top: 7rem; }
@media (max-width: 700px) {
    .site-header > .nav-bar { max-height: 70vh; overflow-y: auto; }
    #obsah, #podstranky { scroll-margin-top: 3.5rem; }
}
@media (max-width: 600px) {
    .site-header { top: 0; }
}
