:root {
  --location-navy: #04203b;
  --location-blue: #0068c9;
  --location-cyan: #00a9b8;
  --location-ink: #12263a;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--location-ink);
  background:
    radial-gradient(circle at 12% -8%, #d8ecff 0%, rgba(216, 236, 255, 0) 40%),
    radial-gradient(circle at 92% 12%, #dcfbff 0%, rgba(220, 251, 255, 0) 36%),
    #f5f9ff;
  line-height: 1.55;
}

h1,
h2,
h3,
.logo-text {
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

header {
  margin: 0.8em 0.8em 0;
  border: 1px solid #c9e4f8;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
  box-shadow: 0 18px 40px rgba(4, 32, 59, 0.14);
}

header::before {
  content: "";
  display: block;
  height: 4px;
  margin: 0 0.9em;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--location-blue), var(--location-cyan));
}

.header-flex {
  max-width: 1200px;
  padding: 0.6em 1.2em;
  gap: 1em;
}

.logo-text { color: var(--location-navy); }
.logo-text span { color: var(--location-cyan); }

#main-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2em 0.8em;
  gap: 0.5em;
}

#main-nav a {
  min-height: 36px;
  padding: 0.5em 0.85em;
  border: 1px solid #d4e9f9;
  border-radius: 10px;
  background: #ffffff;
  color: #0f3c63;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(4, 32, 59, 0.08);
}

#main-nav a:hover,
#main-nav a:focus-visible,
#main-nav a.active,
#main-nav a.active-nav {
  background: linear-gradient(130deg, var(--location-blue), var(--location-cyan));
  color: #ffffff;
  border-color: var(--location-blue);
}

body.location-page header .logo-text { color: #082b49 !important; }
body.location-page header .logo-text span { color: #087c89 !important; }

body.location-page .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  width: min(1160px, 100%);
  margin: 1.5rem auto 2.5rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid #d8e6ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(4, 32, 59, 0.1);
  color: #12263a;
  text-align: left;
}

body.location-page .hero-copy {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

body.location-page .hero-copy .hero-eyebrow {
  margin: 0 0 0.75rem;
  color: #087c89;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.location-page .hero-copy h1 {
  margin: 0 0 1rem;
  color: #082b49;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.1;
  text-shadow: none;
}

body.location-page .hero-copy > p:not(.hero-eyebrow) {
  max-width: 56ch;
  margin: 0 0 1.5rem;
  color: #40566b;
  font-size: 1.05rem;
  line-height: 1.7;
  text-shadow: none;
}

body.location-page .hero > img {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: none;
  max-height: 390px;
  margin: 0;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(4, 32, 59, 0.15);
}

body.location-page .hero-copy .button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 0;
}

body.location-page .hero-copy .modern-btn {
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(4, 32, 59, 0.12);
  font-weight: 800;
  text-decoration: none;
}

body.location-page .hero-copy .modern-btn.blue {
  background: #0068c9;
  color: #fff;
}

body.location-page .hero-copy .modern-btn.gold {
  background: #f4b942 !important;
  color: #082b49 !important;
}

body.location-page .hero-copy .modern-btn:focus-visible,
body.location-page .footer-cta-row a:focus-visible {
  outline: 3px solid #087c89;
  outline-offset: 3px;
}

body.location-page .hero-copy .hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  color: #38546a;
  font-size: 0.88rem;
  font-weight: 700;
  list-style: none;
}

body.location-page .hero-copy .hero-trust li::before {
  content: "✓";
  margin-right: 0.4rem;
  color: #087c89;
}

body.location-page main > .section,
body.location-page main > .reviews-section {
  width: min(1160px, 100%);
  margin: 0 auto 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #e0eaf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(4, 32, 59, 0.06);
}

body.location-page main > .section h2,
body.location-page main > .reviews-section h2 {
  color: #082b49;
}

