/* =============================================
   BALONOVÉ NEBE NA FARMĚ BLÁTO
   Main Stylesheet  |  UTF-8
   ============================================= */

:root {
  --sky:           #2E7D4F;
  --sky-dark:      #1B5E35;
  --sky-light:     #43A868;
  --balloon:       #2E7D4F;
  --balloon-light: #43A868;
  --bg:            #FFFFFF;
  --bg-alt:        #F0F7F3;
  --bg-dark:       #1A2820;
  --text:          #1E2D25;
  --text-muted:    #5A7068;
  --border:        #C8DDD1;
  --shadow:        0 2px 16px rgba(46,125,79,0.09);
  --shadow-lg:     0 8px 36px rgba(46,125,79,0.16);
  --radius:        14px;
  --radius-sm:     8px;
  --font:          system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --max-w:         1120px;
  --tr:            0.25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--sky); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--balloon); }
ul    { list-style: none; }
button { cursor: pointer; }

/* Typography */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: 0.85em; }
p:last-child { margin-bottom: 0; }

/* Layout helpers */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
}

/* Language toggle */
body[data-lang="en"] .cs { display: none !important; }
body:not([data-lang="en"]) .en { display: none !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(46,125,79,0.07);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; color: var(--text); }
.logo img { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 1.1rem; font-weight: 800; color: var(--sky); letter-spacing: -0.02em; line-height: 1.1; }
.logo-sub { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 0.2rem; }
.nav-link { padding: 0.45rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.93rem; font-weight: 500; color: var(--text); transition: background var(--tr), color var(--tr); }
.nav-link:hover, .nav-link.active { background: var(--bg-alt); color: var(--sky); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang-btn { background: none; border: 1.5px solid var(--border); border-radius: 6px; padding: 0.3rem 0.65rem; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.04em; transition: all var(--tr); }
.lang-btn:hover { border-color: var(--sky); color: var(--sky); }
.menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); padding: 0.25rem; }

@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--border); padding: 0.75rem 1.5rem 1rem; gap: 0.1rem; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .menu-btn { display: block; }
  .nav-link { padding: 0.7rem 1rem; }
}

/* Hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; background: var(--bg-dark); color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.42); }
.hero-content { position: relative; z-index: 1; padding: 3rem 0; }
.hero-eyebrow { display: inline-block; background: var(--balloon); color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 100px; margin-bottom: 1.25rem; }
.hero h1 { color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero .hero-sub { font-size: clamp(1rem, 2.5vw, 1.25rem); opacity: 0.88; max-width: 520px; margin-bottom: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.hero-badge { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(6px); border-radius: 100px; padding: 0.4rem 1rem; font-size: 0.88rem; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; border-radius: 100px; font-size: 0.95rem; font-weight: 600; border: 2px solid transparent; transition: all var(--tr); white-space: nowrap; }
.btn-primary { background: var(--balloon); color: #fff; border-color: var(--balloon); }
.btn-primary:hover { background: var(--balloon-light); border-color: var(--balloon-light); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.btn-sky { background: var(--sky); color: #fff; border-color: var(--sky); }
.btn-sky:hover { background: var(--sky-dark); border-color: var(--sky-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--sky); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--sky); }

/* Section headings */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); max-width: 540px; margin-inline: auto; font-size: 1.05rem; }
.section-header .tag { display: inline-block; background: var(--bg-alt); color: var(--sky); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 100px; margin-bottom: 0.75rem; border: 1px solid var(--border); }

/* Cards */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); transition: all var(--tr); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.card-icon.accent { background: rgba(67,168,104,0.12); }
.card-icon.sky    { background: rgba(46,125,79,0.1); }
.card h3 { margin-bottom: 0.6rem; }
.card p  { color: var(--text-muted); font-size: 0.95rem; }
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }
.card-link:hover .card { border-color: var(--sky); }
.card-img { overflow: hidden; padding: 0; }
.card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.4s ease; }
.card-img:hover img { transform: scale(1.04); }
.card-img .card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-img .card-body h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.card-img .card-body p  { color: var(--text-muted); font-size: 0.9rem; }

