/* Thanet Electrical - Enhanced Stylesheet */
/* Critical above-the-fold: header layout first to prevent flicker/jump */

/* ========== SITE MESSAGE POPUP (set SITE_MESSAGE_ENABLED in common.js to disable) ========== */
.site-message-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(4px);
}
.site-message-box {
  background: #fff;
  max-width: 420px;
  width: 100%;
  padding: 1.75rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 2px solid var(--color-primary);
}
.site-message-title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
}
.site-message-text {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-body);
}
.site-message-text:last-of-type {
  margin-bottom: 1.25rem;
}
.site-message-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
  background: var(--color-primary);
  border: 2px solid var(--color-primary-dark);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.site-message-btn:hover {
  background: var(--color-primary-dark);
}
.site-message-btn:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* CSS Variables for Brand Colors */
:root {
  --color-primary: #FDC700; /* Bright Yellow from logo */
  --color-primary-dark: #E5B200;
  --color-primary-light: #FDD835;
  --color-secondary: #030712; /* Black */
  --color-gray-light: #F3F4F6;
  --color-gray-medium: #9CA3AF;
  --color-gray-dark: #6B7280;
  --color-text-body: #333333; /* Off-black for readability, CRO 2026 */
}

/* Smooth scrolling and sticky anchor offset (header height) */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
@media (max-width: 768px) {
  html {
    scroll-padding-top: 140px; /* Navbar + breadcrumb on mobile */
  }
}

/* ========== NAVBAR (2.52 mobile-friendly) ========== */
#navbar {
  max-height: 70px;
  background: rgba(253, 199, 0, 0.75) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
#navbar a:not([class*="bg-"]):not(.logo-container):not(.nav-btn-embossed),
#navbar #mobile-menu a:not([class*="bg-"]):not(.nav-btn-embossed),
#navbar #mobile-menu-button {
  color: var(--color-secondary) !important;
}
#navbar a:not([class*="bg-"]):not(.logo-container):not(.nav-btn-embossed):hover,
#navbar #mobile-menu a:not([class*="bg-"]):not(.nav-btn-embossed):hover,
#navbar #mobile-menu-button:hover {
  color: var(--color-primary-dark) !important;
}

/* Header buttons – sharp, flat, clean (desktop & mobile) */
.nav-btn-embossed,
.contact-btn-embossed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 2.75rem;
  padding: 0 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.25rem;
  border: 2px solid var(--color-secondary);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  box-shadow: none;
}

/* Black nav buttons - About, Services, Locations, Knowledge Hub */
.nav-btn-embossed {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.nav-btn-embossed:hover {
  background: #1a1a2e;
  color: var(--color-primary);
}

/* Yellow Contact button - right aligned, black border */
.contact-btn-embossed {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.contact-btn-embossed:hover {
  background: var(--color-primary-dark);
}

/* Emergency button - white text on red (dropdown & mobile menu) */
.emergency-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 2.75rem;
  padding: 0 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.25rem;
  border: 2px solid #b91c1c;
  background: #dc2626;
  color: #ffffff;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  box-shadow: none;
}
.emergency-btn:hover {
  background: #b91c1c;
  color: #ffffff;
}
#navbar > div > div {
  min-height: 70px;
  max-height: 70px;
  height: 70px;
}
#navbar .logo-container {
  height: 50px;
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
#navbar img,
#navbar .logo-container img,
.app-header-bar img,
.logo-container img {
  object-fit: contain !important;
}

/* Mobile menu backdrop: blur content behind when menu is open */
@media (max-width: 768px) {
  .mobile-menu-backdrop {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: opacity 0.2s ease;
  }
  .mobile-menu-backdrop.hidden {
    pointer-events: none;
    opacity: 0;
  }
}

/* Mobile menu: glass effect to match header */
@media (max-width: 768px) {
  #mobile-menu {
    background: rgba(253, 199, 0, 0.88) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }
  #mobile-menu .contact-btn-embossed,
  #mobile-menu .emergency-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    text-align: center;
  }
  #mobile-menu .border-t-neutral-700 {
    border-color: rgba(0, 0, 0, 0.2);
  }
  #mobile-menu .bg-neutral-800 {
    background-color: var(--color-secondary) !important;
    color: var(--color-primary) !important;
  }
}

/* Sticky wrapper: breadcrumb stays below fixed header (80px = navbar h-20) */
.header-breadcrumb-sticky {
  position: sticky;
  top: 80px;
  z-index: 45;
  margin-top: 80px;
}

