/* ============================================================
   Érdfa Bt. – Stíluslap
   Szerkesztési tippek:
   - Színeket a :root blokkban változtasd (pl. --bark)
   - Betűtípus: body font-family
   - Mobil töréspontok: @media blokkok alul
   ============================================================ */

/* ── SZÍNEK & VÁLTOZÓK ── */
:root {
  --cream:      #f7f3ee;
  --warm-white: #faf8f5;
  --bark:       #3d2b1f;   /* fő sötétbarna szín */
  --bark-light: #6b4c38;
  --pine:       #4a6741;   /* zöld kiemelő szín */
  --pine-light: #6b8f62;
  --sand:       #c8a97e;   /* homokbarna */
  --sand-light: #e8d5bb;
  --charcoal:   #2a2520;   /* footer háttér */
  --mist:       #e8e2d9;   /* elválasztók */
  --text:       #2a2520;
  --text-muted: #7a6e65;
  --shadow:     rgba(61, 43, 31, 0.12);
}

/* ── ALAP RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAVIGÁCIÓ ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mist);
  padding: 0 2rem;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px var(--shadow); }

.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  cursor: pointer; text-decoration: none;
}
.nav-logo-icon { width: 40px; height: 40px; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--bark); letter-spacing: -0.3px;
}
.nav-logo-sub {
  font-size: 0.7rem; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}

.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-links a {
  display: block; padding: 0.5rem 1rem;
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--bark); background: var(--sand-light); }

.nav-cta {
  background: var(--bark) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px !important;
}
.nav-cta:hover { background: var(--bark-light) !important; color: #fff !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--bark); border-radius: 2px; transition: 0.3s;
}

/* ── OLDALRENDSZER ── */
.page { display: none; padding-top: 72px; min-height: 100vh; }
.page.active { display: block; }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 72px);
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand-light) 60%, #dcc9a8 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(74, 103, 65, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(61, 43, 31, 0.06) 0%, transparent 50%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 5rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(61, 43, 31, 0.08); border: 1px solid rgba(61, 43, 31, 0.15);
  padding: 0.35rem 0.9rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500; color: var(--bark);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-badge::before { content: '🌲'; font-size: 0.9em; }

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700; line-height: 1.1;
  color: var(--bark); margin-bottom: 1.25rem;
}
.hero-title em { font-style: italic; color: var(--pine); }

.hero-desc {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 480px; margin-bottom: 2.5rem; line-height: 1.8;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-img-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  transform: rotate(2deg);
}
.hero-img-grid img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 12px; box-shadow: 0 16px 48px var(--shadow);
}
.hero-img-grid img:nth-child(2) { margin-top: 2rem; }
.hero-img-grid img:nth-child(3) { margin-top: -1.5rem; }

/* ── GOMBOK ── */
.btn-primary {
  background: var(--bark); color: #fff;
  padding: 0.875rem 2rem; border-radius: 8px;
  font-size: 0.95rem; font-weight: 500;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--bark-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.25);
}

.btn-secondary {
  background: transparent; color: var(--bark);
  padding: 0.875rem 2rem; border-radius: 8px;
  font-size: 0.95rem; font-weight: 500;
  border: 2px solid var(--bark); cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--bark); color: #fff; transform: translateY(-1px); }

/* ── TRUST CSÍK ── */
.trust-strip {
  background: var(--bark); color: #fff;
  padding: 1.5rem 2rem;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 3rem;
}
.trust-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; opacity: 0.9;
}
.trust-item strong { font-weight: 600; }
.trust-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sand); flex-shrink: 0;
}

/* ── SZEKCIÓK ── */
.section { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }

.section-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pine); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700;
  color: var(--bark); line-height: 1.2; margin-bottom: 1rem;
}
.section-desc {
  font-size: 1rem; color: var(--text-muted);
  max-width: 560px; line-height: 1.8;
}

/* ── TERMÉKKÁRTYÁK ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.product-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  cursor: pointer; transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px var(--shadow); }

.product-card-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-card-img { transform: scale(1.04); }

.product-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.product-card-cat {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--pine); margin-bottom: 0.4rem;
}
.product-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 600; color: var(--bark); margin-bottom: 0.5rem;
}
.product-card-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.product-card-arrow {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 500; color: var(--bark); margin-top: 1rem;
  transition: gap 0.2s;
}
.product-card:hover .product-card-arrow { gap: 0.7rem; }

/* ── MIÉRT FA? SZEKCIÓ ── */
.why-section { background: var(--cream); padding: 5rem 0; }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.why-features { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.why-feature {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; border-radius: 12px; background: #fff;
  box-shadow: 0 2px 8px rgba(61, 43, 31, 0.06);
  transition: transform 0.2s;
}
.why-feature:hover { transform: translateX(4px); }
.why-feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--sand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.why-feature-title { font-weight: 600; color: var(--bark); margin-bottom: 0.25rem; }
.why-feature-text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

.why-img-main {
  width: 100%; border-radius: 20px;
  box-shadow: 0 24px 64px var(--shadow);
  aspect-ratio: 3/4; object-fit: cover;
}
.why-badge-float {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  background: var(--pine); color: #fff;
  border-radius: 16px; padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 32px rgba(74, 103, 65, 0.35);
}
.why-badge-float .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700; line-height: 1;
}
.why-badge-float .label { font-size: 0.8rem; opacity: 0.85; margin-top: 0.2rem; }
.why-visual { position: relative; }

