/* ===== COLOR VARIABLES ===== */
:root {
  --deep-blue: #112d4e;
  --cornflower: #3f72af;
  --milky-bg: #f9f7f7;
  --gray-blue: #dbe2ef;
  --accent-red: #ff6b6b;
  --accent-yellow: #ffd93d;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--deep-blue);
  background-color: var(--milky-bg);
}
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 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cornflower);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--deep-blue);
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--cornflower);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
  background-color: var(--deep-blue);
  transform: translateY(-2px);
  color: white;
}

.button-secondary {
  background-color: transparent;
  border: 2px solid var(--cornflower);
  color: var(--cornflower);
}

.button-secondary:hover {
  background-color: var(--gray-blue);
  color: var(--deep-blue);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--accent-yellow);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== 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 .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 15px;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--deep-blue);
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 1.5rem;
}

nav a {
  font-weight: 600;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--accent-yellow);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.cta-button {
  background-color: var(--accent-red);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
}

.cta-button:hover {
  background-color: #e45c5c;
  color: white;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  background-image: linear-gradient(
      rgba(17, 45, 78, 0.7),
      rgba(17, 45, 78, 0.7)
    ),
    url("./img/BJ4md.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 6rem 0;
  display: flex;
  align-items: center;
  min-height: 80vh;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeIn 1.5s ease;
}

.hero .button {
  animation: fadeInUp 2s ease;
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: 5rem 0;
  background-color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--milky-bg);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--cornflower);
  margin-bottom: 1.5rem;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 5rem 0;
  background-color: var(--gray-blue);
}

.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 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.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.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 5rem 0;
  background-color: white;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.about-text {
  padding-right: 2rem;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  padding: 5rem 0;
  background-color: var(--gray-blue);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: var(--gray-blue);
  font-family: Georgia, serif;
  opacity: 0.5;
  line-height: 1;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: bold;
  color: var(--deep-blue);
}

/* ===== FORM SECTION ===== */
.form-section {
  padding: 5rem 0;
  background-color: white;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--milky-bg);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--deep-blue);
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gray-blue);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--cornflower);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23112D4E' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* Custom select option background */
select.form-control option {
  background-color: white;
  color: var(--deep-blue);
  padding: 10px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

/* CSS-only form validation */
.checkbox-container {
  position: relative;
}

/* Hide the default checkboxes visually but keep them accessible */
.checkbox-container input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}

/* Create custom checkbox appearance */
.checkbox-group {
  padding-left: 30px;
  position: relative;
}

.checkbox-group label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cornflower);
  border-radius: 3px;
  background-color: white;
}

/* Style the checked state */
.checkbox-container input[type="checkbox"]:checked + .checkbox-group label::before,
.checkbox-container input[type="checkbox"]:checked + input[type="checkbox"] + .checkbox-group label::before {
  background-color: var(--cornflower);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Style the submit button based on checkbox states */
.checkbox-container button[type="submit"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* When both checkboxes are checked, enable the button */
.checkbox-container input[type="checkbox"]:checked ~ input[type="checkbox"]:checked ~ .form-submit button {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

/* ===== FAQ SECTION ===== */
.faq {
  padding: 5rem 0;
  background-color: var(--gray-blue);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: white;
  cursor: pointer;
  position: relative;
  font-weight: bold;
  color: var(--deep-blue);
  border: none;
  text-align: left;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--milky-bg);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-checkbox {
  display: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: white;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-checkbox:checked + .faq-question::after {
  transform: rotate(45deg);
}

.faq-checkbox:checked + .faq-question {
  background-color: var(--milky-bg);
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
  padding: 20px;
}

/* ===== CTA SECTION ===== */
.cta {
  padding: 5rem 0;
  background-color: var(--cornflower);
  color: white;
  text-align: center;
}

.cta h2 {
  margin-bottom: 1.5rem;
}

.cta .button {
  background-color: white;
  color: var(--cornflower);
  margin-top: 1rem;
}

.cta .button:hover {
  background-color: var(--accent-yellow);
  color: var(--deep-blue);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--deep-blue);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--accent-yellow);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--accent-yellow);
  bottom: -10px;
  left: 0;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--gray-blue);
}

.contact-info a:hover {
  color: var(--accent-yellow);
}

.legal-links {
  list-style: none;
}

.legal-links li {
  margin-bottom: 0.5rem;
}

.legal-links a {
  color: var(--gray-blue);
}

.legal-links a:hover {
  color: var(--accent-yellow);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: var(--gray-blue);
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--deep-blue);
  color: white;
  padding: 1rem;
  z-index: 2000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== THANK YOU PAGE ===== */
.thank-you {
  margin: 8rem auto 3rem;
  border: 1px solid #ccc;
  padding: 2rem;
  max-width: 600px;
  text-align: center;
}

.thank-you h1 {
  color: var(--cornflower);
  margin-bottom: 1.5rem;
}

/* ===== POLICY PAGES ===== */
.policy-content {
  margin: 3rem auto;
  max-width: 800px;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h1 {
  color: var(--deep-blue);
  margin-bottom: 2rem;
}

.policy-content h2 {
  color: var(--cornflower);
  margin: 1.5rem 0 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Hamburger Menu */
  .nav-toggle-label {
    display: block;
    position: relative;
    height: 20px;
    width: 30px;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    height: 3px;
    width: 30px;
    background-color: var(--deep-blue);
    position: absolute;
    transition: all 0.3s ease;
  }

  .nav-toggle-label span {
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
  }

  .nav-toggle-label span::before {
    top: -8px;
  }

  .nav-toggle-label span::after {
    bottom: -8px;
  }

  .nav-toggle:checked + .nav-toggle-label span {
    background-color: transparent;
  }

  .nav-toggle:checked + .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span::after {
    transform: rotate(-45deg);
    bottom: 0;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    transform: translateY(-100%);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .nav-toggle:checked ~ nav {
    transform: translateY(0);
    opacity: 1;
    max-height: 300px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul {
    flex-direction: column;
    padding: 1rem 0;
  }

  nav li {
    margin: 0;
    text-align: center;
  }

  nav a {
    display: block;
    padding: 0.8rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    margin-top: 1rem;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .features,
  .services,
  .about,
  .testimonials,
  .form-section,
  .faq,
  .cta {
    padding: 3rem 0;
  }

  .feature-card,
  .service-card,
  .testimonial-card {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .footer-col h3::after {
    width: 30px;
  }
}
