/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: #002B68;
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
}
.brand-name {
  font-weight: 700;
  font-size: 20px;
}
.nav-links a {
  margin-left: 24px;
  font-weight: 500;
  color: #fff;
  opacity: .9;
  transition: opacity .2s;
}
.nav-links a:hover {
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 28px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border .2s;
}
.btn-primary {
  background: linear-gradient(90deg, #2563EB, #7C3AED);
  color: #fff;
}
.btn-primary:hover {
  opacity: .9;
}
.btn-outline {
  border-color: #2563EB;
  color: #2563EB;
}
.btn-outline:hover {
  background: #2563EB;
  color: #fff;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #002B68, #004FA1);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text {
  flex: 1 1 480px;
}
.hero-text h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-text .subtitle {
  font-size: 18px;
  opacity: .9;
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-images {
  flex: 1 1 360px;
  position: relative;
  height: 340px;
}
.hero-images .phone {
  position: absolute;
  width: 200px;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(0,0,0,.3);
}
.phone-a {
  top: 0;
  left: 50%;
  transform: translate(-50%, 0) rotate(-8deg);
}
.phone-b {
  top: 50px;
  left: 20%;
  transform: rotate(8deg);
}
.phone-c {
  top: 100px;
  left: 65%;
  transform: rotate(4deg);
}

/* Section headings */
.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  color: #0f172a;
}

/* Why Section */
.why {
  background: #F8FAFC;
  padding: 80px 0;
}
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.reason-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,.05);
}
.reason-icon {
  height: 48px;
  margin-bottom: 14px;
}
.reason-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}
.reason-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

/* Features Section */
.features {
  background: #EEF3FD;
  padding: 80px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.feature-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 6px 12px rgba(0,0,0,.1);
}
.feature-icon {
  height: 56px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #0f172a;
}
.feature-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

/* Gallery Section */
.gallery {
  background: #F8FAFC;
  padding: 80px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.gallery-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  padding: 12px;
  font-weight: 600;
  text-align: center;
  background: #fff;
  color: #0f172a;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, #002B68, #004FA1);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.contact h2 {
  color: #fff;
  margin-bottom: 16px;
}
.contact-subtitle {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: .9;
}
.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 16px;
}
.contact-item i {
  margin-right: 10px;
}
.contact .btn {
  margin-top: 16px;
}

/* Footer */
/*
 * Footer styles
 *
 * The redesigned footer uses a grid layout with three columns: brand,
 * quick links and contact information. The bottom row holds the
 * copyright and attribution text. Colours and spacing have been
 * adjusted to complement the dark page sections while remaining
 * legible. Responsive tweaks stack the columns vertically on small
 * screens.
 */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0;
  font-size: 14px;
}

/* Container within footer uses flex column to space grid and bottom */
.footer .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Grid layout for columns */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  align-items: flex-start;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
  color: #94a3b8;
  line-height: 1.4;
}

.footer-col li i {
  margin-right: 8px;
  color: #7dd3fc;
}

.footer-col li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.footer-col li a:hover {
  color: #ffffff;
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(1.2);
}

.footer-description {
  max-width: 260px;
  line-height: 1.5;
  color: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .footer .container {
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col h4 {
    font-size: 16px;
  }
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-description {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hero-images {
    display: block; /* or flex, as appropriate */
    width: 100%;
    height: auto;
    position: relative;
  }
  .hero-images .phone {
    position: relative;
    width: 120px; /* smaller size for mobile */
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    transform: none;
    top: auto;
    left: auto;
  }
  .hero-text {
    text-align: center;
    flex: 1 1 100%;
  }
  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 525px) {
  .nav-links {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
  }
  .nav-links a {
    font-size: 14px;        /* Reduce size slightly */
    margin-left: 12px;      /* Reduce space between links */
    white-space: nowrap;    /* Prevent wrapping */
  }
}
/* Modal */
    .modal {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      backdrop-filter: blur(3px);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    .modal-content {
      background: #fff;
      padding: 25px;
      border-radius: 10px;
      max-width: 400px;
      width: 90%;
      text-align: left;
      position: relative;
    }
    .modal-content h2 {
      margin-top: 0;
      color: #1e40af;
    }
    .modal-content input, .modal-content textarea {
      width: 100%;
      padding: 10px;
      margin: 8px 0;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 0.9rem;
    }
    .close-btn {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 20px;
      cursor: pointer;
      color: #475569;
    }

    /* Success popup */
    .success-popup {
      display: none;
      position: fixed;
      bottom: 30px;
      right: 30px;
      background: #22c55e;
      color: #fff;
      padding: 15px 25px;
      border-radius: 8px;
      font-size: 1rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      z-index: 1100;
      animation: slideIn 0.4s ease, fadeOut 0.4s ease 3s forwards;
    }
    @keyframes slideIn {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeOut {
      to { opacity: 0; transform: translateY(40px); }
    }
.reason-card:nth-child(1) { background-color: #FFF9F0; }
.reason-card:nth-child(2) { background-color: #FAE8E0; }
.reason-card:nth-child(3) { background-color: #FFEBD2; }
.reason-card:nth-child(4) { background-color: #E8F6EF; }
.reason-card:nth-child(5) { background-color: #EAF4FC; }
.reason-card:nth-child(6) { background-color: #F3E8FF; }
.reason-card:nth-child(7) { background-color: #F6E5C2; }
.reason-card:nth-child(8) { background-color: #F8EAD7; }
.reason-card:nth-child(9) { background-color: #F4F4F4; }

.reason-card {
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  color: #2D2A26;
}
.reason-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 18px rgba(195,138,77,0.25);
}