/* Minimalist breadcrumb within sticky block */
.header-breadcrumb-sticky .breadcrumb-nav {
  padding: 0.25rem 0;
  font-size: 0.75rem;
  border-bottom: none;
  min-height: auto;
  background: #030712;
}
.header-breadcrumb-sticky .breadcrumb-nav ol {
  gap: 0.25rem;
}
.header-breadcrumb-sticky .breadcrumb-nav a,
.header-breadcrumb-sticky .breadcrumb-nav span {
  color: var(--color-primary);
}
.header-breadcrumb-sticky .breadcrumb-nav a:hover {
  opacity: 0.9;
}
.header-breadcrumb-sticky .breadcrumb-nav li:first-child a {
  font-weight: 700;
}
.header-breadcrumb-sticky .breadcrumb-nav [aria-current],
.header-breadcrumb-sticky .breadcrumb-nav span[aria-current] {
  font-weight: 700;
}

/* Breadcrumb nav (2.52) */
.breadcrumb-nav {
  background: transparent;
}

/* ========== HEADER2, SPACER2, BREADCRUMB2 (other pages) ========== */
.header2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(253, 199, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(3, 7, 18, 0.5);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.header2-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
  min-height: 4rem;
}
.header2-logo {
  flex-shrink: 0;
  background: #030712;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  max-height: 60px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.08) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.header2-logo .logo-text-thanat { color: #F9FAFB; font-size: 1.125rem; }
.header2-logo .logo-text-electrical { color: #FDC700; font-size: 1.125rem; font-weight: 800; }
.header2-logo .logo-text-limited { color: #FFFFFF; font-size: 0.625rem; }
.header2-logo .logo-text-limited::before,
.header2-logo .logo-text-limited::after { background-color: #FDC700; }
.header2-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}
/* Nav buttons: black bg, yellow text, embossed, same width */
.header2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  height: 2.75rem;
  padding: 0 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 2px solid #030712;
  box-shadow: 0 2px 0 rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.1) inset;
  transition: transform 0.15s, box-shadow 0.15s;
}
.header2-btn-nav {
  background: #030712;
  color: #FDC700;
}
.header2-btn-nav:hover {
  background: #1a1a2e;
  box-shadow: 0 3px 0 rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.header2-btn-contact {
  background: #FDC700;
  color: #030712;
}
.header2-btn-contact:hover {
  background: #E5B200;
  box-shadow: 0 3px 0 rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.3) inset;
}
.header2-spacer {
  height: 4rem;
  background: transparent;
}
/* Spacer2: 5px solid white sticky row - border makes it visible */
.spacer2 {
  height: 5px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #d1d5db;
  position: sticky;
  top: 4rem;
  z-index: 9999;
  width: 100%;
}
/* Breadcrumb2: solid black, left-aligned yellow text, sticky */
.breadcrumb2 {
  background: #030712;
  position: -webkit-sticky;
  position: sticky;
  top: calc(4rem + 5px);
  z-index: 9998;
  border-bottom: 2px solid #030712;
}
.breadcrumb2-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}
.breadcrumb2-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb2-list li {
  display: inline-flex;
  align-items: center;
}
.breadcrumb2-list li + li::before {
  content: '/';
  color: #FDC700;
  margin-right: 0.5rem;
  font-weight: 400;
}
.breadcrumb2-list a,
.breadcrumb2-current {
  color: #FDC700;
  text-decoration: none;
  padding: 0.15rem 0.25rem;
  font-size: 0.875rem;
}
.breadcrumb2-home {
  font-weight: 700;
}
.breadcrumb2-current {
  font-weight: 700;
}
.breadcrumb2-list a:hover {
  opacity: 0.9;
}

