/* 
 * Main Stylesheet for domain
 * Color Palette:
 * - Main: Lavender-blue (#7B78FF)
 * - Accent: Lime-green (#D2FF00)
 * - Background: Cream (#FFF6E5)
 * - Font: Charcoal (#2E2E2E)
 * - Buttons: Turquoise-green (#00C9A7)
 */

/* Base Styles */
:root {
  --main-color: #7b78ff;
  --accent-color: #d2ff00;
  --bg-color: #fff6e5;
  --font-color: #2e2e2e;
  --button-color: #00c9a7;
  --shadow-light: rgba(46, 46, 46, 0.1);
  --shadow-dark: rgba(46, 46, 46, 0.2);
}

/* Scroll behavior */
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: "Arial", sans-serif;
  background-color: var(--bg-color);
  color: var(--font-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 20px;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--main-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--button-color);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-size: 16px;
}

.btn:hover {
  background-color: var(--main-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow-light);
}

section {
  padding: 80px 0;
}

/* Header Styles */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(255, 246, 229, 0.95);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow-light);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.logo a {
  font-size: 32px;
  font-weight: bold;
  color: var(--main-color);
  letter-spacing: 1px;
  text-transform: lowercase;
}

.logo a:hover {
  color: var(--accent-color);
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 25px;
}

.main-nav a {
  color: var(--font-color);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--main-color);
}

.main-nav a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

.main-nav a:hover:after,
.main-nav a.active:after {
  width: 100%;
}

/* Mobile Menu */
.menu-checkbox {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

.menu-icon span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--font-color);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 80px; /* Adjust for fixed header */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about {
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
}

/* Services Section */
.services {
  background-color: var(--bg-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px var(--shadow-light);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  margin-bottom: 15px;
  color: var(--main-color);
}

/* Advantages Section */
.advantages {
  background-color: white;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background-color: var(--bg-color);
  box-shadow: 0 5px 15px var(--shadow-light);
  transition: all 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-dark);
}

.advantage-icon {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--main-color);
}

/* Form Section */
.order-form {
  background: linear-gradient(
    135deg,
    var(--main-color) 0%,
    var(--button-color) 100%
  );
  color: white;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 20px;
  background-color: white;
  box-shadow: 10px 10px 30px var(--shadow-dark),
    -10px -10px 30px rgba(255, 255, 255, 0.5);
  position: relative;
}

.form-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--accent-color),
    var(--main-color),
    var(--button-color),
    var(--accent-color)
  );
  z-index: -1;
  border-radius: 22px;
  background-size: 400% 400%;
  animation: gradientBorder 12s ease infinite;
}

@keyframes gradientBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.form-title {
  color: var(--font-color);
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--font-color);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background-color: #f8f8f8;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(123, 120, 255, 0.2);
  outline: none;
}

.form-control.select {
  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 center;
}

.form-control.select option {
  background-color: white;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input {
  margin-top: 5px;
  margin-right: 10px;
}

.checkbox-group label {
  font-size: 14px;
}

.checkbox-group a {
  color: var(--main-color);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  background-color: var(--button-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background-color: var(--main-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow-light);
}

form label {
  color: var(--font-color);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--bg-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-light);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-info h4 {
  margin-bottom: 0;
  font-size: 18px;
}

.testimonial-author-info p {
  font-size: 14px;
  color: #777;
}

/* FAQ Section */
.faq {
  background-color: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px var(--shadow-light);
}

.faq-question {
  position: relative;
  padding: 20px;
  background-color: var(--bg-color);
  cursor: pointer;
  font-weight: bold;
}

.faq-checkbox {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-label {
  display: block;
  position: relative;
  cursor: pointer;
  padding-right: 30px;
}

.faq-label::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: white;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 20px 20px;
}

.faq-checkbox:checked ~ .faq-label::after {
  content: "-";
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
}

/* Contact Section */
.contact {
  background-color: var(--bg-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info {
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-light);
}

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--main-color);
}

.contact-info ul {
  list-style: none;
}

.contact-info li {
  margin-bottom: 15px;
}

.contact-map {
  height: 100%;
  min-height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-light);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  background-color: #2e2e2e;
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-about h3 {
  color: var(--accent-color);
  font-size: 28px;
  margin-bottom: 20px;
}

.footer-contact h4,
.footer-links h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 20px;
  position: relative;
}

.footer-contact h4:after,
.footer-links h4:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
}

.footer-contact ul,
.footer-links ul {
  list-style: none;
}

.footer-contact li,
.footer-links li {
  margin-bottom: 15px;
}

.footer-contact a,
.footer-links a {
  color: #ddd;
  transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-links a:hover {
  color: var(--accent-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: var(--bg-color);
  padding: 15px;
  box-shadow: 0 -5px 20px var(--shadow-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transition: bottom 0.5s ease;
}

.cookie-banner.active {
  bottom: 0;
}

.cookie-banner p {
  margin-right: 20px;
}

/* Policy Pages and Thank You Page */
.policy-page {
  padding: 150px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-light);
  position: relative;
}

.policy-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--main-color), var(--button-color));
  z-index: -1;
  border-radius: 22px;
}

.policy-title {
  margin-bottom: 30px;
  text-align: center;
  color: var(--main-color);
}

/* Thank you page */
.thank-you-page {
  text-align: center;
}

.thank-you-page h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.thank-you-page p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  /* Mobile Menu */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 1000;
    padding: 80px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px var(--shadow-light);
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li {
    margin: 10px 0;
  }

  .menu-icon {
    display: block;
  }

  #menu-toggle:checked ~ .main-nav {
    right: 0;
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Hero Section */
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 18px;
  }

  /* Sections */
  section {
    padding: 60px 0;
  }
}
