/* Base Styles & Variables */
:root {
  --color-bg: #f2f0e4;
  --color-primary: #292f36;
  --color-accent-1: #f2545b;
  --color-accent-2: #08bdbd;
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Montserrat", sans-serif;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul,
ol {
  list-style-position: inside;
}

img {
  max-width: 100%;
  height: auto;
}

.section-padding {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--color-accent-1);
  margin: 0.8rem auto;
}

.btn-primary {
  background-color: var(--color-accent-1);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--color-accent-2);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-secondary);
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-menu li {
  margin: 0 1rem;
}

.nav-menu a {
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--color-accent-1);
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background-image: url("./img/KSnWL.jpg");
  background-size: cover;
  background-position: center;
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 3rem;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-card-content {
  padding: 1.5rem;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Benefits Section */
.benefits {
  background-color: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-card {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--color-bg);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.benefit-card img {
  width: 70px;
  height: 70px;
  margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.testimonial-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.9rem;
  color: #666;
}

.testimonial-stars {
  color: gold;
  margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq {
  background-color: white;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  background-color: var(--color-bg);
  padding: 1rem;
  cursor: pointer;
  position: relative;
}

.faq-question label {
  display: block;
  font-weight: 500;
  padding-right: 30px;
  cursor: pointer;
}

.faq-question label:after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-answer {
  background-color: white;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-answer-content {
  padding: 1rem;
}

.faq-checkbox {
  display: none;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-checkbox:checked ~ .faq-question label:after {
  content: "−";
}

/* CTA Section */
.cta {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta h2 {
  margin-bottom: 1.5rem;
}

.cta p {
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Form Section */
.contact {
  background-color: white;
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background-color: white;
  font-family: var(--font-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-2);
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.form-check input {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group {
  margin-bottom: 1.5rem;
}

.checkbox-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.checkbox-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

/* Select styling with custom background for options */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

select.form-control option {
  background-color: var(--color-bg);
  color: var(--color-primary);
  padding: 10px;
}

/* Footer Styles */
footer {
  background-color: var(--color-primary);
  color: white;
  padding-top: 3rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  font-family: var(--font-secondary);
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-contact h3,
.footer-links h3 {
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-contact h3:after,
.footer-links h3:after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-accent-1);
  margin-top: 0.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--color-accent-1);
}

.copyright {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  text-align: center;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 1000;
  transition: var(--transition);
}

.cookie-consent.active {
  bottom: 0;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin: 0;
  margin-right: 1rem;
}

/* Thanks Page */
.thanks-container {
  text-align: center;
  max-width: 700px;
  margin: 8rem auto 5rem;
  padding: 3rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.thanks-container h1 {
  color: var(--color-accent-1);
  margin-bottom: 1.5rem;
}

/* Policy Pages */
.policy-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.policy-container h1 {
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.policy-container h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.policy-container p,
.policy-container ul,
.policy-container ol {
  margin-bottom: 1.5rem;
}

.policy-container ul,
.policy-container ol {
  margin-left: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .menu-button {
    display: flex;
  }

  .nav-menu {
    position: absolute;

    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .menu-toggle:checked ~ .nav-menu {
    max-height: 500px;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-menu a {
    display: block;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content p {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .header-container {
    padding: 0.8rem 0;
  }

  .logo a {
    font-size: 1.6rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }
}