/* ========== APP-STYLE MOBILE-FIRST HEADER (other pages) ========== */
/* Sticky yellow bar - rgba(255,215,0,0.95) for slight transparency */
#site-header {
  min-height: 4rem;
  background: rgba(253, 199, 0, 0.95);
}
.app-header-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(253, 199, 0, 0.95);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.app-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
  min-height: 4rem;
}
/* Logo left - original logo-container styling, max-height 60px */
.app-header-logo,
.app-header-bar .logo-container {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #030712;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  max-height: 60px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.08) inset;
  line-height: 1.1;
}
.app-header-logo .logo-text-thanat,
.app-header-bar .logo-text-thanat { color: #F9FAFB; font-size: 1.125rem; }
.app-header-logo .logo-text-electrical,
.app-header-bar .logo-text-electrical { color: #FDC700; font-size: 1.125rem; font-weight: 800; }
.app-header-logo .logo-text-limited,
.app-header-bar .logo-text-limited { color: #FFFFFF; font-size: 0.625rem; }
.app-header-logo .logo-text-limited::before,
.app-header-logo .logo-text-limited::after,
.app-header-bar .logo-text-limited::before,
.app-header-bar .logo-text-limited::after { background-color: #FDC700; }
/* Hamburger center - round black button, yellow bars */
.app-hamburger-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.app-hamburger-bars {
  display: block;
  width: 24px;
  height: 18px;
  position: relative;
}
.app-hamburger-bars::before,
.app-hamburger-bars::after,
.app-hamburger-btn .app-hamburger-bars { background: #FDC700; }
.app-hamburger-bars::before,
.app-hamburger-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #FDC700;
  border-radius: 2px;
}
.app-hamburger-bars::before { top: 0; }
.app-hamburger-bars::after { bottom: 0; }
.app-hamburger-btn .app-hamburger-bars { top: 50%; transform: translateY(-50%); height: 3px; }
.app-hamburger-btn .app-hamburger-bars {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  width: 24px;
  background: #FDC700;
  border-radius: 2px;
}
.app-hamburger-bars::before,
.app-hamburger-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #FDC700;
  border-radius: 2px;
}
.app-hamburger-bars::before { top: -7.5px; }
.app-hamburger-bars::after { top: 7.5px; }
/* Contact button right - black rectangle, yellow text */
.app-contact-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 100px;
  padding: 0 1rem;
  background: #000;
  color: #FDC700;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.app-contact-btn:hover {
  background: #1a1a1a;
  color: #FDC700;
}
.app-header-spacer {
  height: 4rem;
  background: rgba(253, 199, 0, 0.95);
}

/* Full-screen black overlay menu */
.app-overlay-menu {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 10001;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 2rem;
  overflow-y: auto;
}
.app-overlay-menu.active {
  display: flex !important;
}
.app-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #FDC700;
  color: #FDC700;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.app-overlay-close:hover {
  background: #FDC700;
  color: #000;
}
.app-overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 20rem;
}
.app-overlay-nav a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.875rem 1rem;
  color: #FDC700 !important;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-radius: 0.5rem;
}
.app-overlay-nav a:hover {
  background: rgba(253, 199, 0, 0.15);
  color: #FFE44D !important;
}

/* Legacy header classes - keep for pages not yet updated */
.site-header-bar { position: sticky; top: 0; z-index: 10000; background: rgba(253, 199, 0, 0.95); }
.site-header-bar-spacer { height: 4rem; background: rgba(253, 199, 0, 0.95); }

/* Main content: prevent content sliding behind fixed header (navbar 70px + buffer) */
main,
#main-content {
  padding-top: 100px;
}
/* No gap when hero is first child (breadcrumb flows into hero) - for pages with hero inside main */
main:has(> header.hero-bg),
#main-content:has(> header.hero-bg) {
  padding-top: 0;
}

/* Prevent horizontal scroll - html only; body overflow breaks position:sticky */
html {
  overflow-x: hidden;
}

