/* ============================================
   Igazgyöngy98 Kft. - Static Site Styles
   ============================================ */

:root {
  --color-primary: #4a7a2a;
  --color-primary-hover: #3d6822;
  --color-primary-light: #5a7f37;
  --color-body: #023026;
  --color-heading: #000;
  --color-bg: #fff;
  --color-bg-alt: #F6F7FA;
  --color-muted: #767676;
  --color-border: #e9e9e9;
  --font-heading: 'Jost', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-body);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--color-primary-light);
}

ul {
  list-style: none;
}

.container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-heading);
}

h1 { font-size: 72px; font-weight: 700; }
h2 { font-size: 42px; font-weight: 400; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-hero {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.btn-hero:hover {
  background: var(--color-heading);
  border-color: var(--color-heading);
  color: #fff;
}

.btn-small {
  padding: 8px 24px;
  font-size: 13px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 1px;
}

.btn-small:hover {
  background: var(--color-primary-light);
}

/* --- Top Bar --- */
.top-bar {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.top-bar strong {
  font-weight: 700;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-bg);
  padding: 10px 0;
}

body {
  padding-top: 96px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 90px;
  width: auto;
  transition: height 0.3s;
}

.site-header.scrolled .logo img {
  height: 30px;
}

.logo .logo-light {
  display: none;
}

.logo .logo-dark {
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-heading);
  transition: all 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero - Split Layout --- */
.hero {
  display: flex;
  margin-top: 0;
  min-height: 80vh;
  position: relative;
  background: url('../images/green_wave_flow.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 1;
}

.hero-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 60px;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  color: var(--color-body);
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.1;
}

.hero-text h2 {
  color: var(--color-body);
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.3;
}

.hero-right {
  flex: 1.3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 60px 0 60px 40px;
  position: relative;
  z-index: 2;
}

.hero-right img {
  width: 100%;
  border-radius: 5px 0 0 5px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

/* Section titles matching live site */
.section-title-green {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 400;
  color: var(--color-body);
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.section-title-green::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--color-primary);
}

.section-title-white {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 400;
  color: #fff;
  text-align: center;
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.section-title-white::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: #fff;
}

.section-title-center {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 400;
  color: var(--color-body);
  text-align: center;
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 60px;
}

.section-title-center::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--color-primary);
}

/* --- Values / Intro Section --- */
.values-section {
  background: var(--color-bg-alt);
  font-family: var(--font-body);
}

.values-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.values-row-bottom {
  margin-bottom: 0;
}

.values-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
}

.values-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-body);
  line-height: 1.5;
}

.value-card {
  background: var(--color-bg);
  text-align: center;
  padding: 30px 20px;
  border-radius: 5px;
}

.value-card img {
  width: 225px;
  height: 150px;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 4px;
}

.value-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 14px;
  color: var(--color-body);
  line-height: 1.7;
}

/* --- About / Rólunk Section --- */
.about-section {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  font-family: var(--font-body);
  padding: 100px 0;
}

.about-overlay {
  display: none;
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-lead {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 16px;
  color: #fff;
  line-height: 1.7;
}

.about-video {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.about-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.yt-lite {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #000;
}
.yt-lite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-lite-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.yt-lite:hover .yt-lite-play {
  opacity: 1;
}

/* --- Details Section (2x2 grid below Rólunk) --- */
.about-divider {
  position: relative;
  text-align: center;
  margin: 60px 0 40px;
}

.about-divider-line {
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 2px;
  background: rgba(255,255,255,0.4);
}

.about-divider-arrow {
  position: relative;
  top: -1px;
}

.about-details {
  padding-bottom: 20px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.detail-block h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.detail-block p {
  font-size: 15px;
  color: #fff;
  line-height: 1.7;
}

.detail-block ul {
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}

.detail-block li {
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.5;
}

.detail-block li::before {
  content: '– ';
}

.placeholder-text {
  text-align: center;
  font-size: 18px;
  color: var(--color-muted);
  padding: 60px 0;
  font-style: italic;
}

/* --- Representatives Section --- */
.representatives-section {
  background: var(--color-bg-alt);
}
.representatives-lead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--color-body);
}
.representatives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.rep-card {
  background: var(--color-bg);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.rep-card h4 {
  color: var(--color-body);
  margin-bottom: 4px;
  font-size: 16px;
}
.rep-card .rep-region {
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}
.rep-card a {
  color: var(--color-body);
  text-decoration: none;
  font-size: 14px;
}
.rep-card a:hover {
  color: var(--color-primary);
}
.rep-coming-soon {
  border: 2px dashed #bbb;
  box-shadow: none;
  background: #f0f0f0;
}
.rep-coming-soon h4 {
  color: #5c5c5c;
  font-style: italic;
}
.rep-coming-soon .rep-region {
  color: #5c5c5c;
}

/* --- Products Section - Alternating Full-Width Rows --- */
.product-row {
  display: flex;
  width: 100%;
}

.product-row .product-image {
  flex: 1;
  overflow: hidden;
}

.product-row .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.product-row .product-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
}

.product-brand {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 400;
  display: block;
  margin-bottom: 8px;
}

.product-text h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 20px;
}

.product-text ul {
  list-style: disc;
  padding-left: 20px;
}

