/* Global Styles */
:root {
  --main-bg: #23235b;
  --accent: #55e6c1;
  --text: #f8f1ff;
  --button: #ff6b6b;
  --border: #a29bfe;
  --contrast: #3b3b98;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

section[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--main-bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--button);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin: 1rem auto;
}

section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  background-color: var(--button);
  color: var(--text);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--accent);
  color: var(--main-bg);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--main-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text);
  letter-spacing: 1px;
  text-transform: lowercase;
}

.logo:hover {
  color: var(--accent);
}

.menu {
  display: flex;
  list-style: none;
}

.menu li {
  margin-left: 1.5rem;
}

.menu a {
  color: var(--text);
  font-weight: 500;
}

.menu a:hover {
  color: var(--accent);
}

.cta-button {
  background-color: var(--button);
  color: var(--text) !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.cta-button:hover {
  background-color: var(--accent);
  color: var(--main-bg) !important;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  order: 2;
}

.bar {
  width: 2rem;
  height: 0.25rem;
  background-color: var(--text);
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: url("./img/LHwrA.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  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-color: rgba(35, 35, 91, 0.8);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.about-image:before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border: 2px solid var(--accent);
  border-radius: 8px;
  z-index: -1;
}

/* Services Section */
.services {
  background-color: var(--contrast);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--main-bg);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card img {
  height: 150px;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Advantages Section */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.advantage-card {
  padding: 1.5rem;
  text-align: center;
  background-color: var(--contrast);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.advantage-number {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: bold;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--contrast);
}

.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--main-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-content:before {
  content: '"';
  font-size: 3rem;
  line-height: 0;
  position: relative;
  top: 1rem;
  color: var(--accent);
}

.testimonial-author {
  font-weight: bold;
  color: var(--accent);
}

.testimonial-position {
  font-size: 0.9rem;
  color: var(--border);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background-color: var(--contrast);
  padding: 1rem;
  cursor: pointer;
  position: relative;
  font-weight: bold;
  display: block;
}

.faq-question label {
  display: block;
  padding-right: 2rem;
  cursor: pointer;
}

.faq-question:after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-toggle {
  display: none;
}

.faq-toggle:checked + .faq-question:after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 1rem;
}

/* Form Section */
.form-section {
  background-color: var(--contrast);
}

.form-container {
  max-width: 600px;
  margin: 5rem auto;
  background-color: var(--main-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: var(--main-bg);
  color: var(--text);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2355E6C1' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 01.753 1.659l-4.796 5.48a1 1 0 01-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.form-control option {
  background-color: var(--main-bg);
  color: var(--text);
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.checkbox-group input {
  margin-right: 10px;
}

.error-text {
  color: var(--button);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info {
  padding: 2rem;
  background-color: var(--contrast);
  border-radius: 8px;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.contact-list {
  list-style: none;
}

.contact-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.contact-list span {
  margin-right: 0.5rem;
  color: var(--accent);
}

.map-container {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Footer */
footer {
  background-color: var(--contrast);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--contrast);
  padding: 1.5rem;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookie-content h3 {
  margin-bottom: 0.5rem;
}

.cookie-content p {
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.accept-button {
  background-color: var(--button);
  color: var(--text);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accept-button:hover {
  background-color: var(--accent);
  color: var(--main-bg);
}

.more-info {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
}

/* Policy Pages */
.policy-container {
  max-width: 800px;
  margin: 10rem auto 5rem;
  padding: 2rem;
  background-color: var(--main-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.policy-container h1 {
  margin-bottom: 2rem;
  color: var(--accent);
}

.policy-container h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.policy-container p {
  margin-bottom: 1rem;
}

.policy-container ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

/* Thank you page */
.thank-you {
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.thank-you p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.thank-you-container {
  max-width: 600px;
  margin: 5rem auto;
  padding: 2rem;
  border: 2px solid #007b7f;
  border-radius: 12px;
  background-color: #f9f9f9;
  text-align: center;
  font-family: sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thank-you-container h1 {
  font-size: 2rem;
  color: #007b7f;
  margin-bottom: 1rem;
}

.thank-you-container p {
  font-size: 1.1rem;
  color: #333;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .services-grid,
  .testimonial-slider {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .about-content,
  .contact-content,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .menu-button {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    flex-direction: column;
    background-color: var(--main-bg);
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .menu li {
    margin: 1rem 0;
  }

  .menu-toggle:checked ~ nav .menu {
    right: 0;
  }

  .menu-toggle:checked + .menu-button .bar:nth-child(1) {
    transform: rotate(45deg);
  }

  .menu-toggle:checked + .menu-button .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .menu-button .bar:nth-child(3) {
    transform: rotate(-45deg);
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .services-grid,
  .testimonial-slider,
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .cookie-content {
    flex-direction: column;
  }

  .cookie-buttons {
    margin-top: 1rem;
  }
}
