/* =========================================================
   5P INVEST s.r.o. — hlavna stranka (2026)
   Modro-tyrkysova verzia navrhu.
   Vlastny stylesheet, nezavisly od povodnej sablony
   (preto assets/css/, aby neprepisal stare css/style.css).
   ========================================================= */

/* --- fonty (zdielane s webom) ----------------------------- */
@font-face {
    font-family: 'Lato';
    src: url('../../fonts/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../../fonts/Lato-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../../fonts/Lato-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../../fonts/Lato-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../../fonts/Lato-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
}

/* --- premenne --------------------------------------------- */
:root {
    --navy:        #0a1b3d;
    --ink:         #16233f;
    --muted:       #5c6c88;
    --blue:        #1d3ede;
    --blue-dark:   #1630b0;
    --cyan:        #01c8e6;
    --bg:          #ffffff;
    --surface:     #f4f7fd;
    --surface-2:   #eaf0fb;
    --line:        #e0e8f5;
    --shadow-sm:   0 1px 2px rgba(10, 27, 61, .06), 0 4px 12px rgba(10, 27, 61, .05);
    --shadow-md:   0 12px 32px rgba(10, 27, 61, .10);
    --shadow-lg:   0 28px 64px rgba(10, 27, 61, .16);
    --radius:      18px;
    --radius-lg:   28px;
    --max:         1160px;
    --gutter:      24px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
    margin: 0;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
    color: var(--navy);
    line-height: 1.18;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
    font-weight: 700;
}

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 12px 20px;
    z-index: 200;
    border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- layout ----------------------------------------------- */
.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

section { padding: 96px 0; }

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 18px; margin-bottom: 0; }

/* --- tlacidla --------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 24px rgba(29, 62, 222, .28);
}
.btn-primary:hover {
    background: var(--blue-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(29, 62, 222, .34);
}

.btn-ghost {
    background: #fff;
    color: var(--navy);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
    color: var(--navy);
    border-color: var(--blue);
    transform: translateY(-2px);
}

.btn-light {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 10px 26px rgba(4, 12, 40, .28);
}
.btn-light:hover {
    background: #fff;
    color: var(--blue-dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-sm { padding: 11px 20px; font-size: 15px; }

/* --- hlavicka --------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 20px rgba(10, 27, 61, .06);
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 40px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-weight: 900;
    font-size: 19px;
    color: var(--navy);
    letter-spacing: -.02em;
}
.brand-sub {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: block;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
    transition: background-color .16s ease, color .16s ease;
}
.nav-links a:hover { background: var(--surface-2); color: var(--navy); }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    position: relative;
    transition: background-color .15s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--navy);
    transition: transform .2s ease, top .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* --- hero ------------------------------------------------- */
.hero {
    position: relative;
    padding: 84px 0 96px;
    overflow: hidden;
    background:
        radial-gradient(1100px 520px at 88% -8%, rgba(1, 200, 230, .14), transparent 62%),
        radial-gradient(900px 480px at 6% 4%, rgba(29, 62, 222, .10), transparent 58%),
        var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(36px, 5.4vw, 60px);
    font-weight: 900;
    margin-bottom: 22px;
}
.hero h1 .accent {
    background: linear-gradient(100deg, var(--blue) 10%, var(--cyan) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead {
    font-size: 19px;
    color: var(--muted);
    max-width: 56ch;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}
.hero-points li { display: flex; align-items: center; gap: 9px; }
.hero-points svg { width: 18px; height: 18px; color: var(--blue); flex: 0 0 auto; }

.hero-visual { position: relative; }
.hero-photo img { width: 100%; }

.hero-badge {
    position: absolute;
    left: -26px;
    bottom: -26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 280px;
}
.hero-badge .icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    display: grid;
    place-items: center;
    color: #fff;
}
.hero-badge .icon svg { width: 22px; height: 22px; }
.hero-badge strong { display: block; color: var(--navy); font-size: 16px; line-height: 1.25; }
.hero-badge span { font-size: 14px; color: var(--muted); }

/* --- sluzby ----------------------------------------------- */
.services { background: var(--surface); }

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 32px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cddcf6;
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(29, 62, 222, .12), rgba(1, 200, 230, .16));
    color: var(--blue);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }

/* --- o nas ------------------------------------------------ */
.about-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 64px;
    align-items: center;
}
.about-photo img { width: 100%; }
.about h2 { font-size: clamp(28px, 4vw, 40px); }
.about p { color: var(--muted); font-size: 18px; }
.about .note {
    border-left: 3px solid var(--blue);
    padding-left: 18px;
    font-size: 16px;
    margin: 26px 0 28px;
}

/* --- preco my --------------------------------------------- */
.why { background: var(--surface); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.why-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
}
.why-item .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--blue);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}
.why-item .icon svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 18px; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 16px; margin-bottom: 0; }

/* --- CTA pas ---------------------------------------------- */
.cta {
    padding: 80px 0;
    background:
        radial-gradient(760px 400px at 82% 12%, rgba(1, 200, 230, .30), transparent 60%),
        linear-gradient(120deg, var(--navy) 0%, #14307f 58%, var(--blue-dark) 100%);
    color: #fff;
}
.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, .82); margin-bottom: 0; max-width: 54ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- kontakt ---------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.contact-list { display: grid; gap: 22px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row .icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--blue);
    display: grid;
    place-items: center;
}
.contact-row .icon svg { width: 21px; height: 21px; }
.contact-row h4 {
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 2px 0 4px;
    font-weight: 700;
}
.contact-row p { margin: 0; color: var(--navy); font-weight: 600; }
.contact-row a { font-weight: 700; }
.contact-row .small { font-weight: 400; color: var(--muted); font-size: 15px; }

.map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    line-height: 0;
}
.map iframe { width: 100%; height: 420px; border: 0; }

/* --- pata ------------------------------------------------- */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .72);
    padding: 56px 0 32px;
    font-size: 15px;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer .brand img {
    background: #fff;
    border-radius: 10px;
    padding: 5px 7px;
    box-sizing: content-box;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(255, 255, 255, .55); }
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav a { color: rgba(255, 255, 255, .78); font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, .55);
}
.footer-bottom p { margin: 0; }
.site-footer a { color: rgba(255, 255, 255, .78); }

/* --- responzivita ----------------------------------------- */
@media (max-width: 992px) {
    .hero-grid,
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-photo { order: -1; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-badge { left: 16px; bottom: -20px; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    section { padding: 68px 0; }
    .hero { padding: 56px 0 72px; }

    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        left: var(--gutter);
        right: var(--gutter);
        top: 72px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 10px;
        box-shadow: var(--shadow-md);
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { padding: 12px 14px; }

    .cards,
    .why-grid { grid-template-columns: 1fr; }
    .card { padding: 28px 24px; }

    .hero-actions .btn,
    .contact-actions .btn,
    .cta-actions .btn { flex: 1 1 auto; }

    .map iframe { height: 320px; }
}

@media (max-width: 480px) {
    :root { --gutter: 16px; }
    .hero-badge { position: static; margin-top: 18px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
