/* ==========================================================================
   M Pro Construction — Design System
   Farby z loga: navy #16233F + gold #F5B31E. Písmo: Montserrat.
   ========================================================================== */

:root {
    /* Brand */
    --navy-900: #0F1A30;
    --navy-800: #16233F; /* hlavná tmavomodrá z loga */
    --navy-700: #1E3155;
    --navy-600: #2A4270;
    --gold-500: #F5B31E; /* žltá z loga */
    --gold-600: #E0A00C;
    --gold-100: #FDF2D6;

    /* Neutrals */
    --white: #FFFFFF;
    --ink: #1C2536;
    --body: #3A4353;
    --muted: #6B7385;
    --line: #E6E9EF;
    --bg-soft: #F5F7FA;
    --bg-soft-2: #EEF1F6;

    /* System */
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(16, 26, 48, .06);
    --shadow: 0 12px 30px rgba(16, 26, 48, .10);
    --shadow-lg: 0 24px 60px rgba(16, 26, 48, .16);
    --container: 1200px;
    --gutter: clamp(20px, 5vw, 48px);
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
strong { font-weight: 700; color: var(--ink); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-800); color: #C9D2E3; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Section heading ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.section-head { margin-bottom: clamp(34px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--gold-500); --btn-fg: var(--navy-900);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1;
    padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
    background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
    box-shadow: 0 8px 20px rgba(245, 179, 30, .28);
}
.btn:hover { transform: translateY(-2px); color: var(--navy-900); background: var(--gold-600); box-shadow: 0 12px 26px rgba(245, 179, 30, .40); }
.btn--navy { --btn-bg: var(--navy-800); --btn-fg: #fff; box-shadow: 0 8px 20px rgba(16, 26, 48, .25); }
.btn--navy:hover { background: var(--navy-700); color: #fff; box-shadow: 0 12px 26px rgba(16, 26, 48, .35); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--navy-800); box-shadow: none; }
.btn--ghost:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; transform: translateY(-2px); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; box-shadow: none; }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--navy-900); }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 50px; width: auto; display: block; }
@media (max-width: 480px) { .brand img { height: 40px; } }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    font-weight: 600; font-size: .98rem; color: var(--navy-800);
    padding: 10px 14px; border-radius: 10px; position: relative;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--navy-800); }
.main-nav a.is-active { color: var(--gold-600); }
.main-nav a.is-active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--gold-500); border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { font-weight: 700; color: var(--navy-800); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.header-phone svg { color: var(--gold-600); }

.nav-toggle {
    display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
    .header-phone { display: none; }
}
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
        background: #fff; padding: 16px var(--gutter) 28px; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .35s var(--ease);
        max-height: calc(100vh - 76px); overflow-y: auto;
    }
    .nav-open .main-nav { transform: translateY(0); }
    .main-nav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: var(--navy-800); color: #fff; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(245,179,30,.16), transparent 60%),
        linear-gradient(180deg, rgba(15,26,48,.55), rgba(15,26,48,.82));
    z-index: 1;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-inner { position: relative; z-index: 2; padding-block: clamp(60px, 9vw, 120px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy h1 { color: #fff; }
.hero-copy h1 span { color: var(--gold-500); }
.hero-copy .lead { font-size: 1.2rem; color: #D3DBEA; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-trust .stat b { display: block; font-size: 2rem; font-weight: 800; color: var(--gold-500); line-height: 1; }
.hero-trust .stat span { font-size: .9rem; color: #B7C1D6; }
@media (max-width: 940px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy .lead { max-width: none; }
}

/* ---------- Lead form (hero card) ---------- */
.lead-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 3vw, 34px); }
.lead-card h3 { margin-bottom: 4px; }
.lead-card .lead-sub { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.form-row { margin-bottom: 14px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row.two { grid-template-columns: 1fr; } }
.form-label { display: block; font-size: .82rem; font-weight: 700; color: var(--navy-800); margin-bottom: 6px; }
.form-label .req { color: var(--gold-600); }
.form-control {
    width: 100%; font-family: var(--font); font-size: 1rem; color: var(--ink);
    padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--bg-soft); transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--gold-500); background: #fff; box-shadow: 0 0 0 4px rgba(245,179,30,.15); }
textarea.form-control { min-height: 110px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7385' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; color: var(--muted); margin: 6px 0 18px; }
.form-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold-600); flex-shrink: 0; }
.form-check a { text-decoration: underline; }
.field-error { color: #C0392B; font-size: .8rem; margin-top: 5px; display: block; }
.form-control.input-validation-error { border-color: #C0392B; background: #FDF0EE; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .95rem; }
.alert-success { background: #E7F6ED; color: #1E7E45; border: 1px solid #BEE7CD; }
.alert-error { background: #FDECEA; color: #B93A2B; border: 1px solid #F5C6C0; }

/* ==========================================================================
   Cards — services / blog / references
   ========================================================================== */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-tag { position: absolute; top: 14px; left: 14px; background: rgba(22,35,63,.9); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--gold-600); }
.card-body p { color: var(--muted); font-size: .96rem; }
.card-meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; display: flex; gap: 12px; }
.card-link { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--navy-700); display: inline-flex; align-items: center; gap: 8px; }
.card-link svg { transition: transform .2s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }
.card-price { font-weight: 800; color: var(--navy-800); font-size: .95rem; margin-bottom: 6px; }

/* Service icon card (no image) */
.service-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--gold-100); color: var(--gold-600); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-icon svg { width: 28px; height: 28px; }

/* ==========================================================================
   Feature / value blocks
   ========================================================================== */
.value {
    display: flex; gap: 16px; align-items: flex-start;
}
.value .value-ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--navy-800); color: var(--gold-500); display: flex; align-items: center; justify-content: center; }
.value h3 { font-size: 1.15rem; margin-bottom: 4px; }
.value p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Steps (process) ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding: 26px 26px 26px 78px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    position: absolute; left: 24px; top: 26px; font-weight: 800; font-size: 1.3rem;
    color: var(--gold-500); font-family: var(--font);
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Reviews ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review .stars { color: var(--gold-500); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; }
.review blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--ink); font-style: italic; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-800); color: var(--gold-500); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.review .who b { display: block; color: var(--ink); font-size: .95rem; }
.review .who span { font-size: .84rem; color: var(--muted); }

