:root {
  --color-primary: #2d6a4f;
  --color-primary-light: #52b788;
  --color-primary-dark: #1b4332;
  --color-primary-pale: #d8f3dc;
  --color-accent: #d4a373;
  --color-accent-light: #e9c46a;
  --color-crocus: #9b5de5;
  --color-crocus-light: #c77dff;
  --color-bg: #f8faf5;
  --color-bg-alt: #eef5e8;
  --color-text: #2b2d42;
  --color-text-light: #555b6e;
  --color-white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 2px 8px rgba(27,67,50,0.08);
  --shadow-md: 0 4px 20px rgba(27,67,50,0.12);
  --shadow-lg: 0 8px 40px rgba(27,67,50,0.16);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Helyi növények sziluettjei ---- */

.global-flora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.flora {
  position: absolute;
}

.flora-hawthorn {
  width: 200px;
  top: 8%;
  left: -20px;
  color: var(--color-primary);
  opacity: 0.055;
  transform: rotate(-5deg);
}

.flora-walnut {
  width: 175px;
  top: 26%;
  right: -15px;
  color: var(--color-primary);
  opacity: 0.045;
  transform: scaleX(-1) rotate(10deg);
}

.flora-chestnut {
  width: 220px;
  top: 46%;
  left: -30px;
  color: var(--color-primary);
  opacity: 0.05;
  transform: rotate(5deg);
}

.flora-crocus {
  width: 120px;
  top: 62%;
  right: -5px;
  color: var(--color-crocus);
  opacity: 0.055;
  transform: rotate(-8deg);
}

.flora-walnut-sm {
  width: 130px;
  top: 78%;
  right: 2%;
  color: var(--color-primary);
  opacity: 0.04;
  transform: rotate(15deg) scaleX(-1);
}

.flora-berries {
  width: 120px;
  top: 86%;
  left: 1%;
  color: var(--color-accent);
  opacity: 0.055;
  transform: rotate(-12deg);
}

/* ---- Navbar ---- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(248,250,245,0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  width: 30px;
  height: 38px;
  flex-shrink: 0;
}

.navbar.scrolled .nav-logo {
  color: var(--color-primary-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-crocus-light);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.navbar.scrolled .nav-links a {
  color: var(--color-text);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--color-text);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url('images/kisoroszi-szechenyi-utca-1955.jpg');
  background-size: cover;
  background-position: center 40%;
  filter: sepia(0.45) brightness(0.85) contrast(1.15) saturate(0.7);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 40%,
      rgba(27,67,50,0.25) 0%,
      rgba(20,50,40,0.55) 60%,
      rgba(10,25,20,0.8) 100%
    ),
    linear-gradient(
      180deg,
      rgba(15,35,25,0.5) 0%,
      rgba(27,67,50,0.2) 30%,
      rgba(45,80,60,0.15) 55%,
      rgba(10,25,20,0.85) 100%
    );
}

/* Hero leaf frames */
.hero-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-leaf {
  position: absolute;
}

.hero-leaf-tl {
  top: 0; left: 0;
  width: 200px; height: 300px;
}

.hero-leaf-tr {
  top: 0; right: 0;
  width: 200px; height: 300px;
}

.hero-leaf-bl {
  bottom: 0; left: 0;
  width: 250px; height: 200px;
}

.hero-leaf-br {
  bottom: 0; right: 0;
  width: 250px; height: 200px;
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--color-white);
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.08);
}

.hero-badge-icon {
  width: 20px;
  height: 25px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 3;
}

.hero-scroll-hint svg {
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,0.5);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary-light);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(82,183,136,0.4);
}

.btn-primary:hover {
  background: var(--color-crocus);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(155,93,229,0.4);
}

/* ---- Leaf wave divider ---- */

.leaf-wave-divider {
  position: relative;
  margin-top: -60px;
  z-index: 10;
}

.leaf-wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ---- Crocus band ---- */

.crocus-band {
  padding: 16px 0;
  text-align: center;
  background: var(--color-bg);
}

.crocus-band-alt {
  background: var(--color-bg-alt);
}

.crocus-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
}

