/* GLOBAL RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* BODY BACKGROUND */
body {
  min-height: 100vh;

  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.30) 0px,
      rgba(0,0,0,0.30) 2px,
      rgba(0,0,0,0.00) 2px,
      rgba(0,0,0,0.00) 4px
    ),
    linear-gradient(
      to bottom,
      #8f0707 0%,
      #2d548a 100%
    );

  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}


/* LINKS */
a {
  text-decoration: none;
  color: inherit;
}

a:not(nav a):not(.cta-btn):not(.form-submit):not(.back-to-top):not(.mobile-call-bar a) {
  transition: color 0.25s ease;
}

a:not(nav a):not(.cta-btn):not(.form-submit):not(.back-to-top):not(.mobile-call-bar a):hover {
  color: #8f0707;
}

/* PAGE WRAPPER */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 26px 20px;
  background: #ffffff;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  border-radius: 10px;
  position: relative;
}

/* RATING BAR ABOVE LOGO */
.rating-bar {
  width: 100%;
  text-align: center;
  padding: 8px 0;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #2d548a;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* allows wrapping on small screens */
}

.rating-score {
  color: #8f0707;
  font-size: 18px;
}

.rating-stars {
  color: #f4b400; /* Google star yellow */
  letter-spacing: 2px;
  font-size: 18px;
}

.rating-link {
  color: #2d548a;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.25s ease;
}

.rating-link:hover {
  color: #8f0707;
}

/* Prevent touching edges on mobile */
@media (max-width: 640px) {
  .rating-bar {
    padding: 10px 12px;
    font-size: 15px;
    gap: 6px;
  }
}


/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.logo-img {
  width: 50%;
  height: auto;
}

/* NAVIGATION */
nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  font-size: 18px;
  font-weight: 600;
  flex-wrap: wrap;   /* ← THIS is the magic */
  justify-content: center; /* keeps it centered when wrapping */
}

nav a {
  color: #2d548a;
  font-weight: 600;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background-color: #8f0707;
  transition: width 0.25s ease;
}

nav a:hover {
  color: #8f0707;
}

nav a:hover::after {
  width: 100%;
}

/* NAV UNDER BANNER LAYOUT FIX */
.nav-under-banner {
  width: 100%;
  margin-top: 10px;
}

.nav-under-banner ul {
  justify-content: center;
  padding: 10px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.nav-under-banner ul li {
  padding: 0 10px;
}

/* Prevent touching edges on mobile */
@media (max-width: 640px) {
  .nav-under-banner ul {
    padding: 12px 0;
    gap: 18px;
  }
}

/* FORCE NAV UNDER LOGO ON ALL SCREEN SIZES */
header {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 14px;
}


/* HERO SECTION */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.hero-large {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: flex-start;
  text-align: center;
  margin-bottom: 40px;
}

.hero-text h1 {
  font-size: 34px;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  max-width: 100%;
}

.hero-text hr {
  border: none;
  border-top: 1px solid rgba(221, 221, 221, 0.6);
  margin: 10px 0;
}

.hero-text h2.green {
  color: #007627;
  font-size:24px;
}

.hero-text h2.blue {
  color: #2d548a;
  font-size:24px;
}

.hero-text h2.red {
  color: #8f0707;
  font-size:24px;
}

/* BUTTONS */
.cta-btn,
.form-submit {
  color: #fff;
  transition: background-color 0.25s ease;
}

.form-submit:hover {
  background-color: #8f0707;
  color: #fff;
}

.cta-btn {
  display: inline-block;
  padding: 12px 26px;
  background: #2d548a;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
}

.cta-btn:hover {
  background-color: #8f0707;
  color: #fff;
}

.form-submit {
  margin-top: 10px;
  padding: 12px 22px;
  background: #2d548a;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
}

/* LOADING SPINNER */
.form-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

.form-submit.loading::after {
  content: "";
  position: absolute;
  right: -30px;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translateY(-50%);
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* SHAKE ANIMATION */
.shake {
  animation: shakeAnim 0.3s;
}

@keyframes shakeAnim {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* HERO IMAGE */
.hero-image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  position: relative;
}

/* HERO SLIDER */
.slider {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 8px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center !important;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* fills the container like background-size: cover */
    object-position: center; /* shows the center of the image */
    display: block;
    pointer-events: none; /* IMPORTANT so clicks hit the slide */
}

.slide.active {
  opacity: 1;
  background-position: center !important;
}

/* FIX: Ensure only the active slide is clickable */
.slide {
  z-index: 0;
  pointer-events: none;
}

.slide.active {
  z-index: 5;
  pointer-events: auto;
}

/* LARGER HERO IMAGE */

.hero-image-large {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* SLIDER BUTTONS */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.25s ease;
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.7);
}

.slider-btn.left {
  left: 10px;
}

.slider-btn.right {
  right: 10px;
}


/* MOBILE */
@media (max-width: 640px) {
  .slider {
    height: 200px;
  }

  .hero {
  align-items: flex-start;
  }

  .hero-image2.slider {
    height: 300px !important; /* or whatever height you want */
  }

  .hero-image2.slider .slide {
    height: 100% !important;
    background-size: contain; /* or cover if you prefer cropping */
    background-repeat: no-repeat;
    background-position: center;
   }

  .hero-image2.slider .slider-btn {
    display: none !important;
  }

}




/* STATIC HERO */
.static-hero {
  width: 100%;
  height: 260px;              /* same height as your hero-image */
  background-size: cover;     /* fills the area like your slider */
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;         /* optional: matches your site’s rounded corners */
  overflow: hidden;
}


/* SERVICES GRID */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.services2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}