/* ---------- Before / After ---------- */
.ba { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #fff; }
.ba-imgs { display: grid; grid-template-columns: 1fr 1fr; }
.ba-imgs figure { margin: 0; position: relative; }
.ba-imgs figure img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ba-imgs figcaption { position: absolute; top: 10px; left: 10px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: 999px; color: #fff; }
.ba-imgs figure:first-child figcaption { background: rgba(58,67,83,.85); }
.ba-imgs figure:last-child figcaption { background: var(--gold-600); }
.ba-cap { padding: 16px 20px; font-weight: 700; color: var(--navy-800); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 60px); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(245,179,30,.28), transparent 70%); }
.cta-band .cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #C9D2E3; margin: 0; max-width: 52ch; }

/* ==========================================================================
   Page hero (sub-pages)
   ========================================================================== */
.page-hero { background: var(--navy-800); color: #fff; padding-block: clamp(48px, 7vw, 84px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 340px at 90% 0, rgba(245,179,30,.14), transparent 60%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #C9D2E3; max-width: 62ch; margin: 0; }
.breadcrumbs { font-size: .85rem; color: #9FAAC2; margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: #C9D2E3; }
.breadcrumbs a:hover { color: var(--gold-500); }
.breadcrumbs span { color: #6C789A; }

/* ---------- Rich text content ---------- */
.rte { font-size: 1.06rem; color: var(--body); }
.rte h2 { margin-top: 1.6em; }
.rte h3 { margin-top: 1.4em; }
.rte img { border-radius: var(--radius); margin-block: 1.4em; }
.rte a { color: var(--gold-600); text-decoration: underline; }
.rte ul li, .rte ol li { margin-bottom: .5em; }
.rte blockquote { border-left: 4px solid var(--gold-500); margin: 1.5em 0; padding: 4px 0 4px 22px; color: var(--ink); font-style: italic; font-size: 1.15rem; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; color: var(--navy-800); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-600); font-weight: 400; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Sidebar (service detail) ---------- */
.layout-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 940px) { .layout-sidebar { grid-template-columns: 1fr; } }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; position: sticky; top: 96px; }
.sidebar-card h3 { font-size: 1.2rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: #A9B4CB; padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #A9B4CB; }
.site-footer a:hover { color: var(--gold-500); }
.footer-brand img { height: 54px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .95rem; }
.footer-contact svg { color: var(--gold-500); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #7C89A6; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: #7C89A6; }
.footer-legal a:hover { color: var(--gold-500); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-gold { color: var(--gold-600); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
