/* ============================================================
   Závlaha od bratrů, shared styles
   ============================================================ */

:root {
  --green: #4CAF50;
  --green-700: #388E3C;
  --green-50: #E8F5E9;
  --bg: #f5f4f0;
  --cyan: #1565C0;
  --cyan-50: #E3F2FD;
  --ink: #424242;
  --muted: #757575;
  --line: #D7CCC8;
  --warm: #A1887F;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.09);
  --t: 200ms ease;
  --font: 'DM Sans', system-ui, sans-serif;
  --container: 1240px;
  --pad-y: clamp(72px, 9vw, 120px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1.5px solid #EDEBE5;
  isolation: isolate;
  transition: box-shadow 0.25s ease;
}
.nav.scrolled {
  box-shadow: 0 2px 0 0 #4CAF50, 0 4px 24px -8px rgba(13,43,77,0.10);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 19px;
  color: #0D2B4D;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #5c5c5c;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #0D2B4D; }
.nav-links a.active {
  color: #0D2B4D;
  font-weight: 600;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4CAF50;
  color: var(--white);
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  border: 0;
  transition: background 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: #388E3C; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle .bar {
  width: 22px; height: 1.5px;
  background: #0D2B4D;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: block;
}
.nav-toggle.open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 84px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1.5px solid #EDEBE5;
  box-shadow: 0 20px 40px -12px rgba(13,43,77,0.14);
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 8px 0 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: #0D2B4D;
  padding: 14px 24px;
  border: 0;
  transition: background 0.15s;
}
.mobile-menu a:hover { background: #F5F4F0; }
.mobile-menu a.active { color: #4CAF50; font-weight: 600; }
.mobile-menu .nav-cta {
  margin: 12px 24px 0;
  justify-content: center;
  padding: 13px 18px;
  font-size: 15px;
  border-radius: 7px;
}

@media (max-width: 880px) {
  .nav-links, .nav-inner > .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { position: sticky; } /* keep sticky on mobile */
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  transition: background var(--t), transform var(--t), border-color var(--t), color var(--t);
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
}
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform var(--t);
}
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-block { width: 100%; }

/* ---------- Page hero (compact) ---------- */
.page-hero {
  background: var(--bg);
  color: var(--ink);
  padding: 60px 0 48px;
  position: relative;
  border-bottom: 1px solid #e5e1d8;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero::before {
  content: '';
  position: absolute;
  right: -120px; top: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(76,175,80,0.18), transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  left: -80px; bottom: -120px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 70%, rgba(21,101,192,0.10), transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  color: #1565C0;
  position: relative;
}
.page-hero h1::before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: #4CAF50;
  border-radius: 2px;
  margin-bottom: 18px;
}
.breadcrumb {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}
.breadcrumb a { color: var(--ink); }
.breadcrumb a:hover { color: #4CAF50; }

/* ---------- Sections ---------- */
.section { padding: var(--pad-y) 0; }
.section-white { background: var(--white); }
.section-bg { background: var(--bg); }
.section-green { background: #0D2B4D; color: var(--white); }
.section-mint { background: var(--green-50); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
}
.section-green .eyebrow { color: #81C784; }

.section-title {
  font-size: clamp(32px, 4.2vw, 52px);
  margin-top: 12px;
  max-width: 720px;
}
.section-lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
}
.section-green .section-lede { color: rgba(255,255,255,0.85); }

/* ---------- Footer ---------- */
.footer {
  background: #0D2B4D;
  color: rgba(255,255,255,0.78);
  padding: 80px 0 32px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.footer h4 {
  color: #81C784;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-tag {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  max-width: 280px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a { color: rgba(255,255,255,0.75); transition: color var(--t); }
.footer-links a:hover { color: #81C784; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}
.footer-firm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.footer-desc {
  margin-top: 12px;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  transition: color var(--t);
}
.footer-legal-links a:hover { color: #81C784; }
.footer-bar {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Final CTA (card style) ---------- */
.final-cta {
  background: var(--bg);
  padding: 80px 0;
}
.final-cta .container {
  display: flex;
  justify-content: center;
}
.final-cta-card {
  width: 100%;
  max-width: 880px;
  background: var(--white);
  border: 1px solid #E8E4DA;
  border-radius: 28px;
  padding: 56px 48px;
  text-align: center;
  box-shadow: 0 12px 40px -20px rgba(13,43,77,0.18);
}
.final-cta-card h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  color: #0D2B4D;
  margin: 0;
}
.final-cta-card .cta-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-card .btn {
  margin-top: 28px;
  background: #4CAF50;
  color: var(--white);
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 17px;
}
.final-cta-card .btn:hover { background: #388E3C; transform: translateY(-1px); }
@media (max-width: 640px) {
  .final-cta-card { padding: 40px 28px; border-radius: 20px; }
  .final-cta-card .btn { width: 100%; padding: 16px 20px; font-size: 16px; }
}
@media (max-width: 400px) {
  .final-cta-card { padding: 32px 20px; }
  .final-cta-card .btn { font-size: 15px; padding: 14px 16px; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(21,101,192,0.08);
}
.field input.error, .field textarea.error {
  border-color: #d04a3a;
  background: #fdf6f5;
}
.field-error {
  color: #d04a3a;
  font-size: 13px;
  margin-top: 2px;
  display: none;
}
.field.has-error .field-error { display: block; }

/* ============ Scroll reveal ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Image fade-in on load ============ */
img {
  transition: opacity 0.5s ease;
}
img:not(.loaded) {
  opacity: 0;
}
img.loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  img { opacity: 1 !important; transition: none; }
}

/* ============ Cookie consent ============ */
.cookie-banner {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  z-index: 400;
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #E8E4DA;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px -16px rgba(13,43,77,0.28);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.cookie-banner.open { opacity: 1; visibility: visible; transform: translateY(0); }
.cookie-banner-text strong { display: block; color: #0D2B4D; font-size: 16px; margin-bottom: 6px; }
.cookie-banner-text p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.cookie-banner-text a { color: #1565C0; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), transform var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
}
.cookie-btn-primary { background: var(--green); color: var(--white); }
.cookie-btn-primary:hover { background: var(--green-700); }
.cookie-btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.cookie-btn-outline:hover { border-color: var(--green); color: var(--green); }
.cookie-btn-ghost { background: transparent; color: var(--muted); padding: 11px 8px; }
.cookie-btn-ghost:hover { color: #0D2B4D; }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 410;
  background: rgba(15, 25, 20, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cookie-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.cookie-modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px -20px rgba(13,43,77,0.3);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.cookie-modal.open .cookie-modal-card { transform: scale(1); }
.cookie-modal-card h3 { font-size: 22px; color: #0D2B4D; margin-bottom: 10px; }
.cookie-modal-card > p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; }
.cookie-cat { padding: 16px 0; border-top: 1px solid var(--line); }
.cookie-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-cat-head span { font-weight: 600; color: #0D2B4D; font-size: 15px; }
.cookie-cat p { margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.cookie-modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.cookie-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: absolute;
  inset: 0;
  background: #D7CCC8;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--t);
}
.cookie-slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--t);
}
.cookie-switch input:checked + .cookie-slider { background: var(--green); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(18px); }
.cookie-switch-disabled .cookie-slider { cursor: not-allowed; opacity: 0.7; }

@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px; }
  .cookie-banner-actions { flex-direction: column; }
  .cookie-banner-actions .cookie-btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner, .cookie-modal, .cookie-modal-card { transition: none; }
}
