/* =========================================================================
   Örkény-Med Kft. — style.css
   Modern, playful "farm" themed design system for a small static site.
   No frameworks, no build step — plain CSS with custom properties.
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Design tokens ---------- */
:root {
  /* Farm palette — warm, cheerful, sunlit */
  --color-bg:          #fffaf1;
  --color-bg-alt:      #fef3e2;
  --color-surface:     #ffffff;
  --color-text:        #33291e;
  --color-text-soft:   #6b5c4a;
  --color-border:      #ecdfc7;

  --color-green-900:   #1f4d2e;
  --color-green-700:   #2c6b3f;
  --color-green-500:   #4a9553;
  --color-green-200:   #d9ecd6;
  --color-green-100:   #eef7ec;

  --color-sun:         #f6b93b;
  --color-sun-soft:    #ffe9b8;
  --color-barn:        #c1440e;
  --color-barn-700:    #9c360a;
  --color-sky:         #cfe9f2;
  --color-sky-soft:    #eaf7fb;

  --shadow-sm: 0 2px 8px rgba(51, 41, 30, 0.08);
  --shadow-md: 0 10px 30px rgba(31, 77, 46, 0.12);
  --shadow-lg: 0 20px 45px rgba(31, 77, 46, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --font-heading: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --container-w: 1180px;
  --header-h: 76px;
}

html[data-lang="de"] :root, :root {}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 1.05rem;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-green-900);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p.lead { font-size: 1.2rem; color: var(--color-text-soft); }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--green { background: var(--color-green-900); color: #eef7ec; }
.section--green h2, .section--green h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { display: inline-block; margin-bottom: 0.6rem; }
.section-head p { color: var(--color-text-soft); }
.section--green .section-head p { color: #d5e8da; }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-barn);
  background: var(--color-sun-soft);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-green-900); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary {
  background: var(--color-barn);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-barn-700); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.28); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--color-green-900);
  border: 2px solid var(--color-green-500);
}
.btn-outline:hover { background: var(--color-green-100); transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 250, 241, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(31,77,46,0.1); }

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--color-green-900); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text strong { color: var(--color-barn); }

.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-green-900);
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px; height: 3px; width: 0%;
  background: var(--color-sun);
  border-radius: 3px;
  transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--color-barn); }

