/*
 * Style sheet for MozgásPillér 45+
 * Uses a vibrant yet calming palette with purple, teal and beige tones.
 * Typography: Josefin Sans for headings, Asap for body text.
 * Responsive design ensures the layout adapts smoothly to all devices.
 */

:root {
  --color-primary: #5c2a69; /* deep purple */
  --color-secondary: #007c74; /* teal */
  --color-accent: #f2c66d; /* golden beige */
  --color-light: #faf7f1; /* off-white for backgrounds */
  --color-dark: #2e1a33; /* dark purple for footer */
  --font-heading: 'Josefin Sans', sans-serif;
  --font-body: 'Asap', sans-serif;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: #333;
  background-color: var(--color-light);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}

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

.hero-overlay {
  background: rgba(44, 23, 54, 0.5);
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 90%;
}

.hero h1 {
  margin-bottom: 0.2rem;
  color: #ffffff;
}
.hero p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.cta-btn {
  background-color: var(--color-secondary);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.cta-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

/* Info section */
.info {
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.info p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Programs section */
.programs {
  background-color: #ffffff;
  padding: 3rem 1rem;
}
.programs .program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.program-card {
  background-color: var(--color-light);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.program-card h3 {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}
.program-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.program-card .price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* Gallery section */
.gallery {
  padding: 3rem 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Contact section */
.contact {
  background-color: var(--color-light);
  padding: 3rem 1rem;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: flex;
  flex-direction: column;
}
.form-row label {
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.form-row input,
.form-row textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.checkbox-row {
  flex-direction: row;
  align-items: center;
}
.checkbox-row input {
  margin-right: 0.5rem;
}
.submit-btn {
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 1rem;
  transition: background 0.3s;
}
.submit-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

/* Reviews section */
.reviews {
  padding: 3rem 1rem;
  background-color: #ffffff;
}
.review-list {
  list-style: none;
  margin-bottom: 2rem;
}
.review-list li {
  margin-bottom: 1rem;
  background-color: var(--color-light);
  padding: 1rem;
  border-left: 4px solid var(--color-secondary);
  border-radius: 4px;
}
.review-list strong {
  color: var(--color-primary);
}
.add-review form {
  max-width: 600px;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Popup styling */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.popup-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
}
.close-popup {
  margin-top: 1rem;
  background-color: var(--color-secondary);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 25px;
  cursor: pointer;
}

/* Footer styling */
footer {
  background-color: var(--color-dark);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}
footer a {
  color: var(--color-accent);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.4rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  .hero {
    height: 50vh;
  }
  .gallery-grid img {
    height: 150px;
  }
}
