/* no scroll when pop-up is open*/
/* Prevent background scroll when modal is open */
body.modal-open {
  overflow: hidden;
}


/* navigation bar code */

header {
  background: #002e5a;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}
/* overall navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  background-color: #002e5a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0  2rem;
  z-index: 1000;
  box-sizing: border-box;
}

/* logo */
.nav-left {
  flex: 0 0 auto;
}
.logo img {
  height: 40px;
}

/* nav links container */
.nav-links {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 550px; /* optional, for centering */
}

.nav-links > li {
  flex: 1;
  text-align: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 1rem;
  display: block;
  transition: color 0.35s ease;
}

.nav-links a:hover {
  color: #d0b81c;
}

/* dropdown menu – hidden by default, rounded, clipped */
.nav-links li.dropdown > .dropdown-menu {
  display: none;              /* hide until hover */
  position: absolute;
  top: 100%;
  left: 0;
  background: #002e5a;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.426);
  
  border-radius: 0.5rem;      /* your rounding */
  overflow: hidden;           /* clip the rounded corners */
  
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  min-width: 150px;
  z-index: 1000;
}

/* show on hover only */
.nav-links li.dropdown:hover > .dropdown-menu {
  display: block;
}

/* making it a dropdown on mobile */
.nav-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Responsive behavior */
@media (max-width: 885px) {
    .navbar {
    position: fixed;
    z-index: 1000;
  }
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #002e5a;
    flex-direction: column;
    align-items: center;
    display: none;
    z-index: 900;
  }
  .mobile-nav .nav-links {
    background: transparent;
    box-shadow: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
    z-index: 1001; /* above the nav links */
    position: relative;
  }

  .nav-left {
    z-index: 1001;
    position: relative;
  }

  .nav-right {
    display: none;/* optional: hide the quote button on mobile */
  }

  .navbar {
    justify-content: space-between;
  }
}


.btn-quote {
  background-color: #d0b81c;
  color: #003b7c;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  white-space: nowrap;
  display: inline-block; /* ensure padding/margin applies consistently */
  transition: background-color 0.4s ease-in-out,
              color 0.2s ease-in-out;
}

.btn-quote:hover {
  background-color: #003b7c;
  color: #d0b81c;
  text-decoration: none; /* preserves underline state if any */
}

/* Mobile full-page menu */

.mobile-nav {
  display: flex;
  flex-direction: column;
  background-color: #f2f3f4; 
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  padding: 2rem;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-1rem);
  transition: opacity 0.35s ease, transform 0.5s ease;
  pointer-events: none;
}

.mobile-nav *:focus {
  outline: none;
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Links inside fullscreen menu */

.mobile-nav .mobile-links {
    display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 5rem;
  width: 100%;
}

.mobile-nav .mobile-links a {
  font-size: 2rem;
  color: #002147;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0;
  width: 100%;
  transition: all 0.35s ease;
}

.mobile-nav .mobile-links a:hover {
  transform: scale(1.04);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.261);
}

/* Close button (X) */
.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: #222;
  cursor: pointer;
}

.mobile-quote-btn {
  margin-top: auto;
  margin-bottom: 2rem;
  align-self: flex-start;
  background-color: #002e5a;
  color: #d0b81c;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  transition: background 0.35s ease;
}

.mobile-quote-btn:hover {
  background-color: #d0b81c;
  color:#002e5a;
}

/* end of navigation bar code */

/* Footer */
.site-footer {
  background-color: #002e5a;
  color: white;
  font-size: 0.9rem;
}

/* Top CTA Bar */
.footer-cta {
  background-color: #002e5a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.cta-text {
  font-size: 1.3rem;
  color: white;
  flex: 1 1 300px;
}

.cta-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d0b81c;
  flex: 1 1 200px;
  justify-content: flex-end;
  text-align: right;
}

.cta-contact i {
  font-size: 1.5rem;
}

.cta-contact strong {
  display: block;
  font-size: 1.2rem;
  color: white;
}
.footer-main {
  justify-content: center;
  align-items: flex-start;
  max-width: 95vw !important;
  margin: 0 auto;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  gap: 2rem;
  display: flex;
  flex-wrap: wrap;
  }
/* Main top footer links */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 95%;
  margin: 0 auto;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-brand {
  /* make left column a fixed size to match newsletter */
  flex: 0 0 400px;   /* fixed width */
  text-align: left;
}

.footer-brand img {
  width: 80%;      /* keep logo large but fit the column */
  margin-bottom: 0.2rem
}

.footer-brand p {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  font-size: 1.2rem;
}

.footer-socials {
  padding-left: 0.5rem;
}

