/* ==== RESET / NORMALIZÁLÁS ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* border: red solid 1px; Debugging purpose */
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==== VÁLTOZÓK ==== */
:root {
  --white: #ffffff;
  --black: #090909;
  --blue: #07057a;
  --green: #158000;
  --gray-light: #bdb9b9;
  --gray-mid: #918d8d;

  --borderStyle: none;
}

.wrapper {
  width: 80%;
  max-width: 1400px;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.02);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* ==== SZEKCIÓ ELVÁLASZTÓ ==== */
section + section {
  border-top: 1px solid var(--gray-light);
}

/* ==== HEADER ==== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 0.5rem 0;
  border-style: var(--borderStyle)
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  border-style: var(--borderStyle)
}

.logo img {
  height: 120px;
  width: auto;
  display: block;
  border-style: var(--borderStyle);
}

.main-nav {
  display: flex;
  align-items: center;
  padding-bottom: 2px;
  border-style: var(--borderStyle)
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  font-size: 1rem;
}

/* ==== HERO ==== */
.hero {
  background-image: url('../images/hero_background.png');
  color: var(--white);
  padding: 2.5rem 0 3.5rem 0;
  text-align: center;
  border-style: var(--borderStyle)
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ==== MANIFESTÓ (SLIDESHOW) ==== */
.manifesto {
  text-align: center;
  background-color: var(--white);
  padding: 4rem 2rem;
  border-style: var(--borderStyle)
}

.manifesto-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-slide {
  display: none;
  animation: fade 0.5s ease-in-out;
}

.manifesto-slide.active {
  display: block;
}

.manifesto-slide h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.manifesto-slide p {
  color: var(--gray-mid);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.manifesto-heading {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 600;
  color: var(--black);
}

.slider-dots {
  text-align: center;
  margin-top: 2rem;
}

.slider-dots .dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background-color: var(--gray-light);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
  background-color: var(--blue);
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==== SERVICE GRID ==== */
.services-intro h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border-style: var(--borderStyle)
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.service-tile {
  background: var(--white);
  border: 1px solid var(--white);
  padding: 2rem;
  width: 300px;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-tile img {
  max-width: 100px;
  height: auto;
  margin-bottom: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.service-tile h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ==== CTA BLOKKOK ==== */
.knowledge-intro {
  background-color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  border-style: var(--borderStyle)
}

.knowledge-intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.knowledge-intro p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.cta.light-bg {
  background-color: var(--white);
}

.cta {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--white);
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cta p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ==== FOOTER ==== */
.site-footer {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-size: 1rem;
  padding: 0.1rem 1rem;
  border-top: 1px solid var(--gray-light);
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}


/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
  }

  .site-header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo img {
    height: 80px;
    margin-bottom: 1rem;
  }

  .service-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* ==== BUTTONS ==== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: #1e9900;
}

.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
}

.service-details {
  padding: 4rem 2rem;
  background: var(--white);
}

.service-block + .service-block {
  margin-top: 4rem;
  border-top: 1px solid var(--gray-light);
  padding-top: 3rem;
}

.service-block h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.service-block p {
  max-width: 800px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.decision-support {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
}

.decision-support > div {
  flex: 1 1 300px;
}

.decision-support h3, .decision-support h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--blue);
}

.decision-support ul {
  list-style: none;
  padding: 0;
}

.decision-support li {
  padding: 0.5rem 0;
  font-size: 1rem;
}

.icon {
  font-weight: bold;
  color: var(--green);
  display: inline-block;
  width: 1.2rem;
}

.cons .icon {
  color: var(--gray-mid);
}

.package-options {
  margin-top: 2rem;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 6px;
}

.package-options h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.package-options ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.service-details {
  padding: 4rem 2rem;
  background: var(--white);
}

.service-block + .service-block {
  margin-top: 6rem;
  border-top: 1px solid var(--gray-light);
  padding-top: 4rem;
}

.service-block h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.service-block p {
  max-width: 800px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.package-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.package {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px; /* vagy ami illeszkedik */
}

.package h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.package p {
  font-size: 1rem;
  color: #444;
  flex-grow: 1;
}

.card-btn {
  margin-top: 1.5rem;
  text-align: center;
}

.card-btn .btn-secondary {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
  transition: all 0.3s ease;
}

.card-btn .btn-secondary:hover {
  background: var(--green);
  color: white;
}


.note {
  margin-top: 2rem;
  font-style: italic;
  color: var(--gray-mid);
  font-size: 1rem;
}

.contact-section {
  padding: 4rem 2rem;
  background-color: var(--white);
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  font-size: 1rem;
}

.form-group.checkbox {
  display: flex;
  align-items: center;
}

.form-group.checkbox input {
  margin-right: 0.5rem;
}

.contact-info {
  margin-top: 3rem;
  font-size: 1rem;
  color: var(--gray-mid);
}

/* ==== FOOTER – BŐVÍTETT STÍLUSOK ==== */
.site-footer {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-size: 1rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--gray-light);
}

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.site-footer p {
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-footer ul li a:hover {
  color: var(--gray-light);
}

.site-footer .copyright {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gray-light);
}

/* --- Subnav (ragadós szekció-menü) --- */
.subnav {
  position: sticky;
  top: 0;                 /* ha van fix topbarod, állítsd ennek megfelelően */
  z-index: 9;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
}
.subnav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  margin: 0;
}
.subnav a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}
.subnav a[aria-current="true"],
.subnav a.active {
  background: #f3f5f7;
  border: 1px solid var(--gray-light);
}

/* --- Horgonylinkekre szép görgetés és offset --- */
html {
  scroll-behavior: smooth;
}
.service-block {
  scroll-margin-top: 80px; /* hogy a sticky subnav ne takarja ki a címet */
}

/* --- Apró tipó tisztítás a szolgáltatás oldalon --- */
.service-details h2 {
  line-height: 1.25;
}
.package-list { align-items: stretch; }
.package { display: flex; flex-direction: column; }
.package h3 { margin-top: 0; }

