/* ==================================================
   Base & Reset
================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    width: 100%;
    overflow-x: hidden;
    scroll-padding-top: 90px;
    background: #f6efe3;
}

body {
    min-height: 100vh;
}

body {
    margin: 0;
    font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f6efe3;
    color: #3e352c;
    line-height: 1.6;
    overflow-x: hidden;
}

footer {
    /* margin-top: auto; */
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button {
    font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


/* ==================================================
   Layout
================================================== */

section {
    padding: 20px 20px;
    max-width: 840px;
    margin: 0 auto;
    background: #f6efe3;
}

@media (min-width: 900px) {
    section {
        max-width: 1040px;
    }

    section h2 {
        font-size: 1.95rem;
    }

    section h3 {
        font-size: 1.5rem;
    }

    section p,
    section li {
        font-size: 1.18rem;
    }

}

h1,
h2 {
    margin-bottom: 20px;
}


/* ==================================================
   Navigation
================================================== */

header {
    background: transparent;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    padding-top: env(safe-area-inset-top);
}

/* iOS notch overscroll fix (without changing page background) */
header::before {
    content: "";
    position: absolute;
    top: calc(-1 * env(safe-area-inset-top));
    left: 0;
    width: 100%;
    height: env(safe-area-inset-top);
    background: rgb(40, 35, 30);
    z-index: -1;
}

header.scrolled {
    background: rgb(40, 35, 30);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 0.75;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
}

.menu-logo {
    height: 60px;
    width: auto;
    display: block;
}

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


/* ==================================================
   Mobile Navigation
================================================== */

@media (max-width: 768px) {

    header {
        background: rgb(40, 35, 30);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    header nav {
        position: absolute;
        top: 70px;
        right: 10px;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 28px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        width: 260px;
        opacity: 0;
        transform: translateY(-10px);
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    header nav.active {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    header nav a {
        margin: 10px 0;
        color: #7E9B82;
    }

    .menu-toggle {
        display: block;
    }

    .brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .brand-divider {
        display: none;
    }

    .brand-name {
        font-size: 0.9rem;
    }
}


/* ==================================================
   Hero Section
================================================== */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    padding: 60px 40px;
    color: #ffffff;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    max-width: none;
    margin: 0;
    will-change: background-position;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 550px;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
}

.hero-subname {
    margin-top: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    opacity: 0.9;
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.4rem;
    }

    .hero p {
        font-size: 1.4rem;
    }
}

@media (min-width: 1440px) {
    .hero-content {
        max-width: 600px;
    }

    .hero h1 {
        font-size: 3.8rem;
    }
}

@media (max-width: 700px) {

    .hero {
        text-align: right;
        padding: 40px 20px;
        background-size: cover;
        background-position: 40% center;
        min-height: 65vh;
    }

    .hero-content {
        max-width: 80%;
    }

    .hero h1,
    .hero p {
        text-align: right;
        font-size: 2.0rem;
    }

    .topics ul {
        -webkit-column-count: 1;
        column-count: 1;
    }
}


/* ==================================================
   Content Components
================================================== */

.quote {
    font-style: italic;
    text-align: center;
    margin: 60px auto;
    max-width: 700px;
    font-size: 1.4rem;
}

.topics ul {
    -webkit-column-count: 2;
    column-count: 2;
    -webkit-column-gap: 20px;
    column-gap: 20px;
    padding-left: 20px;
}

@media (max-width: 700px) {
    .topics ul {
        -webkit-column-count: 1;
        column-count: 1;
    }
}

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.cta-button {
    display: inline-block;
    margin: 30px 0 0 0;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    background: #7E9B82;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-wrapper {
    text-align: center;
}

.inline-button {
    color: #7E9B82;
}


/* ==================================================
   Ostrava Section
================================================== */

.ostrava-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 800px;
    margin: 50px auto 40px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

@media (min-width: 900px) {
    .ostrava-section {
        max-width: 1000px;
    }
}

.detail-marker,
.calendar-marker {
    width: 18px;
    height: 22px;
    flex: 0 0 18px;
    background: currentColor;
}

.detail-marker {
    -webkit-mask: url("images/mappin.and.ellipse.svg") center / contain no-repeat;
    mask: url("images/mappin.and.ellipse.svg") center / contain no-repeat;
}

.calendar-marker {
    width: 22px;
    flex-basis: 22px;
    -webkit-mask: url("images/calendar.badge.clock.svg") center / contain no-repeat;
    mask: url("images/calendar.badge.clock.svg") center / contain no-repeat;
}

.ostrava-image {
    position: relative;
    min-height: 240px;
}

.ostrava-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(49, 41, 32, 0.72) 0%, rgba(49, 41, 32, 0.36) 48%, rgba(49, 41, 32, 0.12) 100%);
    pointer-events: none;
}