/* ── GALÉRIA ── */
.gallery-header {
  background: linear-gradient(135deg, var(--cream), var(--sand-light));
  padding: 4rem 2rem 3rem; text-align: center;
}
.gallery-filter {
  display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
  max-width: 1200px; margin: 2rem auto 0;
}
.filter-btn {
  padding: 0.5rem 1.25rem; border-radius: 999px;
  border: 2px solid var(--mist); background: #fff;
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s;
}
.filter-btn.active,
.filter-btn:hover { border-color: var(--bark); background: var(--bark); color: #fff; }

.gallery-grid {
  max-width: 1200px; margin: 0 auto; padding: 3rem 2rem;
  columns: 3; column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 1rem;
  border-radius: 12px; overflow: hidden;
  cursor: pointer; position: relative;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: 0 16px 40px var(--shadow); }
.gallery-item img { width: 100%; display: block; }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(61, 43, 31, 0.6) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.25s;
  display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
  color: #fff; font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.4rem;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 8px; box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15); border: none; cursor: pointer;
  color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15); border: none; cursor: pointer;
  color: #fff; font-size: 1.5rem; width: 48px; height: 48px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ── KAPCSOLAT OLDAL ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start; margin-top: 3rem;
}
.contact-info-card {
  background: #fff; border-radius: 20px; padding: 2.5rem;
  box-shadow: 0 4px 24px var(--shadow);
}
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--mist);
}
.contact-item:last-child { border-bottom: none; }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--sand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-item-label {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 0.25rem;
}
.contact-item-value { font-size: 1rem; font-weight: 500; color: var(--bark); }
.contact-item-value a { color: inherit; text-decoration: none; }
.contact-item-value a:hover { color: var(--pine); }

.contact-map {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow);
  height: 400px;
}
.contact-map iframe { width: 100%; height: 100%; border: none; }

/* ── ŰRLAP ── */
.form-label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--bark); margin-bottom: 0.4rem;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.form-input {
  width: 100%; padding: 0.7rem 1rem;
  border: 1.5px solid var(--mist); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  color: var(--text); background: var(--warm-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; resize: vertical;
}
.form-input:focus {
  border-color: var(--bark);
  box-shadow: 0 0 0 3px rgba(61, 43, 31, 0.08);
  background: #fff;
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.7; }
textarea.form-input { min-height: 180px; max-height: 500px; }

/* ── SPEC KÁRTYÁK ── */
.specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.spec-card {
  background: #fff; border-radius: 16px; padding: 2rem;
  box-shadow: 0 2px 12px var(--shadow); text-align: center;
}
.spec-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.spec-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600; color: var(--bark); margin-bottom: 0.5rem;
}
.spec-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── FOOTER ── */
footer {
  background: var(--charcoal); color: rgba(255, 255, 255, 0.7);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand .nav-logo-text { color: #fff; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 0.75rem; max-width: 320px; }
.footer-col h4 {
  font-size: 0.85rem; font-weight: 600; color: #fff;
  letter-spacing: 0.06em; margin-bottom: 1rem; text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.875rem; color: rgba(255, 255, 255, 0.6);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--sand); }
.footer-bottom {
  max-width: 1200px; margin: 2.5rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; }

/* ── ANIMÁCIÓK ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }

/* ── RESZPONZÍV – TABLET (max 900px) ── */
@media (max-width: 900px) {
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--warm-white); padding: 1rem;
    border-bottom: 1px solid var(--mist); gap: 0.25rem;
    z-index: 99; box-shadow: 0 8px 24px var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-content { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .hero-visual { display: none; }
  .hero-title { font-size: 2.2rem; }
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
  .why-visual { order: -1; }
  .why-badge-float { left: 0; bottom: -1rem; }
  .gallery-grid { columns: 2; padding: 2rem 1rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .trust-strip { padding: 1.25rem 1rem; gap: 1rem; }
  .trust-item { font-size: 0.82rem; }
  .section { padding: 3rem 1.5rem; }
  .section-title { font-size: 1.6rem; }
  .contact-info-card { padding: 1.5rem; }
}

/* ── RESZPONZÍV – MOBIL (max 600px) ── */
@media (max-width: 600px) {
  .gallery-grid { columns: 1; padding: 2rem 1rem; }
  .specs-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .trust-strip { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.5rem; }
  .hero-title { font-size: 1.9rem; }
  .hero-content { padding: 2.5rem 1.25rem; }
  .section { padding: 2.5rem 1.25rem; }
  .gallery-header { padding: 2.5rem 1.25rem 2rem; }
  footer { padding: 2.5rem 1.25rem 1.5rem; }
  .footer-inner { padding: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .nav-logo-text { font-size: 1.1rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .contact-map { height: 280px; }
  .why-features { gap: 0.75rem; }
  .why-badge-float { position: static; margin-top: 1rem; border-radius: 12px; }
  .form-two-col { grid-template-columns: 1fr !important; }
}
