/* Base Styles and Variables */
:root {
  --primary-color: #2f0a53; /* indigo-violet */
  --accent-yellow: #f9e900;
  --accent-coral: #ff644c;
  --accent-turquoise: #07a88e;
  --background-light: #f6f6f6;
  --background-dark: #1e1e1e;
  --text-light: #ffffff;
  --text-dark: #333333;
  --font-primary: "Arial", sans-serif;
  --font-secondary: "Georgia", serif;
  --transition: all 0.3s ease;
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Base HTML Rules */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-turquoise);
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 10px;
  text-align: center;
  margin-bottom: 40px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-yellow);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-coral);
  color: var(--text-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-cookie {
  background-color: var(--accent-turquoise);
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 8px 15px;
}

.btn-cookie:hover {
  background-color: var(--primary-color);
}

/* Header */
.site-header {
  background-color: var(--text-light);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.logo-text:hover {
  color: var(--accent-coral);
}

/* Navigation */
.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 20px;
}

.nav-list a {
  font-weight: 600;
  color: var(--text-dark);
}

.nav-list a:hover {
  color: var(--accent-coral);
}

.nav-cta {
  background-color: var(--primary-color);
  color: var(--text-light) !important;
  padding: 8px 20px;
  border-radius: 30px;
}

.nav-cta:hover {
  background-color: var(--accent-coral);
  color: var(--text-light) !important;
}

.language-switcher select {
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--primary-color);
  background-color: var(--text-light);
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition);
}

.menu-icon span:nth-child(1) {
  top: 0px;
}

.menu-icon span:nth-child(2) {
  top: 8px;
}

.menu-icon span:nth-child(3) {
  top: 16px;
}

/* Hero Section */
.hero {
  background: url("./img/98wW0.jpg") no-repeat center center/cover;
  height: 80vh;
  position: relative;
  color: var(--text-light);
  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(47, 10, 83, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Sections Padding */
section {
  padding: 80px 0;
}

/* About Section */
.about {
  background-color: var(--background-light);
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-text {
  max-width: 800px;
  text-align: center;
}

/* Services Section */
.services {
  background-color: var(--text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--background-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-card h3 {
  padding: 20px 20px 10px;
}

.service-card p {
  padding: 0 20px 20px;
}

.service-card .btn {
  margin: 0 20px 20px;
}

/* Why Us Section */
.why-us {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.why-us h2 {
  color: var(--text-light);
}

.why-us h2::after {
  background-color: var(--accent-coral);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.benefit-item h3 {
  color: var(--accent-yellow);
  margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--background-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-secondary);
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-card p {
  position: relative;
  z-index: 1;
}

.client-name {
  font-weight: 700;
  color: var(--primary-color);
  text-align: right;
}

/* FAQ Section */
.faq {
  background-color: var(--text-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.faq-toggle {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-question {
  display: block;
  position: relative;
  padding: 20px;
  background-color: var(--background-light);
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-toggle:checked + .faq-question::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: var(--text-light);
  transition: max-height 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 20px;
}

/* Contact Section */
.contact {
  background-color: var(--background-light);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info ul {
  list-style: none;
  margin-bottom: 20px;
}

.contact-info ul li {
  margin-bottom: 10px;
}

.contact-form {
  flex: 1;
  min-width: 280px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-primary);
  font-size: 1rem;
}

.form-group select {
  background-color: var(--text-light);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
}

/* Customize select options background */
.form-group select option {
  background-color: var(--background-light);
}

.checkbox-group {
  margin-top: 10px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.checkbox-container input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-container label {
  margin-bottom: 0;
  font-weight: normal;
}

/* Footer */
.site-footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1;
  margin-bottom: 20px;
  min-width: 250px;
  padding: 0 15px;
}

.footer-section h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-coral);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--accent-turquoise);
}

.footer-section a:hover {
  color: var(--accent-coral);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 15px;
  z-index: 1000;
  display: none;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
}

.cookie-content a {
  color: var(--accent-turquoise);
}

.cookie-content a:hover {
  color: var(--accent-coral);
}

/* Policy Pages */
.policy-section {
  padding: 60px 0;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--text-light);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.policy-date {
  color: #777;
  margin-bottom: 30px;
  font-style: italic;
}

.policy-text h2 {
  font-size: 1.5rem;
  text-align: left;
  margin-bottom: 20px;
  padding-bottom: 5px;
}

.policy-text h2::after {
  left: 0;
  transform: none;
  width: 60px;
}

.policy-text h3 {
  font-size: 1.2rem;
  margin-top: 30px;
}

.policy-text ul,
.policy-text ol {
  margin-bottom: 20px;
  margin-left: 20px;
}

.policy-text li {
  margin-bottom: 5px;
}

.policy-text a {
  color: var(--accent-turquoise);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.cookie-table th {
  background-color: var(--background-light);
  color: var(--primary-color);
}

/* Thanks Section */
.thanks-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-light);
}

.thanks-box {
  background-color: var(--text-light);
  padding: 40px;
  text-align: center;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  max-width: 600px;
  margin: 0 auto;
}

.thanks-box h1 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.thanks-box .btn {
  margin-top: 20px;
}

/* Media Queries */
@media screen and (max-width: 991px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 60px 0;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    height: 70vh;
  }

  /* Mobile Navigation */
  .menu-icon {
    display: block;
    z-index: 200;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background-color: #564369;
    z-index: 100;
    transition: var(--transition);
    padding: 80px 30px 30px;
    overflow-y: auto;
  }

  .menu-toggle:checked ~ .main-nav {
    right: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list li {
    margin: 10px 0;
    margin-left: 0;
  }

  .nav-list a {
    color: var(--text-light);
    font-size: 1.2rem;
    display: block;
    padding: 10px 0;
  }

  .nav-cta {
    background-color: transparent;
    border: 2px solid var(--text-light);
    padding: 8px 20px;
    margin-top: 20px;
    display: inline-block;
  }

  /* Services and other grids */
  .benefits-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Contact section */
  .contact-content {
    flex-direction: column;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    padding: 0;
  }

  /* Cookie consent */
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 40px 0;
  }

  .policy-content {
    padding: 20px;
  }
}
