/* flotila_root_site — vlastní design, nezávislý na stylu SaaS aplikace (/app/). */

:root {
    --bg: #0b0d10;
    --bg-alt: #121418;
    --surface: #171a1f;
    --border: #262a31;
    --text: #f2f3f5;
    --text-muted: #a6acb6;
    --accent: #23d5ab;
    --accent-dark: #17b391;
    --accent-contrast: #05201a;
    --radius: 14px;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    max-width: 100%;
}

a {
    color: var(--accent);
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    /* Solid background on purpose — backdrop-filter: blur() combined with
       position: sticky renders a stray hairline seam across the header on
       some mobile browsers (e.g. Samsung Internet). A plain solid color
       avoids that artifact entirely and still looks intentional. */
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
    color: var(--text);
}

.brand strong {
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.brand span {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.main-nav a:hover {
    color: var(--text);
}

.main-nav .btn {
    color: var(--accent-contrast);
}

.nav-toggle {
    display: none;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease, background 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-contrast);
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    padding: 96px 0 84px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 480px;
    background: radial-gradient(closest-side, rgba(35, 213, 171, 0.18), transparent 70%);
    pointer-events: none;
}

.hero .eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1.15;
    margin: 0 0 20px;
    max-width: 18ch;
}

.hero p.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 0 34px;
}

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

.hero .stats {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.hero .stats .stat b {
    display: block;
    font-size: 1.6rem;
}

.hero .stats .stat span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── Sections ────────────────────────────────────────────────────────── */

section {
    padding: 84px 0;
}

section.alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 640px;
    margin: 0 0 40px;
}

.section-head .eyebrow {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 14px;
}

.section-head p {
    color: var(--text-muted);
    margin: 0;
}

.text-note {
    font-size: 0.92rem;
    margin-top: 10px !important;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.prose p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.fact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.fact-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fact-card li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.fact-card .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 7px;
    flex-shrink: 0;
}

.fact-card strong {
    display: block;
}

.fact-card span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ── Naše vozy (homepage) ────────────────────────────────────────────── */

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.fleet-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.fleet-card svg {
    color: var(--accent);
    margin-bottom: 16px;
}

.fleet-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.fleet-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

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

/* ── Driver callout ──────────────────────────────────────────────────── */

.callout {
    background: linear-gradient(160deg, rgba(35, 213, 171, 0.14), rgba(35, 213, 171, 0.02));
    border: 1px solid rgba(35, 213, 171, 0.35);
    border-radius: var(--radius);
    padding: 40px;
}

.callout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.badge-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.98rem;
}

.badge-list svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent);
}

.rate-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
}

.rate-card .rate {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.rate-card .rate small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.rate-card p {
    color: var(--text-muted);
    margin: 10px 0 22px;
    font-size: 0.9rem;
}

/* ── Contact ─────────────────────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 48px;
}

.contact-info-list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-info-list .icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-info-list a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.contact-info-list a:hover {
    color: var(--accent);
}

.contact-info-list span.label {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
}

form.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.field input,
.field textarea {
    display: block;
    width: 100%;
    min-height: 52px;
    background: var(--bg);
    border: 1px solid #3a4049;
    border-radius: 10px;
    padding: 15px 16px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.4;
    font-family: inherit;
    resize: vertical;
}

.field textarea {
    min-height: 120px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(35, 213, 171, 0.15);
}

/* Honeypot — pro lidské oko i čtečku obrazovky prakticky neexistuje */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 14px;
}

.form-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 20px;
}

.field select {
    width: 100%;
    background: var(--bg);
    border: 1px solid #3a4049;
    border-radius: 10px;
    padding: 15px 16px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
}

.field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(35, 213, 171, 0.15);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.radio-option {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 400;
    margin-bottom: 0 !important;
    cursor: pointer;
}

.radio-option input {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

/* ── Kroky ("Jak to probíhá" na pridej-se/) ──────────────────────────────── */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.step-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

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

/* ── Rozbalovací doplňující otázky formuláře (pridej-se/) ────────────────── */

.form-more {
    margin: 8px 0 24px;
}

.form-more summary {
    cursor: pointer;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 600;
    list-style: none;
}

.form-more summary::-webkit-details-marker {
    display: none;
}

.form-more summary::before {
    content: "+ ";
}

.form-more[open] summary::before {
    content: "− ";
}

/* Náborová stránka (pridej-se/) — sekce a formulář přes celou šířku, ne
   vedle sebe ve dvou úzkých sloupcích. */
.apply-section {
    margin-bottom: 48px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.field--full {
    grid-column: 1 / -1;
}

.alert {
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(35, 213, 171, 0.12);
    border: 1px solid rgba(35, 213, 171, 0.4);
    color: #a9f2df;
}

.alert-error {
    background: rgba(220, 80, 80, 0.12);
    border: 1px solid rgba(220, 80, 80, 0.4);
    color: #f3b3b3;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg-alt);
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.site-footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-footer .footer-brand {
    color: var(--text);
    font-weight: 600;
}

/* ── Detail page ("Jak fungujeme") ──────────────────────────────────────── */

.detail-page {
    padding: 56px 0 40px;
}

.detail-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.detail-page .back-link:hover {
    color: var(--accent);
}

.detail-page h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    margin: 0 0 10px;
}

.detail-page .lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 60ch;
    margin: 0 0 48px;
}

.detail-block {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.detail-block:last-of-type {
    border-bottom: none;
}

.detail-block h2 {
    font-size: 1.3rem;
    margin: 0 0 14px;
}

.detail-block .prose p,
.detail-block .prose ul {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.detail-block .prose ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-block .prose ul li {
    padding-left: 20px;
    position: relative;
}

.detail-block .prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.detail-block .prose p {
    margin: 0 0 14px;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.slot-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.slot-card .range {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.slot-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.detail-footer-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

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

/* ── Responsive ──────────────────────────────────────────────────────── */

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

    .grid-2,
    .callout-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        position: fixed;
        inset: 68px 0 auto 0;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px 28px;
        gap: 18px;
        transform: translateY(-120%);
        visibility: hidden;
        transition: transform 0.2s ease, visibility 0.2s ease;
    }

    /* Border/shadow only while actually open — when collapsed the box is
       still in the layout (just translated away), so a border rendered
       unconditionally here would keep bleeding into the header above it. */
    .main-nav.open {
        transform: translateY(0);
        visibility: visible;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    }

    .nav-toggle {
        display: inline-flex;
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text);
        border-radius: 8px;
        padding: 8px 10px;
        cursor: pointer;
    }

    .hero {
        padding: 64px 0 56px;
    }

    section {
        padding: 60px 0;
    }
}