/* Feature list */
.feature-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.feature-list li:last-child { border-bottom: none; }
.feature-list .icon { color: var(--balloon); font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }

/* Info banner */
.info-banner { background: linear-gradient(135deg, var(--sky) 0%, var(--sky-dark) 100%); color: #fff; padding: 3rem 0; text-align: center; }
.info-banner h2 { color: #fff; margin-bottom: 0.5rem; }
.info-banner p  { opacity: 0.85; max-width: 560px; margin-inline: auto; margin-bottom: 1.75rem; }

/* Forms */
.form-section { max-width: 680px; margin-inline: auto; }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
label .req { color: var(--balloon); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea { width: 100%; padding: 0.7rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.97rem; color: var(--text); background: #fff; transition: border-color var(--tr), box-shadow var(--tr); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(46,125,79,0.12); }
textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.3rem; }
.hp-wrap { position: absolute; left: -9999px; top: -9999px; visibility: hidden; }
.form-submit { margin-top: 1.75rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.required-note { font-size: 0.82rem; color: var(--text-muted); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4/3; cursor: pointer; background: var(--bg-alt); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .overlay { position: absolute; inset: 0; background: rgba(46,125,79,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--tr); color: #fff; font-size: 1.75rem; }
.gallery-item:hover .overlay { opacity: 1; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-sm); object-fit: contain; }
.lb-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 2rem; line-height: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1.75rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); transition: background var(--tr); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.3); }

/* News */
.news-article { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--border); align-items: start; }
.news-article:first-child { padding-top: 0; }
.news-article:last-child { border-bottom: none; }
.news-article img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.news-date { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.news-article h3 { margin-bottom: 0.6rem; }
@media (max-width: 650px) { .news-article { grid-template-columns: 1fr; } }

/* Pilots table */
.pilots-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin-top: 1rem; }
.pilots-table th { text-align: left; padding: 0.65rem 0.9rem; background: var(--sky); color: #fff; font-size: 0.82rem; letter-spacing: 0.05em; }
.pilots-table td { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); }
.pilots-table tr:nth-child(even) td { background: var(--bg-alt); }

/* Page hero */
.page-hero { background: linear-gradient(135deg, var(--sky) 0%, var(--sky-dark) 100%); color: #fff; padding: 3.5rem 0 2.5rem; }
.page-hero .eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; margin-bottom: 0.6rem; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
.page-hero p  { opacity: 0.83; max-width: 540px; font-size: 1.05rem; }

/* Alerts */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.93rem; margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.alert-success { background: #E8F5E9; border-left: 4px solid #4CAF50; color: #1B5E20; }
.alert-error   { background: #FFEBEE; border-left: 4px solid #F44336; color: #B71C1C; }
.alert-info    { background: #E8F5EE; border-left: 4px solid var(--sky); color: var(--sky-dark); }

/* Timeline */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 0.6rem; top: 0; bottom: 0; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 1.75rem; }
.tl-dot { position: absolute; left: -2.1rem; top: 0.25rem; width: 14px; height: 14px; border-radius: 50%; background: var(--balloon); border: 2px solid #fff; box-shadow: 0 0 0 3px var(--border); }
.tl-year { font-size: 0.8rem; font-weight: 700; color: var(--sky); letter-spacing: 0.06em; margin-bottom: 0.15rem; }
.tl-item h4 { margin-bottom: 0.2rem; }
.tl-item p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Footer */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.75); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-brand img { height: 48px; margin-bottom: 0.85rem; filter: brightness(1.1); }
.footer-brand p { font-size: 0.9rem; }
.site-footer h4 { color: #fff; margin-bottom: 0.75rem; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a  { color: rgba(255,255,255,0.65); font-size: 0.9rem; display: block; margin-bottom: 0.4rem; transition: color var(--tr); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.4); display: inline; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* Utility */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