.footer-socials a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  color: white;
  margin-right: 0.5rem;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.footer-socials a:hover {
  background-color: #b8992e;
  color: white;
}

/* for consistent SVG icon sizing */
.footer-socials svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}


/* center column: Quick Links */
.footer-links {
  /* make center column fixed and centered in layout */
  flex: 0 0 420px;        /* fixed center width */
  display: flex;
  flex-direction: column;
  align-items: center;    /* center title and inner content */
  padding: 0.5rem 1rem;
  min-height: 180px;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
  transform: translateY(-10px); /* move middle block up a bit */
}

/* ensure title is centered above two columns */
.footer-links-title,
.footer-links h4 {
  text-align: center;
  width: 100%;
  margin-left: 0;
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: #d0b81c;
}

/* lay out two link columns across the center box */
.footer-links-row {
  display: flex;
  justify-content: space-between;  /* left & right columns inside center */
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  max-width: 360px;                 /* keep inner columns nicely spaced */
  padding-top: 0.25rem;
  box-sizing: border-box;
  color: #fff;
}

/* make the left/right columns behave like columns inside the center box */
.footer-links-col {
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 140px;
  text-align: left;
  text-align: center;
  color: #fff
}

/* right column (newsletter) same fixed width as left */
.footer-newsletter {
  flex: 0 0 400px; /* match .footer-brand width */
  font-size: 1.3rem;
  color: #d0b81c;
}

.footer-links-col li a {
  font-size: 1.12rem;
  margin-left: 0;
  display: inline-block;
  color: #fff;
  text-decoration: none;
}

