/* 
 * Vortol - Strukturált Kutatási Elrendezés
 * Az egészséges testsúly megértése és fenntartása
 * Főszínpaletta: #3F474F (grafitszürke) | #7BB439 (zöld) | #F3A712 (narancs) | #E0E0E0 (világosszürke)
 */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: #ffffff;
  color: #3F474F;
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.3px;
}

/* ===== TIPOGRÁFIA ===== */

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  margin-top: 3rem;
  letter-spacing: -0.5px;
  color: #3F474F;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
  color: #3F474F;
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  color: #3F474F;
}

h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #3F474F;
}

p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: #3F474F;
}

a {
  color: #7BB439;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

a:hover {
  color: #F3A712;
  text-decoration: underline;
}

/* ===== HEADER ===== */

header {
  background-color: #3F474F;
  color: #ffffff;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: #7BB439;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  color: #E0E0E0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #7BB439;
  text-decoration: none;
}

nav a.active {
  color: #7BB439;
  border-bottom: 2px solid #7BB439;
  padding-bottom: 0.3rem;
}

/* ===== FOOTER ===== */

footer {
  background-color: #3F474F;
  color: #E0E0E0;
  padding: 80px 40px;
  margin-top: 120px;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: #E0E0E0;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: #7BB439;
}

.footer-contact {
  line-height: 1.8;
  font-size: 0.9rem;
}

.footer-divider {
  height: 1px;
  background-color: #555555;
  margin: 2rem 0;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #A0A0A0;
  border-top: 1px solid #555555;
  padding-top: 2rem;
}

/* ===== MAIN CONTAINER ===== */

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-full {
  width: 100%;
}

/* ===== HERO SECTION ===== */

.hero {
  background: linear-gradient(135deg, rgba(63, 71, 79, 0.85), rgba(123, 180, 57, 0.2)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%233F474F" width="1200" height="600"/></svg>');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 120px 40px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: #ffffff;
  font-size: 4rem;
  margin-bottom: 2rem;
}

.hero p {
  color: #E0E0E0;
  font-size: 1.3rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* ===== SECTION ===== */

section {
  padding: 100px 0;
}

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

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #666666;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== GRID LAYOUTS ===== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.grid-2-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  direction: rtl;
}

.grid-2-reverse > * {
  direction: ltr;
}

/* ===== CARDS ===== */

.card {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: #7BB439;
}

.card h3 {
  color: #3F474F;
  margin-top: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* ===== IMAGES ===== */

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.image-featured {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.image-large {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 4px;
  margin: 40px 0;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: transparent;
  border: 2px solid #7BB439;
  color: #7BB439;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn:hover {
  background-color: #7BB439;
  color: #ffffff;
}

.btn-primary {
  background-color: #7BB439;
  color: #ffffff;
  border-color: #7BB439;
}

.btn-primary:hover {
  background-color: #6BA02F;
  border-color: #6BA02F;
}

.btn-secondary {
  background-color: #F3A712;
  color: #ffffff;
  border-color: #F3A712;
}

.btn-secondary:hover {
  background-color: #D89409;
  border-color: #D89409;
}

/* ===== DIVIDER ===== */

.divider {
  height: 1px;
  background-color: #E0E0E0;
  margin: 60px 0;
}

.divider-accent {
  height: 2px;
  background-color: #F3A712;
  width: 80px;
  margin: 30px 0;
}

/* ===== BLOCKQUOTE ===== */

blockquote {
  border-left: 4px solid #F3A712;
  padding: 30px;
  padding-left: 40px;
  background-color: #F9F9F9;
  font-size: 1.1rem;
  font-style: italic;
  color: #3F474F;
  margin: 30px 0;
  border-radius: 2px;
}

/* ===== LIST STYLES ===== */

ul, ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

/* ===== FORMS ===== */

form {
  max-width: 600px;
  margin: 40px auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #3F474F;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #7BB439;
  box-shadow: 0 0 0 3px rgba(123, 180, 57, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* ===== BACK TO TOP ===== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #7BB439;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  font-size: 1.2rem;
  text-decoration: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #6BA02F;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

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

  .grid-2,
  .grid-2-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .grid-2-reverse {
    direction: ltr;
  }

  nav ul {
    gap: 1.5rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  section {
    padding: 60px 0;
  }

  .image-featured,
  .image-large {
    height: auto;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

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

  h2 {
    font-size: 1.4rem;
  }

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

  .hero {
    padding: 60px 20px;
  }

  .container {
    padding: 0 20px;
  }

  .header-container {
    padding: 0 20px;
  }

  body {
    font-size: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }

  section {
    padding: 40px 0;
  }

  .divider {
    margin: 40px 0;
  }

  footer {
    padding: 40px 20px;
  }
}

/* ===== ANIMATIONS ===== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.scroll-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-animation.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITY CLASSES ===== */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-secondary {
  color: #A0A0A0;
}

.accent-green {
  color: #7BB439;
}

.accent-orange {
  color: #F3A712;
}

.bg-light {
  background-color: #F9F9F9;
}

.bg-secondary {
  background-color: #E0E0E0;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-1 {
  margin-top: 1rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.p-4 {
  padding: 2rem;
}
