/* Mark Ryan Plumbing & Heating - Professional Website Styles */
:root {
  --primary: #003087;
  --primary-dark: #001f5c;
  --primary-light: #1a4db0;
  --accent: #00a3e0;
  --accent-dark: #0088c0;
  --yellow: #ffd100;
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --bg-dark: #0a1628;
  --border: #e0e7f0;
  --success: #28a745;
  --shadow: 0 4px 20px rgba(0, 48, 135, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 48, 135, 0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top Bar */
.top-bar {
  background: var(--bg-dark);
  color: #fff;
  padding: 10px 0;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 1100;
  min-height: 48px;
  box-sizing: border-box;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: #fff;
}

.top-bar a:hover {
  color: var(--yellow);
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar .phone {
  font-weight: 600;
  font-size: 1.05rem;
}

.gas-safe-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  padding: 0;
  border-radius: 0;
  font-weight: 400;
  font-size: 0.9rem;
}

.gas-safe-badge img {
  height: 36px;
  width: auto;
  display: block;
}

/* Header / Nav */
header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}

.logo img {
  height: 113px;
  width: auto;
  max-width: 390px;
  object-fit: contain;
}

nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
}

nav a {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 9px;
  border-radius: 4px;
  display: block;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  background: var(--primary);
  color: #fff;
}

.nav-cta {
  /* same as other nav links - no special box */
  margin-left: 0;
}

.nav-cta:hover {
  background: var(--primary);
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: #0a1628 url("../images/Baxi_Boiler_Kitchen.webp") center 20% / cover no-repeat;
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,22,40,0.82) 0%, rgba(10,22,40,0.55) 45%, rgba(10,22,40,0.35) 100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero-content {
  margin: 0 auto;
}
.hero-content p {
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  justify-content: center;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--yellow);
  color: #000;
}

.btn-primary:hover {
  background: #ffe033;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 209, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--primary);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-feature {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}

.hero-feature .icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.hero-feature strong {
  display: block;
  font-size: 1.1rem;
}

.hero-feature span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Trust Bar */
.trust-bar {
  background: var(--bg-alt);
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--primary-dark);
}

.trust-item img {
  height: 40px;
  width: auto;
}

.trust-item .stars {
  color: #f5a623;
  letter-spacing: 2px;
}

/* Sections */
section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.bg-alt {
  background: var(--bg-alt);
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-card .icon {
  width: 96px;
  height: 96px;
  min-height: 96px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 0;
  overflow: visible;
  flex-shrink: 0;
}
.service-card .icon svg {
  width: 96px;
  height: 96px;
  display: block;
}
.service-card .icon img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-light);
  flex-grow: 1;
  margin-bottom: 18px;
}

.service-card a {
  font-weight: 700;
  color: var(--accent);
}

.service-card a:hover {
  color: var(--primary);
}

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.why-item {
  text-align: center;
  padding: 24px;
}

.why-item .num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.why-item h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.why-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Reviews */
.reviews-section {
  background: var(--bg-dark);
  color: #fff;
  padding: 70px 0;
}

.reviews-section .section-title h2 {
  color: #fff;
}

.reviews-section .section-title p {
  color: rgba(255,255,255,0.75);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.reviews-marquee {
  overflow: hidden;
  width: 100%;
  margin: 10px 0 30px;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-reviews 45s linear infinite;
}
.reviews-track:hover {
  animation-play-state: paused;
}
.reviews-marquee .review-card {
  flex: 0 0 340px;
  width: 340px;
}
@keyframes scroll-reviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px;
}

