/* === 9.vlna casting — main.css === */
:root {
    --accent:     #e94556;
    --accent-dark:#c73344;
    --dark:       #1a1a1a;
    --text:       #333333;
    --muted:      #666666;
    --bg:         #ffffff;
    --bg-section: #f2f3f8;
    --border:     #e0e0e0;
    --font:       'Montserrat', sans-serif;
    --radius:     4px;
    --container:  1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; color: var(--dark); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .3rem; }
#main { flex: 1; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: .65rem 1.6rem;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    border: 2px solid transparent;
    text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ============================================================
   HEADER — centered logo, split nav
   ============================================================ */
#header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 1px 6px rgba(0,0,0,.1);
}

.header-main { padding: 0; }

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    min-height: 80px;
    padding: 0 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
}

/* Center logo */
.logo {
    grid-column: 2;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}
.logo img { height: 60px; width: auto; }

/* Left nav */
.nav-left { grid-column: 1; }
.nav-left ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0;
}

/* Right nav */
.nav-right { grid-column: 3; }
.nav-right ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
}

.nav-left a, .nav-right a {
    display: block;
    padding: .5rem .9rem;
    color: var(--dark);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.nav-left a:hover, .nav-right a:hover,
.nav-left a.active, .nav-right a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Language flags */
.lang-item { display: flex; align-items: center; gap: .4rem; }
.lang-flag { display: flex; align-items: center; opacity: .5; transition: opacity .15s; border-bottom: none !important; }
.lang-flag:hover, .lang-flag.active { opacity: 1; border-bottom: none !important; }
.lang-flag img { border-radius: 2px; }

/* Header actions: flags + mobile toggle */
.header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    grid-column: 4;
    justify-self: end;
    padding-left: .5rem;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); transition: transform .3s; }

/* ============================================================
   HOMEPAGE
   ============================================================ */
.home-tagline {
    text-align: center;
    padding: 1.5rem 1rem .75rem;
    background: #fff;
}
.home-tagline p {
    font-size: clamp(.85rem, 1.6vw, 1.1rem);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dark);
    margin: 0;
}

.home-faces {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.home-faces img { width: 100%; display: block; }

/* ============================================================
   HUB PAGE (fotky-a-videa and similar nav pages)
   ============================================================ */
/* Hub split: photo left, patterned content right (fotky-a-videa) */
.hub-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}
.hub-split-hero {
    overflow: hidden;
}
.hub-split-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hub-split-content {
    background: url('/media/bg-kostky.png') repeat;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

/* Hub standalone (full-width, no photo) */
.hub-page {
    min-height: 60vh;
    background: url('/media/bg-kostky.png') repeat;
    padding: 3rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    gap: 2rem;
}
.hub-title-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    width: 100%;
}
.hub-title-box h1 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #11aba5;
    line-height: 1.3;
}
.hub-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}
.hub-btn {
    display: inline-block;
    padding: 1rem 1.75rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    max-width: 480px;
    transition: opacity .15s;
}
.hub-btn:hover { opacity: .85; color: #fff; }
.hub-btn-red  { background: var(--accent); }
.hub-btn-teal { background: #11aba5; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.reference-wrap .reference-content {
    background: url('/media/bg-triangles.png') repeat;
}
.kontakty-wrap .kontakty-content {
    background: url('/media/bg-kostky-blue.png') repeat;
}
.kontakty-box h2 { color: #11aba5; }
.kontakty-box a { color: var(--dark); }
.kontakty-box a:hover { color: var(--accent); }
.kontakty-map {
    width: 100%;
}
.kontakty-map .map-consent {
    width: 100%;
    height: 380px;
    background: var(--bg-section);
    position: relative;
}
.kontakty-map iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
}
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}
.about-hero {
    overflow: hidden;
    background: var(--bg-section);
}
.about-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-content {
    background: var(--bg-section);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}
.about-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.about-box h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: .75rem;
}
.about-box p { margin: 0; font-size: .95rem; line-height: 1.7; }
.about-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .about-wrap { grid-template-columns: 1fr; }
    .about-hero { max-height: 320px; }
    .hub-split { grid-template-columns: 1fr; }
    .hub-split-hero { max-height: 320px; }
}

/* ============================================================
   PAGE TITLE BAR
   ============================================================ */
.page-title-bar {
    background: var(--bg-section);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}
.page-title-bar h1 { font-size: 2rem; color: var(--dark); }
.page-title-bar p { margin-top: .5rem; color: var(--muted); font-size: .95rem; }

/* ============================================================
   GENERIC PAGE CONTENT
   ============================================================ */
.page-content { padding: 3rem 1.5rem; }
.page-content h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; color: var(--dark); }
.page-content h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.page-content img { max-width: 100%; border-radius: var(--radius); }
.page-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ============================================================
   PORTFOLIO LIST
   ============================================================ */
