/* HIDROMEK ČR — design podle hidromek.com */

/* Poppins (self-hosted, latin + latin-ext pro češtinu) */
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/poppins/poppins-latin-ext-400-normal.woff2') format('woff2'), url('../fonts/poppins/poppins-latin-400-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/poppins/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/poppins/poppins-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/poppins/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/poppins/poppins-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/poppins/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/poppins/poppins-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/poppins/poppins-latin-700-normal.woff2') format('woff2'); }

:root {
    --c-red: #ef1e1c;
    --c-black: #000;
    --c-dark: #111;
    --c-topbar: #333;
    --c-gray-bar: #ddd;
    --c-gray-bg: #f5f5f5;
    --c-border: #e8e8e8;
    --c-text: #000;
    --c-muted: #767676;
    --c-nav: #555;
    --radius: 8px;
    --radius-sm: 4px;
    --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    color: var(--c-text);
    line-height: 1.65;
    background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-red); text-decoration: none; }
a:hover { text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.section { padding: 56px 0; }
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 36px;
}
.section-title-left { text-align: left; font-size: 1.7rem; font-weight: 600; margin: 0 0 24px; }

/* ===== Top bar ===== */
.topbar { background: var(--c-topbar); color: #ccc; font-size: 0.8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.topbar a { color: #ccc; font-weight: 500; }
.topbar a:hover { color: #fff; }
.topbar-contacts { display: flex; gap: 18px; }

/* ===== Header ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 100; }
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 76px;
    gap: 12px;
}
.site-logo { justify-self: center; display: block; }
.site-logo img { height: 30px; width: auto; }
.site-logo .logo-text { font-size: 1.5rem; font-weight: 700; letter-spacing: 2px; color: #000; }
.site-logo .logo-text span { color: var(--c-red); }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav-left { justify-self: start; }
.site-nav-right { justify-self: end; }
.site-nav a {
    display: block;
    color: #000;
    padding: 26px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.site-nav a:hover { color: var(--c-red); }
.site-nav .submenu {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 250px;
    flex-direction: column;
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
    border-top: 3px solid var(--c-red);
    z-index: 110;
}
.site-nav .has-submenu { position: relative; }
.site-nav .has-submenu:hover .submenu { display: flex; }
.site-nav .submenu a { padding: 11px 18px; text-transform: none; font-weight: 400; font-size: 0.9rem; }
.site-nav .submenu a:hover { background: var(--c-gray-bg); color: var(--c-red); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; justify-self: end; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #000; margin: 5px 0; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.75rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.breadcrumbs a { color: var(--c-muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--c-red); }
.breadcrumbs-bar { text-align: center; padding: 10px 0 4px; }

/* ===== Page head (centered, hidromek.com style) ===== */
.page-head { text-align: center; padding: 44px 0 8px; }
.page-head .subtitle { color: #000; font-size: 1.05rem; margin: 0 0 4px; font-weight: 400; }
.page-head h1 { margin: 0; font-size: 2.3rem; font-weight: 600; text-transform: uppercase; }
.page-head .lead { max-width: 780px; margin: 14px auto 0; color: var(--c-muted); font-size: 0.95rem; }

.badge-series {
    display: inline-block;
    background: var(--c-red);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    text-align: center;
    transition: background .15s, color .15s;
}
.btn-primary { background: var(--c-red); color: #fff; }
.btn-primary:hover { background: #d01513; }
.btn-outline { border-color: var(--c-red); color: var(--c-red); background: #fff; }
.btn-outline:hover { background: var(--c-red); color: #fff; }
.btn-dark { background: var(--c-black); color: #fff; }

/* ===== Homepage hero ===== */
.hero {
    background: var(--c-black);
    color: #fff;
    padding: 110px 0 90px;
    text-align: center;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0 auto 18px;
    max-width: 900px;
}
.hero h1 .accent { background: var(--c-red); padding: 0 10px; }
.hero p { font-size: 1.05rem; color: #bbb; max-width: 640px; margin: 0 auto 30px; }

/* ===== Kategorie — mřížka na homepage (styl hidromek.com products) ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    border-top: 1px solid var(--c-border);
    border-left: 1px solid var(--c-border);
}
.product-cell {
    border-right: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    text-align: center;
    padding: 30px 22px 24px;
    color: #000;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow .18s;
}
.product-cell:hover { box-shadow: inset 0 -3px 0 var(--c-red), 0 12px 30px rgba(0,0,0,.08); }
.product-cell h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.product-cell img { max-height: 130px; object-fit: contain; margin: auto; }

/* ===== Kategorie stránka — řádky strojů (styl hidromek.com) ===== */
.category-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 32px;
}
.category-side {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.category-side img { width: 100%; object-fit: cover; }
.category-side .side-body { padding: 22px; }
.category-side h2 { font-size: 1rem; font-weight: 600; text-transform: uppercase; margin: 0 0 12px; }
.category-side p { font-size: 0.88rem; color: #333; margin: 0; }

.machine-rows { display: flex; flex-direction: column; gap: 22px; }
.machine-row {
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: #fff;
    color: #000;
    overflow: hidden;
    transition: box-shadow .18s;
}
.machine-row:hover { box-shadow: 0 14px 34px rgba(0,0,0,.1); }
.machine-row-img { padding: 14px; }
.machine-row-img img { max-height: 150px; object-fit: contain; margin: auto; }
.machine-row-title { padding: 10px 0; }
.machine-row-title h3 { margin: 0; font-size: 1.35rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.machine-row-title .series-tag {
    background: var(--c-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}
.machine-row-title .tagline { color: var(--c-muted); font-size: 0.85rem; margin-top: 4px; }
.machine-row-specs {
    background: var(--c-gray-bg);
    align-self: stretch;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.machine-row-specs .spec {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid #e3e3e3;
    font-size: 0.8rem;
}
.machine-row-specs .spec:last-child { border-bottom: 0; }
.machine-row-specs .spec span { color: #555; }
.machine-row-specs .spec strong { font-weight: 700; text-align: right; white-space: nowrap; }

/* ===== Detail stroje ===== */
.machine-head { text-align: center; padding: 36px 0 10px; }
.machine-head .cat-label { text-transform: uppercase; font-size: 1rem; margin: 0 0 2px; font-weight: 400; }
.machine-head h1 { font-size: 2.3rem; font-weight: 600; margin: 0; }
.machine-hero-img { max-height: 420px; object-fit: contain; margin: 18px auto 0; }

.detail-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 34px;
    align-items: start;
    margin-top: 30px;
}
.detail-side { position: sticky; top: 96px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; padding: 20px; }
.detail-side img { max-height: 220px; object-fit: contain; margin: 0 auto 14px; }
.detail-side h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.detail-side .series-tag { background: var(--c-red); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.detail-side p { font-size: 0.85rem; color: #333; }
.detail-downloads { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.download-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--c-red);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
}
.download-btn:hover { background: #d01513; }
.download-btn .size { font-size: 0.75rem; opacity: 0.85; }
.detail-side .btn-offer { width: 100%; margin-top: 6px; }

.detail-section { margin-bottom: 44px; }
.detail-section > h2 { font-size: 1.6rem; font-weight: 600; margin: 0 0 18px; }
.rich-text { font-size: 0.95rem; }
.rich-text h3 { font-size: 1.05rem; font-weight: 600; margin: 26px 0 8px; }
.rich-text img { border-radius: var(--radius); }

/* Spec tabulka ve stylu hidromek.com */
.specs-card { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; }
.specs-group { margin-bottom: 18px; }
.specs-group:last-child { margin-bottom: 0; }
.specs-group-bar {
    background: var(--c-gray-bar);
    border-radius: var(--radius);
    padding: 9px 18px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}
.specs-pairs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 44px;
    padding: 0 18px;
}
.specs-pairs .pair {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
}
.specs-pairs .pair span { color: #444; }
.specs-pairs .pair strong { font-weight: 700; text-align: right; }

/* Galerie */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); width: 100%; }

/* ===== Novinky ===== */
.grid { display: grid; gap: 24px; }
.grid-news { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    color: #000;
    display: flex;
    flex-direction: column;
    transition: box-shadow .18s;
}
.card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.1); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card h3 { margin: 0; padding: 14px 18px 4px; font-size: 1rem; font-weight: 600; }
.card p, .card time { padding: 0 18px; color: var(--c-muted); font-size: 0.85rem; }
.card .card-body { padding-bottom: 18px; display: flex; flex-direction: column; flex: 1; }
.card time { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.4px; padding-top: 12px; }

.post-detail h1 { font-size: 1.9rem; font-weight: 600; margin: 8px 0 4px; }
.post-detail time { color: var(--c-muted); font-size: 0.85rem; }
.post-cover { margin: 22px 0; border-radius: var(--radius); }

/* Stránkování */
nav[role="navigation"] { margin-top: 34px; }

/* ===== Kontakt ===== */
.contact-people { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.contact-card .card-body { padding: 18px; }
.contact-card h3 { padding: 0; font-size: 1rem; }
.contact-card .role { color: var(--c-muted); font-size: 0.8rem; padding: 0; margin: 2px 0 10px; }
.contact-card p { padding: 0; margin: 0; font-size: 0.9rem; }
.contact-card a { color: #000; font-weight: 600; }
.contact-card a:hover { color: var(--c-red); }
.section-alt { background: var(--c-gray-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-form label { display: block; margin-bottom: 16px; font-weight: 500; font-size: 0.85rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font: inherit;
    margin-top: 6px;
    background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--c-red); border-color: transparent; }
.hp-field { position: absolute !important; left: -9999px !important; }
.field-error { color: var(--c-red); font-size: 0.8rem; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #e8f6ec; color: #1d6b34; }
.alert-error { background: #fdecea; color: #b3261e; }

/* Servisní pásy */
.contact-strip { padding-top: 0; }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.strip-card { background: var(--c-black); color: #fff; border-radius: var(--radius); padding: 32px; }
.strip-card h2 { margin: 0 0 12px; font-size: 1.15rem; text-transform: uppercase; font-weight: 600; }
.strip-card a { color: #fff; }
.strip-phone a { font-size: 1.5rem; font-weight: 700; }
.strip-card .btn { margin-top: 14px; }

/* ===== Patička ===== */
.site-footer { background: var(--c-black); color: #999; margin-top: 64px; padding: 54px 0 26px; font-size: 0.9rem; }
.site-footer strong { color: #fff; display: block; margin-bottom: 12px; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 6px; }
.footer-copy { border-top: 1px solid #222; margin-top: 40px; padding-top: 20px; font-size: 0.8rem; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    .machine-row { grid-template-columns: 180px 1fr; }
    .machine-row-specs { grid-column: 1 / -1; }
    .category-layout, .detail-layout { grid-template-columns: 1fr; }
    .detail-side { position: static; }
}
@media (max-width: 900px) {
    .hero h1 { font-size: 2.2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .specs-pairs { grid-template-columns: 1fr; }
    .header-inner { grid-template-columns: auto 1fr auto; }
    .site-logo { justify-self: start; order: -1; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--c-border);
        box-shadow: 0 16px 30px rgba(0,0,0,.12);
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; }
    .site-nav a { padding: 13px 22px; }
    .site-nav .submenu { display: block; position: static; box-shadow: none; border-top: 0; }
    .nav-toggle { display: block; }
}

/* ===== Hero s videem na pozadí ===== */
.hero-video {
    position: relative;
    height: calc(100vh - 110px); /* plna vyska obrazovky minus topbar a hlavicka */
    min-height: 560px;
    background: var(--c-black);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.18) 40%, rgba(0,0,0,.55) 100%);
}
.hero-video-content {
    position: relative;
    width: 100%;
    padding: 0 0 56px;
    color: #fff;
    text-align: center;
}
.hero-video-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0 auto 14px;
    max-width: 900px;
}
.hero-video-content h1 .accent { background: var(--c-red); padding: 0 10px; }
.hero-video-content p { font-size: 1.25rem; color: #ddd; max-width: 640px; margin: 0 auto 26px; }
.hero-scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    transition: background .15s, border-color .15s;
    animation: hero-bounce 2.2s infinite;
}
.hero-scroll:hover { background: var(--c-red); border-color: var(--c-red); }
@keyframes hero-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
@media (max-width: 900px) {
    .hero-video { height: calc(100vh - 100px); min-height: 460px; }
    .hero-video-content h1 { font-size: 2rem; }
}