.review-card .stars {
  color: var(--yellow);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-card p {
  font-style: italic;
  margin-bottom: 16px;
  opacity: 0.95;
  line-height: 1.7;
}

.review-card .author {
  font-weight: 700;
  font-size: 0.95rem;
}

.review-card .source {
  font-size: 0.8rem;
  opacity: 0.6;
}

.google-reviews-embed {
  text-align: center;
  margin-top: 30px;
}

.google-reviews-embed a.btn {
  display: inline-flex;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
}
.google-reviews-embed a.btn:hover {
  background: #fff;
  color: var(--primary);
}

.google-reviews-embed a:hover {
  background: var(--yellow);
  color: #000;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.cta-banner p {
  margin-bottom: 24px;
  opacity: 0.95;
  font-size: 1.1rem;
}

.cta-banner .phone-big {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-banner .phone-big a {
  color: #fff;
}

.cta-banner .phone-big a:hover {
  color: var(--yellow);
}

/* Page Header (inner pages) */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 50px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Content */
.content-section {
  padding: 50px 0 70px;
}

.content-block {
  max-width: 800px;
  margin: 0 auto 40px;
}

.content-block h2 {
  color: var(--primary-dark);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.content-block h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin: 24px 0 12px;
}

.content-block p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.content-block ul {
  margin: 16px 0 16px 24px;
  color: var(--text-light);
}

.content-block ul li {
  margin-bottom: 8px;
}

.highlight-box {
  background: #fff8e1;
  border-left: 4px solid var(--yellow);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.highlight-box p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

/* Areas Grid */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.area-item {
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  color: var(--primary-dark);
  transition: var(--transition);
}

.area-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Hours Table */
.hours-table {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hours-table th,
.hours-table td {
  padding: 14px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.hours-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table tr:nth-child(even) {
  background: var(--bg-alt);
}

/* Contact / Map */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.contact-info p {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-info strong {
  color: var(--primary);
  min-width: 80px;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 350px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand > a img,
.footer-brand > img {
  height: 90px;
  width: auto;
  max-width: 340px;
  margin-bottom: 16px;
  object-fit: contain;
}

.footer-brand .gas-safe-badge {
  margin-top: 8px;
}

.footer-brand .gas-safe-badge img {
  height: 40px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-contact a {
  color: rgba(255,255,255,0.9);
}

.footer-contact a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0 28px;
  text-align: center;
  font-size: 0.85rem;
  background: var(--bg-dark);
}

.footer-bottom a {
  color: var(--yellow);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin-top: 12px;
  opacity: 0.7;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* Emergency badge */
.emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc3545;
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
}

/* Responsive */
@media (max-width: 900px) {
  .logo img {
    height: 85px;
    max-width: 280px;
  }
  nav a {
    font-size: 0.75rem;
    padding: 6px 6px;
  }
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-features {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  nav ul {
    display: none;
  }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }
  .mobile-menu-btn {
    display: block;
  }
  .header-inner {
    position: relative;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: 60px;
    max-width: 200px;
  }
  .hero-content h1 {
    font-size: 1.9rem;
  }
  .hero-features {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section-title h2 {
    font-size: 1.7rem;
  }
  .page-header h1 {
    font-size: 1.8rem;
  }
  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }




.whatsapp-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.whatsapp-line .wa-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.footer-brand > img {
  /* white logo on dark footer */
}


.footer-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  width: 100%;
}
.footer-badges .baxi-badge {
  margin-left: 40px;
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 4px 8px;
}
.footer-badges .baxi-badge {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 4px 8px;
}


/* --- Refinements: clearer hierarchy, stronger conversion, better accessibility --- */
.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  transform: translateY(-150%);
  background: var(--yellow);
  color: #000;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 800;
  z-index: 2000;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.header-inner { min-height: 88px; }
.logo img { height: 78px; max-width: 330px; }
nav a { font-size: 0.86rem; padding: 9px 10px; }
.nav-cta {
  background: var(--yellow);
  color: #000 !important;
  font-weight: 800;
  margin-left: 6px;
}
.nav-cta:hover { background: #ffe033 !important; color: #000 !important; }

.hero {
  padding: 130px 0 122px;
  min-height: 540px;
}
.hero .container { max-width: 980px; }
.hero-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  font-size: .9rem !important;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4.15rem); max-width: 900px; margin-left: auto; margin-right: auto; }
.hero-content p:not(.hero-kicker) { font-size: 1.2rem; max-width: 680px; }
.hero-buttons .btn { min-width: 175px; justify-content: center; }

section { padding: 82px 0; }
.section-title { margin-bottom: 46px; }
.section-title h2 { font-size: clamp(1.9rem, 3vw, 2.45rem); }
.services-grid { gap: 28px; }
.service-card { padding: 32px; border-radius: 12px; }
.service-card h3 { font-size: 1.3rem; }
.service-card a { display: inline-flex; align-items: center; gap: 5px; }

.why-item { padding: 28px 20px; }
.why-item .num { width: 52px; height: 52px; }

.reviews-section { padding: 82px 0; }
.review-card { border-radius: 12px; }
.google-reviews-embed a.btn:hover { background: var(--yellow); color: #000; border-color: var(--yellow); }

.contact-grid { gap: 50px; }
.contact-info { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; box-shadow: var(--shadow); }
.map-container { height: 380px; border-radius: 12px; }

footer { padding-top: 60px; }
.footer-badges { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 14px 16px; }
.footer-badges .baxi-badge { margin-left: 20px; }

@media (max-width: 1150px) {
  .header-inner { min-height: 82px; }
  .logo img { height: 70px; max-width: 285px; }
  nav a { font-size: .78rem; padding: 8px 6px; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 74px; }
  .logo img { height: 64px; max-width: 245px; }
  nav a { font-size: .95rem; padding: 11px 12px; }
  .nav-cta { margin-left: 0; }
  .hero { padding: 104px 0 96px; min-height: 500px; background-position: center 18%; }
  section { padding: 68px 0; }
}

@media (max-width: 600px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .header-inner { padding: 8px 0; }
  .logo img { height: 54px; max-width: 205px; }
  .hero { padding: 84px 0 78px; min-height: 460px; background-position: center 16%; }
  .hero-content h1 { font-size: 2.15rem; }
  .hero-content p:not(.hero-kicker) { font-size: 1.05rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  section { padding: 58px 0; }
  .contact-info { padding: 24px; }
  .map-container { height: 300px; }
  .footer-badges { align-items: flex-start; }
  .footer-badges .baxi-badge { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Refined Our Services icon set */
.service-card .service-icon {
  width: 76px;
  height: 76px;
  min-height: 76px;
  margin-bottom: 18px;
}
.service-card .service-icon svg {
  width: 76px;
  height: 76px;
}
@media (max-width: 600px) {
  .service-card .service-icon,
  .service-card .service-icon svg {
    width: 68px;
    height: 68px;
    min-height: 68px;
  }
}


/* Footer accreditation panel: content-sized with symmetrical side spacing */
.footer-brand .footer-badges {
  width: fit-content;
  max-width: 100%;
  padding: 14px 18px;
  gap: 22px;
  justify-content: center;
}
.footer-brand .footer-badges .baxi-badge {
  margin-left: 0;
}
@media (max-width: 600px) {
  .footer-brand .footer-badges {
    width: fit-content;
    padding-left: 14px;
    padding-right: 14px;
    gap: 14px;
    align-items: center;
  }
}


/* Consistent service-page actions */
.page-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  margin-top: 8px;
  width: 100%;
}
.page-actions .btn {
  flex: 1 1 0;
  width: auto;
  max-width: 190px;
  min-height: 48px;
  padding: 12px 18px;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.page-actions .btn-secondary {
  color: var(--primary);
  border-color: var(--primary);
}


/* Desktop nav balance: create a little breathing room at the right edge */
@media (min-width: 901px) {
  nav { padding-right: 44px; }
}

/* Mobile header refinement */
@media (max-width: 900px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .logo { margin-right: 0; }
  .logo img {
    height: 78px;
    max-width: 285px;
  }
  .mobile-menu-btn {
    margin-left: auto;
    flex: 0 0 auto;
  }
  nav {
    flex: 0 0 0;
    width: 0;
    min-width: 0;
  }
  nav ul.open {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .header-inner { min-height: 78px; }
  .logo img {
    height: 70px;
    max-width: 255px;
  }
  .mobile-menu-btn {
    padding: 10px 13px;
    font-size: 1.25rem;
  }
}

/* Keep all Our Services icons visually consistent */
.service-card .service-icon img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .service-card .service-icon img {
    width: 68px;
    height: 68px;
  }
}

/* Emergency Call-Out nav button: match the hover/active text treatment of other menu items */
.nav-cta:hover,
.nav-cta.active {
  background: var(--primary) !important;
  color: #fff !important;
}

/* Five balanced Why Choose Us reasons */
@media (min-width: 1100px) {
  .why-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
  .why-item { padding-left: 12px; padding-right: 12px; }
}


/* Refined footer contact details: clean text-led treatment */
.footer-contact-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-contact-label {
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contact-value {
  color: rgba(255,255,255,0.86);
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-contact-value a {
  color: rgba(255,255,255,0.92);
  font-size: inherit;
}

.footer-contact-value a:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .footer-contact-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}


/* Final site-wide refinements: restrained reviews and small-screen consistency */
.reviews-grid-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1120px;
  margin: 8px auto 0;
}
.reviews-grid-featured .review-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.reviews-grid-featured .review-card p { flex: 1; }

/* Keep footer trust copy understated and consistent with the site's body typography */
.footer-brand .gas-safe-badge {
  font-weight: 400;
  font-family: inherit;
}

@media (max-width: 900px) {
  .reviews-grid-featured { grid-template-columns: 1fr; max-width: 620px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .content-section .content-block { max-width: 760px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; gap: 8px; }
  .why-item { padding: 20px 12px; }
  .reviews-section { padding-top: 58px; padding-bottom: 58px; }
  .review-card { padding: 22px; }
  .google-reviews-embed { margin-top: 22px; }
  .contact-grid { gap: 26px; }
  .footer-grid { gap: 28px; }
  .footer-bottom { padding-bottom: 24px; }
}

@media (max-width: 420px) {
  .page-actions { flex-direction: column; align-items: stretch; }
  .page-actions .btn { max-width: none; width: 100%; }
  .footer-contact-item { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
}


/* Launch-quality refinement pass */
html { scroll-padding-top: 110px; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
.btn { min-height: 46px; }
.service-card a, .footer-col a, .footer-contact-value a { text-underline-offset: 3px; }
.review-card .stars { letter-spacing: .08em; }
.contact-info strong { display: inline-block; min-width: 70px; color: var(--primary-dark); }
.footer-legal { line-height: 1.65; }

@media (max-width: 900px) {
  nav ul.open { max-height: calc(100vh - 90px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 600px) {
  .section-title { margin-bottom: 34px; }
  .service-card { padding: 26px 22px; }
  .contact-info strong { min-width: 64px; }
}
@media (prefers-contrast: more) {
  :root { --text-light: #333; --border: #b9c6d8; }
}

/* Wider mobile menu button to make better use of header whitespace */
@media (max-width: 900px) {
  .mobile-menu-btn {
    width: 104px;
    min-width: 104px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .mobile-menu-btn {
    width: 100px;
    min-width: 100px;
  }
}

/* Stronger, longer hamburger icon within the wider mobile menu button */
.mobile-menu-btn .hamburger-icon {
  width: 58px;
  height: 26px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-menu-btn .hamburger-icon span {
  display: block;
  width: 100%;
  height: 4px;
  background: currentColor;
  border-radius: 999px;
}
@media (max-width: 600px) {
  .mobile-menu-btn .hamburger-icon {
    width: 60px;
    height: 27px;
  }
}

/* Mobile hamburger icon — explicit, robust rendering */
@media (max-width: 900px) {
  .mobile-menu-btn {
    width: 104px;
    min-width: 104px;
    height: 54px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-btn .hamburger-icon {
    display: flex;
    width: 68px;
    height: 30px;
    margin: 0;
    flex: 0 0 68px;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
  }

  .mobile-menu-btn .hamburger-icon span {
    display: block !important;
    width: 68px !important;
    height: 4px !important;
    min-height: 4px;
    flex: 0 0 4px;
    background-color: #ffffff !important;
    border-radius: 2px;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 600px) {
  .mobile-menu-btn {
    width: 100px;
    min-width: 100px;
    height: 52px;
    padding: 0 14px;
  }

  .mobile-menu-btn .hamburger-icon,
  .mobile-menu-btn .hamburger-icon span {
    width: 66px !important;
  }

  .mobile-menu-btn .hamburger-icon {
    flex-basis: 66px;
  }
}

/* Final mobile hamburger fix: draw the three bars directly into the button background.
   This avoids browser/layout issues with nested span elements. */
@media (max-width: 900px) {
  .mobile-menu-btn {
    width: 104px !important;
    min-width: 104px !important;
    height: 54px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 4px !important;
    background-color: var(--primary) !important;
    background-image:
      linear-gradient(#ffffff, #ffffff),
      linear-gradient(#ffffff, #ffffff),
      linear-gradient(#ffffff, #ffffff) !important;
    background-size: 68px 4px, 68px 4px, 68px 4px !important;
    background-position: center 13px, center 25px, center 37px !important;
    background-repeat: no-repeat !important;
    font-size: 0 !important;
  }

  .mobile-menu-btn .hamburger-icon,
  .mobile-menu-btn .hamburger-icon span {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .mobile-menu-btn {
    width: 100px !important;
    min-width: 100px !important;
    height: 52px !important;
    background-size: 66px 4px, 66px 4px, 66px 4px !important;
    background-position: center 12px, center 24px, center 36px !important;
  }
}


/* Definitive mobile hamburger icon: inline SVG, independent of nested span styling. */
@media (max-width: 900px) {
  .mobile-menu-btn {
    width: 104px !important; min-width: 104px !important; height: 54px !important;
    padding: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important;
    background: #003087 !important; border: 0 !important; border-radius: 4px !important;
  }
  .mobile-menu-btn .mobile-menu-svg { display:block !important; width:72px !important; height:32px !important; overflow:visible; }
  .mobile-menu-btn .mobile-menu-svg line { stroke:#fff !important; stroke-width:3 !important; stroke-linecap:round !important; vector-effect:non-scaling-stroke; }
}
@media (max-width: 600px) {
  .mobile-menu-btn { width:100px !important; min-width:100px !important; height:52px !important; }
  .mobile-menu-btn .mobile-menu-svg { width:68px !important; height:30px !important; }
}

/* Mobile header final refinement: lighter menu bars and more breathing room for logo */
@media (max-width: 900px) {
  .header-inner { padding-left: 22px !important; }
  .mobile-menu-btn .mobile-menu-svg line { stroke-width: 2 !important; }
}
@media (max-width: 600px) {
  .header-inner { padding-left: 20px !important; }
}


/* Balanced mobile header: equal whitespace at left, centre and right */
@media (max-width: 600px) {
  .header-inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 12px !important;
    justify-content: flex-start !important;
  }
  .header-inner .logo {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .header-inner .logo img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: 70px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  .header-inner .mobile-menu-btn {
    flex: 0 0 100px !important;
    margin: 0 !important;
  }
}




/* Website enquiry form */
.website-enquiry-section {
  padding: 72px 0;
}
.website-form-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.website-enquiry-form {
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}
.website-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field-full {
  grid-column: 1 / -1;
}
.form-field label {
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #cfd4d8;
  border-radius: 5px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: inherit;
}
.form-field select {
  min-height: 48px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
}
.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 18px;
  line-height: 1.45;
  cursor: pointer;
}
.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}
.website-submit {
  border: 0;
  cursor: pointer;
}
.website-submit:disabled {
  opacity: .7;
  cursor: wait;
}
.website-form-note {
  margin: 12px 0 0;
  font-size: .9rem;
  color: #5d6469;
}
.enquiry-status {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 5px;
  font-weight: 600;
  line-height: 1.45;
}
.enquiry-status.success {
  background: #edf7ef;
  border: 1px solid #9fc9a6;
  color: #215b2c;
}
.enquiry-status.info {
  background: #f4f6f8;
  border: 1px solid #cdd3d8;
  color: #343a40;
}
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 600px) {
  .website-enquiry-section { padding: 52px 0; }
  .website-enquiry-form { padding: 22px 18px; }
  .website-form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-field-full { grid-column: auto; }
  .website-submit { width: 100%; text-align: center; }
}


/* Request a Callback appears in the hamburger menu only */
.mobile-callback-link { display: none; }
@media (max-width: 900px) {
  #main-nav .mobile-callback-link { display: list-item; }
}


/* Mobile footer contact spacing */
@media (max-width: 600px) {
  .footer-contact-item {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    column-gap: 14px !important;
  }
}

/* Homepage local service area */
.local-service-area .local-area-panel {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.local-service-area .local-area-panel p {
  margin: 0 auto 24px;
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.75;
}


/* Areas we cover — clean responsive list */
.areas-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3;
  column-gap: 54px;
  max-width: 980px;
  margin-inline: auto;
}
.areas-list li {
  break-inside: avoid;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.10);
  font-size: 1rem;
  line-height: 1.35;
}
@media (max-width: 900px) {
  .areas-list {
    columns: 2;
    column-gap: 36px;
  }
}
@media (max-width: 560px) {
  .areas-list {
    columns: 1;
  }
}




/* Floating contact prompt */
.floating-callback {
  position: fixed;
  right: 22px;
  bottom: 22px;
  left: auto;
  z-index: 1200;
  width: auto;
  max-width: calc(100vw - 32px);
  padding: 15px 17px 14px;
  background: rgba(0, 48, 135, 0.72);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.floating-callback.is-visible {
  display: block;
  animation: callbackIn .28s ease-out both;
}
.floating-callback strong {
  display: block;
  padding-right: 30px;
  margin-bottom: 11px;
  font-size: 1.08rem;
}
.floating-callback span {
  display: block;
  margin-bottom: 15px;
  font-size: .9rem;
  line-height: 1.45;
  color: rgba(255,255,255,.9);
}
.floating-callback-actions {
  display: flex;
  gap: 9px;
  align-items: stretch;
}
.floating-callback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .78rem;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.floating-callback-btn:hover {
  transform: translateY(-1px);
}
.floating-callback-call {
  flex: 0 0 auto;
  background: #fff;
  color: #003087 !important;
}
.floating-callback-request {
  flex: 0 0 auto;
  background: var(--yellow);
  color: #111 !important;
}
.floating-callback-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.95);
  font-size: 25px;
  line-height: 30px;
  cursor: pointer;
}
@keyframes callbackIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 600px) {
  .floating-callback {
    right: 12px;
    bottom: 12px;
    left: auto;
    width: auto;
    max-width: calc(100vw - 24px);
    padding: 14px 15px 13px;
    border-radius: 16px;
  }
  .floating-callback-actions {
    gap: 7px;
  }
  .floating-callback-btn {
    font-size: .74rem;
    padding: 9px 10px;
  }
}


/* Enquiry success notification */
.enquiry-success-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2000;
  width: min(430px, calc(100vw - 32px));
  padding: 22px 24px;
  background: rgba(0, 48, 135, .72);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -46%) scale(.98);
  transition: opacity .25s ease, transform .25s ease;
}
.enquiry-success-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.enquiry-success-toast strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.15rem;
}
.enquiry-success-toast span {
  display: block;
  line-height: 1.55;
  font-size: .95rem;
}


/* Mobile menu — reduced button size */
@media (max-width: 600px) {
  .header-inner .mobile-menu-btn {
    flex: 0 0 82px !important;
    width: 82px !important;
    min-width: 82px !important;
    height: 44px !important;
  }
  .header-inner .mobile-menu-btn .mobile-menu-svg {
    width: 56px !important;
    height: 25px !important;
  }
}


/* Mobile menu — square button */
@media (max-width: 600px) {
  .header-inner .mobile-menu-btn {
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
  }
  .header-inner .mobile-menu-btn .mobile-menu-svg {
    width: 30px !important;
    height: 22px !important;
  }
}


/* Mobile menu — balanced hamburger line spacing */
@media (max-width: 600px) {
  .header-inner .mobile-menu-btn .mobile-menu-svg {
    width: 30px !important;
    height: 24px !important;
  }
}


/* Mobile menu — standard hamburger proportions */
@media (max-width: 600px) {
  .header-inner .mobile-menu-btn .mobile-menu-svg {
    width: 30px !important;
    height: 28px !important;
  }
}


/* Mobile menu — conventional 7px hamburger spacing */
@media (max-width: 600px) {
  .header-inner .mobile-menu-btn .mobile-menu-svg {
    width: 30px !important;
    height: 24px !important;
  }
}


/* Mobile menu — corrected visual hamburger spacing */
@media (max-width: 600px) {
  .header-inner .mobile-menu-btn .mobile-menu-svg {
    width: 30px !important;
    height: 26px !important;
  }
}


/* Mobile menu — wider visual spacing */
@media (max-width: 600px) {
  .header-inner .mobile-menu-btn .mobile-menu-svg {
    width: 30px !important;
    height: 28px !important;
  }
}


/* Mobile menu — 1.5x wider line spacing */
@media (max-width: 600px) {
  .header-inner .mobile-menu-btn .mobile-menu-svg {
    width: 30px !important;
    height: 32px !important;
  }
}

/* Mobile menu — white button with blue hamburger */
@media (max-width: 600px) {
  .header-inner .mobile-menu-btn {
    background: #fff !important;
    border: 2px solid #003087 !important;
  }
  .header-inner .mobile-menu-btn .mobile-menu-svg line {
    stroke: #003087 !important;
  }
}


/* FINAL mobile hamburger colour override */
@media (max-width: 600px) {
  button.mobile-menu-btn,
  .header-inner button.mobile-menu-btn,
  .mobile-menu-btn,
  .mobile-menu-btn:hover,
  .mobile-menu-btn:focus,
  .mobile-menu-btn:active,
  .mobile-menu-btn[aria-expanded="true"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 2px solid #003087 !important;
    box-shadow: none !important;
  }

  button.mobile-menu-btn .mobile-menu-svg line,
  .header-inner .mobile-menu-btn .mobile-menu-svg line,
  .mobile-menu-btn .mobile-menu-svg line {
    stroke: #003087 !important;
  }

  .mobile-menu-btn::before,
  .mobile-menu-btn::after {
    background: transparent !important;
  }
}

/* Anti-spam honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