/* Step 6: Mobile & speed - images max 100vw, touch targets min 44px */
img { max-width: 100%; height: auto; }
button:not([aria-hidden]), [type="submit"], [type="button"], #mobile-menu-button,
nav a.bg-primary { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Global typography - CRO 2026: line-height 1.8, off-black text */
body {
  line-height: 1.8;
  color: var(--color-text-body);
}

/* ========== 1. HEADER SPECIFICATIONS (visual details) ========== */

/* ========== 2. LOGO SPECIFICATIONS ========== */
.site-header-bar .logo-container {
  flex-shrink: 0;
  background: #030712;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.08) inset;
}
.site-header-bar .logo-text-thanat { color: #F9FAFB; }
.site-header-bar .logo-text-electrical { color: #FDC700; }
.site-header-bar .logo-text-limited { color: #FFFFFF; }
.site-header-bar .logo-text-limited::before,
.site-header-bar .logo-text-limited::after { background-color: #FDC700; }

/* ========== 3. GREY UTILITY BUTTONS (Services, Locations, Knowledge Hub) ========== */
.site-header-bar .site-nav-btn {
  height: 2.75rem;
  min-width: 7.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border-radius: 0.5rem;
  background: #030712;
  color: #FDC700;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.site-header-bar .site-nav-btn:hover {
  background: #1f2937;
}

/* ========== 4. YELLOW CONTACT BUTTONS ========== */
.site-header-bar .site-contact-btn {
  height: 2.75rem;
  min-width: 7.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  border-radius: 0.5rem;
  background: #FDC700;
  border: 2px solid #030712;
  color: #030712;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.3) inset;
}
.site-header-bar .site-contact-btn:hover {
  background: #E5B200;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.35) inset;
}

/* ========== 5. BREADCRUMB TRAIL ========== */
.breadcrumb-nav {
  background: #030712;
  border-bottom: 2px solid #030712;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  position: sticky;
  top: 5rem;
  z-index: 40;
  margin-top: 0.5rem !important; /* Match homepage - no large white bar */
}
.breadcrumb-nav > div {
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .breadcrumb-nav > div {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .breadcrumb-nav > div {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
.breadcrumb-nav ol {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb-nav li {
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}
.breadcrumb-nav a {
  color: #FDC700;
  transition: opacity 0.2s ease;
  text-decoration: none;
}
.breadcrumb-nav a:hover {
  opacity: 0.85;
}
.breadcrumb-nav li:first-child a {
  font-weight: 700;
}
.breadcrumb-nav span {
  color: #FDC700;
}
.breadcrumb-nav span[aria-current] {
  color: #FDC700;
  font-weight: 700;
}
@media (max-width: 767px) {
  .breadcrumb-nav {
    padding: 0.25rem 0 !important;
    margin-top: 0 !important;
    font-size: 0.75rem;
    top: 3.25rem !important; /* match reduced header height */
  }
  .breadcrumb-nav > div {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* ========== PAGE CONTENT STYLES ========== */

/* Footer: Service Areas as tag-cloud (flex wrap) */
.footer-areas-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-areas-tags li {
  margin: 0;
}
.footer-areas-tags a {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #f3f4f6;
  color: var(--color-text-body);
  font-size: 0.875rem;
}
.footer-areas-tags a:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* Footer social icons – focus for accessibility */
footer a[aria-label*="Facebook"],
footer a[aria-label*="Instagram"],
footer a[aria-label*="Twitter"],
footer a[aria-label*="LinkedIn"],
footer a[aria-label*="YouTube"],
footer a[aria-label*="Nextdoor"] {
  outline: none;
}
footer a[aria-label*="Facebook"]:focus-visible,
footer a[aria-label*="Instagram"]:focus-visible,
footer a[aria-label*="Twitter"]:focus-visible,
footer a[aria-label*="LinkedIn"]:focus-visible,
footer a[aria-label*="YouTube"]:focus-visible,
footer a[aria-label*="Nextdoor"]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Touch-friendly form inputs - min 48px to prevent fat-finger errors */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  min-height: 48px;
  padding: 0.75rem 1rem;
}
input[type="checkbox"],
input[type="radio"] {
  min-width: 24px;
  min-height: 24px;
}

/* Using system fonts for optimal performance - no @font-face needed */

/* Enhanced Hero Background – industrial tileable texture (rivet / metal panel) */
.hero-bg {
  background-color: #0a0e12;
  background-image: 
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, 
      rgba(0, 0, 0, 0.55) 0%, 
      rgba(0, 0, 0, 0.65) 50%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.12) 2px,
      rgba(255, 255, 255, 0.12) 3px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.1) 2px,
      rgba(255, 255, 255, 0.1) 3px
    ),
    repeating-linear-gradient(
      115deg,
      transparent 0,
      transparent 32px,
      rgba(255, 255, 255, 0.06) 32px,
      rgba(255, 255, 255, 0.06) 33px
    );
  background-size: 24px 24px, 100% 100%, 12px 12px, 12px 12px, 64px 64px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  background-attachment: scroll;
  position: relative;
}

/* Fixed attachment for desktop only (better performance on mobile) */
@media (min-width: 1024px) {
  .hero-bg {
    background-attachment: fixed;
  }
}

/* Scrolling Testimonial Bar Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll {
  animation: scroll 30s linear infinite;
  display: flex;
  width: fit-content;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

/* Additional overlay for center area to reduce brightness */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-bg > * {
  position: relative;
  z-index: 2;
}

/* Knowledge Hub: ensure long article titles wrap on narrow screens (e.g. 390px) */
.hero-bg h1 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* ========== STORE HERO (branded graphic with trusted brands) ========== */
.hero-store {
  border-bottom: 4px solid var(--color-primary);
}
.hero-store-graphic img {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

/* Store: primary buttons min 48px for mobile tap targets */
.store-btn-primary,
.store-products .btn-primary,
.store-products button[type="button"].js-share-product,
.store-products a[href*="contact"].btn-primary {
  min-height: 48px;
  min-width: 48px;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Store product pages – compact hero with smaller graphic */
.hero-store-product {
  min-height: auto;
  padding-top: 6rem;
  padding-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-store-product .hero-store-graphic--compact img {
  max-width: 9rem;
}
@media (min-width: 768px) {
  .hero-store-product .hero-store-graphic--compact img {
    max-width: 11rem;
  }
}

/* Store product pages: center images and pricing on mobile */
@media (max-width: 767px) {
  .store-product-layout .flex.items-baseline {
    justify-content: center;
  }
  .store-product-layout > div:first-child {
    max-width: 100%;
  }
  .store-product-layout > div:first-child img {
    margin: 0 auto;
    display: block;
  }
}

/* ========== UNIFORM HERO (site-wide) ========== */
.hero-uniform {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .hero-uniform { min-height: 70vh; padding-top: 5rem; padding-bottom: 5rem; }
}
.hero-uniform .hero-inner {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.25rem;
}
@media (min-width: 640px) { .hero-uniform .hero-inner { padding-left: 1.25rem; padding-right: 1.25rem; } }
@media (min-width: 1024px) { .hero-uniform .hero-inner { padding-left: 2rem; padding-right: 2rem; } }
/* Primary heading - h1 */
.hero-uniform .hero-primary {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #F9FAFB;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .hero-uniform .hero-primary { font-size: 3.75rem; margin-bottom: 1.5rem; }
}
/* Secondary - subtitle / h2 */
.hero-uniform .hero-secondary {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  line-height: 1.3;
}
@media (min-width: 768px) {
  .hero-uniform .hero-secondary { font-size: 1.5rem; margin-bottom: 1.5rem; }
}
/* Tertiary - body / description */
.hero-uniform .hero-tertiary {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(209, 213, 219, 0.95);
  line-height: 1.6;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .hero-uniform .hero-tertiary { font-size: 1.25rem; margin-bottom: 2.5rem; }
}
.hero-uniform .hero-tertiary a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  transition: color 0.2s;
}
.hero-uniform .hero-tertiary a:hover { color: var(--color-primary); }
/* Hero CTA buttons container */
.hero-uniform .hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hero-uniform .hero-actions { flex-direction: row; gap: 1rem; }
}

/* ========== RANDOM YELLOW CTA BAR (after hero) ========== */
.hero-cta-bar {
  background: var(--color-primary);
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
  .hero-cta-bar { padding: 1.5rem 2rem; }
}
.hero-cta-bar .hero-cta-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) {
  .hero-cta-bar .hero-cta-inner {
    flex-direction: row;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
.hero-cta-bar .hero-cta-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #030712;
  margin-bottom: 0.5rem;
  font-family: inherit;
}
@media (min-width: 768px) {
  .hero-cta-bar .hero-cta-text h3 { font-size: 1.875rem; }
}
.hero-cta-bar .hero-cta-text p {
  color: rgba(3, 7, 18, 0.8);
  font-size: 0.9375rem;
}
.hero-cta-bar .hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: #030712;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.5rem;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2);
}
.hero-cta-bar .hero-cta-btn:hover {
  background: rgba(3, 7, 18, 0.9);
  transform: scale(1.02);
}

/* Desktop extra strip – dark grey glass after breadcrumb, 6 buttons (hidden on mobile) */
@media (max-width: 767px) {
  #desktop-menu-button,
  #desktop-extra-row {
    display: none !important;
  }
}

.desktop-extra-strip {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.desktop-extra-strip.desktop-extra-expanded {
  max-height: 150px;
  line-height: normal;
}
.desktop-extra-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Mobile menu & hamburger: ONLY visible on mobile - never on desktop */
@media (min-width: 768px) {
  #mobile-menu-button {
    display: none !important;
  }
  #mobile-menu {
    display: none !important;
  }
  .mobile-contact-btn {
    display: none !important;
  }
}
@media (max-width: 767px) {
  #mobile-menu-button {
    display: flex !important;
    z-index: 100;
    position: relative;
  }
}
@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
  }
  
  /* Ensure mobile menu close icon is visible */
  #mobile-menu-button i.fa-times {
    font-size: 1.75rem;
  }
}

/* Mobile contact button: black bg, yellow text */
.mobile-contact-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 5rem;
  padding: 0 1rem;
  border-radius: 0.5rem;
  background: #030712;
  color: #FDC700;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: 2px solid #030712;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.mobile-contact-btn:hover {
  background: #1f2937;
  color: #FDC700;
}

