/* =====================================================================
   Opidum Develop – sdílený stylopis (mobile-first)
   ---------------------------------------------------------------------
   1. Reset & základ
   2. Container
   3. Hlavička (sdílená)
   4. Patička (sdílená)
   5. Stránka PROJEKTY – fullscreen slider  (body.page-projects)
   6. Obsahové stránky – O nás / Kontakt
   7. Media queries
   ===================================================================== */

/* ===== 1. Reset & základ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
}

body {
    background: #fff;
    color: #000;
    font-family: 'Work Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

/* vizuálně skrytý obsah (přístupné pro čtečky a SEO) */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== 2. Container (centrovaný, společný pro celý web) ===== */
.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container { padding: 0 40px; }
}

@media (min-width: 1280px) {
    .container { padding: 0 60px; }
}

/* ===== 3. Hlavička (sdílená) ===== */
.topbar {
    position: relative;
    z-index: 100;
    height: 60px;
    background: transparent;
}

.bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
    height: 34px;
    flex: none;
}

.logo img {
    height: 100%;
    width: auto;
}

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

.menu a {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #4b4a4a;
    white-space: nowrap;
}

.menu a.active,
.menu a:hover {
    color: #e6223b;
}

.social {
    display: none;
    gap: 14px;
    align-items: center;
}

/* ===== 4. Patička (sdílená) ===== */
.footer {
    background: #fff;
    padding: 48px 0 32px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 28px;
    border-top: 1px solid #e6223b;
    padding-top: 28px;
}

.footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
}

.footer-col {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    line-height: 1.9;
    color: #111;
}

.footer-col a:hover { color: #e6223b; }

.footer-credit {
    border-top: 1px solid #e6223b;
    padding-top: 20px;
    font-size: 12px;
    color: #767676;
    text-align: center;
}

/* ===== 5. Stránka PROJEKTY – fullscreen slider ===== */
body.page-projects {
    height: 100vh;
    overflow: hidden;
    background: #000;
}

/* na stránce slideru je hlavička fixní přes celou plochu */
body.page-projects .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.slider {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 7s ease;
}

.slide.active .bg {
    transform: scale(1);
}

.slide .veil {
    position: absolute;
    inset: 0;
}

/* obsah slidu v containeru – mobile first */
.content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 60px;
    padding-bottom: 80px;
    /* dekorativní červený rámeček: vlevo přes celou výšku boxu */
    padding-left: 24px;
    border-left: 2px solid #e6223b;
}

/* dekorativní červený rámeček: nahoře a dole jen ~200px (patky tvaru "[") */
.content::before,
.content::after {
    content: "";
    position: absolute;
    left: 0;
    width: min(200px, 100%);
    height: 2px;
    background: #e6223b;
}

.content::before { top: 0; }
.content::after { bottom: 0; }

.num {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.num b {
    color: #e6223b;
    font-size: 48px;
    font-weight: 700;
}

.num span {
    color: #000;
    font-size: 20px;
}

.mini {
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    align-self: flex-start;
    flex: none;
}

.mini.logo_prezletice {
    width: 314px;
    height: 110px;
}

.title {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    color: #000;
    font-size: 34px;
    line-height: 1.08;
}

.info {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    color: #111;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-line;
}

.seeproject {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    color: #000;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
}

.seeproject .arr {
    font-size: 18px;
}

/* spodní popisky – také v containeru */
.credits {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 50;
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    pointer-events: none;
}

.credits .container {
    display: flex;
    justify-content: space-between;
}

.credits .c1 { color: #000; }

.credits .c2 {
    color: #000;
    opacity: .8;
    display: none;
}

/* tečky (navigace slideru) */
.dots {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 48px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .28);
    cursor: pointer;
    padding: 0;
    transition: .3s;
}

.dots button.on {
    background: #e6223b;
    transform: scale(1.3);
}

/* ===== 6. Obsahové stránky – O nás / Kontakt ===== */

/* odsazení obsahu pod (nefixní) hlavičkou */
.page {
    padding-bottom: 24px;
}

/* nadpis sekce: ghost číslo + titulek + červená patka */
.section {
    padding: 48px 0;
}

.section-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.section-head .bignum {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1;
    color: #f0f0f0;
    flex: none;
}

.section-head .sec-title {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    color: #000;
}

.section-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 64px;
    height: 3px;
    background: #e6223b;
}

.lead {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.25;
    color: #000;
}

.lead .sub {
    display: block;
    margin-top: 8px;
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.red { color: #e6223b; }

.body-txt {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.9;
    color: #767676;
    text-align: justify;
    max-width: 1075px;
}

.body-txt p + p { margin-top: 24px; }

.body-txt a.red { text-decoration: underline; }

/* hero (O nás) */
.hero {
    padding: 32px 0 0;
}

.hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1800 / 768;
    object-fit: cover;
    margin-top: 28px;
}

/* tým – karty */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.card {
    border: 1px solid #e6223b;
    padding: 40px 32px;
}

.card .name {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #000;
    margin-bottom: 20px;
}

.card .txt {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    color: #000;
    white-space: pre-line;
}

/* partneři */
.partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px 48px;
}

.partners img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

/* hlavní nadpis stránky (Kontakt) */
.page-title {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    color: #000;
    margin-bottom: 28px;
}

/* ---- Kontakt: mapa + karta ---- */
.contact-map {
    position: relative;
    margin-top: 8px;
}

