/* ==========================================================================
   Base styles and Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  font-size: 16px;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2e2e2e;
  background-color: #eff2f1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: #33658a;
  transition: color 0.3s ease;
}

a:hover {
  color: #f26419;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5em;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #f26419, #ffd166);
  border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(to right, #f26419, #ffd166);
  color: white;
  box-shadow: 0 4px 10px rgba(242, 100, 25, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(242, 100, 25, 0.4);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #33658a;
  color: #33658a;
}

.btn-secondary:hover {
  background-color: #33658a;
  color: white;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 20px;
}
footer .container,
header .container {
  margin: 0 auto;
}

section {
  padding: 4rem 0;
}

/* ==========================================================================
   Header and Navigation
   ========================================================================== */
.site-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 20px;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #33658a;
  text-transform: lowercase;
}

.logo:hover {
  color: #f26419;
}

/* Hamburger Menu (CSS only) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, #f26419, #ffd166);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: #33658a;
    height: 2px;
    width: 2rem;
    border-radius: 2px;
    position: relative;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
  }

  .nav-toggle-label span::before {
    bottom: 7px;
  }

  .nav-toggle-label span::after {
    top: 7px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    transform: scale(1, 0);
    transform-origin: top;
    transition: transform 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-toggle:checked ~ .main-nav {
    transform: scale(1, 1);
  }

  .nav-links {
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-links li {
    margin: 0;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.15s ease-out;
  }

  .nav-toggle:checked ~ .main-nav .nav-links a {
    opacity: 1;
    transition: opacity 0.25s ease-out 0.15s;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background-image: url("img/PfUVd.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  text-align: center;
  color: white;
  padding: 0;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 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.15);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  color: #33658a;
}

.service-card p {
  padding: 0 1.5rem;
  flex-grow: 1;
}

.service-card .btn-secondary {
  margin: 1.5rem;
  align-self: flex-start;
}

/* ==========================================================================
   Advantages Section
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-10px);
}

.advantage-icon {
  width: 80px;
  height: 80px;
  background: #33658a;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.advantage-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advantage-item h3 {
  color: #33658a;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  line-height: 0;
  color: rgba(242, 100, 25, 0.2);
  position: absolute;
  top: 30px;
  left: 20px;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author h4 {
  color: #33658a;
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   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.1);
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 1.25rem;
  background: white;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-question {
  background-color: #33658a;
  color: white;
}

.faq-toggle:checked + .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  background: white;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 1.25rem;
}

/* ==========================================================================
   Contact Section and Form
   ========================================================================== */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  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: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group select {
  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='%2333658A' 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 0.7rem center;
  background-size: 1em;
}

.form-group select option {
  background-color: white;
  color: #2e2e2e;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}

.form-submit {
  text-align: center;
}

/* ==========================================================================
   Certificates Section
   ========================================================================== */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.certificate-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.certificate-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  overflow: hidden;
  border-radius: 50%;
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Map Section
   ========================================================================== */
.map-section {
  padding-bottom: 0;
}

.map-container {
  width: 100%;
  height: 450px;
}

.map-container iframe {
  border: none;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #33658a;
  color: white;
  padding-top: 3rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #f26419;
  border-radius: 1.5px;
}

.contact-list li {
  margin-bottom: 0.75rem;
}

.contact-list a,
.legal-links a {
  color: white;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.contact-list a:hover,
.legal-links a:hover {
  opacity: 1;
  color: white;
}

.legal-links li {
  margin-bottom: 0.5rem;
}

.copyright {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.copyright p {
  margin: 0;
}

/* ==========================================================================
   Cookie Popup
   ========================================================================== */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #33658a;
  color: white;
  z-index: 1100;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin: 0 2rem 0 0;
}

@media screen and (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-content p {
    margin-bottom: 1rem;
  }
}

/* ==========================================================================
   Thank You Page
   ========================================================================== */
.thank-you-container {
  max-width: 700px;
  margin: 8rem auto 5rem;
  background: white;
  padding: 3rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.thank-you-container h1 {
  color: #33658a;
  margin-bottom: 1.5rem;
}

.thank-you-container p {
  margin-bottom: 2rem;
}

/* ==========================================================================
   Policy Pages
   ========================================================================== */
.policy-container {
  max-width: 900px;
  margin: 4rem auto;
  background: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.policy-container h1 {
  color: #33658a;
  margin-bottom: 2rem;
  text-align: center;
}

.policy-container h2 {
  color: #33658a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.policy-container ul {
  list-style-type: disc;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.policy-container li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media screen and (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }

  section {
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.25rem;
  }

  .policy-container {
    padding: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-section {
    height: 70vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .form-container,
  .thank-you-container,
  .policy-container {
    padding: 1.5rem;
  }
}
