/* ==========================================================================
   Shared site extras: header "Areas" menu, floating contact buttons and
   the sticky mobile call bar. Kept in one file so the phone number, the
   area list and their styling don't have to be edited across 39 pages.
   ========================================================================== */

/* ---- Page-level overflow guard ----
   The AOS fade-right/fade-left sections start translated outside the
   viewport, which lets the page slide ~80px sideways on phones. clip
   stops that without creating a scroll container, so the fixed call bar
   keeps positioning against the viewport (overflow: hidden can break it). */

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100%;
}

/* ---- Header: Areas mega menu ---- */

.new-header .nav-wrap .areas-dropdown {
  position: relative;
}

.new-header .nav-wrap .areas-dropdown .dropdown-menu-areas {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 10px;
  background: #002827;
  border-top: 3px solid #e7a936;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  padding: 14px 16px;
  z-index: 100;
}

/* Invisible bridge so the menu survives the 12px gap on the way down. */
.new-header .nav-wrap .areas-dropdown .dropdown-menu-areas::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.new-header .nav-wrap .areas-dropdown:hover .dropdown-menu-areas,
.new-header .nav-wrap .areas-dropdown.open .dropdown-menu-areas {
  display: grid;
}

.new-header .nav-wrap .areas-dropdown .dropdown-menu-areas a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 5px;
  transition: background 0.25s ease, color 0.25s ease;
}

.new-header .nav-wrap .areas-dropdown .dropdown-menu-areas a:hover,
.new-header .nav-wrap .areas-dropdown .dropdown-menu-areas a.active {
  color: #e7a936;
  background: rgba(231, 169, 54, 0.1);
}

/* The underline animation is for top-level items only. */
.new-header .nav-wrap .areas-dropdown .dropdown-menu-areas a::after {
  display: none;
}

@media (max-width: 900px) {
  /* Hover can't be tapped, so the menu opens on click and sits inline. */
  .new-header .nav-wrap .areas-dropdown {
    width: 100%;
    text-align: center;
  }

  .new-header .nav-wrap .areas-dropdown:hover .dropdown-menu-areas {
    display: none;
  }

  .new-header .nav-wrap .areas-dropdown.open .dropdown-menu-areas {
    display: grid;
  }

  .new-header .nav-wrap .areas-dropdown .dropdown-menu-areas {
    position: static;
    transform: none;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 12px;
    max-height: 45vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border-top: 2px solid #e7a936;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
  }

  .new-header .nav-wrap .areas-dropdown .dropdown-menu-areas a {
    text-align: left;
    font-size: 13.5px;
    padding: 9px 8px;
  }
}

/* ---- Floating contact buttons ---- */

.contact-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 26px;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-float a:hover,
.contact-float a:focus {
  transform: scale(1.1);
  color: #ffffff;
}

.contact-float .float-call {
  background: #c28917;
  box-shadow: 0 4px 20px rgba(194, 137, 23, 0.5);
}

.contact-float .float-call:hover,
.contact-float .float-call:focus {
  box-shadow: 0 6px 30px rgba(231, 169, 54, 0.7);
}

.contact-float .float-wa {
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
}

.contact-float .float-wa:hover,
.contact-float .float-wa:focus {
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

/* ---- Sticky mobile call bar ---- */

.mobile-call-bar {
  display: none;
}

@media (max-width: 768px) {
  /* The bar replaces the floating buttons on small screens. */
  .contact-float {
    display: none;
  }

  .mobile-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    background: #002827;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.25);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mobile-call-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
  }

  .mobile-call-bar a i {
    font-size: 17px;
  }

  .mobile-call-bar .bar-call {
    background: #c28917;
  }

  .mobile-call-bar .bar-wa {
    background: #25d366;
  }

  .mobile-call-bar a:active {
    filter: brightness(0.92);
  }

  /* Stop the bar covering the end of the page. Matches the bar's own height. */
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   Area page FAQ accordion
   Styles the FAQ section on the area pages once custom.js has upgraded it
   into an accordion. Selectors are scoped to the generated .faq-accordion
   classes so they override the base .loc-service-card rules and never touch
   the "Our Services" grid that shares the same markup.
   ========================================================================== */

.faq-accordion-section .faq-accordion {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  grid-template-columns: none;
}

.faq-accordion .faq-item {
  background: #ffffff;
  border: none;
  border-left: 0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 40, 39, 0.06);
  margin-bottom: 18px;
  padding: 0;
  overflow: hidden;
}

.faq-accordion .faq-item:last-child {
  margin-bottom: 0;
}

.faq-accordion .faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  padding: 26px 30px;
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  color: #002827;
  -webkit-tap-highlight-color: transparent;
}

.faq-accordion .faq-q:focus {
  outline: none;
}

/* Keep a visible ring only for keyboard navigation (accessibility) */
.faq-accordion .faq-q:focus-visible {
  outline: 2px solid #0d5855;
  outline-offset: -2px;
  border-radius: 12px;
}

.faq-accordion .faq-q-text {
  flex: 1 1 auto;
}

/* Plus / minus icon built from two bars */
.faq-accordion .faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.faq-accordion .faq-icon::before,
.faq-accordion .faq-icon::after {
  content: "";
  position: absolute;
  background: #0d5855;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-accordion .faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  transform: translateY(-50%);
}

