/* Global Styles */
:root {
  --background-color: #f9f6f2;
  --accent-red: #ff5a5f;
  --accent-teal: #007a87;
  --accent-yellow: #f0b90b;
  --text-color: #333333;
  --heading-color: #111111;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: "Arial", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-red);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  background-color: var(--accent-red);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--accent-teal);
  color: white;
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--heading-color);
}

/* Burger Menu */
.hamburger {
  display: none;
}

#burger-check {
  display: none;
}

nav ul {
  display: flex;
  list-style-type: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
}

/* Hero Section */
.hero {
  background-image: url("./img/svZXw.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 8rem 0;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  color: var(--accent-teal);
}

/* Benefits Section */
.benefits {
  padding: 5rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
}

.benefit-card img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

/* Steps Section */
.steps {
  padding: 5rem 0;
  background-color: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.step-card {
  position: relative;
  padding: 2rem;
  padding-left: 4rem;
}

.step-number {
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--accent-yellow);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-card .quote {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: bold;
  color: var(--accent-teal);
}

/* Contact Form Section */
.contact {
  padding: 5rem 0;
  background-color: white;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.5rem;
}

/* Custom styling for select options */
.form-group select option {
  background-color: var(--background-color);
  padding: 0.5rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input {
  margin-right: 0.5rem;
  margin-top: 0.3rem;
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  position: relative;
  display: block;
  width: 100%;
  padding: 1rem;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--background-color);
}

.faq-question label {
  display: block;
  padding-right: 2rem;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-checkbox {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: white;
  transition: max-height 0.3s ease;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-checkbox:checked ~ .faq-question::after {
  content: "−";
}

.faq-answer-content {
  padding: 1rem;
}

/* Footer */
footer {
  background-color: var(--heading-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style-type: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #ccc;
}

.footer-column a:hover {
  color: var(--accent-yellow);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Gracias Page */
.gracias-container {
  margin: 8rem auto 5rem;
  max-width: 600px;
  text-align: center;
  padding: 3rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
}

/* Policy Pages */
.policy-container {
  margin: 3rem auto;
  max-width: 800px;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--heading-color);
  color: white;
  padding: 1rem;
  z-index: 2000;
  display: none;
}

.cookie-popup.active {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-text {
  margin-right: 1rem;
}

.cookie-btns button {
  margin-left: 0.5rem;
}

/* Media Queries */
@media (max-width: 768px) {
  /* Burger Menu */
  .hamburger {
    display: block;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px 0;
    transition: all 0.3s;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s;
  }

  #burger-check:checked ~ nav {
    max-height: 300px;
  }

  #burger-check:checked ~ label .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #burger-check:checked ~ label .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #burger-check:checked ~ label .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  nav ul {
    flex-direction: column;
    padding: 1rem;
  }

  nav ul li {
    margin: 0;
    margin-bottom: 1rem;
  }

  /* Hero Section */
  .hero h1 {
    font-size: 2.2rem;
  }

  /* Cookie Popup */
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-text {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}
