/* ---------------------------------------------------------------------------
   Tenis Barrandov - styly verejne casti. Barvy, typografie a tvary vychazeji
   z navrhu (Bricolage Grotesque na nadpisy, Figtree na text).
   --------------------------------------------------------------------------- */

:root {
    --bg:        #F6F4EE;
    --surface:   #FFFFFF;
    --ink:       #14261D;
    --green-900: #0F2C20;
    --green-800: #143A2A;
    --green-600: #1F5A40;
    --green-300: #7FB08F;
    --mint:      #E4F0E8;
    --lime:      #D4F04C;
    --accent:    #B4471F;
    --muted:     #4A5A51;
    --muted-2:   #5A685F;
    --on-dark:   #C9D6CE;
    --line:      #E3E1D8;
    --line-2:    #CFCCC0;

    --radius-lg: 28px;
    --radius:    24px;
    --radius-sm: 12px;
    --pill:      999px;

    --wrap:      1240px;
    --gutter:    24px;

    --font-head: 'Bricolage Grotesque', Georgia, serif;
    --font-body: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green-600); }
a:hover { color: #123826; }

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

h1, h2, h3 {
    font-family: var(--font-head);
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0;
}

h1 { font-size: clamp(38px, 5.4vw, 56px); font-weight: 800; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; }

p { margin: 0; }

.container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.stack      { display: flex; flex-direction: column; }
.stack-8    { gap: 8px; }
.stack-12   { gap: 12px; }
.stack-16   { gap: 16px; }
.stack-20   { gap: 20px; }
.stack-28   { gap: 28px; }
.stack-40   { gap: 40px; }
.stack-80   { gap: clamp(48px, 7vw, 80px); }

.eyebrow {
    font-weight: 700;
    color: var(--green-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
}
.eyebrow--light { color: var(--lime); }

.lead  { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted-2); }

/* --- Tlacitka ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: var(--pill);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease;
}
.btn:hover { filter: brightness(0.94); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: none; }

.btn--lime   { background: var(--lime);      color: var(--green-800); }
.btn--dark   { background: var(--green-800); color: var(--bg); }
.btn--accent { background: var(--accent);    color: #FFFFFF; }
.btn--light  { background: var(--surface);   color: var(--ink); border: 1.5px solid var(--line-2); }
.btn--ghost  { background: transparent; color: var(--bg); border: 1.5px solid rgba(246, 244, 238, .4); }
.btn--lg     { min-height: 56px; font-size: 18px; padding: 16px 28px; }

:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; }

/* --- Hlavicka ---------------------------------------------------------- */
.site-header { background: var(--green-800); color: var(--bg); }
.site-header a { color: var(--bg); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.nav a {
    text-decoration: none;
    font-weight: 600;
    padding: 12px;
    border-radius: var(--radius-sm);
}
.nav a[aria-current="page"] { color: var(--lime); font-weight: 700; }
.nav .btn { margin-left: 8px; color: var(--green-800); }

.nav-toggle { display: none; }

/* --- Paticka ----------------------------------------------------------- */
.site-footer { background: var(--green-900); color: var(--on-dark); font-size: 15px; }
.site-footer a { color: var(--on-dark); }
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 32px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* --- Karty a plochy ---------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}
.card--mint  { background: var(--mint);      border-color: #C5DCCD; }
.card--dark  { background: var(--green-800); border-color: var(--green-800); color: var(--bg); }
.card--dark .muted,
.card--dark .small { color: var(--on-dark); }

.panel-dark { background: var(--green-800); color: var(--bg); }

.grid { display: grid; gap: 20px; }
.grid--auto  { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--auto2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.section { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--pill);
    font-size: 14px;
    font-weight: 600;
    background: var(--mint);
    color: var(--green-600);
}
.badge--lime { background: rgba(212, 240, 76, .16); color: var(--lime); }

/* --- Formulare --------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.field input,
.field textarea,
.field select {
    font: inherit;
    font-weight: 400;
    border: 1.5px solid var(--line-2);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    height: 52px;
    background: var(--surface);
    color: var(--ink);
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: 3px solid rgba(31, 90, 64, .35); border-color: var(--green-600); }
.field--error input,
.field--error textarea { border-color: var(--accent); }
.field__error { font-weight: 600; font-size: 14px; color: var(--accent); }

.checkbox { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; cursor: pointer; font-weight: 400; }
.checkbox input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green-600); flex: none; }

.alert {
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-weight: 600;
    border: 1px solid transparent;
}
.alert--ok    { background: var(--mint);  color: var(--green-600); border-color: #C5DCCD; }
.alert--error { background: #FBE9E2;      color: #8F3717;          border-color: #F0C9B9; }
.alert--info  { background: #EFF2F6;      color: #2C5260;          border-color: #D9E1E8; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Mobil ------------------------------------------------------------- */
@media (max-width: 860px) {
    :root { --gutter: 16px; }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: var(--radius-sm);
        border: 1.5px solid rgba(246, 244, 238, .4);
        background: transparent;
        color: var(--bg);
        cursor: pointer;
    }

    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 40;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--green-800);
        padding: 8px var(--gutter) 24px;
        border-top: 1px solid rgba(246, 244, 238, .15);
    }
    .nav[data-open="true"] { display: flex; }
    .nav a { padding: 14px 8px; font-size: 18px; }
    .nav .btn { margin: 8px 0 0; }

    .site-header__inner { position: relative; }
    .card { padding: 20px; }
    .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

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