/* 
 * Main stylesheet for the mental well-being service website
 * Colors:
 * - Primary: #F34A6F (Velvet Rose)
 * - Accent: #A0E8AF (Mint Cream)
 * - Background: #FFFDF7 (Ivory Dust)
 * - Text: #2E2E3A (Granite)
 * - CTA Buttons: #6930C3 (Electric Violet)
 * - Decorative: #FFB677 (Sun Apricot)
 */

/* Base styles and reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 10px for easier rem calculations */
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #2E2E3A;
  background-color: #FFFDF7;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

h1 {
  font-size: 3.6rem;
}

h2 {
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 0.3rem;
  background-color: #F34A6F;
  border-radius: 0.15rem;
}

h3 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

h4 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 2rem;
}

a {
  color: #6930C3;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: #F34A6F;
  text-decoration: underline;
}

/* Section styling */
section {
  padding: 8rem 0;
}

section:nth-child(even) {
  background-color: #f8f5f0;
}

/* Header styling */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #FFFDF7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 0;
  z-index: 100;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 2.8rem;
  margin: 0;
  font-weight: 800;
  color: #F34A6F;
  text-transform: lowercase;
  letter-spacing: -0.1rem;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

/* Navigation */
.main-nav {
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: #2E2E3A;
  font-weight: 500;
  font-size: 1.6rem;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #F34A6F;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  width: 3rem;
  height: 2.4rem;
  position: relative;
  z-index: 101;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #2E2E3A;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.menu-icon span:nth-child(1) {
  top: 0;
}

.menu-icon span:nth-child(2) {
  top: 1rem;
}

.menu-icon span:nth-child(3) {
  top: 2rem;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background-color: #6930C3;
  color: #FFFDF7 !important;
  padding: 1.2rem 2.4rem;
  border-radius: 5rem;
  font-weight: 600;
  font-size: 1.6rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 6px rgba(105, 48, 195, 0.2);
}

.cta-button:hover, .cta-button:focus {
  background-color: #5829a3;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(105, 48, 195, 0.25);
  text-decoration: none;
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(105, 48, 195, 0.2);
}

/* Hero section */
.hero-section {
  padding-top: 15rem;
  padding-bottom: 8rem;
  background: linear-gradient(135deg, rgba(160, 232, 175, 0.1) 0%, rgba(255, 182, 119, 0.1) 100%);
}

.hero-section .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-content h2 {
  font-size: 4.8rem;
  text-align: left;
  margin-bottom: 2rem;
}

.hero-content h2::after {
  left: 0;
  transform: none;
}

