/*
 * Stíluslap az Ízületi Lendület 45+ weboldalhoz.
 * A színpaletta és a tipográfia friss és modern megjelenést biztosít.
 */

:root {
  --color-primary: #006d77;
  --color-secondary: #ff8c42;
  --color-light: #f4efe8;
  --color-dark: #0b3c49;
  --color-accent: #ffc857;
  --max-width: 1200px;
}

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

body {
  font-family: 'Maven Pro', sans-serif;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
}

h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  color: var(--color-dark);
}

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

a:hover {
  text-decoration: underline;
}

/* Navigáció */
.top-nav {
  background-color: var(--color-light);
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 999;
}

.top-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.top-nav li {
  margin: 0.5rem 1rem;
}

.top-nav a {
  font-weight: 500;
  color: var(--color-dark);
}

.top-nav a:hover {
  color: var(--color-primary);
}

/* Hős szakasz */
.hero {
  background-image: url('images/hero_bg.png');
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 109, 119, 0.6);
  padding: 2rem;
  width: 100%;
  max-width: 800px;
  color: #fff;
  border-radius: 8px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: #fff;
}

.btn-secondary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover, .btn-secondary:hover {
  opacity: 0.9;
}

/* Szekciók */
section {
  padding: 3rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* Rólunk */
.about p {
  margin-bottom: 1rem;
  text-align: justify;
}

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

.program-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.program-card p {
  margin-bottom: 0.5rem;
}

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

/* Galéria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Kapcsolat */
.contact form {
  max-width: 600px;
  margin: 0 auto;
}

.contact label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Maven Pro', sans-serif;
}

.contact .consent {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact .consent input {
  margin-right: 0.5rem;
}

.contact .btn-primary {
  margin-top: 0.5rem;
}

/* Vélemények */
.reviews .review-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.review {
  background-color: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.review h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

.review p {
  font-style: italic;
}

.reviews form {
  max-width: 500px;
  margin: 0 auto;
}

.reviews label {
  display: block;
  margin-bottom: 0.5rem;
}

.reviews input,
.reviews textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Maven Pro', sans-serif;
}

.reviews .btn-secondary {
  margin-top: 0.5rem;
}

/* Pop-up */
.popup-overlay {
  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 {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.popup button {
  margin-top: 1rem;
}

/* Láb rész */
footer {
  background-color: var(--color-dark);
  color: #fff;
  padding: 2rem 1rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin-bottom: 0.5rem;
}

.footer-content a {
  color: var(--color-secondary);
}

@media (max-width: 600px) {
  .reviews .review-list {
    grid-template-columns: 1fr;
  }
  .gallery-grid img {
    height: 200px;
  }
}