/* Responsive: stack columns on mobile */
@media (max-width: 700px) {
  .footer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  /* Override desktop multi-column */
  .footer-main {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
  }

  /* Links: stack or stay side-by-side but centered */
  .footer-links-wrap {
    display: flex;
    flex-direction: row; /* row keeps them side by side */
    align-items: center;
    gap: 0.1rem;
    width: 100%;
    height: auto; 
    flex: unset;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .footer-links {
    text-align: center;
    transform: none; /* reset on small screens */
  }

  /* Center the quick links block and its columns on mobile */
  .footer-links {
    width: 90% !important;      /* take most of the viewport width */
    max-width: 420px;
    margin: 0.5rem auto !important;  /* center horizontally */
    align-items: center;        /* center title + inner content */
    padding: 0.5rem 1rem;
    transform: none;            /* ensure no vertical offset on mobile */
  }

  .footer-links-title,
  .footer-links h4 {
    text-align: center;
    width: 100%;
    margin-left: 0;
  }

  .footer-links-row {
    width: 100%;
    max-width: 100%;
    justify-content: center;    /* center the two columns */
    gap: 1.5rem;                /* reduce gap on mobile so columns fit */
    padding-top: 0.25rem;
  }

  /* Make each column center-aligned on mobile */
  .footer-links-col {
    min-width: 120px;
    text-align: center;
    flex: 1 1 auto;
  }

  .footer-links-col.left,
  .footer-links-col.right {
    text-align: center;
  }

  .footer-links-col li a {
    margin-left: 0;             /* reset any negative offsets */
    display: inline-block;
  }

  /* Ensure newsletter stacks nicely below and keeps full width */
  .footer-newsletter {
    width: 90%;
    max-width: 420px;
    margin: 0.75rem auto 1.25rem;
    text-align: center;
    color: #d0b81c;
  }

  .footer-newsletter h4 {
    color: #d0b81c;
  }
   .footer-newsletter p {
    color: #d0b81c;
  }

  /* Order */
  .footer-cta { order: 1; }
  .footer-main { order: 2; }
  .footer-bottom { order: 3; }

  /* CTA */
  .footer-cta {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    width: 100%;
  }
  .footer-cta .cta-text,
  .footer-cta .cta-contact {
    flex: unset;  
    width: 90%;   /* Optional: make them full width */
    text-align: center;
    justify-content: center;
  }
  .cta-contact strong {
    color: #fff;
  }

  /* Logo + socials */
  .footer-brand img { max-width: 80%; height: auto; margin-bottom: 0.5rem; }
  .footer-brand {
    text-align: center;
    margin-bottom: 0.5rem;
    flex: unset;
  }
  .footer-socials { text-align: center; margin: 1rem 0; }
  .footer-socials a { width: 48px; height: 48px; font-size: 1.4rem; }

  /* Footer links */
  .footer-links,
  /* Newsletter */
  .footer-newsletter {
    width: 80%;
    max-width: 40vw;
    margin: 0.5rem auto;
    flex: unset !important;
    text-align: center;
    justify-content: center;
    padding: 0.5rem 0;
    border: none;
  }
    .footer-links:last-child {
    margin-bottom: 0;         /* Remove extra margin after the last one */
  }
  .footer-newsletter form { flex-direction: column; gap: 0.5rem; }
  .footer-newsletter input, .footer-newsletter button { width: 100%; border-radius: 0.3rem; }

  /* Bottom */
  .footer-bottom { padding: 1rem; text-align: center; }
}
.footer-newsletter button:hover,
.footer-newsletter button:focus {
  background-color: #b8992e;
  outline: none;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  padding: 1rem 2rem;
}

.footer-bottom .footer-policies a {
  color: rgba(255,255,255,0.8);
  margin-left: 0.5rem;
  text-decoration: none;
}

.footer-bottom .footer-policies a:hover {
  text-decoration: underline;
}
.footer-wrap {
  display: block;
}
@media (max-width: 700px) {
  .footer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  /* Override desktop multi-column */
  .footer-main {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
  }

  /* Links: stack or stay side-by-side but centered */
  .footer-links-wrap {
    display: flex;
    flex-direction: row; /* row keeps them side by side */
    align-items: center;
    gap: 0.1rem;
    width: 100%;
    height: auto; 
    flex: unset;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .footer-links {
    text-align: center;
    transform: none; /* reset on small screens */
  }

  /* Center the quick links block and its columns on mobile */
  .footer-links {
    width: 90% !important;      /* take most of the viewport width */
    max-width: 420px;
    margin: 0.5rem auto !important;  /* center horizontally */
    align-items: center;        /* center title + inner content */
    padding: 0.5rem 1rem;
    transform: none;            /* ensure no vertical offset on mobile */
  }

  .footer-links-title,
  .footer-links h4 {
    text-align: center;
    width: 100%;
    margin-left: 0;
  }

  .footer-links-row {
    width: 100%;
    max-width: 100%;
    justify-content: center;    /* center the two columns */
    gap: 1.5rem;                /* reduce gap on mobile so columns fit */
    padding-top: 0.25rem;
  }

  /* Make each column center-aligned on mobile */
  .footer-links-col {
    min-width: 120px;
    text-align: center;
    flex: 1 1 auto;
  }

  .footer-links-col.left,
  .footer-links-col.right {
    text-align: center;
  }

  .footer-links-col li a {
    margin-left: 0;             /* reset any negative offsets */
    display: inline-block;
  }

  /* Ensure newsletter stacks nicely below and keeps full width */
  .footer-newsletter {
    width: 90%;
    max-width: 420px;
    margin: 0.75rem auto 1.25rem;
    text-align: center;
  }

  /* Order */
  .footer-cta { order: 1; }
  .footer-main { order: 2; }
  .footer-bottom { order: 3; }

  /* CTA */
  .footer-cta {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    width: 100%;
  }
  .footer-cta .cta-text,
  .footer-cta .cta-contact {
    flex: unset;  
    width: 90%;   /* Optional: make them full width */
    text-align: center;
    justify-content: center;
  }

  /* Logo + socials */
  .footer-brand img { max-width: 80%; height: auto; margin-bottom: 0.5rem; }
  .footer-brand {
    text-align: center;
    margin-bottom: 0.5rem;
    flex: unset;
  }
  .footer-socials { text-align: center; margin: 1rem 0; }
  .footer-socials a { width: 48px; height: 48px; font-size: 1.4rem; }

  /* Footer links */
  .footer-links,
  /* Newsletter */
  .footer-newsletter {
    width: 80%;
    max-width: 400px;
    margin: 0.5rem auto;
    flex: unset !important;
    text-align: center;
    justify-content: center;
    padding: 0.5rem 0;
    border: none;
  }
    .footer-links:last-child {
    margin-bottom: 0;         /* Remove extra margin after the last one */
  }
  .footer-newsletter form { flex-direction: column; gap: 0.5rem; }
  .footer-newsletter input, .footer-newsletter button { width: 100%; border-radius: 0.3rem; }

  /* Bottom */
  .footer-bottom { padding: 1rem; text-align: center; }
}
.footer-newsletter form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  max-width: 100%;
}

.footer-newsletter input {
  flex: 1;
  padding: 12px 15px; /* Increased padding */
  font-size: 16px; /* Larger text */
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: white;
  min-width: 200px;
}

.footer-newsletter input::placeholder {
  color: rgba(255,255,255,0.7);
}

.footer-newsletter button {
  padding: 12px 20px; /* Larger button */
  background-color: #d0b81c;
  color: #002e5a;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px; /* Larger text */
  transition: background-color 0.3s;
  white-space: nowrap;
}