/* 
 * Style.css for domain
 * Color palette:
 * - Deep Indigo: #1F1B5C (section backgrounds)
 * - Mint: #2CE6B5 (CTA and accents)
 * - Neutral White: #FAFAFA (content background)
 * - Charcoal: #333333 (main text)
 * - Bright Yellow: #F9DB4A (hovers)
 */

/* Global Styles */
:root {
  --indigo: #1f1b5c;
  --mint: #2ce6b5;
  --white: #fafafa;
  --charcoal: #333333;
  --yellow: #f9db4a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
}

section[id] {
  scroll-margin-top: 80px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--mint);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--indigo);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--yellow);
}

ul {
  list-style-type: none;
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--mint);
  color: var(--indigo);
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.section-bg {
  background-color: var(--indigo);
  color: var(--white);
}

.section-bg h2:after {
  background-color: var(--mint);
}

.section-bg a {
  color: var(--mint);
}

.section-bg a:hover {
  color: var(--yellow);
}

/* Header & Navigation */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--indigo);
  text-transform: lowercase;
}

.logo a:hover {
  color: var(--mint);
}

/* Burger Menu with Checkbox Hack */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  padding: 15px;
  z-index: 101;
  position: relative;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--indigo);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.main-nav ul {
  display: flex;
}

.main-nav ul li {
  margin-left: 1.5rem;
}

.main-nav ul li a {
  padding: 5px 0;
  position: relative;
}

.main-nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--mint);
  transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
  width: 100%;
}

.main-nav .cta-button {
  padding: 8px 16px;
  background-color: var(--mint);
  color: var(--indigo);
  border-radius: 4px;
  font-weight: bold;
}

.main-nav .cta-button:hover {
  background-color: var(--yellow);
}

.main-nav .cta-button::after {
  display: none;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(
      rgba(31, 27, 92, 0.8),
      rgba(31, 27, 92, 0.8)
    ),
    url("./img/lZo2y.jpg");
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Services Section */
.services {
  background-color: var(--indigo);
  color: var(--white);
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: var(--charcoal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
}

.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: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3,
form label,
.service-content a {
  color: var(--indigo);
}

.service-content .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Benefits Section */
.benefits-grid {
  text-align: center;
}

.benefit-item {
  padding: 20px;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: var(--mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--indigo);
  color: var(--white);
}

.testimonial-card {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--charcoal);
  height: 100%;
}

.testimonial-content {
  position: relative;
  padding: 0 20px;
  margin-bottom: 20px;
}

.testimonial-content:before,
.testimonial-content:after {
  content: '"';
  font-size: 60px;
  color: var(--mint);
  line-height: 1;
  position: absolute;
}

.testimonial-content:before {
  top: -10px;
  left: -15px;
}

.testimonial-content:after {
  bottom: -40px;
  right: -15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-weight: bold;
}

.author-title {
  color: #777;
  font-size: 0.9rem;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
  background-color: white;
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  font-weight: bold;
}

.faq-toggle {
  display: none;
}

.faq-label {
  display: block;
  padding: 15px 20px;
  background-color: var(--white);
  cursor: pointer;
  position: relative;
  font-weight: bold;
  color: var(--indigo);
  transition: background-color 0.3s ease;
}

.faq-label:hover {
  background-color: #f0f0f0;
}

.faq-label:after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  color: var(--mint);
  transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-label:after {
  transform: rotate(45deg);
  content: "+";
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  background-color: white;
  transition: max-height 0.3s ease;
}

.faq-toggle:checked ~ .faq-content {
  max-height: 500px;
}

.faq-answer {
  padding: 0 20px 20px;
}

/* Contact Form Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.contact-form h3 {
  color: var(--indigo);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 2px rgba(44, 230, 181, 0.2);
}

/* Custom Select Styling */
.custom-select {
  position: relative;
  display: block;
  width: 100%;
}

.custom-select select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.3s ease;
}

.custom-select::after {
  content: "▼";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: var(--indigo);
  pointer-events: none;
  font-size: 0.8rem;
}

.custom-select select:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 2px rgba(44, 230, 181, 0.2);
}

/* Custom Checkbox Styling */
.checkbox-container {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-container label {
  padding-left: 35px;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  line-height: 1.4;
}

.checkbox-container label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + label::before {
  background-color: var(--mint);
  border-color: var(--mint);
}

.checkbox-container label::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 8px;
  height: 13px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.checkbox-container input[type="checkbox"]:checked + label::after {
  opacity: 1;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

/* Map Section */
.map-container {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer Styles */
footer {
  background-color: var(--indigo);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 2rem;
}

.footer-info .logo {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-contact ul,
.footer-links ul {
  padding: 0;
}

.footer-contact ul li,
.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-contact a,
.footer-links a {
  color: var(--mint);
}

.footer-contact a:hover,
.footer-links a:hover {
  color: var(--yellow);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px;
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.cookie-content {
  max-width: 800px;
  text-align: center;
}

.cookie-content h3 {
  margin-bottom: 10px;
}

.cookie-content p {
  margin-bottom: 15px;
}

.cookie-content a {
  color: var(--mint);
}

.cookie-content button {
  padding: 8px 25px;
  background-color: var(--mint);
  color: var(--indigo);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.cookie-content button:hover {
  background-color: var(--yellow);
}

/* Thank You Page Styles */
.thank-you-section {
  margin: 8rem auto 5rem;
  max-width: 600px;
  text-align: center;
}

.thank-you-container {
  border: 2px solid var(--mint);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
}

.thank-you-container h2 {
  color: var(--indigo);
  margin-bottom: 20px;
}

.thank-you-container h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.thank-you-container p {
  margin-bottom: 30px;
}

/* Policy Pages Styles */
.policy-container {
  max-width: 800px;
  margin: 4rem auto;
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
  color: var(--indigo);
  text-align: center;
  margin-bottom: 30px;
}

.policy-container h2 {
  color: var(--indigo);
  margin-top: 30px;
}

.policy-container p,
.policy-container ul {
  margin-bottom: 20px;
}

.policy-container ul {
  padding-left: 20px;
  list-style-type: disc;
}

.policy-container ul li {
  margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-info {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .menu-icon {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 80px 40px 40px;
  }

  .main-nav ul li {
    margin: 0 0 20px;
  }

  #menu-toggle:checked ~ .main-nav {
    right: 0;
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 13px;
  }

  .container {
    width: 95%;
    padding: 0 10px;
  }

  .hero {
    height: 70vh;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .policy-container {
    padding: 20px;
  }
}