/* Yellow hamburger button */
.mobile-hamburger-btn {
  flex-shrink: 0;
  color: #FDC700;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.mobile-hamburger-btn:hover {
  background: rgba(3, 7, 18, 0.1);
  color: #E5B200;
}

/* Mobile dropdown: black glass (slightly transparent) */
.mobile-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  /* Black glass: dark base + backdrop blur for frosted effect */
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(253, 199, 0, 0.4);
  padding: 0.5rem 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  min-height: 200px; /* ensure dropdown has visible height */
}
.mobile-dropdown.hidden {
  display: none !important;
}
.mobile-dropdown a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: #FDC700 !important;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid rgba(253, 199, 0, 0.2);
}
.mobile-dropdown a:last-child {
  border-bottom: none;
}
.mobile-dropdown a:hover {
  background: rgba(253, 199, 0, 0.15);
  color: #FDD835 !important;
}

/* Enhanced Service Cards */
.service-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
  will-change: transform;
  border: 1px solid #E5E7EB;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-color: var(--color-primary);
}

.service-card img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover img {
  transform: scale(1.08);
}

/* Logo Styling */
.logo-text {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-text-thanat {
  color: #F9FAFB;
  font-size: 0.9375rem;
  letter-spacing: 0.22em;
}

.logo-text-electrical {
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 800;
}

.logo-text-limited {
  color: #F9FAFB;
  font-size: 0.5rem;
  position: relative;
  display: inline-block;
  padding: 0 14px;
}

.logo-text-limited::before,
.logo-text-limited::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 1.5px;
  transform: translateY(-50%);
  background: linear-gradient(to right, transparent 0%, var(--color-primary) 60%, var(--color-primary) 100%);
}