.service-card {
  background: #fafafa;
  border-radius: 8px;
  padding: 18px 16px;
  border: 1px solid #e0e0e0;
}

.service-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2d548a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.service-card hr {
  border: none;
  border-top: 1px solid rgba(221, 221, 221, 0.6);
  margin: 10px 0;
}

/* FORM SECTION */
.form-section {
  margin-top: 50px;
  padding: 20px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.form-section h2 {
  margin-bottom: 15px;
  color: #2d548a;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.error-msg {
  color: #8f0707;
  display: none;
  font-size: 13px;
  margin-top: 4px;
}

/* MAP SECTION */
.map-section {
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ccc;
}

.map-section iframe {
  max-width: 100%;
  display: block;
}

/* FOOTER */
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  font-size: 14px;
  color: #555;
}

.footer-left p {
  margin: 4px 0;
}

.footer-link {
  color: #2d548a;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: #8f0707;
}

/* FACEBOOK ICON */
.footer-facebook-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.facebook-icon-wrapper {
  position: relative;
  width: 16px;
  height: 16px;
}

.facebook-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  transition: opacity 0.25s ease;
}

.icon-default {
  opacity: 1;
}

.icon-hover {
  opacity: 0;
}

.footer-facebook-link:hover .icon-default {
  opacity: 0;
}

.footer-facebook-link:hover .icon-hover {
  opacity: 1;
}

.facebook-text {
  color: #2d548a;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.footer-facebook-link:hover .facebook-text {
  color: #8f0707;
}

/* BACK TO TOP BUTTON */
.back-to-top,
.back-to-top:hover,
.back-to-top:focus,
.back-to-top:active {
  color: #fff !important;
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #2d548a;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 999;
  transition: background-color 0.25s ease;
}

.back-to-top:hover {
  background-color: #8f0707;
}

/* MOBILE CALL BAR */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2d548a;
  color: #fff;
  text-align: center;
  padding: 14px 0;
  font-size: 18px;
  font-weight: bold;
  z-index: 999;
  transition: background-color 0.25s ease;
  text-decoration: none;
}

.mobile-call-bar:hover {
  background-color: #8f0707;
}

.mobile-call-bar,
.mobile-call-bar:hover,
.mobile-call-bar:focus,
.mobile-call-bar:active {
  color: #fff !important;
}

/* MOBILE RESPONSIVE */
@media (max-width: 640px) {

  header {
    flex-direction: column;
    gap: 14px;
  }

  .logo-img {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 20px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .services2 {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .back-to-top {
    display: flex;
  }

  .copyright-line {
    margin-bottom: 80px;
  }

  .mobile-call-bar {
    display: block;
  }

  .static-hero {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;

    width: 100% !important;

    /* The correct way to keep it visible without breaking layout */
    min-height: 160px !important;
    height: auto !important;

    overflow: visible !important;

    /* Reduce the gap before the next section */
    margin-bottom: 10px !important;
  }

}

/* LIGHTBOX POPUP */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.lightbox-close:hover {
  color: #8f0707;
}

/* LIGHTBOX ARROWS */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);   /* same semi-transparent black */
  border-radius: 4px;             /* same rounded corners */
  padding: 10px 14px;             /* same padding as slider buttons */
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: 0.2s ease;
}

.lightbox-arrow:hover {
  background: rgba(0,0,0,0.7);    /* same hover darkening */
  color: #8f0707;                 /* same hover color as slider buttons */
}

.lightbox-arrow.left {
  left: 40px;
}

.lightbox-arrow.right {
  right: 40px;
}

/* FLYER GALLERY */
.flyer-gallery {
  max-width: 100%; /* or 650px, 720px — whatever fits your design */
  margin: 40px 0;
  text-align: center;
}

.flyer-gallery p {
  text-align: center;
  font-size: 15px;
  color: #555;
  margin: 5px 0 20px 0;
}

.flyer-gallery a {
  color: #2d548a;
  font-size: 15px;
  font-weight: bold;
  text-decoration: underline;
}

.flyer-gallery hr {
  border: none;
  border-top: 1px solid rgba(221, 221, 221, 0.6);
  margin: 10px 0;
}

.flyer-gallery h2 {
  color: #8f0707;
  font-size:24px;
}

.flyer-gallery h2.blue {
  color: #2d548a;
  font-size:24px;
}

.flyer-gallery h2.black {
  color: #000000;
  font-size:24px;
}

.flyer-gallery h3 {
  color: #2d548a;
  font-size:18px;
}

.flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  justify-items: center;
}

.flyer-thumb {
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flyer-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}





/* DROPDOWN MENU */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: inline-block;
}

/* Hidden by default */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  min-width: 160px;
  padding: 8px 0;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
}

/* Show on hover */
.dropdown:hover .dropdown-menu {
  display: flex;
}

/* Dropdown links */
.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: #2d548a;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  background: #f0f0f0;
  color: #8f0707;
}

/* Prevent nav shifting */
.nav-under-banner ul li {
  display: flex; 
  align-items: center;
}

.nav-under-banner a {
  line-height: 1;
  padding: 6px 0;
}

/* TABLET RESPONSIVE */
@media (max-width: 900px) {
  .static-hero {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;

    height: auto !important;
    min-height: 180px !important;
    overflow: visible !important;

    margin-bottom: 10px !important;
  }
}
