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

html { scroll-behavior: smooth; }

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #222;
  line-height: 1.5;
}

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


/* ======================================================
   GLOBAL PAGE WRAPPER IMPROVEMENT (#1)
====================================================== */
main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}


/* ======================================================
   GLOBAL HEADING STYLES (#3)
====================================================== */
h1 {
  font-size: 2rem;
  color: #003c80;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

h2 {
  font-size: 1.45rem;
  color: #003c80;
  margin-bottom: 10px;
  font-weight: 600;
}


/* Keep hero headings white */
.hero h1,
.hero .text-box h2 {
  color: white !important;
}


/* ======================================================
   TOP BAR
====================================================== */
.top-bar {
  background: #1a1a1a;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-size: .95rem;
}


/* ======================================================
   NAVIGATION BAR
====================================================== */
.nav-bar {
  display: flex;
  align-items: center;
  padding: 12px 35px;
  background: #ffffff;
  position: relative;
  z-index: 500; /* lowered so popup is above */
}

.nav-left, .nav-center, .nav-right {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-center { justify-content: center; }
.nav-right  { justify-content: flex-end; }

.logo { height: 70px; width: auto; }

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 1.05rem;
}

.nav-links a {
  padding: 5px 8px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  font-weight: 600;
  color: #003366;
}


/* ======================================================
   CALL NOW BUTTON
====================================================== */
.call-now {
  background: #003c80;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.25s;
}

.call-now:hover {
  background: #002b5c;
}


/* ======================================================
   HAMBURGER MENU — MOBILE
====================================================== */

#menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

.hamburger {
  display: none;
  font-size: 34px;
  padding: 10px;
  cursor: pointer;
}


/* -----------------------
   MOBILE BREAKPOINT
----------------------- */
@media (max-width: 850px) {

  .hamburger { display: block; margin-left: auto; }
  .nav-right { display: none; }

  .nav-center {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    flex-direction: column;
    border-bottom: 1px solid #ccc;
    padding: 20px 0;
    z-index: 900;
  }

  #menu-toggle:checked ~ .nav-center { display: flex; }

  .nav-links {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  /* Smaller mobile logo */
  .logo {
    height: 55px;
  }
}


/* ======================================================
   PRIMARY BUTTON (navy blue)
====================================================== */
.btn-primary {
  display: inline-block;
  background: #003c80;
  color: white;
  padding: 12px 20px;
  border-radius: 7px;
  font-weight: bold;
  transition: 0.25s ease;
  font-size: 1rem;
}

.btn-primary:hover {
  background: #002b5c;
}


/* ======================================================
   HERO SECTION
====================================================== */
.hero {
  background: url("../images/backgrounds/background.png") center/cover no-repeat;
  min-height: 480px;
  position: relative;
}

.overlay {
  background: rgba(0,0,0,0.45);
  width: 100%;
  height: 100%;
  padding: 50px 20px;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 35px;
  max-width: 1100px;
  margin: auto;
}

.image-box { flex: 1; color: white; text-align: center; }

.home-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 3px solid white;
}

.text-box { flex: 1; color: white; }


/* ======================================================
   TESTIMONIALS
====================================================== */
.testimonials {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.testimonials > h2 {
  flex: 1 1 100%;
  text-align: center;
  margin-bottom: 10px;
}

.testimonial {
  background: white;
  padding: 20px;
  border-radius: 10px;
  flex: 1;
  min-width: 280px;
  border-left: 4px solid #003c80;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.testimonial h3 {
  font-size: 1.35rem;
  color: #003c80;
  margin-bottom: 10px;
  font-weight: 600;
}


/* ======================================================
   INFO BOXES
====================================================== */
.info-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #003c80;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  margin-bottom: 25px;
}

.info-box h2 { margin-top: 0; }
.info-box ul { padding-left: 20px; }


/* ======================================================
   CONTACT POPUP (fixed layer order)
====================================================== */
.popup {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.25s;
  z-index: 9999 !important;
}

.popup:target {
  visibility: visible;
  opacity: 1;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  position: relative;
  z-index: 10000 !important;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 1.8rem;
  cursor: pointer;
}


/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}

/* Formspree honeypot: off-screen, not display:none (better bot signal) */
.contact-form .form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 0;
  font-size: 0;
  line-height: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 6px;
  border: 2px solid #ccc;
  font-size: 1rem;
  color: black;
  background: white;
}

textarea { resize: vertical; }

.btn-submit {
  background: #003c80;
  color: white;
  padding: 12px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: 0.2s;
}

.btn-submit:hover {
  background: #002b5c;
}


/* ======================================================
   FOOTER
====================================================== */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 20px;
}