.logo-text-limited::before {
  left: 0;
}

.logo-text-limited::after {
  right: 0;
  background: linear-gradient(to left, transparent 0%, var(--color-primary) 60%, var(--color-primary) 100%);
}

/* Navigation Logo Container */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
}

.logo-container .logo-text-thanat {
  margin-bottom: 1px;
}

.logo-container .logo-text-electrical {
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  .logo-text-thanat {
    font-size: 0.875rem;
  }
  .logo-text-electrical {
    font-size: 0.875rem;
  }
  .logo-text-limited {
    font-size: 0.4375rem;
    padding: 0 12px;
  }
  .logo-text-limited::before,
  .logo-text-limited::after {
    width: 10px;
    height: 1.5px;
  }
}

@media (max-width: 640px) {
  .logo-text-thanat {
    font-size: 0.8125rem;
  }
  .logo-text-electrical {
    font-size: 0.8125rem;
  }
  .logo-text-limited {
    font-size: 0.4rem;
    padding: 0 10px;
  }
  .logo-text-limited::before,
  .logo-text-limited::after {
    width: 8px;
    height: 1px;
  }
}

/* Hero Logo Styling - Larger version matching header style */
.hero-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero-logo-text {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-logo-text-thanat {
  color: #F9FAFB;
  font-size: 3.75rem; /* text-6xl equivalent */
  margin-bottom: 0.5rem;
  letter-spacing: 0.22em;
}

.hero-logo-text-electrical {
  color: var(--color-primary);
  font-size: 3.75rem; /* text-6xl equivalent */
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-logo-text-limited {
  color: #F9FAFB;
  font-size: 1.125rem; /* text-lg equivalent */
  position: relative;
  display: inline-block;
  padding: 0 60px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero-logo-text-limited::before,
.hero-logo-text-limited::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 48px;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(to right, transparent 0%, var(--color-primary) 60%, var(--color-primary) 100%);
}

.hero-logo-text-limited::before {
  left: 0;
}

.hero-logo-text-limited::after {
  right: 0;
  background: linear-gradient(to left, transparent 0%, var(--color-primary) 60%, var(--color-primary) 100%);
}

@media (min-width: 768px) {
  .hero-logo-text-thanat {
    font-size: 6rem; /* text-8xl equivalent on md+ */
  }
  .hero-logo-text-electrical {
    font-size: 6rem; /* text-8xl equivalent on md+ */
  }
  .hero-logo-text-limited {
    font-size: 1.25rem; /* text-xl equivalent on md+ */
    padding: 0 80px;
  }
  .hero-logo-text-limited::before,
  .hero-logo-text-limited::after {
    width: 64px;
    height: 3px;
    background: linear-gradient(to right, transparent 0%, var(--color-primary) 60%, var(--color-primary) 100%);
  }
  .hero-logo-text-limited::after {
    background: linear-gradient(to left, transparent 0%, var(--color-primary) 60%, var(--color-primary) 100%);
  }
}

/* Enhanced Buttons */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 0 24px rgba(253, 199, 0, 0.45);
}
/* Primary CTA hover glow - applied to header Tap to Call and similar */
a.bg-primary:hover,
button.bg-primary:hover {
  box-shadow: 0 0 20px rgba(253, 199, 0, 0.5);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
  transform: translateY(-2px);
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  will-change: opacity, transform;
}

/* Section Dividers */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  margin: 0 auto;
  border-radius: 2px;
}