.lang-switch { display: flex; align-items: center; gap: 0.35rem; font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; }
.lang-switch a {
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  color: var(--color-text-soft);
}
.lang-switch a[aria-current="true"] { background: var(--color-green-700); color: #fff; }
.lang-switch a:hover:not([aria-current="true"]) { background: var(--color-green-100); color: var(--color-green-900); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  align-items: center; justify-content: center;
  background: var(--color-green-100);
}
.nav-toggle svg { width: 22px; height: 22px; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 2rem 1.5rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { display: block; padding: 1rem 0; font-size: 1.25rem; border-bottom: 1px solid var(--color-border); }
  .main-nav .lang-switch { margin-top: 1.5rem; justify-content: center; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .icon-close { display: none; }
  .nav-toggle.is-open .icon-menu { display: none; }
  .nav-toggle.is-open .icon-close { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(6rem, 14vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--color-sky-soft) 0%, var(--color-sky) 55%, var(--color-green-200) 100%);
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero--home .hero-media { background-image: url("../img/hero-home-sm.jpg"); }
.hero--gallery .hero-media { background-image: url("../img/hero-gallery-sm.jpg"); }
.hero--contact .hero-media { background-image: url("../img/hero-contact-sm.jpg"); }
@media (min-width: 700px) {
  .hero--home .hero-media { background-image: url("../img/hero-home.jpg"); }
  .hero--gallery .hero-media { background-image: url("../img/hero-gallery.jpg"); }
  .hero--contact .hero-media { background-image: url("../img/hero-contact.jpg"); }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,77,46,0.72) 0%, rgba(31,77,46,0.55) 45%, rgba(20,44,26,0.85) 100%);
}
.hero-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { background: rgba(255,255,255,0.18); color: #fff; }
.hero h1 { color: #fff; margin: 0.8rem 0 1.1rem; text-shadow: 0 2px 18px rgba(0,0,0,0.25); }
.hero p.lead { color: #f3f7ee; max-width: 620px; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero--compact { padding: clamp(4.5rem, 10vw, 6.5rem) 0 clamp(3rem, 6vw, 4rem); }

/* Decorative animated sun */
.sun {
  position: absolute; top: 8%; right: 8%; width: 120px; height: 120px;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Drifting clouds */
.cloud { position: absolute; opacity: 0.85; animation: drift linear infinite; }
.cloud--1 { top: 14%; width: 140px; animation-duration: 46s; }
.cloud--2 { top: 30%; width: 100px; animation-duration: 60s; animation-delay: -10s; }
.cloud--3 { top: 6%; width: 90px; animation-duration: 54s; animation-delay: -25s; }
@keyframes drift {
  from { transform: translateX(-20vw); }
  to { transform: translateX(120vw); }
}

/* Driving truck accent */
.hero-truck { position: absolute; bottom: 6%; left: -220px; width: 200px; animation: drive 18s ease-in-out infinite; }
@keyframes drive {
  0%   { left: -220px; }
  45%  { left: calc(100% + 220px); }
  50%  { left: calc(100% + 220px); opacity: 0; }
  50.1%{ left: -220px; opacity: 0; }
  55%  { opacity: 1; }
  100% { left: -220px; }
}

/* Flying birds */
.bird { position: absolute; width: 34px; animation: fly 12s ease-in-out infinite; opacity: 0.9; }
.bird--1 { top: 18%; left: 62%; animation-delay: 0s; }
.bird--2 { top: 24%; left: 68%; animation-delay: 0.4s; }
.bird--3 { top: 15%; left: 74%; animation-delay: 0.9s; }
@keyframes fly { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Grass silhouette along bottom */
.grass-strip { position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; }

@media (max-width: 700px) {
  .sun { width: 80px; height: 80px; top: 6%; right: 5%; }
  .hero-truck { width: 140px; }
  .cloud--1 { width: 90px; } .cloud--2 { width: 70px; } .cloud--3 { width: 60px; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Intro / story ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.intro-grid p + p { margin-top: 1rem; }
.intro-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.intro-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.intro-badge {
  position: absolute; bottom: -1px; left: -1px;
  background: var(--color-sun);
  color: var(--color-green-900);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.9rem 1.3rem;
  border-radius: 0 var(--radius-md) 0 0;
  line-height: 1.15;
}
.intro-badge b { display: block; font-size: 1.6rem; }

@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Feature / fleet cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--color-green-100);
  color: var(--color-green-700);
  margin-bottom: 1rem;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.feature-card p { color: var(--color-text-soft); font-size: 0.98rem; }

/* ---------- Species chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease;
}
.chip:hover { transform: translateY(-3px) rotate(-1deg); background: var(--color-sun-soft); }
.chip svg { width: 1.2em; height: 1.2em; color: var(--color-green-700); }

/* ---------- Routes map ---------- */
.route-list { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.6rem; }
.route-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; margin-top: 2.4rem; }
.team-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding-bottom: 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-photo { aspect-ratio: 1/1; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-top: 1.2rem; }
.team-role { color: var(--color-barn); font-weight: 700; font-size: 0.9rem; margin-top: 0.2rem; }
.team-contact { margin-top: 0.6rem; color: var(--color-text-soft); font-size: 0.95rem; }
.team-contact a { color: var(--color-green-700); font-weight: 700; }

/* ---------- References ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.ref-item {
  display: flex; align-items: flex-start; gap: 0.8rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-size: 0.96rem;
}
.ref-item svg { width: 20px; height: 20px; flex: none; color: var(--color-green-700); margin-top: 0.15rem; }
.ref-item b { display: block; color: var(--color-green-900); }
.ref-item span { color: var(--color-text-soft); font-size: 0.88rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-barn) 0%, #e0641f 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.2rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-banner p { color: #ffe8d8; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-banner .btn-primary { background: #fff; color: var(--color-barn-700); }
.cta-banner .btn-primary:hover { background: #fff2e6; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-link { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-link:hover img { transform: scale(1.08); }
.gallery-zoom {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff;
  background: rgba(31,77,46,0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
  font-family: var(--font-heading);
}
.gallery-link:hover .gallery-zoom { opacity: 1; background: rgba(31,77,46,0.35); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 30, 20, 0.92);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease;
  padding: 1.5rem;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { max-width: min(90vw, 1100px); max-height: 86vh; text-align: center; }
.lightbox-figure img { max-width: 100%; max-height: 74vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); margin: 0 auto; }
.lightbox-caption { color: #f3f0e6; margin-top: 1rem; font-size: 1rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 999px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.28); }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 22px; height: 22px; }
.lightbox-counter { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: #d9d2c2; font-size: 0.9rem; }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.info-card h3 svg { width: 22px; height: 22px; color: var(--color-barn); }
.info-list { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.98rem; }
.info-list b { color: var(--color-green-900); }
.info-list a { color: var(--color-green-700); font-weight: 700; }

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }
.gps-note { margin-top: 0.8rem; text-align: center; color: var(--color-text-soft); font-size: 0.92rem; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-green-900); color: #d5e8da; padding: 3.2rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 0.8rem; }
.footer-brand svg { width: 34px; height: 34px; }
.site-footer h4 { color: #fff; font-family: var(--font-heading); margin-bottom: 0.9rem; font-size: 1rem; letter-spacing: 0.02em; }
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a:hover { color: #fff; }
.footer-note { color: #a9c4b1; font-size: 0.9rem; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.86rem; color: #a9c4b1; }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ---------- Floating decorative leaves (global ambience) ---------- */
.floaty { position: absolute; opacity: 0.5; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(6deg); } }

/* ---------- Misc ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.mt-lg { margin-top: 3rem; }
