/* 
* Main CSS file for domain website
* Colors:
* - Background: #F9F6F1
* - Primary: #524C84 (deep violet-gray)
* - Accents: #F3C300 (amber), #70C1B3 (mint)
* - Text: #1A1A1A and #4A4A4A
*/

/* ---------- Reset & Base Styles ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #4a4a4a;
  background-color: #f9f6f1;
}

section[id] {
  scroll-margin-top: 80px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: #524c84;
  transition: color 0.3s ease;
}

a:hover {
  color: #f3c300;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: #f3c300;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
}

.section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Header & Navigation ---------- */
header {
  background-color: #f9f6f1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Raleway", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #524c84;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo:hover {
  color: #f3c300;
  transform: scale(1.05);
}

.main-nav {
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #524c84;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #f3c300;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #524c84;
  transition: all 0.3s ease;
}

/* ---------- Buttons ---------- */
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #524c84, #624c94);
  color: white !important;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(82, 76, 132, 0.3);
  text-align: center;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(82, 76, 132, 0.5);
}

.cta-button:active {
  transform: translateY(-1px);
}

.secondary-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: white !important;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.secondary-button:hover {
  background-color: #524c84;
  color: white !important;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 80vh;
  background-image: url("./img/VUisY.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(82, 76, 132, 0.8));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 1s ease;
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  height: 400px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* ---------- Benefits Section ---------- */
.benefits {
  background-color: #f0eee9;
  position: relative;
  overflow: hidden;
}

.benefits::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(243, 195, 0, 0.15);
  border-radius: 50%;
  z-index: 1;
}

.benefits::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  background-color: rgba(112, 193, 179, 0.15);
  border-radius: 50%;
  z-index: 1;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.benefit-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
  color: #524c84;
  margin-bottom: 1rem;
}

/* ---------- Services Section ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 180px;
  position: relative;
  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-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  color: #524c84;
  margin-bottom: 1rem;
}

.service-content ul {
  margin-bottom: 1.5rem;
  list-style-type: disc;
  padding-left: 1.5rem;
}

.service-content li {
  margin-bottom: 0.5rem;
}

.service-content a {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
  background-color: #f0eee9;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 4rem;
  color: rgba(82, 76, 132, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 700;
  color: #524c84;
}

.testimonial-position {
  font-size: 0.9rem;
  color: #777;
}

/* ---------- FAQ Section ---------- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  background-color: white;
  padding: 1.2rem;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #524c84;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: #524c84;
}

.faq-toggle {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f9f9f9;
}

.faq-toggle:checked ~ .faq-content {
  max-height: 500px;
}

.faq-toggle:checked ~ .faq-question::after {
  content: "-";
}

.faq-answer {
  padding: 0 1.2rem 1.2rem;
}

/* ---------- Contact Form ---------- */
.contact {
  background-color: #f0eee9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2::after {
  left: 0;
  transform: none;
}

.contact-details {
  margin-top: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-form-container {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1a1a1a;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #524c84;
  outline: none;
}

select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23524C84' 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;
  background-size: 20px;
}

/* Customize background of select options */
select.form-control option {
  background-color: white;
  color: #4a4a4a;
  padding: 10px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 5px;
}

.error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
footer {
  background-color: #524c84;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-info h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

footer a {
  color: white;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 1;
  color: #f3c300;
}

footer h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

footer ul li {
  margin-bottom: 0.8rem;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- Thank You Page ---------- */
.thank-you {
  max-width: 600px;
  margin: 5rem auto;
  text-align: center;
  padding: 3rem;
  border: 2px solid #524c84;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ---------- Policy Pages ---------- */
.policy-container {
  max-width: 800px;
  margin: 5rem auto;
  padding: 3rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.policy-container h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.policy-container h2 {
  margin-top: 2rem;
}

/* ---------- Cookie Popup ---------- */
.cookie-popup {
  position: fixed;
  bottom: -300px;
  left: 0;
  right: 0;
  background-color: white;
  padding: 1rem 2rem;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1010;
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-popup p {
  margin: 0;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Media Queries ---------- */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-image {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  section {
    padding: 3rem 0;
  }

  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background-color: white;
    align-items: flex-start;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .nav-links li {
    margin: 0 0 1rem 0;
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.5rem 0;
  }

  .menu-toggle:checked ~ .nav-links {
    display: flex;
    opacity: 1;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .benefits-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .cookie-popup {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .thank-you,
  .policy-container {
    padding: 2rem 1.5rem;
    margin: 3rem 1rem;
  }
}
