/* ============================================================
   JemeBau – Style System
   Forest green palette | NO purple (tiltott szín: lila)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --primary: #1B5E20;
  --primary-dark: #0D3B12;
  --primary-light: #2E7D32;
  --primary-pale: #E8F5E9;
  --secondary: #D4A017;
  --secondary-light: #E8B830;
  --neutral-900: #1a1a1a;
  --neutral-700: #333333;
  --neutral-600: #4a4a4a;
  --neutral-400: #888888;
  --neutral-200: #e0e0e0;
  --neutral-100: #f4f5f0;
  --neutral-50: #fafaf7;
  --white: #ffffff;
  --gradient-hero: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  --shadow-card: 0 4px 30px -8px rgba(27, 94, 32, 0.12);
  --shadow-elevated: 0 20px 60px -15px rgba(27, 94, 32, 0.2);
  --radius: 0.75rem;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--neutral-900);
  background: var(--neutral-50);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ── Skip Link (A11y) ── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--primary); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius);
  z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ── Layout Utilities ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 64px; } }
.section-padding { padding: 80px 0; }
@media (min-width: 1024px) { .section-padding { padding: 112px 0; } }

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 12px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.header-logo {
  display: flex; align-items: center; gap: 12px;
}
.header-logo img {
  width: 48px; height: 48px; border-radius: 10px; object-fit: cover;
}
.header-logo span {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: var(--white); transition: color 0.3s;
}
.header.scrolled .header-logo span { color: var(--primary); }

.nav-desktop { display: none; align-items: center; gap: 32px; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.9); transition: color 0.3s;
}
.nav-desktop a:hover { color: var(--secondary); }
.header.scrolled .nav-desktop a { color: var(--neutral-700); }
.header.scrolled .nav-desktop a:hover { color: var(--primary); }

.nav-phone {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--white); transition: color 0.3s;
}
.header.scrolled .nav-phone { color: var(--primary); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex; padding: 8px; color: var(--white); transition: color 0.3s;
}
.header.scrolled .menu-toggle { color: var(--neutral-700); }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 24px; height: 24px; }

/* Mobile Nav */
.nav-mobile {
  display: none; background: var(--white);
  border-top: 1px solid var(--neutral-200);
  padding: 20px;
}
.nav-mobile.open { display: block; }
@media (min-width: 768px) { .nav-mobile { display: none !important; } }
.nav-mobile a {
  display: block; padding: 12px 0; font-weight: 500;
  color: var(--neutral-700); border-bottom: 1px solid var(--neutral-200);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--primary); }
.nav-mobile-contact {
  padding-top: 16px; margin-top: 8px;
  border-top: 1px solid var(--neutral-200);
  display: flex; flex-direction: column; gap: 8px;
}
.nav-mobile-contact a {
  display: flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 600; border-bottom: none; padding: 8px 0;
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--gradient-hero);
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--gradient-hero); opacity: 0.88;
}
.hero-decor-1 {
  position: absolute; top: 80px; right: 0;
  width: 380px; height: 380px;
  background: rgba(212, 160, 23, 0.1); border-radius: 50%; filter: blur(80px);
}
.hero-decor-2 {
  position: absolute; bottom: 0; left: 0;
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.05); border-radius: 50%; filter: blur(60px);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 128px 0 100px;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px; padding: 8px 16px; margin-bottom: 32px;
  animation: fadeUp 0.7s ease-out forwards;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--secondary); animation: pulse 2s infinite;
}
.hero-badge span {
  color: rgba(255,255,255,0.9); font-size: 0.875rem; font-weight: 500;
}
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700; color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease-out 0.1s forwards; opacity: 0;
}
.hero h1 .highlight { color: var(--secondary); }
.hero-sub {
  color: rgba(255,255,255,0.8); font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7; max-width: 560px; margin-bottom: 40px;
  animation: fadeUp 0.7s ease-out 0.2s forwards; opacity: 0;
}
.hero-ctas {
  display: flex; flex-direction: column; gap: 16px;
  animation: fadeUp 0.7s ease-out 0.3s forwards; opacity: 0;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gradient-accent); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem;
  padding: 16px 32px; border-radius: 12px;
  transition: all 0.3s; box-shadow: 0 4px 20px rgba(212,160,23,0.3);
}
.btn-primary:hover { transform: scale(1.02); filter: brightness(1.1); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid rgba(255,255,255,0.3); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem;
  padding: 16px 32px; border-radius: 12px; transition: all 0.3s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-primary svg, .btn-secondary svg { width: 20px; height: 20px; }

.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0;
}
.hero-wave svg { width: 100%; display: block; }

/* ── Section Headers ── */
.section-label {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.8125rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: 12px; display: block;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700; color: var(--neutral-900);
}
.section-title .highlight { color: var(--primary); }

/* ── Services ── */
.services { background: var(--neutral-50); }
.services-header {
  display: grid; gap: 24px; margin-bottom: 64px;
}
@media (min-width: 768px) { .services-header { grid-template-columns: 1fr 1fr; } }
.services-header-text {
  font-size: 1.125rem; color: var(--neutral-600);
  max-width: 420px; align-self: end;
}
.services-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--white); border: 1px solid var(--neutral-200);
  border-radius: 16px; padding: 24px;
  transition: all 0.3s ease;
}
.service-card:hover {
  border-color: rgba(27, 94, 32, 0.3);
  box-shadow: var(--shadow-card);
}
.service-card.wide {
  grid-column: span 1;
}
@media (min-width: 640px) { .service-card.wide { grid-column: span 2; } }