body.location-page [class*="-areas-list"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

body.location-page [class*="-area-chip"] {
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid #d7e8f1;
  border-radius: 999px;
  background: #fff;
  color: #174664;
  font-size: 0.9rem;
  font-weight: 700;
}

body.location-page .footer-cta-row {
  justify-content: center;
  gap: 0.65rem;
}

@media (max-width: 760px) {
  body.location-page .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 1rem auto 1.75rem;
    padding: 1.25rem;
    border-radius: 18px;
  }

  body.location-page .hero-copy { grid-column: 1; grid-row: 1; }
  body.location-page .hero > img {
    grid-column: 1;
    grid-row: 2;
    max-height: 250px;
  }

  body.location-page .hero-copy h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  body.location-page .hero-copy .button-group {
    flex-direction: column;
    align-items: stretch;
  }

  body.location-page .hero-copy .modern-btn {
    width: 100%;
  }

  body.location-page main > .section,
  body.location-page main > .reviews-section {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.location-page *,
  body.location-page *::before,
  body.location-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

main {
  width: min(1280px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.hero {
  max-width: none;
  margin: 1em auto 2em;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(130deg, var(--location-navy) 0%, #00579f 52%, #0a7c9f 100%);
  box-shadow: 0 24px 54px rgba(4, 32, 59, 0.24);
  padding: 2.5rem 2rem 2.8rem;
  display: block;
  text-align: center;
}

@media (min-width: 860px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding: clamp(2rem, 4vw, 4rem);
    text-align: left;
  }

  .hero > img {
    grid-column: 1;
    grid-row: 1 / span 5;
    width: 100%;
    max-height: 430px;
    margin: 0;
    object-fit: cover;
  }

  .hero > h1,
  .hero > p,
  .hero > .button-group,
  .hero > .hero-icons {
    grid-column: 2;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero > h1 { margin-top: 0; }
  .hero > .button-group,
  .hero > .hero-icons { justify-content: flex-start; }
}

.hero > img {
  display: block;
  width: min(100%, 680px);
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 18px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 18px 32px rgba(3, 23, 45, 0.28);
}

.hero-media img {
  width: min(100%, 680px);
  height: auto;
  max-height: 360px;
  object-fit: contain;
  margin: 0 auto;
}

.hero > h1,
.hero > p,
.hero > .button-group,
.hero > .hero-icons {
  color: #ffffff;
  text-shadow: 0 3px 14px rgba(4, 32, 59, 0.35);
  width: min(100%, 760px);
  margin-left: auto;
  margin-right: auto;
}

.hero > h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  max-width: none;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero > p {
  max-width: 65ch;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.55;
  color: #e7f5ff;
}

.hero > .button-group,
.hero > .hero-icons {
  justify-content: center;
  margin-top: 1rem;
}

.hero > .button-group {
  gap: 0.65rem;
}

.hero > .button-group .modern-btn {
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 18px rgba(3, 23, 45, 0.2);
}

.hero > .hero-icons {
  width: 100%;
}

.bingley-areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bingley-area-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.48em 0.72em;
  border: 1px solid #c9e9f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 9px rgba(4, 32, 59, 0.07);
  color: #0f4f83;
  font-size: 0.82rem;
  font-weight: 800;
}

.bingley-coverage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
  margin-top: 0.8rem;
}

.bingley-areas-panel,
.bingley-map-panel {
  min-width: 0;
  border-radius: 16px;
}

.bingley-areas-panel {
  padding: 1.1rem;
  border: 1px solid #d7e8f7;
  background: linear-gradient(145deg, #f8fbff 0%, #eef6ff 100%);
  box-shadow: 0 6px 16px rgba(25, 118, 210, 0.07);
}

.bingley-areas-panel p {
  margin: 0 0 0.9rem;
  color: #475569;
}

.bingley-map-panel {
  padding: 0.9rem;
  background: linear-gradient(145deg, #0f4f95 0%, #1976d2 45%, #0b7285 100%);
  box-shadow: 0 12px 26px rgba(17, 55, 93, 0.22);
  color: #ffffff;
}

.map-title {
  margin-bottom: 0.7rem;
  font-weight: 800;
}

.bingley-map-frame {
  display: block;
  width: 100%;
  min-height: 300px;
  border: 0;
  border-radius: 11px;
  background: #dbeafe;
}

.card img {
  width: 100%;
  height: 180px !important;
  max-height: 180px;
  object-fit: contain !important;
}

.section,
.faq-section,
.reviews-section {
  max-width: none;
  margin: 2.2em auto;
  padding: 2.2em 2em;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  border: 1px solid #d6eaf9;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(4, 32, 59, 0.07);
}

.section::before,
.faq-section::before,
.reviews-section::before {
  content: "";
  display: block;
  height: 3px;
  margin: -2.2em -2em 1.8em;
  background: linear-gradient(90deg, var(--location-blue), var(--location-cyan), #ff9e1b);
}

.section h2,
.faq-section h2,
.reviews-section h2 { color: var(--location-navy); }

.card,
.faq-item {
  background: #ffffff;
  border: 1px solid #d6eaf9;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(4, 32, 59, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.faq-item:hover {
  transform: translateY(-3px);
  border-color: #9bcde9;
  box-shadow: 0 14px 26px rgba(4, 32, 59, 0.12);
}

.card h3,
.faq-question { color: #0f4f83; }

.stat-item.small-header { display: none !important; }

.hero-icon-item img {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.hero-icon-item i,
.hero-icons .hero-icon-item img {
  width: 36px !important;
  height: 36px !important;
}

.hero-icon-item i {
  font-size: 1.1rem !important;
  box-shadow: 0 4px 10px rgba(4, 32, 59, 0.2) !important;
}

.hero-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
  justify-content: stretch;
}

.hero-icon-item {
  min-width: 0;
  width: 100%;
}

.hero-icon-item div {
  overflow-wrap: anywhere;
  line-height: 1.2;
}

 .hero-icons .hero-icon-item img {
  width: 42px !important;
  height: 42px !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 700px) {
  .hero {
    padding: 1.25rem 1rem 1.5rem;
  }
  .hero > img {
    height: 220px;
    margin: 0 auto;
  }
  .hero > p { margin-bottom: 0.8rem; }
  .hero > .button-group,
  .hero > .hero-icons { margin-top: 0.8rem; }
  .hero > .hero-icons { grid-template-columns: 1fr; gap: 0.7rem; }
  .bingley-coverage-grid { grid-template-columns: 1fr; }
  .bingley-map-frame { min-height: 250px; }
}

footer {
  background: linear-gradient(130deg, var(--location-navy), #00579f 52%, #0a7c9f);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 30px rgba(4, 32, 59, 0.16);
}

.footer-regulatory,
.footer-legal-links,
.gas-reg-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  flex-wrap: wrap;
}

.gas-reg-logo {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain;
  flex: 0 0 30px;
}

footer img[src$="bsm-plumbing-services-gas-engineers-west-yorkshire.png"] {
  width: auto;
  max-width: 96px;
  height: 48px;
  object-fit: contain;
  filter: none !important;
  backdrop-filter: none !important;
  image-rendering: auto;
}

.gas-reg-number {
  font-size: 0.82rem;
  line-height: 1.2;
}

.footer-regulatory { margin-top: 1em; }
.footer-legal-links { margin-top: 0.5em; }

@media (max-width: 700px) {
  header { margin: 0.55em 0.55em 0; }
  #main-nav { background: #ffffff; border: 1px solid #cfe5f5; border-radius: 14px; box-shadow: 0 12px 28px rgba(7, 55, 99, 0.18); }
  #main-nav a { width: 100%; justify-content: flex-start; }
  .hero > h1 { font-size: clamp(1.4rem, 4.5vw, 2.2rem); }
  .section,
  .faq-section,
  .reviews-section { padding: 1.4em 1em; }
  .section::before,
  .faq-section::before,
  .reviews-section::before { margin: -1.4em -1em 1.2em; }
  .hero-icons { grid-template-columns: 1fr; gap: 0.7rem; }
  .hero > .button-group .modern-btn { width: 100%; }
}

header .logo-text { color: var(--location-navy) !important; }
header .logo-text span { color: var(--location-cyan) !important; }
header .hamburger {
  background: #ffffff !important;
  border: 1px solid #c9e4f8 !important;
  border-radius: 10px !important;
}
header .hamburger span {
  background: #0f3c63 !important;
}
