/* ============================
       GLOBAL STYLES
    ============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================
       HEADER & NAVIGATION
    ============================= */
header {
  background-color: #ffffff;
  width: 100%;
  border-bottom: 1px solid #e2e2e2;
  position: relative;
  z-index: 1000;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo .text {
  font-size: 1rem;
  font-weight: 800;
  color: #005292;
  margin: 0px;
}

.logo .subtext {
  font-size: 0.8rem;
  color: #1ca9ba;
  margin: 0px;
}

.logo-text {
  margin-left: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo img {
  width: 80px;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  font-weight: 500;
  color: #333;
  transition: color 0.2s ease;
  padding: 0.5rem;
  display: block;
}

.nav-links li a:hover {
  color: #0077cc;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  width: 30px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ============================
       HERO SECTION
    ============================= */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("./images/bg1.jpg") center/cover no-repeat;
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p.tagline {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero p.subtagline {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background-color: #0077cc;
  color: #fff;
}

.btn-primary:hover {
  background-color: #005fa3;
}

.btn-secondary {
  background-color: #ffffff;
  color: #0077cc;
  border: 2px solid #0077cc;
}

.btn-secondary:hover {
  background-color: #f0f8ff;
}

/* ============================
       SECTION TITLES
    ============================= */
section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #005292;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background-color: #0077cc;
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* ============================
       ABOUT US SECTION
    ============================= */
#about .about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

#about .about-text {
  flex: 1 1 300px;
  max-width: 600px;
}

#about .about-text h2 {
  font-size: 1.75rem;
  color: #0077cc;
  margin-bottom: 0.5rem;
}

#about .about-text p {
  margin-bottom: 1rem;
  color: #555;
}

#about .about-image {
  flex: 1 1 300px;
  max-width: 500px;
  text-align: center;
  border-radius: 20px;
  overflow: hidden;
}

/* ============================
       SERVICES SECTION
    ============================= */
#services .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
}

.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.service-card-content {
  padding: 1rem 1.5rem 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  color: #005292;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* FEATURES SECTION */
#why-us {
  background-color: #005292;
}

#why-us .section-title {
  color: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 0;
}

.feature-card {
  display: flex;
  flex: 1;
  gap: 12px;
  border-radius: 8px;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #e2e2e2;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-icon {
  color: #0e171b;
  width: 24px;
  height: 24px;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-title {
  color: #005292;
  font-weight: bold;
  line-height: 1.2;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ============================
       PRICING SECTION
    ============================= */
#pricing .pricing-info {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #555;
}

#pricing .pricing-button {
  display: flex;
  justify-content: center;
}

#pricing .pricing-button .btn-primary {
  font-size: 1rem;
}

/* ============================
       TESTIMONIALS SECTION
    ============================= */
#testimonials .testimonial-wrapper {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  background-color: #ffffff;
  border-left: 4px solid #0077cc;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial p {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

.testimonial .client {
  text-align: right;
  font-weight: 600;
  color: #333;
  margin-top: 1rem;
}

.rating {
  display: flex;
  gap: 2px;
}

.rating span {
  color: #0077cc;
  font-size: 1.2rem;
}

/* ============================
       CONTACT SECTION
    ============================= */
#contact .contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}

.contact-info,
.contact-form-wrapper {
  flex: 1 1 300px;
  max-width: 500px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0077cc;
}

.contact-info p {
  margin-bottom: 0.75rem;
  color: #555;
  line-height: 1.5;
}

.contact-info a {
  color: #0077cc;
  font-weight: 500;
}

.contact-form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
}

.contact-form-wrapper button {
  align-self: flex-start;
}

#faq {
  background-color: #ffffff;
  padding: 60px 0;
}

.faq-container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  font-size: 2rem;
  color: #005292;
  margin-bottom: 1.5rem;
  position: relative;
}

.faq-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background-color: #0077cc;
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e2e2;
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-question {
  font-size: 1.25rem;
  color: #005292;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.faq-answer {
  font-size: 1rem;
  color: #555555;
  line-height: 1.5;
}

/* ============================
       FOOTER
    ============================= */
footer {
  background-color: #005292;
  color: #fff;
  padding: 40px 0;
}

.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 200px;
  max-width: 300px;
}

.footer-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #fff;
  font-size: 0.95rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: #0077cc;
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 32px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #e2e2e2;
}

/* ============================
       MOBILE OVERLAY
    ============================= */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================
       RESPONSIVE / MOBILE
    ============================= */
@media (max-width: 768px) {
  .hero {
    padding-top: 80px;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .hero p.tagline {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }

  .hero p.subtagline {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  #about .about-text h2 {
    font-size: 1.5rem;
  }

  /* Mobile Navigation */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    max-width: 80vw;
    background-color: #ffffff;
    flex-direction: column;
    padding: 4rem 0 2rem;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links li a {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
  }

  .nav-links li a:hover,
  .nav-links li a:focus {
    background-color: #f8f9fa;
    color: #0077cc;
    border-left-color: #0077cc;
  }

  /* Prevent body scroll when menu is open */
  body.nav-open {
    overflow: hidden;
  }

  /* Improved button spacing on mobile */
  .hero .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn {
    min-width: 200px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .nav-links {
    width: 100%;
    max-width: none;
  }
  
  .logo img {
    width: 60px;
  }
  
  .logo .text {
    font-size: 0.9rem;
  }
  
  .logo .subtext {
    font-size: 0.7rem;
  }
}