/*
 * Stílusfájl a MozgásKözösség 45+ weboldalhoz.
 * A színpaletta meleg korall és mély lila árnyalatokból áll,
 * amelyek energia és harmónia érzetét keltik. A betűtípusok
 * a Raleway (címsorok) és a Lato (szövegek) családokból származnak.
 */

/* Alapértelmezett változók */
:root {
  --primary: #f88379;       /* korall */
  --secondary: #5c4d9d;     /* mély lila */
  --accent: #b39cd0;        /* levendula */
  --dark: #2d2a32;          /* sötét háttér a lábléchez */
  --light: #f7f4f8;         /* világos háttér a kártyákhoz */
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3 {
  font-family: 'Raleway', sans-serif;
  margin: 0 0 0.5rem;
  color: var(--secondary);
}

a {
  color: var(--secondary);
  text-decoration: none;
}

/* Konténer a tartalom számára */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero szakasz */
.hero {
  position: relative;
  height: 70vh;
  background: url('images/hero_bg.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.8rem;
  color: #fff;
}

.tagline {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  color: #f0e9f5;
}

.mentor {
  font-size: 1rem;
  margin: 0.3rem 0 1.2rem;
  color: #e6d5f5;
}

.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background: #d96d6d;
}

/* Általános szakaszok */
section {
  padding: 3rem 0;
}

.about {
  background: #fdfbfe;
  color: #333;
}

.about h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* Programok */
.programs {
  background: #fff;
}

.programs h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.programs p {
  text-align: center;
  margin-bottom: 2rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.program-card {
  background: var(--light);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.program-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.program-card p {
  flex-grow: 1;
  margin-bottom: 0.8rem;
}

.program-card .price {
  font-weight: bold;
  color: var(--secondary);
  margin-top: auto;
}

/* Gallery */
.gallery {
  background: #fbf9fc;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery figure {
  margin: 0;
  background: var(--light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  background: #fff;
  color: #555;
}

/* Contact */
.contact h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.contact p {
  text-align: center;
  margin-bottom: 2rem;
}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: 'Lato', sans-serif;
}

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

.checkbox-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.checkbox-wrapper input[type="checkbox"] {
  margin-right: 0.5rem;
}

.submit-btn {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #4b3f78;
}

/* Reviews */
.reviews {
  background: #fdfbfe;
}

.reviews h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.reviews-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.reviews-list li {
  padding: 1rem;
  margin-bottom: 0.8rem;
  background: var(--light);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.reviews h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.popup-content {
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close-popup {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.close-popup:hover {
  background: #d96d6d;
}

/* Thank you page */
.thank-you {
  padding: 5rem 0;
  text-align: center;
  background: #fbf9fc;
}

.thank-you h1 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

.thank-you p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Privacy page */
.privacy {
  padding: 3rem 0 5rem;
  background: #fdfbfe;
}

.privacy h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.privacy h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.privacy p, .privacy ul {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.privacy ul {
  padding-left: 1.2rem;
}

/* Footer */
.footer {
  background: var(--dark);
  color: #eae0f5;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer h3 {
  margin-top: 0;
  color: #fff;
}

.footer-left p,
.footer-right p,
.footer-right a {
  margin: 0.4rem 0;
}

.footer-right a {
  color: #eac6e8;
  text-decoration: underline;
}

/* Responsív elrendezés */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}