/* ==========================================================================
   HEADER & FOOTER REDESIGN
   Clean, professional header + fully redesigned footer
   Brand color: #2F5F8F | Dark: #1a3a5c | Light bg: #f0f4f8
   ========================================================================== */

/* ==========================================================================
   HEADER
   ========================================================================== */

/* --- Remove search icon and GET A QUOTE button --- */
.right-nav .search-area,
.right-nav .search-btn,
.right-nav .theme_btn.theme_btn_border,
.right-nav li:has(.search-btn),
.right-nav li:has(.theme_btn) {
  display: none !important;
}

/* Fallback for browsers without :has() */
.right-btn .search-area {
  display: none !important;
}

/* --- Header bar styling — transparent by default --- */
.cp-header-one .main-header-area {
  padding: 0 24px;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* --- Sticky header — solid white when scrolled --- */
.cp-header-one .main-header-area.sticky-menu {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* --- Logo sizing & alignment --- */
.logo-img {
  display: flex;
  align-items: center;
  height: 70px;
}
.logo-img .img-fluid {
  display: flex;
  align-items: center;
}
.logo-img .img-fluid a {
  display: inline-flex;
  align-items: center;
}
.logo-img .img-fluid img {
  max-height: 48px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

/* --- Navigation links --- */
.navbar-nav > .nav-item > .nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #1a2b3c !important;
  letter-spacing: 0.01em;
  padding: 24px 18px !important;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.navbar-nav > .nav-item > .nav-link:hover {
  color: #2F5F8F !important;
}
.navbar-nav > .nav-item.active > .nav-link {
  color: #2F5F8F !important;
  font-weight: 600;
}

/* --- Nav underline indicator --- */
.navbar-nav > .nav-item > .nav-link::before {
  background-color: #2F5F8F !important;
  height: 2px !important;
  bottom: 16px !important;
  border-radius: 1px;
}

/* --- Fix menu-style-2 layout (Services + other pages) --- */
.main-header-area.menu-style-2 {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.main-header-area.menu-style-2 .navbar-collapse {
  justify-content: flex-end;
}
.main-header-area.menu-style-2 .navbar-nav {
  flex-wrap: nowrap;
}

/* --- Remove extra right-nav spacing --- */
.right-nav {
  margin-left: 0 !important;
  min-width: 0 !important;
}
.right-btn {
  display: none !important;
}

/* --- Hamburger for mobile --- */
.hamburger-menu > a {
  color: #2F5F8F !important;
  font-size: 22px;
}

/* --- CTA buttons: ensure white text on blue bg --- */
.theme_btn.cta-btn,
.theme_btn.black-btn {
  color: #ffffff !important;
}
.theme_btn.cta-btn:hover,
.theme_btn.black-btn:hover {
  color: #ffffff !important;
  background: #1d3f5f !important;
}


/* ==========================================================================
   FOOTER — Complete Redesign
   ========================================================================== */

/* --- Hide old widget-based footer content (the sidebar widgets) --- */
.footer-area .borders-grey,
.footer-area .row.borders-grey {
  display: none !important;
}

/* --- Hide old decorative footer shapes --- */
.footer-area .fot-shape {
  display: none !important;
}

/* --- Main footer container --- */
.footer-area.foter-layout-2,
.footer-area {
  background-color: #0f2137 !important;
  padding-top: 0 !important;
  position: relative;
}

/* --- Custom footer content (injected via PHP) --- */
.me-footer {
  padding: 64px 0 0;
  color: #c8d6e5;
  font-size: 14.5px;
  line-height: 1.7;
}
.me-footer p {
  color: #9bb0c9 !important;
  line-height: 1.75;
}
.me-footer a {
  color: #c8d6e5;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.me-footer a:hover {
  color: #ffffff;
  opacity: 1;
}

/* --- Footer grid --- */
.me-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 991px) {
  .me-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 575px) {
  .me-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- Footer column titles --- */
.me-footer__title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

/* --- About column --- */
.me-footer__about p {
  color: #9bb0c9;
  margin-bottom: 20px;
  line-height: 1.75;
}
.me-footer__logo {
  margin-bottom: 20px;
}
.me-footer__logo img {
  max-height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* --- Links columns --- */
.me-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.me-footer__links li {
  margin-bottom: 12px;
}
.me-footer__links li a {
  color: #9bb0c9;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.me-footer__links li a::before {
  content: "\203A";
  font-size: 16px;
  color: #2F5F8F;
  font-weight: 700;
  line-height: 1;
}
.me-footer__links li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* --- Contact column --- */
.me-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.me-footer__contact-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(47, 95, 143, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a9fd4;
  font-size: 15px;
}
.me-footer__contact-text {
  color: #9bb0c9;
  font-size: 14px;
  line-height: 1.6;
}
.me-footer__contact-text a {
  color: #c8d6e5;
}
.me-footer__contact-text a:hover {
  color: #ffffff;
}
.me-footer__contact-label {
  font-size: 12px;
  color: #6b8aab;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 2px;
}

/* --- Social icons --- */
.me-footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.me-footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(47, 95, 143, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a9fd4;
  font-size: 15px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.me-footer__socials a:hover {
  background: #2F5F8F;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Copyright bar --- */
.me-footer__copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  margin-top: 0;
  color: #6b8aab;
  font-size: 13px;
}
.me-footer__copyright a {
  color: #5a9fd4;
}
.me-footer__copyright a:hover {
  color: #ffffff;
}
@media (max-width: 575px) {
  .me-footer__copyright {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* --- Override old copyright area --- */
.copy-right-area {
  display: none !important;
}

/* ==========================================================================
   GET A QUOTE — Premium Form Styling
   ========================================================================== */

/* --- Form container card --- */
.request-quote-area {
  background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
}
.quote-info-wrapper {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 32px rgba(15, 33, 55, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  padding: 48px 40px !important;
  border: 1px solid rgba(47, 95, 143, 0.08);
}

/* --- Section headings inside form --- */
.quote-info-wrapper .quotes-title h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f2137;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #2F5F8F;
  display: inline-block;
}

/* --- Field labels --- */
.quote-info-wrapper .quotes-title p,
.quote-info-wrapper .col-lg-3 > p:first-child,
.quote-info-wrapper p[style] {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6b8aab;
  margin-bottom: 8px;
}

/* --- Select dropdowns (nice-select) --- */
.quote-info-wrapper .nice-select {
  background: #f7f9fc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  height: auto !important;
  line-height: 1.5 !important;
  font-size: 14px !important;
  color: #1a2b3c !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.quote-info-wrapper .nice-select:hover {
  border-color: #2F5F8F !important;
}
.quote-info-wrapper .nice-select:focus,
.quote-info-wrapper .nice-select.open {
  border-color: #2F5F8F !important;
  box-shadow: 0 0 0 3px rgba(47, 95, 143, 0.12) !important;
  background: #ffffff !important;
}
.quote-info-wrapper .nice-select .current {
  font-weight: 500;
  color: #1a2b3c;
}
.quote-info-wrapper .nice-select .list {
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden;
}
.quote-info-wrapper .nice-select .option {
  padding: 10px 16px !important;
  font-size: 14px !important;
  transition: background 0.15s ease !important;
}
.quote-info-wrapper .nice-select .option:hover,
.quote-info-wrapper .nice-select .option.selected {
  background: #f0f4f8 !important;
  color: #2F5F8F !important;
  font-weight: 600;
}

/* --- Number inputs --- */
.quote-info-wrapper input[type="number"] {
  background: #f7f9fc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: #1a2b3c !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  width: 100%;
  -moz-appearance: textfield;
}
.quote-info-wrapper input[type="number"]:hover {
  border-color: #2F5F8F !important;
}
.quote-info-wrapper input[type="number"]:focus {
  border-color: #2F5F8F !important;
  box-shadow: 0 0 0 3px rgba(47, 95, 143, 0.12) !important;
  background: #ffffff !important;
  outline: none;
}

/* --- Submit button premium styling --- */
.quote-info-wrapper .wpcf7-submit,
.quote-info-wrapper input[type="submit"] {
  background: #2F5F8F !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 16px 48px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease !important;
  box-shadow: 0 4px 16px rgba(47, 95, 143, 0.25);
}
.quote-info-wrapper .wpcf7-submit:hover,
.quote-info-wrapper input[type="submit"]:hover {
  background: #1d3f5f !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(47, 95, 143, 0.35);
}

/* --- Row spacing inside form --- */
.quote-info-wrapper .row {
  margin-bottom: 8px;
}
.quote-info-wrapper .col-lg-3,
.quote-info-wrapper .col-lg-6 {
  margin-bottom: 16px;
}

/* --- Responsive form adjustments --- */
@media (max-width: 991px) {
  .quote-info-wrapper {
    padding: 32px 24px !important;
  }
}
@media (max-width: 575px) {
  .quote-info-wrapper {
    padding: 24px 16px !important;
    border-radius: 12px !important;
  }
  .quote-info-wrapper .wpcf7-submit,
  .quote-info-wrapper input[type="submit"] {
    width: 100%;
    padding: 14px 32px !important;
  }
}
