/*
 * Stylesheet for the "Ruta Sutil" landing page (joint wellness, Spain).
 *
 * This design uses a warm Mediterranean palette of maroon, burnt orange and
 * deep green accented with sage and cream. The layout employs CSS Grid and
 * Flexbox to produce a responsive, airy feel. Sections are clearly separated
 * with generous padding and soft colour blocks to improve readability on
 * desktop and mobile devices. Forms are styled to encourage completion
 * without looking like ecommerce checkout flows.
 */

/* Root colour variables for easy theme adjustments */
:root {
  --colour-primary: #5d3a3a; /* maroon */
  --colour-secondary: #c58b4d; /* burnt orange */
  --colour-tertiary: #3f6a4d; /* forest green */
  --colour-accent: #a7c4bc; /* muted sage */
  --colour-light: #fbf7ef; /* off‑white */
  --colour-text: #2a2a2a; /* dark text */
  --max-width: 1200px;
  --radius: 8px;
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--colour-text);
  background-color: var(--colour-light);
  line-height: 1.6;
}

a {
  color: var(--colour-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

header {
  background-color: var(--colour-primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

nav li {
  margin: 0;
}

nav a {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--colour-accent);
}

/* Hero section */
.hero {
  position: relative;
  background: url('hero.png') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 1rem;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  z-index: 0;
}

.hero .content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

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

.hero .btn {
  background-color: var(--colour-secondary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.hero .btn:hover {
  background-color: var(--colour-tertiary);
}

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

section:nth-of-type(odd) {
  background-color: var(--colour-light);
}

section:nth-of-type(even) {
  background-color: #fff;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--colour-primary);
  margin-bottom: 2rem;
  font-weight: 700;
}

/* Pillars cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pillar {
  background-color: var(--colour-accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.pillar:hover {
  transform: translateY(-4px);
}

.pillar h3 {
  margin-top: 0;
  color: var(--colour-primary);
  font-size: 1.4rem;
}

.pillar p {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

/* Articles layout */
.articles {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.article {
  background-color: var(--colour-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.article h3 {
  margin-top: 0;
  color: var(--colour-tertiary);
}

.article p {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

/* Story and interview sections */
.story, .interview {
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: var(--colour-light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.story h3, .interview h3 {
  margin-top: 0;
  color: var(--colour-secondary);
}

.story p, .interview p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.interview .question {
  font-weight: 700;
  margin-top: 1rem;
  color: var(--colour-primary);
}

.interview .answer {
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

/* FAQ section */
.faq {
  max-width: var(--max-width);
  margin: 0 auto;
}

.faq-item {
  background-color: var(--colour-accent);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.faq-item h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--colour-primary);
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* Testimonials */
.testimonials {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial {
  background-color: var(--colour-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.testimonial h4 {
  margin-top: 0;
  color: var(--colour-secondary);
  font-size: 1.2rem;
}

.testimonial p {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--colour-light);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

form label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

form input, form textarea, form select {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
}

form textarea {
  resize: vertical;
  height: 120px;
}

form .checkbox-group {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

form .checkbox-group input {
  margin-right: 0.5rem;
  margin-top: 0.2rem;
}

form button {
  background-color: var(--colour-secondary);
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

form button:hover {
  background-color: var(--colour-tertiary);
}

/* About section */
.about {
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: var(--colour-light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.about h3 {
  margin-top: 0;
  color: var(--colour-primary);
}

.about p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Footer */
footer {
  background-color: var(--colour-primary);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

footer a {
  color: var(--colour-accent);
  margin: 0 0.5rem;
  font-size: 0.9rem;
}

footer a:hover {
  color: var(--colour-secondary);
}

/* Cookie bar */
#cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.9);
  color: white;
  padding: 1rem;
  font-size: 0.9rem;
  display: none;
  z-index: 2000;
}

#cookie-bar p {
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

#cookie-bar .actions {
  text-align: right;
}

#cookie-bar button {
  margin-left: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: var(--radius);
  background-color: var(--colour-secondary);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

#cookie-bar button:hover {
  background-color: var(--colour-tertiary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  nav ul {
    gap: 0.5rem;
  }
  nav a {
    font-size: 0.85rem;
  }
  form {
    padding: 1.5rem;
  }
}