.portfolio-list-wrap { padding: 3rem 1.5rem; }
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.portfolio-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    transition: transform .2s, box-shadow .2s;
    color: var(--text);
    text-decoration: none;
}
.portfolio-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.portfolio-card-img { aspect-ratio: 3/4; overflow: hidden; background: var(--bg-section); }
.portfolio-card-img img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card-body {
    padding: .75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
}
.portfolio-card-body strong { font-size: .9rem; }
.portfolio-year { font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* Obleceni full-width masonry gallery */
.obleceni-gallery {
    column-count: 3;
    column-gap: 4px;
    padding: 4px;
    line-height: 0;
}
.obleceni-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 4px;
    cursor: zoom-in;
    overflow: hidden;
}
.obleceni-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity .2s;
}
.obleceni-item:hover img { opacity: .85; }

@media (max-width: 768px) { .obleceni-gallery { column-count: 2; } }
@media (max-width: 480px) { .obleceni-gallery { column-count: 1; } }

/* Tisku (press) gallery grid */
.tisku-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .75rem;
    margin-bottom: 2rem;
}
.tisku-item { display: block; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.tisku-item img { width: 100%; height: 220px; object-fit: cover; transition: opacity .2s; display: block; }
.tisku-item:hover img { opacity: .85; }

/* ============================================================
   PORTFOLIO DETAIL
   ============================================================ */
.portfolio-detail-wrap { padding: 3rem 1.5rem; }
.portfolio-meta { color: var(--muted); margin-top: .5rem; }
.portfolio-single-image { max-width: 600px; margin: 0 auto; }
.portfolio-single-image img { border-radius: var(--radius); width: 100%; }
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.gallery-item { display: block; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: 320px; object-fit: cover; transition: opacity .2s; }
.gallery-item:hover img { opacity: .85; }
.portfolio-description { margin: 2rem 0; color: var(--muted); }
.portfolio-back { margin-top: 2rem; }
.portfolio-back a { color: var(--muted); font-size: .9rem; }
.portfolio-back a:hover { color: var(--accent); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img-wrap { max-width: 90vw; max-height: 90vh; }
.lightbox-img-wrap img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close,.lightbox-prev,.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: .7;
    line-height: 1;
    padding: .5rem;
}
.lightbox-close:hover,.lightbox-prev:hover,.lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 1rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   VIDEO / MAP CONSENT
   ============================================================ */
.video-consent {
    position: relative;
    background: #000;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
}
.video-consent img { width: 100%; opacity: .7; }
.video-consent-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    color: #fff;
}
.video-consent-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: .75rem;
    font-family: var(--font);
    font-weight: 600;
}
.video-consent-note { font-size: .8rem; opacity: .8; max-width: 360px; }
.video-consent iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.map-consent { position: relative; background: var(--bg-section); }
.map-consent-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: rgba(242,243,248,.95);
}

/* ============================================================
   INQUIRY FORM
   ============================================================ */
.inquiry-form { max-width: 760px; margin-top: 2rem; }
.inquiry-form fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.inquiry-form legend {
    font-weight: 700;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 0 .5rem;
    color: var(--muted);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .35rem;
    color: var(--dark);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: .6rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .95rem;
    color: var(--text);
    transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .95rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: var(--dark); color: rgba(255,255,255,.75); }
.footer-widgets { padding: 3rem 0 2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}
.footer-logo { margin-bottom: .75rem; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.55); }
.footer-col h4 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.4);
    margin-bottom: .75rem;
    font-weight: 600;
}
.footer-col p { font-size: .875rem; margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: #fff; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col small { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1rem 0;
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .nav-left a, .nav-right a { font-size: .72rem; padding: .5rem .7rem; }
    .logo img { height: 50px; }
}

@media (max-width: 860px) {
    .nav-left, .nav-right { display: none; }
    .nav-left.open, .nav-right.open { display: block; }

    .header-inner { grid-template-columns: auto 1fr auto; }
    .logo { grid-column: 1; padding: 0 1rem 0 0; }
    .header-actions { grid-column: 3; padding-left: 0; }
    .nav-toggle { display: flex; }

    /* Mobile: stacked nav drawer */
    #nav-left, #nav-right {
        position: fixed;
        top: 83px;
        left: 0; right: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
        z-index: 99;
        display: none;
    }
    #nav-left.open, #nav-right.open { display: block; }
    #nav-left ul, #nav-right ul {
        flex-direction: column;
        gap: 0;
        padding: .5rem 0;
        justify-content: flex-start;
    }
    .nav-left a, .nav-right a { padding: .75rem 1.5rem; border-bottom: none; border-left: 3px solid transparent; }
    .nav-left a.active, .nav-right a.active,
    .nav-left a:hover, .nav-right a:hover { border-left-color: var(--accent); border-bottom: none; }
    .lang-item { padding: .75rem 1.5rem; }
}

@media (max-width: 600px) {
    .home-tagline p { font-size: .75rem; letter-spacing: .08em; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
    .footer-grid { grid-template-columns: 1fr; }
}