.faq-accordion .faq-icon::after {
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-accordion .faq-item.open .faq-icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}

.faq-accordion .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-accordion .faq-a-inner {
  padding: 0 30px 26px;
  color: #555555;
  font-size: 16px;
  line-height: 1.7;
}

.faq-accordion .faq-a-inner p {
  margin: 0;
}

@media (max-width: 580px) {
  .faq-accordion .faq-q {
    font-size: 16px;
    padding: 20px 22px;
  }

  .faq-accordion .faq-a-inner {
    padding: 0 22px 20px;
  }
}

/* ==========================================================================
   Area page clickable "Our Services" cards
   custom.js wraps each service card's contents in an .loc-service-link and
   flags the card as clickable. These rules give the whole card a pointer,
   remove the link's default styling and add a subtle hover lift.
   ========================================================================== */

.loc-service-card--clickable {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    border-left-color 0.3s ease;
}

.loc-service-card--clickable:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 40, 39, 0.12);
  border-left-color: #c28917;
}

.loc-service-card--clickable .loc-service-link {
  display: block;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.loc-service-card--clickable .loc-service-link:focus-visible {
  outline: 2px solid #0d5855;
  outline-offset: 4px;
  border-radius: 6px;
}

.loc-service-card--clickable .loc-service-link h3 {
  transition: color 0.3s ease;
}

.loc-service-card--clickable:hover .loc-service-link h3 {
  color: #c28917;
}


/* ==========================================================================
   Area page "service availability + quick pills" block
   Inserted directly after the "Our Locksmith Services in ..." section on
   every area page. Continues the same soft blue-grey background so it reads
   as part of the services block.
   ========================================================================== */

.svc-availability {
  background: #e9f0f0;
  padding: 0 20px 80px;
}

.svc-availability-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.svc-availability .svc-lead,
.svc-availability .svc-note {
  font-family: "Nunito Sans", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #555555;
}

.svc-availability .svc-lead {
  margin: 0 0 28px;
}

.svc-availability .svc-note {
  margin: 28px 0 0;
}

.svc-availability .svc-lead a,
.svc-availability .svc-note a {
  color: #c28917;
  font-weight: 700;
  text-decoration: underline;
}

.svc-availability .svc-lead a:hover,
.svc-availability .svc-note a:hover {
  color: #002827;
}

.svc-availability .svc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.svc-availability .svc-pill {
  display: inline-block;
  background: #ffffff;
  color: #002827;
  font-family: "Nunito Sans", sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  border: 1px solid #e6eeee;
  box-shadow: 0 3px 10px rgba(0, 40, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.svc-availability .svc-pill:hover {
  background: #c28917;
  color: #ffffff;
  border-color: #c28917;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(194, 137, 23, 0.25);
}

@media (max-width: 580px) {
  .svc-availability .svc-lead,
  .svc-availability .svc-note {
    font-size: 16px;
  }

  .svc-availability .svc-pill {
    font-size: 14px;
    padding: 10px 18px;
  }
}

/* ==========================================================================
   Area page "Our Work" block
   Inserted directly after the FAQ section on every area page. Uses the same
   soft blue-grey background as the FAQ block so the two read as one unit,
   with the site's navy heading, grey body copy and gold link.
   ========================================================================== */

.loc-ourwork {
  background: #e9f0f0;
  padding: 0 20px 80px;
}

.loc-ourwork-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.loc-ourwork h2 {
  font-family: "Nunito Sans", sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #002827;
  margin: 0 0 18px;
}

.loc-ourwork p {
  font-family: "Nunito Sans", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #555555;
  margin: 0;
}

.loc-ourwork a {
  color: #c28917;
  font-weight: 700;
  text-decoration: underline;
}

.loc-ourwork a:hover {
  color: #002827;
}

@media (max-width: 580px) {
  .loc-ourwork h2 {
    font-size: 26px;
  }

  .loc-ourwork p {
    font-size: 16px;
  }
}

/* Main service areas: listed first in the Areas dropdown and picked out in gold. */
.new-header .nav-wrap .areas-dropdown .dropdown-menu-areas a.main-area {
  color: #e7a936;
  font-weight: 800;
}

.new-header .nav-wrap .areas-dropdown .dropdown-menu-areas a.main-area:hover {
  color: #ffffff;
  background: rgba(231, 169, 54, 0.25);
}

/* Visual break between the main areas (first 12) and the rest. */
.new-header .nav-wrap .areas-dropdown .dropdown-menu-areas a.main-area:nth-child(n + 10) {
  margin-bottom: 8px;
}

/* ---- Google reviews (Featurable) ----
   One section per page wrapping the Featurable embed. It ships hidden;
   assets/js/reviews.js reveals it only once Featurable is serving real
   reviews. The widget draws its own title inside a shadow root, so the
   section adds no heading of its own (set the title in Featurable). */

.reviews-widget-section {
  background: #fff;
  border-top: 1px solid #e3ecec;
  border-bottom: 1px solid #e3ecec;
  padding: 24px 20px;
}

.reviews-widget-section[hidden] {
  display: none;
}

.reviews-widget-section .reviews-widget-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-widget-section .reviews-widget-embed {
  min-height: 220px; /* holds space while the async widget loads */
}

@media (max-width: 767px) {
  .reviews-widget-section {
    padding: 16px 12px;
  }
}