.crocus-sm { width: 22px; height: 36px; }
.crocus-md { width: 28px; height: 44px; }
.crocus-lg { width: 36px; height: 54px; }

/* ---- Leaf strip ---- */

.leaf-strip {
  background: var(--color-bg);
}

.leaf-strip svg {
  display: block;
  width: 100%;
  height: 40px;
}

/* ---- Sections ---- */

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-crocus {
  margin: 0 auto 12px;
}

.section-crocus svg {
  width: 40px;
  height: 32px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-crocus), var(--color-primary-light));
  margin: 0 auto;
  border-radius: 2px;
}

/* ---- Section leaf decorations ---- */

.section-with-leaves {
  position: relative;
}

.leaf-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.leaf-deco-left {
  left: 0; top: 0;
  width: 120px;
  height: 100%;
}

.leaf-deco-left svg {
  width: 100%;
  height: 100%;
}

.leaf-deco-right {
  right: 0; top: 0;
  width: 120px;
  height: 100%;
}

.leaf-deco-right svg {
  width: 100%;
  height: 100%;
}

.leaf-deco-right-sm {
  right: 0; top: 10%;
  width: 100px;
  height: 60%;
}

.leaf-deco-right-sm svg {
  width: 100%;
  height: 100%;
}

/* ---- About ---- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.about-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-crocus-light);
}

.about-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--color-primary);
}

.about-icon svg {
  width: 100%;
  height: 100%;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}

.about-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Mission (Miért) ---- */

.mission-content {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mission-lead {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.5;
}

.mission-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mission-list li {
  background: var(--color-white);
  padding: 24px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  transition: var(--transition);
}

.mission-list li:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--color-crocus-light);
  transform: translateX(4px);
}

.mission-list li strong {
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* ---- Join Form (Csatlakozz) ---- */

.join-form-wrapper {
  max-width: 600px;
  margin: 48px auto 0;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
  position: relative;
  z-index: 1;
}

.join-form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 8px;
}

.join-form-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 32px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hidden-field {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
}

.form-group .required {
  color: var(--color-crocus);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-primary-pale);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: var(--transition);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-crocus-light);
  box-shadow: 0 0 0 3px rgba(155, 93, 229, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #adb5bd;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.join-form-btn {
  align-self: stretch;
  margin-top: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  background: var(--color-primary-dark);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(27, 67, 50, 0.3);
}

.join-form-btn:hover {
  background: var(--color-crocus);
  box-shadow: 0 6px 25px rgba(155, 93, 229, 0.4);
  transform: translateY(-2px);
}

.join-form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-feedback[hidden] {
  display: none;
}

.form-feedback {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-top: 24px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-feedback svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.form-feedback--success {
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
}

.form-feedback--success svg {
  color: var(--color-primary);
}

.form-feedback--error {
  background: #fde8e8;
  color: #9b1c1c;
}

.form-feedback--error svg {
  color: #c81e1e;
}

/* ---- Events ---- */

.events-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.event-date {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.event-month {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.event-day {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.event-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.event-info p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.event-location {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary-light);
}

.events-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* ---- News ---- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-crocus);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.news-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.news-card p {
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---- Contact ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--color-text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-text);
  font-size: 0.95rem;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-primary);
}

/* ---- Footer ---- */

.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-crocus-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-credit {
  margin-top: 6px;
  font-size: 0.7rem;
  opacity: 0.5;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary-dark);
    flex-direction: column;
    padding: 80px 40px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.1rem;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

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

  .join-form-wrapper {
    padding: 28px 20px;
    margin-top: 36px;
  }

  .event-card {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-brand {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-leaf-tl,
  .hero-leaf-tr {
    width: 120px;
  }

  .hero-leaf-bl,
  .hero-leaf-br {
    width: 150px;
  }

  .leaf-decoration {
    display: none;
  }

  .flora {
    opacity: 0.025 !important;
    transform: scale(0.7) !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .container {
    padding: 0 16px;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .hero-leaf-tl,
  .hero-leaf-tr,
  .hero-leaf-bl,
  .hero-leaf-br {
    width: 80px;
  }
}