.hero-content p {
  font-size: 2rem;
  margin-bottom: 3rem;
  max-width: 45rem;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Introduction Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.benefit-card {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: #F34A6F;
  height: 8rem;
  width: 8rem;
  background-color: rgba(243, 74, 111, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.benefit-image {
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 1rem;
}

.benefit-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.benefit-card:hover .benefit-image img {
  transform: scale(1.05);
}

/* Icon placeholders - Replace with actual icons or SVGs in production */
.icon-balance::before { content: "⚖️"; }
.icon-growth::before { content: "🌱"; }
.icon-conversation::before { content: "💬"; }
.icon-person::before { content: "👤"; }
.icon-video::before { content: "📹"; }
.icon-group::before { content: "👥"; }
.icon-balance-mind::before { content: "🧘"; }
.icon-relationships::before { content: "🤝"; }
.icon-self-awareness::before { content: "🔍"; }
.icon-resilience::before { content: "🛡️"; }
.icon-location::before { content: "📍"; }
.icon-phone::before { content: "📞"; }
.icon-email::before { content: "✉️"; }

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.service-card {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background-color: #A0E8AF;
}

.service-card.highlighted {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-10px);
}

.service-card.highlighted::before {
  background-color: #F34A6F;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #6930C3;
  height: 7rem;
  width: 7rem;
  background-color: rgba(105, 48, 195, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.service-features {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.service-features li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}

.service-features li::before {
  content: "✓";
  color: #A0E8AF;
  position: absolute;
  left: 0;
}

.service-price {
  font-weight: 700;
  font-size: 2rem;
  color: #6930C3;
}

/* Process Section */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.step-number {
  background-color: #F34A6F;
  color: #FFFDF7;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2.4rem;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.step-content h3 {
  margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  max-width: 80rem;
  margin: 0 auto;
}

.carousel-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 300%;
}

.testimonial-card {
  width: calc(100% / 3);
  padding: 0 2rem;
  flex-shrink: 0;
}

.testimonial-content {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-content::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: 3rem;
  width: 0;
  height: 0;
  border-left: 2rem solid transparent;
  border-right: 2rem solid transparent;
  border-top: 2rem solid #ffffff;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  padding-left: 3rem;
  margin-top: 3rem;
}

.testimonial-author img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1.5rem;
}

.author-info h4 {
  margin-bottom: 0.5rem;
}

.author-info p {
  margin-bottom: 0;
  font-size: 1.4rem;
  color: #666;
}

.carousel-controls {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.carousel-dots {
  display: flex;
  gap: 1rem;
}

.carousel-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: #F34A6F;
}

/* CSS-only carousel animation */
@keyframes carousel {
  0%, 26.66% {
    transform: translateX(0);
  }
  33.33%, 59.99% {
    transform: translateX(-33.33%);
  }
  66.66%, 93.32% {
    transform: translateX(-66.66%);
  }
  100% {
    transform: translateX(0);
  }
}

.carousel-track {
  animation: carousel 15s infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

/* Contact Form Section */
.form-container {
  max-width: 60rem;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 4rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 0.8rem;
  font-size: 1.6rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #6930C3;
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
}

.form-group.checkbox input {
  width: auto;
  margin-right: 1rem;
  margin-top: 0.4rem;
}

.required {
  color: #F34A6F;
}

.submit-button {
  display: inline-block;
  background-color: #6930C3;
  color: #FFFDF7;
  padding: 1.2rem 2.4rem;
  border-radius: 5rem;
  font-weight: 600;
  font-size: 1.6rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  width: 100%;
  box-shadow: 0 4px 6px rgba(105, 48, 195, 0.2);
}

.submit-button:hover {
  background-color: #5829a3;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(105, 48, 195, 0.25);
}

/* Benefits Section */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40rem, 1fr));
  gap: 4rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.benefit-text h3 {
  margin-bottom: 1rem;
}

.benefit-text p {
  margin-bottom: 0;
}

/* FAQ Section */
.faq-container {
  max-width: 80rem;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 2rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.8rem;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 2rem;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 50rem;
}

/* Policy pages */
.policy-section {
  padding: 12rem 0 6rem;
}

.policy-content {
  max-width: 80rem;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 4rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.policy-section h1,
.policy-section h2 {
  text-align: center;
}

.policy-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.policy-section p, 
.policy-section ul, 
.policy-section ol {
  margin-bottom: 2rem;
}

.policy-section ul, 
.policy-section ol {
  padding-left: 2rem;
}

.policy-section address {
  margin-top: 3rem;
  padding: 2rem;
  background-color: #f8f8f8;
  border-radius: 1rem;
}

/* Footer */
.main-footer {
  background-color: #2E2E3A;
  color: #FFFDF7;
  padding: 6rem 0 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 4rem;
}

.footer-section h3 {
  color: #FFFDF7;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 5rem;
  height: 2px;
  background-color: #F34A6F;
}

.footer-section a {
  color: #A0E8AF;
  text-decoration: none;
}

.footer-section a:hover {
  color: #F34A6F;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 1rem;
}

.footer-section address p {
  margin-bottom: 1rem;
}

.copyright {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 1.4rem;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: #2E2E3A;
  color: #FFFDF7;
  padding: 2rem;
  z-index: 1000;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 120rem;
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 0;
  flex-grow: 1;
}

.cookie-accept {
  background-color: #A0E8AF;
  color: #2E2E3A;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-accept:hover {
  background-color: #8ad097;
}

.cookie-learn-more {
  color: #A0E8AF;
  margin-left: 1rem;
  white-space: nowrap;
}

/* Responsive Styles */
@media (max-width: 992px) {
  html {
    font-size: 56.25%; /* 9px */
  }

  .hero-section .container {
    flex-direction: column;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h2 {
    text-align: center;
  }

  .hero-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-content p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .benefit-item {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%; /* 8px */
  }

  .menu-icon {
    display: block;
  }

  .menu-toggle:checked ~ .nav-links {
    transform: translateX(0);
  }
  
  .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    top: 1rem;
    transform: rotate(135deg);
  }
  
  .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
    left: -6rem;
  }
  
  .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    top: 1rem;
    transform: rotate(-135deg);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 25rem;
    flex-direction: column;
    background-color: #FFFDF7;
    padding: 8rem 2rem 2rem;
    z-index: 100;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 1.5rem 0;
  }

  .services-grid,
  .benefits-grid,
  .benefits-list {
    grid-template-columns: 1fr;
  }

  .service-card.highlighted {
    transform: none;
  }

  .form-container {
    padding: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .benefit-item {
    flex-direction: column;
  }

  .benefit-icon {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .hero-content h2 {
    font-size: 3.6rem;
  }

  .hero-content p {
    font-size: 1.8rem;
  }
}