/* ============================================
   Zahradník Francimór — Style Sheet
   ============================================ */

:root {
  /* 12-token OKLCH palette from #6e3e07 (warm brown) & #05940e (green) */
  --primary:        oklch(0.40 0.10 65);
  --primary-light:  oklch(0.55 0.06 65);
  --primary-dark:   oklch(0.20 0.08 65);
  --accent:         oklch(0.52 0.16 145);
  --accent-light:   oklch(0.67 0.10 145);
  --accent-dark:    oklch(0.35 0.13 145);
  --surface:        oklch(0.97 0.005 90);
  --surface-alt:    oklch(0.93 0.01 90);
  --dark:           oklch(0.15 0.02 65);
  --light:          oklch(0.97 0.005 90);
  --muted:          oklch(0.45 0.02 65);
  --white:          #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --max-width:    1200px;
  --header-height: 72px;
  --radius:       8px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:    0 8px 30px rgba(0,0,0,.12);
  --transition:   .3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Selection & Scrollbar ---------- */
::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography — Fluid clamp() ---------- */
h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; font-weight: 700; }
h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.2; font-weight: 700; }
h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.6rem); line-height: 1.3; font-weight: 600; }
h4 { font-family: var(--font-display); font-size: clamp(1rem, 2.5vw, 1.25rem); line-height: 1.4; font-weight: 600; }

p { margin-bottom: 1rem; }
a { color: var(--accent-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

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

/* ---------- Utility ---------- */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.section-title { text-align: center; margin-bottom: .5rem; color: var(--primary-dark); }
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

section { padding: 5rem 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: var(--white); color: var(--primary-dark); }
.btn-white:hover { background: var(--surface-alt); color: var(--primary-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow var(--transition), background var(--transition);
  display: flex;
  align-items: center;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow-md);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-width);
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
}
.site-header .logo img { height: 40px; width: auto; border-radius: 4px; }

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  position: absolute;
  left: 0;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
  background: var(--primary-dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,10,0,.75) 0%, rgba(5,50,10,.55) 100%);
}
.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem 0;
}
.hero__content { flex: 1; color: #fff; }
.hero__content h1 { color: #fff; margin-bottom: 1rem; }
.hero__tagline { font-size: clamp(1.1rem, 2.5vw, 1.4rem); opacity: .9; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__portrait {
  flex: 0 0 280px;
  max-width: 280px;
}
.hero__portrait img {
  border-radius: 50%;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.3);
  box-shadow: var(--shadow-lg);
}

/* Hero animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__content h1       { animation: fadeInUp .8s ease both; }
.hero__tagline          { animation: fadeInUp .8s ease .2s both; }
.hero__actions          { animation: fadeInUp .8s ease .4s both; }
.hero__portrait         { animation: fadeInUp .8s ease .3s both; }

/* ---------- Features Grid ---------- */
.features-grid { background: var(--surface); }
.features-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card .icon svg { width: 28px; height: 28px; stroke: var(--accent-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery { background: var(--surface-alt); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--transition);
}
.gallery-grid img:hover { transform: scale(1.03); }
.gallery-placeholder {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .9rem;
}
.gallery-placeholder:nth-child(1) { background: linear-gradient(135deg, var(--accent-light), var(--primary-light)); }
.gallery-placeholder:nth-child(2) { background: linear-gradient(135deg, var(--primary-light), var(--accent-light)); }
.gallery-placeholder:nth-child(3) { background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; }
.gallery-placeholder:nth-child(4) { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.gallery-placeholder:nth-child(5) { background: linear-gradient(135deg, var(--surface-alt), var(--accent-light)); }
.gallery-placeholder:nth-child(6) { background: linear-gradient(135deg, var(--accent-light), var(--surface-alt)); }

/* ---------- Contact ---------- */
.contact { background: var(--surface); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info address {
  font-style: normal;
  line-height: 2;
}
.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.contact-info svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; }

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  font-size: .9rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid oklch(.85 .01 90);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(5,148,14,.15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: .5rem; font-weight: 500; }
.form-status.success { color: var(--accent-dark); }
.form-status.error { color: #c0392b; }

/* Map */
.contact-map {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* ---------- Team ---------- */
.team { background: var(--surface-alt); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
}
.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.team-card h3 { margin-bottom: .25rem; }
.team-card .role { color: var(--accent-dark); font-weight: 500; font-size: .9rem; margin-bottom: .5rem; }
.team-card p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { opacity: .9; max-width: 550px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 2.5rem 0;
  text-align: center;
  font-size: .9rem;
}
.site-footer a { color: var(--accent-light); }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; }
.footer-links svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Mobile CTA Bar ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0,0,0,.1);
  padding: 10px 16px;
  gap: 10px;
}
.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.mobile-cta__call { background: var(--accent); color: #fff !important; }
.mobile-cta__contact { background: transparent; color: var(--primary) !important; border: 2px solid var(--primary); }

/* ---------- Mobile Breakpoint ---------- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 105;
  }
  .nav-links.is-open { right: 0; }
  .nav-links a { font-size: 1.1rem; padding: 8px 0; }

  .hamburger { display: block; }

  .hero .container { flex-direction: column-reverse; text-align: center; }
  .hero__portrait { flex: 0 0 200px; max-width: 200px; }
  .hero__actions { justify-content: center; }

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

  .mobile-cta { display: flex; }
  body { padding-bottom: 70px; }

  section { padding: 3.5rem 0; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .mobile-cta, .contact-form, .hero__bg::after { display: none !important; }
  body { color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  section { page-break-inside: avoid; padding: 1rem 0; }
}