.map {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

.contact-card {
    background: #fff;
    padding: 32px 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
}

.contact-card .logo {
    height: 40px;
    margin-bottom: 24px;
}

.contact-addr {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #767676;
    margin-bottom: 24px;
}

.contact-phone {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #000;
    margin-bottom: 20px;
}

.contact-line {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.contact-line strong { color: #000; }
.contact-line a { color: #767676; }
.contact-line a:hover { color: #e6223b; }

.contact-follow {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ---- Kontakt: formulář ---- */
.form-title {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.25;
    color: #000;
    margin-bottom: 28px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
    width: 100%;
    border: 1px solid #c9c9c9;
    padding: 14px 16px;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: #222;
    background: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #767676; }

.contact-form input:not([type="checkbox"]):focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #e6223b;
}

.form-note input[type="checkbox"] {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: #e6223b;
    cursor: pointer;
}

.contact-form textarea {
    margin-top: 16px;
    min-height: 200px;
    resize: vertical;
}

.form-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #767676;
}

.form-note a {
    color: #c32929;
    text-decoration: underline;
}

.btn-submit {
    background: #e6223b;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .2s;
}

.btn-submit:hover { background: #c32929; }

/* captcha + hlášky formuláře */
.form-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.form-captcha label {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    color: #222;
}

.form-captcha input { max-width: 120px; }

.form-msg {
    padding: 14px 16px;
    margin-bottom: 20px;
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.form-msg.ok {
    background: #eaf7ed;
    color: #1c7a3a;
    border: 1px solid #bfe3c8;
}

.form-msg.err {
    background: #fdecee;
    color: #c32929;
    border: 1px solid #f3c2c8;
}

.field-err {
    color: #c32929;
    font-size: 13px;
    margin-top: 6px;
}

.contact-form .invalid { border-color: #c32929; }

/* honeypot – skrytý před uživatelem */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- GDPR / právní text ---- */
.legal .lead-info {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    line-height: 2;
    color: #767676;
    max-width: 1075px;
    margin-top: 24px;
}

.legal .lead-info p { margin-bottom: 4px; }
.legal .lead-info strong { color: #000; font-weight: 700; }

.legal ul {
    list-style: none;
    max-width: 1075px;
}

.legal ul li {
    position: relative;
    padding-left: 22px;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #767676;
    text-align: justify;
}

.legal ul li + li { margin-top: 12px; }

.legal ul li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: #e6223b;
    font-weight: 700;
}

.legal a { color: #e6223b; }

.legal-block { margin-bottom: 44px; }
.legal-block:last-child { margin-bottom: 0; }
.legal-block .body-txt { margin-top: 0; }

/* větší mezinadpis (např. „Jaké typy cookies používáme?“) */
.legal-divider {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    color: #000;
    margin: 8px 0 28px;
}

/* kontaktní výpis na konci právní stránky */
.legal .contact-lines {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #000;
    margin-top: 16px;
}

/* ===== 7. Media queries ===== */

/* --- Tablet --- */
@media (min-width: 768px) {
    .topbar { height: 72px; }
    .logo { height: 40px; }
    .menu { gap: 28px; }
    .menu a { font-size: 13px; }
    .social { display: flex; }

    /* slider */
    .content {
        gap: 22px;
        justify-content: center;
        padding-top: 0;
        padding-left: 32px;
    }
    .num b { font-size: 64px; }
    .num span { font-size: 26px; }
    .title { font-size: 56px; }
    .info { font-size: 15px; }
    .seeproject { font-size: 18px; }
    .credits { bottom: 18px; }
    .credits .c2 { display: block; }
    .dots {
        flex-direction: column;
        left: auto;
        right: 34px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        gap: 16px;
    }

    /* obsahové stránky */
    .section-head .bignum { font-size: 80px; }
    .section-head .sec-title { font-size: 34px; }
    .lead { font-size: 48px; }
    .lead .sub { font-size: 24px; }
    .body-txt { font-size: 18px; line-height: 2; }
    .cards { grid-template-columns: repeat(3, 1fr); }
    .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }

    /* kontakt */
    .page-title { font-size: 60px; }
    .form-title { font-size: 32px; }
    .map { height: 600px; }

    /* karta překrývá mapu vlevo */
    .contact-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        pointer-events: none;
    }
    .contact-overlay .contact-card {
        width: 480px;
        padding: 44px 48px;
        pointer-events: auto;
    }

    .contact-form .form-row { grid-template-columns: repeat(3, 1fr); }

    .legal ul li { font-size: 18px; line-height: 2; }
}

/* --- Desktop --- */
@media (min-width: 1280px) {
    .menu { gap: 40px; }

    /* slider */
    .content { gap: 26px; padding-left: 40px; }
    .num b { font-size: 80px; }
    .num span { font-size: 32px; }
    .title { font-size: 80px; line-height: 1.12; }
    .info { font-size: 16px; }
    .seeproject { font-size: 20px; }
    .credits { bottom: 26px; font-size: 16px; }
    .dots { right: 62px; }

    /* obsahové stránky */
    .section { padding: 72px 0; }
    .lead { font-size: 60px; }
    .lead .sub { font-size: 32px; }
    .section-head .bignum { font-size: 96px; }
    .legal .lead-info { font-size: 20px; }
    .legal-divider { font-size: 40px; }
}
