/* style.css – Unique design for Escuela Dulzura Vital */

/* Root variables define the colour palette and typography for the site */
:root {
  --primary-color: #4a8c5d;      /* sage green */
  --secondary-color: #f28b65;    /* soft coral */
  --light-bg: #fff7e6;           /* cream background */
  --dark-color: #2a3d45;         /* deep slate for text */
  --accent-color: #66b48b;       /* light green highlight */
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Lora', serif;
  --radius: 10px;
}

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

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

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

/* Header styles */
header {
  background-color: var(--primary-color);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

header h1 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

header nav a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

header nav a:hover {
  color: var(--secondary-color);
}

/* Hero section with overlay */
.hero {
  position: relative;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 140, 93, 0.55);
}

.hero-content {
  position: relative;
  color: #fff;
  max-width: 700px;
  padding: 2rem;
}

.hero-content h1 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

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

.btn-primary:hover {
  background-color: #d67a56;
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

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

/* Generic section styling */
section {
  padding: 4rem 1.5rem;
}

.section-title {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
}

/* Container widths for sections */
.about,
.courses-grid,
.benefits-grid,
.ingredients-wrapper,
.mentor-section,
.faq,
.form-section form,
.newsletter-section form {
  max-width: 1000px;
  margin: 0 auto;
}

/* About section */
.about {
  text-align: center;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Courses */
.courses {
  background-color: #fef5ef;
}

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

.course-card {
  background-color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.course-card h3 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.course-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.course-card .price {
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.course-card .btn {
  align-self: flex-start;
}

/* Benefits */
.benefits {
  background-color: #f0f9f4;
}

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

.benefit-card {
  background-color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.benefit-card h4 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.9rem;
}

/* Ingredients */
.ingredients {
  background-color: #fff;
}

.ingredients-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.ingredients-wrapper .text {
  flex: 1 1 300px;
}

.ingredients-wrapper .text p {
  font-size: 1rem;
}

.ingredients-wrapper .image {
  flex: 1 1 300px;
}

.ingredients-wrapper .image img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Mentor */
.mentor {
  background-color: #f5fbfc;
}

.mentor-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.mentor-section img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.mentor-section .info {
  flex: 1 1 300px;
  text-align: center;
}

.mentor-section .info h3 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.mentor-section .info p {
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  background-color: #fff9f3;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h4 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.faq-item p {
  font-size: 0.9rem;
}

/* Contact / Form */
.form-section {
  background-color: #eef5f1;
}

.form-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.form-section label {
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.form-section input,
.form-section select,
.form-section textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
}

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

.form-section .checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.form-section button {
  align-self: flex-start;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1rem;
}

.form-section button:hover {
  background-color: #d67a56;
}

/* Newsletter */
.newsletter {
  background-color: #f7faf9;
}

.newsletter-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-section input[type="email"] {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
}

.newsletter-section .checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.newsletter-section button {
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-section button:hover {
  background-color: #d67a56;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem 1.5rem;
}

footer .footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

footer h4 {
  font-family: var(--heading-font);
  margin-bottom: 0.5rem;
}

footer p {
  font-size: 0.85rem;
}

footer a {
  color: #ffe5d3;
}

footer a:hover {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .courses-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .ingredients-wrapper {
    flex-direction: column;
  }
  .mentor-section {
    flex-direction: column;
  }
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  header nav ul {
    justify-content: flex-start;
  }
}