.ostrava-image img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.ostrava-image-text {
    position: absolute;
    left: 48px;
    top: 40px;
    z-index: 2;
    max-width: 50%;
}

.ostrava-image-text h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.5em;
    line-height: 1.08;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72), 0 1px 4px rgba(0, 0, 0, 0.62);
}

.ostrava-image-text p {
    max-width: 420px;
    margin: 16px 0 0;
    color: #ffffff;
    font-size: 1.02rem;
    line-height: 1.55;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.72), 0 1px 4px rgba(0, 0, 0, 0.62);
}

.ostrava-image-text .ostrava-overlay-detail {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 18px;
    font-weight: 700;
}

.ostrava-image-text .ostrava-overlay-note {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 6px;
    font-weight: 700;
}

.ostrava-image-text .detail-marker,
.ostrava-image-text .calendar-marker {
    color: #ffffff;
    margin-right: 16px;
    filter: drop-shadow(0 3px 16px rgba(0, 0, 0, 0.72)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.62));
}

.ostrava-image-text .detail-marker {
    flex-basis: 22px;
}

.ostrava-image-cta {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 2;
    transform: translateX(-50%);
}

.ostrava-image-cta .cta-button {
    margin: 0;
    white-space: nowrap;
    color: #7E9B82;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

@media (max-width: 860px) {
    .ostrava-section {
        margin: 36px 20px 28px;
    }

    .ostrava-image {
        min-height: 440px;
    }

    .ostrava-image img {
        min-height: 440px;
    }

    .ostrava-image-text {
        left: 28px;
        right: 28px;
        top: 28px;
        max-width: none;
    }

    .ostrava-image-cta {
        bottom: 22px;
    }
}

@media (min-width: 900px) {
    .card {
        padding: 38px;
    }

    .quote {
        max-width: 840px;
        font-size: 1.7rem;
    }

    .cta-button {
        font-size: 1.24rem;
    }

    .ostrava-image-text h2 {
        font-size: 1.95rem;
    }

    .ostrava-image-text p {
        font-size: 1.2rem;
    }
}


/* ==================================================
   Info List
================================================== */

.info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.info-item span {
    font-size: 1.15rem;
    font-weight: 700;
}

@media (min-width: 900px) {
    .info-item span {
        font-size: 1.3rem;
    }
}


/* ==================================================
   Contact
================================================== */

.contact-map {
    width: 100%;
    height: 260px;
    margin: 18px 0 28px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

@media (max-width: 700px) {
    .contact-map {
        height: 220px;
    }
}


/* ==================================================
   O mně
================================================== */

#o-mne img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

@media (min-width: 900px) {
    .o-mne-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 44px;
    }

    .o-mne-content img {
        order: 2;
        margin: 0;
    }

    .o-mne-content p {
        order: 1;
        max-width: 760px;
    }
}


/* ==================================================
   Footer
================================================== */

.footer-logo {
    text-align: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-copy {
    text-align: center;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: #f7f2e9;
    font-size: 0.9rem;
    color: #7a6a58;
}


/* ==================================================
   Animations
================================================== */

.fade-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.breadcrumbs {
    max-width: 900px;
    margin: 0 0;
    padding: 0 0;
    font-size: 0.9rem;
    color: #7a6a58;
}

.breadcrumbs a {
    margin-left: 0px;
    text-decoration: none;
    color: #7a6a58;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}
