/*
  MozgásTudatos 45+ styles
  A világos, modern paletta a mozgékonyság érzetét kelti.
*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: #2d2d2d;
  background-color: #fdfdfd;
}

h1, h2, h3, h4 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  color: #224870;
}

/* Variables */
:root {
  --primary-color: #3da58a; /* zöldes tónus */
  --secondary-color: #f47a60; /* lazacpiros */
  --accent-color: #224870; /* sötétkék */
  --light-bg: #ffffff;
  --dark-text: #2d2d2d;
  --border-radius: 8px;
  --max-width: 1100px;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
}

/* Hero Section */
.hero {
  background-image: url('images/hero_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-bg);
  text-align: center;
}
.hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: var(--border-radius);
}
.hero .site-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}
.hero .hero-tagline {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #fefefe;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.btn-primary {
  background-color: var(--secondary-color);
  color: #fff;
}
.btn-primary:hover {
  background-color: #e2624d;
}
.btn-secondary {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
}
.btn-secondary:hover {
  background-color: #338c74;
}

/* Sections */
section {
  padding: 3rem 0;
}
.intro, .article {
  background-color: var(--light-bg);
}
.intro h2, .article h2 {
  margin-bottom: 1rem;
}

/* Article paragraphs */
.article p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Courses */
.courses {
  background-color: #f7fafa;
}
.courses h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.course {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.course h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}
.course p {
  margin-bottom: 0.5rem;
}
.course .price {
  font-weight: 700;
  color: var(--secondary-color);
  margin-top: auto;
}

/* Images section */
.images .responsive-img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Contact */
.contact h2 {
  margin-bottom: 1rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.contact-form label {
  font-weight: 600;
  color: var(--accent-color);
}
.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}
.contact-form textarea {
  resize: vertical;
}
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.checkbox-wrapper label a {
  color: var(--primary-color);
  text-decoration: underline;
}
.checkbox-wrapper input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

/* Reviews */
.reviews h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.reviews-list {
  list-style: none;
  margin-bottom: 2rem;
}
.reviews-list li {
  background-color: var(--light-bg);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 0.8rem;
}
.review-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.review-form label {
  font-weight: 600;
  color: var(--accent-color);
}
.review-form input,
.review-form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.popup.hidden {
  display: none;
}
.popup-content {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
  background-color: #f3f7f9;
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-info p {
  margin-bottom: 0.3rem;
  color: #555;
}
.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.copyright {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #777;
  text-align: center;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  .hero .site-title {
    font-size: 3rem;
  }
  .hero .hero-tagline {
    font-size: 1.4rem;
  }
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}