.product-text li {
  font-size: 15px;
  color: var(--color-body);
  margin-bottom: 6px;
  line-height: 1.6;
}

.product-row-reverse {
  flex-direction: row-reverse;
}

/* --- News Section --- */
.news-section {
  background: var(--color-bg-alt);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.news-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--color-bg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.news-image {
  overflow: hidden;
  height: 280px;
}

.news-image img,
.news-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.news-category {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
}

.news-body time {
  font-size: 14px;
  color: var(--color-muted);
}

.news-body h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.news-body h4 a {
  color: var(--color-heading);
}

.news-body h4 a:hover {
  color: var(--color-primary);
}

.news-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* --- Footer (single dark section matching live) --- */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-5col {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr 0.3fr 1fr;
  gap: 20px;
  align-items: start;
}

.footer-logo {
  width: 195px;
  height: auto;
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-footer p {
  font-size: 14px;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.7;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: rgba(255,255,255,0.7);
}

.legal-numbers {
  margin-top: 12px;
}

.ifu-link-wrap {
  margin-top: 12px;
}

.ifu-link {
  color: #fff;
  text-decoration: underline;
}

.ifu-link:hover {
  color: var(--color-primary);
}

/* Footer divider */
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 40px 0 20px;
}

/* Copyright bar */
.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #fff;
}

.footer-copyright a {
  color: #fff;
}

.footer-copyright a:hover {
  color: rgba(255,255,255,0.7);
}

.footer-nav {
  display: flex;
  gap: 30px;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-nav a:hover {
  color: rgba(255,255,255,0.7);
}

/* --- Széchenyi 2020 Logo --- */
.szechenyi-logo {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

.szechenyi-logo img {
  width: 300px;
  height: auto;
}

/* --- Cookie Banner --- */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a3c1a;
  color: #fff;
  padding: 16px 24px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 9999;
  font-size: 14px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner p {
  flex: 1;
  max-width: 800px;
  color: #fff;
}

/* --- IFU Page --- */
.ifu-page .hero {
  min-height: 70vh;
}

.ifu-page .hero-text h2 {
  font-size: 32px;
  max-width: 600px;
}

.ifu-content {
  text-align: center;
}

.ifu-content .section-header h3 {
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
  color: var(--color-body);
  line-height: 1.6;
  position: relative;
  padding-bottom: 16px;
}

.ifu-content .section-header h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--color-primary);
}

.privacy-text {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}
.privacy-text h3 {
  margin-top: 2em;
  margin-bottom: 1em;
}
.privacy-text h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.ifu-downloads {
  max-width: 600px;
  margin: 40px auto 0;
}

.ifu-download-card {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px;
}

.ifu-product-image {
  width: 200px;
  flex-shrink: 0;
}

.ifu-download-info h4 {
  font-size: 18px;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: background 0.3s;
}

.btn-download:hover {
  background: var(--color-primary-light);
  color: #fff;
}

.btn-download svg {
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 52px; }
  .hero-text h2 { font-size: 32px; }
  .product-row .product-text { padding: 40px 50px; }
  .news-card { grid-template-columns: 300px 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #171A1D;
    padding: 80px 32px 32px;
    transition: right 0.3s;
    z-index: 999;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero-left {
    padding: 120px 30px 60px;
  }

  .hero-text h1 { font-size: 42px; }
  .hero-text h2 { font-size: 28px; }

  .hero-right {
    height: 300px;
    padding: 0;
  }

  .hero-right img {
    border-radius: 0;
    box-shadow: none;
  }

  /* Values */
  .values-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .values-title {
    text-align: center;
    padding-right: 0;
  }

  .values-title .section-title-green::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Details */
  .details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /* Representatives */
  .representatives-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Products */
  .product-row,
  .product-row-reverse {
    flex-direction: column;
  }

  .product-row .product-image img {
    min-height: 250px;
  }

  .product-row .product-text {
    padding: 30px 20px;
  }

  /* News */
  .news-card {
    grid-template-columns: 1fr;
  }

  .news-image img {
    height: 200px;
  }

  /* Footer */
  .footer-5col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col-spacer {
    display: none;
  }

  .footer-copyright {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  /* Section titles */
  .section-title-green,
  .section-title-white,
  .section-title-center {
    font-size: 28px;
  }

  /* About */
  .about-section { padding: 60px 0; }
  .about-lead { font-size: 15px; }

  /* News */
  .news-image { height: 200px; }
  .news-body { padding: 20px; }
  .news-body h4 { font-size: 18px; }

  /* IFU */
  .ifu-download-card {
    flex-direction: column;
    text-align: center;
  }

  .szechenyi-logo img {
    width: 150px;
  }

  /* Privacy */
  .privacy-text h3 { font-size: 20px; }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .top-bar { font-size: 12px; padding: 6px 0; }
  .hero-text h1 { font-size: 32px; }
  .hero-text h2 { font-size: 22px; }
  .hero-left { padding: 100px 20px 40px; }
  .logo img { height: 60px; }
  .site-header.scrolled .logo img { height: 28px; }
  .representatives-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .section-title-green,
  .section-title-white,
  .section-title-center { font-size: 24px; }
  .footer-logo { width: 140px; }
}