/* Image Optimization */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Focus States for Accessibility - Enhanced */
*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Enhanced focus for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(253, 199, 0, 0.3);
}

/* Screen Reader Only - Utility Class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only:focus,
.focus\:not-sr-only:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--color-primary);
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Performance Optimizations */
.service-card,
.btn-primary,
.btn-outline {
  contain: layout style paint;
}

/* Smooth Transitions - scoped to interactive elements only */
a, button, input, textarea, select,
.btn-primary, .btn-outline, .service-card,
.nav-btn-embossed, .contact-btn-embossed,
.service-button-card, .cta-box-btn,
.back-to-top-btn, .mobile-sticky-footer a {
  transition-property: color, background-color, border-color, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Floating Call Button Animation */
@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

/* Live Reviews Pulse Animation */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(253, 199, 0, 0.7);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px rgba(253, 199, 0, 0);
  }
}

/* Optimize animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* (duplicate breadcrumb block removed – see earlier declaration) */

/* Nextdoor Icon Styling - Match other social media icons */
.nextdoor-icon {
  filter: brightness(0) saturate(100%) invert(85%) sepia(100%) saturate(10000%) hue-rotate(0deg);
  transition: filter 0.3s ease;
}

.group:hover .nextdoor-icon {
  filter: grayscale(100%) brightness(0);
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* ========== CRO 2026: Scroll progress bar (Knowledge Hub articles) ========== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  z-index: 100;
  transform-origin: left;
  transition: transform 0.1s ease-out;
}

/* ========== CRO 2026: Back to Top button ========== */
.back-to-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-secondary);
  border: 2px solid var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s, box-shadow 0.2s;
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(253, 199, 0, 0.5);
  background: var(--color-primary-dark);
}
@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 5.5rem; /* Above sticky mobile footer */
  }
}

/* ========== CRO 2026: Trust ribbon (grayscale logos below hero) ========== */
.trust-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.trust-ribbon img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
}

/* ========== CRO 2026: Live status indicator ========== */
.live-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { opacity: 0.9; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ========== CRO 2026: Sticky mobile footer (Call Now + WhatsApp) ========== */
.mobile-sticky-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: #fff;
  border-top: 2px solid var(--color-primary);
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .mobile-sticky-footer {
    display: flex;
    justify-content: center;
    align-items: stretch;
  }
}
.mobile-sticky-footer a {
  flex: 1;
  max-width: 180px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
}
.mobile-sticky-footer .btn-call {
  background: var(--color-primary);
  color: var(--color-secondary);
  border: 2px solid var(--color-primary-dark);
}
.mobile-sticky-footer .btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: 2px solid #128C7E;
}
/* Subtle pulse on WhatsApp button every 15s (triggered via .whatsapp-pulse class) */
@keyframes whatsapp-pulse-subtle {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
}
.mobile-sticky-footer .btn-whatsapp.whatsapp-pulse {
  animation: whatsapp-pulse-subtle 1.2s ease-out;
}

/* ========== CRO 2026: Contact form success state ========== */
.form-success-state {
  text-align: center;
  padding: 2rem 1.5rem;
}
.form-success-state .success-checkmark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: success-pop 0.4s ease-out;
}
@keyframes success-pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Knowledge Hub: bold headings for scannability (CRO 2026) */
.knowledge-hub-article h2,
.knowledge-hub-article h3 {
  font-weight: 700;
  color: var(--color-text-body);
}
.knowledge-hub-article p,
.knowledge-hub-article li {
  color: var(--color-text-body);
}