.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; transition: all 0.3s;
}
.service-card:hover .service-icon {
  background: var(--primary);
}
.service-icon svg {
  width: 24px; height: 24px; color: var(--primary);
  transition: color 0.3s;
}
.service-card:hover .service-icon svg { color: var(--white); }
.service-card h3 {
  font-size: 1.25rem; font-weight: 600; color: var(--neutral-900);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.875rem; color: var(--neutral-600); line-height: 1.6;
}

/* ── Why Us ── */
.why-us {
  background: var(--primary); position: relative; overflow: hidden;
}
.why-us-decor-1 {
  position: absolute; top: 0; right: 0;
  width: 320px; height: 320px;
  background: rgba(46, 125, 50, 0.3); border-radius: 50%; filter: blur(80px);
}
.why-us-decor-2 {
  position: absolute; bottom: 0; left: 40px;
  width: 240px; height: 240px;
  background: rgba(212, 160, 23, 0.1); border-radius: 50%; filter: blur(60px);
}
.why-us .container { position: relative; z-index: 2; }
.why-us .section-title { color: var(--white); }
.why-us .section-title .highlight { color: var(--secondary); }
.why-us-intro {
  max-width: 640px; margin-bottom: 64px;
}
.why-us-sub {
  color: rgba(255,255,255,0.7); font-size: 1.125rem; margin-top: 16px;
}
.why-us-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .why-us-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-us-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 24px;
  transition: background 0.3s;
}
.why-card:hover { background: rgba(255,255,255,0.1); }
.why-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(212, 160, 23, 0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.why-card-icon svg { width: 24px; height: 24px; color: var(--secondary); }
.why-card h3 {
  font-size: 1.125rem; font-weight: 600; color: var(--white); margin-bottom: 8px;
}
.why-card p {
  font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.6;
}

/* ── Contact ── */
.contact { background: var(--neutral-100); }
.contact-grid {
  display: grid; gap: 48px;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 2fr 3fr; gap: 64px; }
}
.contact-info { }
.contact-info .section-title .highlight { color: var(--primary); }
.contact-sub {
  color: var(--neutral-600); font-size: 1rem; margin: 24px 0 40px;
  line-height: 1.7;
}
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
}
.contact-item:hover .contact-item-icon { transform: scale(1.1); }
.contact-item-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s;
}
.contact-item-icon svg { width: 20px; height: 20px; color: var(--white); }
.contact-item-label { font-size: 0.875rem; color: var(--neutral-600); }
.contact-item-value { font-weight: 600; color: var(--neutral-900); }

/* Form */
.contact-form {
  background: var(--white); border-radius: 16px;
  padding: 32px; box-shadow: var(--shadow-elevated);
}
.form-row {
  display: grid; gap: 20px; margin-bottom: 20px;
}
@media (min-width: 640px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: 0.875rem; font-weight: 500; color: var(--neutral-900);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--neutral-200); background: var(--neutral-50);
  color: var(--neutral-900); font-size: 1rem;
  outline: none; transition: all 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}
.form-group textarea { resize: none; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--neutral-400); }
.form-group .error-msg {
  font-size: 0.75rem; color: #d32f2f; margin-top: 4px; display: none;
}
.form-group.has-error input,
.form-group.has-error textarea { border-color: #d32f2f; }
.form-group.has-error .error-msg { display: block; }

.btn-submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem;
  padding: 16px; border-radius: 12px; border: none;
  transition: background 0.3s; cursor: pointer;
}
.btn-submit:hover { background: var(--primary-dark); }
.btn-submit:focus-visible {
  outline: 3px solid var(--secondary); outline-offset: 2px;
}
.btn-submit svg { width: 20px; height: 20px; }

.form-success {
  text-align: center; padding: 48px 0; display: none;
}
.form-success.visible { display: block; }
.form-success-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: rgba(27,94,32,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.form-success-icon svg { width: 28px; height: 28px; color: var(--primary); }
.form-success h3 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 8px;
}
.form-success p { color: var(--neutral-600); }

/* ── Footer ── */
.footer {
  background: var(--primary-dark); color: var(--white);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid; gap: 40px; margin-bottom: 48px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.footer-brand img {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover;
}
.footer-brand span {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
}
.footer-desc {
  color: rgba(255,255,255,0.6); font-size: 0.875rem;
  line-height: 1.6; max-width: 280px;
}
.footer h4 {
  font-family: var(--font-display); font-weight: 600; margin-bottom: 16px;
}
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer ul a {
  font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.3s;
}
.footer ul a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; text-align: center;
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
}

/* ── Legal Pages ── */
.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh; background: var(--neutral-50);
}
.legal-page .container { max-width: 720px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 500; margin-bottom: 32px;
  transition: color 0.3s;
}
.legal-back:hover { color: var(--primary-dark); }
.legal-back svg { width: 16px; height: 16px; }
.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; margin-bottom: 32px;
}
.legal-page h2 {
  font-size: 1.25rem; font-weight: 600; margin: 32px 0 12px;
}
.legal-page p {
  color: var(--neutral-700); line-height: 1.8; margin-bottom: 16px;
}
.legal-page p strong { color: var(--neutral-900); }
.legal-page a { color: var(--primary); }
.legal-page a:hover { text-decoration: underline; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-on-scroll {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1; transform: translateY(0);
}

/* ── Focus States (A11y) ── */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--secondary); outline-offset: 2px;
}
