/* 
   Color Palette:
   - Primary: #3E2F5B (dark plum)
   - Accent: #FFD54F (bright yellow)
   - Background: #F6F1EB (warm milk)
   - Elements: #9ED8DB (muted turquoise), #FF6F61 (coral orange)
*/

/* Base Styles */
:root {
  --color-primary: #3e2f5b;
  --color-accent: #ffd54f;
  --color-background: #f6f1eb;
  --color-turquoise: #9ed8db;
  --color-coral: #ff6f61;
  --font-main: "Arial", sans-serif;
  --transition-speed: 0.3s;
}

* {
  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: var(--font-main);
  background-color: var(--color-background);
  color: #333;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--color-accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

section {
  padding: 80px 0;
}

/* Button Styles */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-primary);
}

.btn-secondary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--color-accent);
}

/* Header Styles */
.site-header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-text {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-primary);
  text-decoration: none;
}

/* Navigation Styles */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 20px;
}

.nav-list a {
  color: var(--color-primary);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  bottom: 0;
  left: 0;
  transition: width var(--transition-speed) ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.btn-nav {
  background-color: var(--color-accent);
  color: var(--color-primary) !important;
  padding: 8px 16px !important;
  border-radius: 4px;
}

.btn-nav:hover {
  background-color: var(--color-primary);
  color: white !important;
}

.btn-nav::after {
  display: none;
}

/* Hero Section */
.hero-section {
  background-image: linear-gradient(
      rgba(62, 47, 91, 0.7),
      rgba(62, 47, 91, 0.7)
    ),
    url("./img/87B4c.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  margin-top: 60px;
}

.hero-section h1 {
  font-size: 48px;
  color: white;
  margin-bottom: 16px;
}

.hero-section h2 {
  font-size: 32px;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.hero-section p {
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-section {
  background-color: white;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  max-width: 500px;
}

/* Services Section */
.services-section {
  background-color: var(--color-background);
}

.services-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) 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.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-card h3 {
  padding: 20px 20px 10px;
  color: var(--color-primary);
}

.service-card p {
  padding: 0 20px 20px;
  color: #666;
}

.service-card a {
  display: block;
  margin: 0 20px 20px;
  text-align: center;
}

/* Benefits Section */
.benefits-section {
  background-color: var(--color-turquoise);
  color: var(--color-primary);
}

.benefits-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-primary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.benefit-item {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform var(--transition-speed) ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-item h3 {
  color: var(--color-primary);
  margin-bottom: 15px;
}

/* Trust Section */
.trust-section {
  background-color: white;
}

.trust-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.trust-text {
  flex: 3;
}

.trust-stats {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background-color: var(--color-background);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.stat-text {
  font-size: 18px;
  color: #666;
}

/* Form Section */
.form-section {
  background-color: var(--color-background);
}

.form-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-primary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* Custom select styling */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%233E2F5B'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 24px;
}

/* Customize select option background */
.form-group select option {
  background-color: white;
  padding: 12px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 3px;
}

.checkbox-group label {
  display: inline;
  font-weight: normal;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit button {
  padding: 12px 30px;
  font-size: 18px;
}

/* FAQ Section */
.faq-section {
  background-color: white;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 20px;
  background-color: var(--color-background);
  color: var(--color-primary);
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: background-color var(--transition-speed) ease;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  transition: transform var(--transition-speed) ease;
}

.faq-toggle:checked + .faq-question {
  background-color: var(--color-primary);
  color: white;
}

.faq-toggle:checked + .faq-question::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: white;
  transition: max-height var(--transition-speed) ease;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 20px;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--color-background);
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  position: relative;
  padding: 10px 0 20px;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 60px;
  color: var(--color-accent);
  opacity: 0.3;
}

.testimonial-author {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* Map Section */
.map-section {
  padding-bottom: 0;
}

.map-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.map-container {
  height: 450px;
  width: 100%;
}

.map-container iframe {
  border: none;
  width: 100%;
  height: 100%;
}

/* Footer Styles */
.site-footer {
  background-color: var(--color-primary);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info h3 {
  color: white;
}

.footer-info p {
  margin-top: 20px;
}

.footer-contact h4,
.footer-links h4 {
  color: var(--color-accent);
  margin-bottom: 20px;
}

.contact-list,
.legal-links {
  list-style: none;
}

.contact-list li,
.legal-links li {
  margin-bottom: 15px;
}

.contact-list a,
.legal-links a {
  color: white;
}

.contact-list a:hover,
.legal-links a:hover {
  color: var(--color-accent);
}

.contact-label {
  font-weight: bold;
  margin-right: 5px;
  color: var(--color-accent);
}

address {
  font-style: normal;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Cookie Consent Styles */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px;
  z-index: 9999;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-content p {
  margin-right: 20px;
  margin-bottom: 10px;
}

.cookie-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-btn {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

/* Legal Pages Frame */
.legal-frame {
  max-width: 900px;
  margin: 120px auto 60px;
  padding: 40px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-primary);
}

.legal-frame h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--color-primary);
}

/* Thank You Page */
.thank-you-container {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.thank-you-frame {
  max-width: 700px;
  margin: 10rem auto 5rem;
  padding: 40px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-primary);
}

.thank-you-frame h1 {
  color: var(--color-primary);
  margin-bottom: 20px;
}

.thank-you-frame p {
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content,
  .trust-content {
    flex-direction: column;
  }

  .about-image {
    max-width: 100%;
    order: -1;
  }

  .service-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 21px;
  }

  .nav-toggle-label span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
  }

  .nav-toggle-label span:nth-child(1) {
    top: 0px;
  }

  .nav-toggle-label span:nth-child(2) {
    top: 9px;
  }

  .nav-toggle-label span:nth-child(3) {
    top: 18px;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
    left: -60px;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    height: 0;
    overflow: hidden;
    transition: height var(--transition-speed) ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-toggle:checked ~ .main-nav {
    height: auto;
  }

  .nav-list {
    flex-direction: column;
    padding: 20px;
  }

  .nav-list li {
    margin: 10px 0;
  }

  .hero-section h1 {
    font-size: 36px;
  }

  .hero-section h2 {
    font-size: 24px;
  }

  .hero-section {
    min-height: 60vh;
  }

  section {
    padding: 60px 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-list {
    display: inline-block;
    text-align: left;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-btn {
    margin-top: 15px;
  }
}

@media (max-width: 576px) {
  .header-content {
    padding: 10px 0;
  }

  .logo-text {
    font-size: 24px;
  }

  .hero-section h1 {
    font-size: 32px;
  }

  .hero-section h2 {
    font-size: 20px;
  }

  .legal-frame,
  .thank-you-frame {
    padding: 20px;
    margin: 100px 15px 40px;
  }

  .form-container {
    padding: 20px;
  }
}