/* ========== Homepage: Service button cards (logo + two-line text) ========== */
/* Mobile-first: larger text, logo and tap targets for readability */
.service-button-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(165deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 25%, transparent 60%), var(--color-secondary, #030712);
  border: 3px solid var(--color-primary, #FDC700);
  border-radius: 1rem;
  text-decoration: none;
  text-align: center;
  min-height: 160px;
  min-width: 0; /* allow flex shrink in grid */
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), inset 0 -1px 2px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
}
.service-button-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.12), inset 0 -1px 2px rgba(0,0,0,0.25), 0 8px 24px rgba(253,199,0,0.3);
  border-color: var(--color-primary-dark, #E5B200);
}
.service-button-logo-wrap {
  flex-shrink: 0;
  margin-bottom: 0.5rem;
}
.service-button-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}
.service-button-line1,
.service-button-line2 {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 0.15rem;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.15), -1px -1px 0 rgba(0,0,0,0.6);
}
.service-button-line1 {
  color: var(--color-primary, #FDC700);
}
.service-button-line2 {
  color: #ffffff;
}

/* Mobile: larger, more readable text and tap targets */
@media (max-width: 767px) {
  .service-button-card {
    padding: 2rem 1.25rem;
    min-height: 220px;
  }
  .service-button-logo {
    width: 72px;
    height: 72px;
    border-radius: 10px;
  }
  .service-button-line1,
  .service-button-line2 {
    font-size: 1.75rem;
    letter-spacing: 0.03em;
    line-height: 1.35;
  }
}

/* Desktop: compact layout */
@media (min-width: 768px) {
  .service-button-card {
    padding: 1rem 1rem;
    min-height: 140px;
  }
  .service-button-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
  }
  .service-button-line1,
  .service-button-line2 {
    font-size: 1.2rem;
  }
}

/* ========== CTA BOX – Black with yellow text (branding) ========== */
.cta-box {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 1.5rem 2rem;
  border-radius: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.cta-box-text {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  line-height: 1.5;
}
.cta-box-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}
.cta-box-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  box-sizing: border-box;
}
.cta-box-btn:hover {
  background: var(--color-primary-dark);
}

/* ========== Smart Concierge (Device-Aware) ========== */
#site-concierge {
  --concierge-yellow: #FFD700;
  --concierge-yellow-alt: #FDC700;
  position: fixed;
  z-index: 85;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
#site-concierge.visible {
  visibility: visible;
  opacity: 1;
}
/* Desktop: floating card bottom-right, 300px */
@media (min-width: 769px) {
  #site-concierge {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 300px;
    border-radius: 1rem;
    background: var(--concierge-yellow);
    color: #030712;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 2px solid #030712;
  }
  #site-concierge.visible {
    animation: concierge-fade-in 0.35s ease forwards;
  }
  .site-concierge-inner {
    padding: 1.25rem 1rem 1rem;
    position: relative;
  }
  .site-concierge-text {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #030712;
  }
  .site-concierge-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    min-height: 48px;
    line-height: 1.5;
    background: #030712;
    color: var(--concierge-yellow);
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }
  .site-concierge-btn:hover {
    background: #1a1a2e;
    color: var(--concierge-yellow);
  }
  .site-concierge-dismiss {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
    line-height: 1;
    background: transparent;
    border: none;
    color: #030712;
    cursor: pointer;
    opacity: 0.8;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: opacity 0.2s, background 0.2s;
  }
  .site-concierge-dismiss:hover {
    opacity: 1;
    background: rgba(0,0,0,0.1);
  }
}
/* Mobile: full-width banner at top, below navbar */
@media (max-width: 768px) {
  #site-concierge {
    top: 80px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--concierge-yellow);
    color: #030712;
    border-bottom: 2px solid #030712;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-100%);
  }
  #site-concierge.visible {
    transform: translateY(0);
  }
  .site-concierge-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 3rem 0 1rem;
    height: 100%;
    max-width: 100%;
  }
  .site-concierge-text {
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0;
    flex: 1;
    min-width: 0;
  }
  .site-concierge-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    min-height: 40px;
    line-height: 1.5;
    background: #030712;
    color: var(--concierge-yellow);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
  }
  .site-concierge-dismiss {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 1.5rem;
    line-height: 1;
    background: transparent;
    border: none;
    color: #030712;
    cursor: pointer;
    opacity: 0.9;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: opacity 0.2s, background 0.2s;
  }
  .site-concierge-dismiss:hover {
    opacity: 1;
    background: rgba(0,0,0,0.1);
  }
}
@keyframes concierge-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media print {
  #site-concierge { display: none !important; }
}

/* Credentials expandable section (about page) */
.credentials-details summary::-webkit-details-marker {
  display: none;
}
.credentials-details summary {
  list-style: none;
}

