/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2e2a24;
  --primary-light: #4b443b;
  --bg: #faf7f2;
  --card: #f8f4ef;
  --border: #e0d7cd;
  --accent: #c7b5a2;
  --text: #1f1b16;
  --text-light: #4a433b;
  --radius: 28px;
  --shadow: 0 8px 30px rgba(0,0,0,0.05);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 0 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.8; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.5rem;
  flex: 1;
  width: 100%;
}

/* ===== IMAGE STYLES ===== */
.img-responsive {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
}

.img-round {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.img-hero {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s;
  text-align: center;
  min-height: 48px;
  min-width: 48px;
  background: var(--primary);
  color: #fff;
}
.btn:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-block { width: 100%; }

/* ===== HEADER / NAV ===== */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  gap: 0.8rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--border);
  padding: 0.1rem 1.2rem 0.1rem 0.8rem;
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.logo span {
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  font-weight: 500;
  font-size: 1rem;
}
.nav-links a {
  color: var(--text);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}
.nav-links a:hover { border-bottom-color: var(--primary); }

/* ===== SECTIONS ===== */
.section {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.section-title small {
  font-size: 0.85rem;
  font-weight: 400;
  background: var(--border);
  padding: 0.15rem 1rem;
  border-radius: 40px;
  color: var(--text-light);
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ===== HERO ===== */
.hero {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  text-align: center;
  padding: 1.5rem 1rem;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
}
.hero .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.trust-badge {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}
.trust-badge span {
  background: var(--card);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-image-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card .icon { font-size: 2.2rem; display: block; margin-bottom: 0.3rem; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }
.feature-card .feature-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
}

/* ===== TRAINER CARDS ===== */
.trainer-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--border);
}
.trainer-card .avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.6rem;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.trainer-card h3 { font-size: 1.1rem; }
.trainer-card .sub { color: var(--text-light); font-size: 0.9rem; }

/* ===== PRICING ===== */
.pricing-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  border: 1px solid var(--border);
  text-align: center;
}
.pricing-card.popular {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pricing-card.popular .price { color: #fff; }
.pricing-card.popular ul { color: #d6ccc2; }
.pricing-card.popular .btn { background: #fff; color: var(--primary); }
.pricing-card .price {
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0.3rem 0;
}
.pricing-card ul {
  list-style: none;
  margin: 1rem 0;
  text-align: left;
}
.pricing-card ul li {
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-card ul li::before { content: "✅"; font-size: 1rem; }

/* ===== BLOG CARDS ===== */
.blog-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card .blog-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.blog-card p { color: var(--text-light); font-size: 0.95rem; }

/* ===== CONTACT FORM ===== */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  background: #fff;
}
.contact-form textarea {
  border-radius: var(--radius);
  min-height: 100px;
  resize: vertical;
}
.contact-form .btn { width: 100%; }

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 { font-size: 1.8rem; margin: 1.5rem 0 0.5rem; }
.legal-content h3 { font-size: 1.2rem; margin: 1rem 0 0.3rem; }
.legal-content p { margin-bottom: 0.8rem; color: var(--text-light); }
.legal-content ul { margin: 0.5rem 0 1rem 1.5rem; color: var(--text-light); }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0.8rem 0;
}
.footer-links a { color: var(--text-light); font-size: 0.85rem; }
.footer-links a:hover { color: var(--primary); }

/* ===== MODAL / POPUP ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s;
}
.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  background: none;
  border: none;
  line-height: 1;
}
.modal-close:hover { color: var(--primary); }
.modal h2 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  color: var(--primary);
}
.modal p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.modal .form-group {
  margin-bottom: 1rem;
}
.modal .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}
.modal .form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  transition: border 0.2s;
}
.modal .form-group input:focus {
  outline: none;
  border-color: var(--primary);
}
.modal .btn {
  width: 100%;
  margin-top: 0.5rem;
}
.modal .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.modal .success-msg {
  display: none;
  text-align: center;
  padding: 1rem 0;
}
.modal .success-msg .check {
  font-size: 4rem;
  display: block;
  margin-bottom: 0.5rem;
}
.modal .success-msg h3 {
  color: #2e7d32;
  margin-bottom: 0.3rem;
}
.modal .success-msg p {
  color: var(--text-light);
}
.modal .error-msg {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 1000;
  font-size: 0.9rem;
}
.cookie-banner .btn {
  background: #fff;
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  min-height: 40px;
}
.cookie-banner .btn:hover { background: var(--border); }

/* ===== TABOOLA BADGE ===== */
.taboola-badge {
  display: inline-block;
  background: var(--card);
  padding: 0.2rem 1rem;
  border-radius: 40px;
  font-size: 0.75rem;
  color: var(--text-light);
  border: 1px solid var(--border);
}

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed;
  bottom: 80px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: none;
  z-index: 100;
}
.back-top:hover { background: var(--primary-light); }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 3rem; }
  .section { padding: 2rem 2rem; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero { flex-direction: row; text-align: left; align-items: center; justify-content: space-between; }
  .hero h1 { font-size: 3.6rem; }
  .hero p { margin: 0; }
  .hero .btn-group { justify-content: flex-start; }
  .trust-badge { justify-content: flex-start; }
  .container { padding: 1.5rem 1rem; }
  .section { padding: 2.5rem 2.5rem; }
  .hero-image-wrapper { max-width: 400px; }
}

@media (max-width: 480px) {
  .navbar { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .nav-links { justify-content: center; gap: 0.5rem 1rem; }
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
  .pricing-card .price { font-size: 2.2rem; }
  .trainer-card .avatar-img { width: 64px; height: 64px; }
  .modal-content { padding: 1.8rem 1.2rem; }
}