/* RESET & BASE */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #1f2933;
    background: #ffffff;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main { flex: 1; }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAVIGATION – DESKTOP */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #d7e6f5;
}

.nav {
    padding: 26px 24px 22px;
    display: flex;
    align-items: center;
    justify-content: center;   /* desktop: odkazy pěkně uprostřed */
    position: relative;
    min-height: 64px;          /* aby se neshazovala výška */
}

.nav-links {
    display: flex;
    gap: 34px;
}

.nav-links a {
    font-size: 1.05rem;
    color: #374151;
    text-decoration: none;
    padding-bottom: 3px;
    opacity: 0.85;
    border-bottom: 2px solid transparent;
    transition: 0.18s ease;
}

.nav-links a:hover {
    opacity: 1;
    border-bottom-color: #2f7dd8;
}

/* HAMBURGER BUTTON – na desktopu SCHOVANÝ */

.menu-toggle {
    display: none;             /* <<< desktop: neviditelný */
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid #d7e6f5;
    width: 42px;
    height: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #111827;
    border-radius: 999px;
    transition: 0.2s ease;
}

/* BUTTONS */

.btn {
    padding: 9px 20px;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.18s ease;
}

.btn-primary {
    background: #2f7dd8;
    color: #fff;
    box-shadow: 0 10px 22px rgba(47,125,216,0.25);
}

.btn-primary:hover {
    background: #236aba;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #2f7dd8;
    border: 1px solid #c7daf5;
}

.btn-secondary:hover {
    background: #e5f0ff;
}

/* HERO */

.hero {
    padding: 80px 0 95px;
    background: #f1f7ff;
    text-align: center;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 90px;
    background: linear-gradient(to bottom, rgba(241,247,255,0), #fff);
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #2f7dd8;
    letter-spacing: 0.14em;
}

.hero h1 {
    font-size: clamp(2.3rem, 3.5vw, 3rem);
    margin-top: 18px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-text {
    max-width: 630px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.75;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* SECTIONS */

.section {
    padding: 55px 0;
}

.section-alt {
    background: #f9fbff;
}

.section-inner {
    max-width: 720px;
}

.section h2 {
    font-size: 1.6rem;
    color: #165ea8;
    margin-bottom: 16px;
}

.section p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 16px;
    color: #4b5563;
}

/* PROJECTS */

.projects-list {
    list-style: disc;
    padding-left: 20px;
    color: #4b5563;
    line-height: 1.75;
}

.projects-list li + li {
    margin-top: 10px;
}

/* jemná verze hlavního projektu AllForGolf */

.project-clean {
    padding: 6px 0 22px;
    margin-top: 8px;
    margin-bottom: 34px;
    border-left: 4px solid #2f7dd8;
    padding-left: 18px;
}

.project-clean h3 {
    font-size: 1.4rem;
    color: #111827;
    margin-bottom: 6px;
}

.project-clean p {
    color: #4b5563;
    margin-bottom: 10px;
}

.project-clean ul {
    margin-left: 18px;
    margin-bottom: 16px;
    color: #4b5563;
    line-height: 1.65;
}

.project-badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.project-cta {
    margin-top: 4px;
}

.projects-secondary h3 {
    font-size: 1.1rem;
    color: #165ea8;
    margin-bottom: 10px;
}

/* FORM SECTION */

.form-section p {
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 0.9rem;
    color: #4b5563;
}

input,
textarea,
select {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #cbd5f0;
    background: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #2f7dd8;
    box-shadow: 0 0 0 1px rgba(47,125,216,0.25);
    outline: none;
}

textarea { resize: vertical; }

.form-submit { margin-top: 4px; }

/* KONTAKT + BANKA */

.contact-section { padding-bottom: 65px; }

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    margin-top: 10px;
}

.contact-block h3 {
    font-size: 1.2rem;
    color: #165ea8;
    margin-bottom: 10px;
}

.contact-table p {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
    margin: 6px 0;
    font-size: 1rem;
}

.contact-table span:first-child {
    color: #6b7280;
}

.contact-table span:last-child {
    word-break: break-word;
}

.contact-table a {
    color: #2563eb;
    text-decoration: none;
}

.contact-table a:hover {
    text-decoration: underline;
}

/* FOOTER */

.footer {
    padding: 22px 0 28px;
    text-align: center;
    background: #f5f8ff;
    border-top: 1px solid #d7e6f5;
    color: #6b7280;
    font-size: 0.95rem;
}

/* =========================
   MOBILE (max-width: 780px)
========================= */

@media (max-width: 780px) {

    .container {
        padding: 0 18px;
    }

    /* NAV – hamburger úplně vpravo, odkazy uprostřed */
    .nav {
        padding: 20px 18px 18px;
        justify-content: center;
        position: relative;
    }

    .menu-toggle {
        display: flex;                 /* <<< mobil: zapnout hamburger */
        position: absolute;
        right: 16px;                   /* mezera od pravého okraje */
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 0;
        background: #ffffff;
        border-top: 1px solid #e5edf9;
        border-bottom: 1px solid #d7e6f5;
        padding: 12px 24px 14px;
        display: none;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 8px 0;
        text-align: center;
    }

    .topbar.nav-open .nav-links {
        display: flex;
    }

    .topbar.nav-open .menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .topbar.nav-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .topbar.nav-open .menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

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

    .hero h1 {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .section {
        padding: 36px 0;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .section p {
        font-size: 0.98rem;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

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

    .project-clean {
        padding-left: 14px;
        margin-bottom: 28px;
    }
}

/* EXTRA SMALL (phones <480px) */

@media (max-width: 480px) {

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}