/* Global styles */
:root {
  --bg-main: #f2f0ff;
  --accent-yellow: #ffc542;
  --accent-purple: #8b60ff;
  --accent-orange: #ff7360;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --border-light: #eae4ff;
  --bg-alt: #fef9f3;
  --shadow-soft: 0 10px 25px rgba(139, 96, 255, 0.1);
  --shadow-medium: 0 15px 35px rgba(139, 96, 255, 0.15);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-main);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

h1 {
  font-size: 4.8rem;
}

h2 {
  font-size: 3.6rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent-yellow);
  border-radius: 2px;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

p {
  margin-bottom: 2rem;
}

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-orange);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1.6rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--accent-purple);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-orange);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: #ffbb20;
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  color: var(--text-dark);
}

/* Header */
header {
  background-color: rgba(242, 240, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 1.5rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-purple);
  text-transform: lowercase;
  letter-spacing: -1px;
}

.logo span {
  color: var(--accent-orange);
}

/* Navigation - with checkbox hack for mobile menu */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--accent-purple);
  height: 3px;
  width: 25px;
  position: relative;
  border-radius: 2px;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}

.nav-toggle-label span::before {
  bottom: 8px;
}

.nav-toggle-label span::after {
  top: 8px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

nav li {
  position: relative;
}

nav a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.6rem;
}

nav a:hover {
  color: var(--accent-purple);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: -80px;
  padding-top: 80px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero p {
  font-size: 2rem;
  margin-bottom: 3rem;
}

/* Section Styling */
section {
  padding: 8rem 0;
}

section:nth-child(even) {
  background-color: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--text-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.service-card-image {
  height: 200px;
  background-position: center;
  background-size: cover;
}

.service-card-content {
  padding: 2rem;
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-card {
  background: var(--text-light);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 2rem;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--text-light);
  border-radius: 10px;
  padding: 3rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 8rem;
  position: absolute;
  top: 0;
  left: 20px;
  line-height: 1;
  color: var(--border-light);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.testimonial-author-title {
  font-size: 1.4rem;
  opacity: 0.7;
}

/* FAQ Section with CSS-only accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-question {
  background: var(--text-light);
  padding: 2rem;
  display: block;
  width: 100%;
  text-align: left;
  position: relative;
  font-weight: 600;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 2.2rem;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.faq-checkbox {
  display: none;
}

.faq-answer {
  background: var(--text-light);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-checkbox:checked ~ .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer-inner {
  padding: 0 2rem 2rem 2rem;
}

/* Contact Form Section */
.form-section {
  background-color: var(--text-light);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
  background-color: var(--text-light);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  font-size: 1.6rem;
  color: var(--text-dark);
  background: #fff;
  transition: var(--transition);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b60ff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  padding-right: 3rem;
}

/* Customize select options background color */
.form-select option {
  background-color: var(--accent-purple);
  color: var(--text-light);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 96, 255, 0.2);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.form-checkbox {
  margin-right: 1rem;
  margin-top: 0.3rem;
}

.form-checkbox-label {
  font-size: 1.4rem;
}

.form-submit {
  width: 100%;
  padding: 1.5rem;
  border: none;
  border-radius: 5px;
  background-color: var(--accent-purple);
  color: var(--text-light);
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background-color: var(--accent-orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* Error message */
.form-error {
  color: var(--accent-orange);
  font-size: 1.4rem;
  margin-top: 0.5rem;
}

/* Contact Info Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--text-light);
  border-radius: 10px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.contact-card img {
  width: 60px;
  height: 60px;
  margin: 0 auto 2rem;
}

/* Map section */
.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  margin-top: 4rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  background-color: #342d59;
  color: var(--text-light);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-column h4 {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 1rem;
}

.footer-column a {
  color: var(--text-light);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-column a:hover {
  opacity: 1;
  color: var(--accent-yellow);
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 400px;
  background: var(--text-light);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition: var(--transition);
}

.cookie-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-popup p {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.accept-cookies {
  background-color: var(--accent-purple);
  color: var(--text-light);
}

.accept-cookies:hover {
  background-color: var(--accent-orange);
}

.reject-cookies {
  background-color: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}

.reject-cookies:hover {
  background-color: var(--border-light);
}

/* Policy pages styling */
.policy-container {
  max-width: 900px;
  margin: 12rem auto 5rem;
  padding: 4rem;
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
}

.policy-container h1 {
  font-size: 3.6rem;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 2rem;
}

.policy-container h2 {
  font-size: 2.4rem;
  margin: 3rem 0 1.5rem;
}

.policy-container h3 {
  font-size: 2rem;
  margin: 2.5rem 0 1.5rem;
}

.policy-container ul,
.policy-container ol {
  margin-left: 2rem;
  margin-bottom: 2rem;
}

.policy-container li {
  margin-bottom: 0.8rem;
}

.policy-date {
  margin: 3rem 0;
  font-style: italic;
  font-size: 1.4rem;
}

/* Thank you page */
.thank-you-container {
  max-width: 800px;
  margin: 11rem auto 3rem;
  padding: 5rem;
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
  text-align: center;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--accent-purple);
  margin-bottom: 2rem;
}

.thank-you-container h1 {
  margin-bottom: 2rem;
}

.thank-you-container p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
}

/* Media Queries */
@media (max-width: 991px) {
  html {
    font-size: 56.25%; /* 9px = 0.9rem */
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%; /* 8px = 0.8rem */
  }

  .nav-toggle-label {
    display: block;
    margin-right: 1rem;
    z-index: 2001;
  }

  nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--text-light);
    box-shadow: var(--shadow-medium);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
    padding: 10rem 2rem 2rem;
  }

  .nav-toggle:checked ~ nav {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    gap: 2rem;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    font-size: 2rem;
    padding: 1rem;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .hero p {
    font-size: 1.8rem;
  }

  .form-container {
    padding: 3rem 2rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 6rem 0;
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .hero {
    min-height: 500px;
  }

  .policy-container {
    padding: 3rem 2rem;
    margin: 10rem auto 3rem;
  }

  .policy-container h1 {
    font-size: 2.8rem;
  }

  .thank-you-container {
    padding: 3rem 2rem;
  }

  .cookie-popup {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 1.5rem;
  }

  .cookie-buttons {
    flex-direction: column;
  }
}
