/* ===== HANDYMAN ALL SG — SHARED STYLES (CLEANED + COPY/PASTE READY) =====
   - Text colors + font sizes preserved
   - Improved surface tokens (better contrast for gray text on light backgrounds)
   - Dropdown supports hover + keyboard focus (:focus-within) + smooth animation
   - Adds :focus-visible focus ring + prefers-reduced-motion safeguards
   - Removes non-CSS text from the end of the file
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --navy: #1a1f6e;
  --blue: #2563eb;
  --cyan: #0ea5e9;
  --red: #dc2626;
  --dark: #0d0f1a;

  /* Neutrals */
  --white: #ffffff;
  --gray: #6b7280;
  --border: #e2e8f0;

  /* Surfaces (UPDATED: improves readability while keeping text colors unchanged) */
  --bg: #f8fafc;        /* was body #fff */
  --light: #f6f8ff;     /* was #f0f4ff (slightly lighter to improve contrast with --gray) */

  /* Shadows (slightly more neutral/premium; keeps depth visible) */
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 16px 56px rgba(15, 23, 42, 0.16);

  /* Common one-offs used already in your CSS */
  --topbar-bg: #1b357f;
  --blue-hover: #1d4ed8;
  --red-hover: #b91c1c;
  --hero-grad-end: #1e3a8a;
  --stats-grad-start: #0f5db8;
  --stats-grad-end: #2f80ed;

  --footer-link: #94a3b8;
  --footer-link-hover: #60a5fa;

  --badge-green-bg: #dcfce7;
  --badge-green-text: #166534;
  --badge-red-bg: #fee2e2;
  --badge-red-text: #991b1b;

  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5d;
  --whatsapp-dark: #075e54;

  --gold: #f59e0b;

  /* Motion + focus */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms;
  --t-med: 220ms;
  --t-slow: 320ms;

  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.35);
  --focus-ring-on-dark: 0 0 0 3px rgba(147, 197, 253, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(37, 99, 235, 0.22);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg); /* updated from #fff */
  color: #1e293b;        /* unchanged */
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* =====================================================
   ICON SIZE DEFAULTS — change variables here OR
   override per-section in components.js / index.html:

     <div class="topbar" style="--icon-inline-size:11px">
     <div class="footer-contact" style="--icon-inline-size:14px">
     <a class="btn" style="--icon-inline-size:15px">
   ===================================================== */
:root {
  --icon-inline-size: 13px;  /* call/email logos: topbar, footer, buttons */
  --icon-small-size:  40px;  /* service icons: cards, chip strips          */
}

/* Tiny inline call/email logos (topbar, footer, buttons) */
.icon-inline {
  width:          var(--icon-inline-size);
  height:         var(--icon-inline-size);
  max-width:      var(--icon-inline-size);
  max-height:     var(--icon-inline-size);
  object-fit:     contain;
  display:        inline-block;
  vertical-align: middle;
  flex-shrink:    0;
}

/* Service/chip icons in cards and strips */
.img-small {
  width:          var(--icon-small-size);
  height:         var(--icon-small-size);
  max-width:      var(--icon-small-size);
  max-height:     var(--icon-small-size);
  object-fit:     contain;
  display:        inline-block;
  vertical-align: middle;
  flex-shrink:    0;
}

/* Tiling SVG icon — matches emoji size in nav, mobile menu & gallery overlay */
.service-emoji-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  object-fit: contain;
  flex-shrink: 0;
}

/* iOS Safari — CSS vars apply; !important beats any inline styles */
@supports (-webkit-touch-callout: none) {
  img.icon-inline {
    width:      var(--icon-inline-size) !important;
    height:     var(--icon-inline-size) !important;
    max-width:  var(--icon-inline-size) !important;
    max-height: var(--icon-inline-size) !important;
  }
  img.img-small {
    width:      var(--icon-small-size) !important;
    height:     var(--icon-small-size) !important;
    max-width:  var(--icon-small-size) !important;
    max-height: var(--icon-small-size) !important;
  }
}

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

p,
li,
input,
textarea,
select,
button,
a {
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ===== GLOBAL FOCUS (ACCESSIBILITY) ===== */
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.page-hero :where(a, button):focus-visible,
.cta-band :where(a, button):focus-visible,
footer :where(a, button):focus-visible {
  box-shadow: var(--focus-ring-on-dark);
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--topbar-bg);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10020;
  line-height: 1.4;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

/* Topbar call/email logo imgs */
.topbar img {
  width:      11px !important;
  height:     11px !important;
  max-width:  11px !important;
  max-height: 11px !important;
  display:    inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.topbar img[src*="email"] {
  width:      15px !important;
  height:     15px !important;
  max-width:  15px !important;
  max-height: 15px !important;
}

.topbar a:hover {
  opacity: 0.85;
}

.topbar .socials a {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== NAVBAR ===== */
nav {
  background: #fff;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 10030 !important;
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10031;
}

.nav-logo {
  position: relative;
  z-index: 10032;
  flex-shrink: 0;
}

.nav-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  position: relative;
  z-index: 10033;
}

.nav-links li {
  position: relative;
  z-index: 10034;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
  position: relative;
  z-index: 10035;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--light);
  color: var(--blue);
}

.nav-links a:focus-visible {
  background: var(--light);
}

.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
}

/* ===== DROPDOWN MENU (CLEANER + ANIMATED + KEYBOARD FRIENDLY) ===== */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;

  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  min-width: 240px;
  padding: 8px;
  z-index: 10050 !important;

  transition:
    opacity var(--t-med) var(--ease-out),
    transform var(--t-med) var(--ease-out),
    visibility 0s linear var(--t-med);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--light);
  color: var(--blue);
}

.dropdown-section-label {
  display: block;
  padding: 8px 14px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.nav-cta,
.btn-wa-nav {
  background: var(--red);
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 24px !important;
  font-weight: 600 !important;
}

.nav-cta:hover,
.btn-wa-nav:hover {
  background: var(--red-hover) !important;
  color: #fff !important;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 10040;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--t-med) var(--ease-out);
}

.mobile-menu {
  display: none;
  background: #fff;
  padding: 16px 20px 24px;
  border-top: 2px solid var(--light);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  z-index: 10045;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 4px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
  min-height: 48px;
  line-height: 1.35;
}

.mobile-menu a:focus-visible {
  background: var(--light);
  border-radius: 10px;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-submenu {
  padding-left: 12px;
  background: var(--light);
  border-radius: 10px;
  margin: 6px 0;
  padding: 4px 12px;
}

.mobile-submenu a {
  font-size: 0.9rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 44px;
  color: #374151;
  font-weight: 500;
}

.mobile-sub-link {
  font-size: 0.9rem !important;
  color: #374151 !important;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 32px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;

  transition:
    transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    background-color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out);

  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn-primary:hover {
  background: var(--blue-hover);
}

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

.btn-red:hover {
  background: var(--red-hover);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2.5px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-wa {
  background: var(--whatsapp);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-wa:hover {
  background: var(--whatsapp-hover);
}

/* ===== SECTION COMMONS ===== */
section {
  padding: 72px 20px;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-block;
  background: var(--light);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--blue);
}

.section-sub {
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 650px;
  font-weight: 500;
}

.text-center {
  text-align: center;
}

.text-center .section-sub {
  margin: 0 auto;
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
  position: relative;
  z-index: 1;
  will-change: transform;
}

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

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 0;
  border-top: 4px solid var(--blue);
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
  position: relative;
  z-index: 1;
  will-change: transform;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

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

.service-card-img {
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) var(--ease-out);
}

.service-card:hover .service-card-img img {
  transform: scale(1.06);
}

.service-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card .icon,
.service-card-body .icon {
  width: 60px;
  height: 60px;
  background: var(--light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 14px;
  flex-shrink: 0;
  padding: 8px;
  box-sizing: border-box;
}

.service-card .icon img,
.service-card-body .icon img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  margin: auto;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.service-card ul {
  list-style: none;
  padding: 0;
  flex: 1;
}

.service-card ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #374151;
  font-weight: 500;
}

.service-card ul li::before {
  content: '✓ ';
  color: var(--blue);
  font-weight: 700;
}

.service-card ul li:last-child {
  border-bottom: none;
}

.service-card .card-footer {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== HERO BADGES / TRUST CHIPS ===== */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 48px;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.service-hero-badges,
.services-chips,
.reno-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

/* PREMIUM HIGH-END BADGE STYLE */
.trust-item,
.service-hero-badges .badge,
.services-chips a,
.reno-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.08) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f8fafc !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), background var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
  will-change: transform;
}

.trust-item:hover,
.service-hero-badges .badge:hover,
.services-chips a:hover,
.reno-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.30) !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.20) 0%,
    rgba(255, 255, 255, 0.10) 100%
  ) !important;
  box-shadow:
    0 16px 38px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.trust-item::before,
.service-hero-badges .badge::before,
.services-chips a::before,
.reno-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
  display: inline-block;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 60px 20px 20px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--footer-link);
  font-weight: 400;
}

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

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

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

.footer-col ul li a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  transition: color var(--t-fast) var(--ease-out);
  line-height: 1.5;
}

.footer-col ul li a:hover {
  color: var(--footer-link-hover);
}

.footer-contact p {
  font-size: 0.88rem;
  color: var(--footer-link);
  margin-bottom: 8px;
  line-height: 1.6;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-contact a {
  color: var(--footer-link-hover);
  text-decoration: none;
}

/* Force call/email logo imgs to stay small inside footer */
.footer-contact img,
.footer-contact .img-small,
.footer-contact .icon-inline {
  width:      13px !important;
  height:     13px !important;
  max-width:  13px !important;
  max-height: 13px !important;
  flex-shrink: 0;
}

/* email logo slightly bigger */
.footer-contact img[src*="email"] {
  width:      15px !important;
  height:     15px !important;
  max-width:  15px !important;
  max-height: 15px !important;
}

/* iOS Safari hard-lock */
@supports (-webkit-touch-callout: none) {
  .footer-contact img,
  .footer-contact .img-small,
  .footer-contact .icon-inline {
    width:      13px !important;
    height:     13px !important;
    max-width:  13px !important;
    max-height: 13px !important;
  }
  .footer-contact img[src*="email"] {
    width:      15px !important;
    height:     15px !important;
    max-width:  15px !important;
    max-height: 15px !important;
  }
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}

.footer-socials a:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.6;
  font-weight: 400;
}

/* ===== HERO GENERAL ===== */
.page-hero {
  background: transparent;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1 !important;
}

/* Layer 1 (bottom): the photo */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #1a1f6e; /* fallback if no image set */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: -2;
  pointer-events: none !important;
}

/* Layer 2 (middle): dark tint so text stays readable */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15,23,80,0.80) 0%, rgba(15,23,80,0.58) 55%, rgba(15,23,80,0.25) 100%);
  z-index: -1;
  pointer-events: none !important;
}

/* ── ALL HANDYMAN SERVICES ── */
[data-page="services"] .page-hero::before {
  background-image: url('/images/handyman-hp.jpg');
}

/* ── ELECTRICAL SERVICES ── */
[data-page="electrical"] .page-hero::before {
  background-image: url('/images/handyman-hp.jpg');
}

/* ── PLUMBING SERVICES ── */
[data-page="plumbing"] .page-hero::before {
  background-image: url('/images/handyman-hp.jpg');
}

/* ── PAINTING SERVICES ── */
[data-page="painting"] .page-hero::before {
  background-image: url('/images/painting-hp.jpeg');
}

/* ── TILING SERVICES ── */
[data-page="tiling"] .page-hero::before {
  background-image: url('/images/tiling-hp.jpeg');
}

/* ── CARPENTRY SERVICES ── */
[data-page="carpentry"] .page-hero::before {
  background-image: url('/images/handyman-hp.jpg');
}

/* ── WATERPROOFING SERVICES ── */
[data-page="waterproofing"] .page-hero::before {
  background-image: url('/images/handyman-hp.jpg');
}

/* ── DOOR & LOCK SERVICES ── */
[data-page="door-lock"] .page-hero::before {
  background-image: url('/images/handyman-hp.jpg');
}

/* ── WALL MOUNTING & INSTALLATION ── */
[data-page="wall-mounting"] .page-hero::before {
  background-image: url('/images/handyman-hp.jpg');
}

/* ── RENOVATION PAGES: main + all subsections ── */
[data-page="renovation"] .page-hero::before,
[data-page="renovation-hdb"] .page-hero::before,
[data-page="renovation-condo"] .page-hero::before,
[data-page="renovation-landed"] .page-hero::before,
[data-page="renovation-office"] .page-hero::before,
[data-page="renovation-commercial"] .page-hero::before,
[data-page="renovation-kitchen"] .page-hero::before,
[data-page="renovation-bathroom"] .page-hero::before,
[data-page="renovation-bedroom"] .page-hero::before,
[data-page="renovation-living"] .page-hero::before {
  background-image: url('/images/renovation-hp.jpg');
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.85), 0 4px 24px rgba(0,0,0,0.55);
}

.page-hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #ffffff;
  max-width: 640px;
  margin: 0 auto 28px;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.80);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--blue-300);
  margin-bottom: 16px;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--blue-300);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(90deg, var(--stats-grad-start) 0%, var(--stats-grad-end) 100%);
  color: #fff;
  padding: 38px 20px;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 26px 18px;
  box-shadow:
    0 10px 30px rgba(10, 36, 78, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out), background var(--t-slow) var(--ease-out);
  will-change: transform;
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 16px 36px rgba(10, 36, 78, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.stat-item .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.9rem;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 0.92rem;
  color: #dbeafe;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--light);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
}

.badge.green {
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
}

.badge.red {
  background: var(--badge-red-bg);
  color: var(--badge-red-text);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}

.testimonial-card .stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 16px;
  font-style: italic;
  font-weight: 400;
}

.testimonial-card .reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.reviewer-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
}

.reviewer-info span {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 400;
}

/* ===== PROCESS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.step {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.step p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.65;
  font-weight: 500;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--hero-grad-end) 100%);
  color: #fff;
  text-align: center;
  padding: 72px 20px;
}

.cta-band h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  margin-bottom: 12px;
}

.cta-band p {
  color: #bfdbfe;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 500;
}

/* Lock SVG/img icon size inside buttons */
.btn svg,
.btn img {
  flex-shrink: 0;
  max-width: 20px;
  max-height: 20px;
}

.cta-band .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.cta-band .btn-group .btn {
  width: auto;
  flex: 0 0 auto;
}

/* ===== FEATURE LIST ===== */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 400;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list .icon {
  color: var(--blue);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===== WHY CHOOSE US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.why-card {
  padding: 28px;
  border-radius: 20px;
  background: var(--light);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-icon {
  width: 52px;
  height: 52px;
  background: var(--blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.why-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 600;
  line-height: 1.35;
}

.why-card p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.65;
  font-weight: 500;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.35;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
  background: #fff;
  line-height: 1.45;
  font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--focus-ring);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== ABOUT PAGE ===== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== MD SECTION ===== */
.md-section {
  padding: 72px 20px;
}

.md-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
}

.md-photo {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}

.md-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.md-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: none;
}

.md-content blockquote {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 20px;
  position: relative;
}

.md-content p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 14px;
}

.md-sig {
  margin-top: 20px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}

.md-sig span {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 400;
  margin-top: 4px;
}

/* ===== HERO / OVERLAY CLICK SAFETY FIX ===== */
.hero,
.hero-section,
.banner,
.slider,
.video-overlay,
.overlay,
.hero-overlay {
  position: relative;
  z-index: 1 !important;
}

.hero::before,
.hero::after,
.hero-section::before,
.hero-section::after,
.banner::before,
.banner::after,
.slider::before,
.slider::after {
  pointer-events: none !important;
  z-index: 0 !important;
}

/* ===== DUAL FLOATING WIDGETS ===== */
.float-widgets {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.wa-bubble,
.call-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
  text-decoration: none;
}

.wa-bubble {
  background: var(--whatsapp);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.call-bubble {
  background: var(--blue);
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.55);
}

.wa-bubble:hover,
.call-bubble:hover {
  transform: scale(1.1);
}

.wa-ring,
.call-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
  animation: ringPulse 2s ease-out infinite;
}

.wa-ring {
  border: 3px solid rgba(37, 211, 102, 0.5);
}

.call-ring {
  border: 3px solid rgba(37, 99, 235, 0.45);
  animation-delay: 0.5s;
}

@keyframes ringPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

.wa-tooltip,
.call-tooltip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  position: absolute;
  right: 72px;
  top: 50%;
  opacity: 0;
  transform: translateY(-50%) translateX(10px);
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}

.wa-tooltip {
  background: var(--whatsapp-dark);
  color: #fff;
}

.call-tooltip {
  background: var(--hero-grad-end);
  color: #fff;
}

.wa-widget-wrap,
.call-widget-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.wa-widget-wrap:hover .wa-tooltip,
.call-widget-wrap:hover .call-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.wa-widget {
  display: none !important;
}

.float-wa {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-inner {
    padding: 10px 16px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    font-size: 0.82rem;
    padding: 6px 8px;
  }

  .btn-payment-nav,
  .btn-wa-nav {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 28px;
  }

  .footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 10px 16px;
  }

  .nav-logo img {
    height: 44px;
  }

  .nav-links {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  .mobile-menu {
    padding: 12px 16px 20px;
  }

  .mobile-menu a {
    font-size: 1rem;
    padding: 12px 4px;
  }

  .mobile-submenu a {
    padding: 10px 0;
    font-size: 0.92rem;
  }

  .topbar {
    padding: 5px 16px;
    font-size: 0.7rem;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  section {
    padding: 48px 16px;
  }

  .container {
    padding: 0 4px;
  }

  .section-title {
    font-size: clamp(1.7rem, 7vw, 2.6rem);
  }

  .section-sub {
    font-size: 0.95rem;
  }

  .page-hero {
    padding: 48px 16px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .page-hero p {
    font-size: 0.95rem;
  }

  .page-hero div[style*="display:flex"] {
    flex-direction: column;
  }

  .page-hero .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .subsection-card {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
  }

  .subsection-card.reverse {
    direction: ltr !important;
  }

  .subsection-card.reverse > * {
    direction: ltr !important;
  }

  .subsection-text {
    padding: 24px 20px;
    order: 2;
  }

  .subsection-img {
    order: 1;
  }

  .subsection-img img {
    min-height: 220px;
    max-height: 260px;
  }

  .subsection-btns {
    flex-direction: column;
  }

  .subsection-btns a {
    justify-content: center;
  }

  .emergency-badge,
  .reno-badge {
    width: 56px;
    height: 56px;
    font-size: 0.48rem;
  }

  .emergency-badge .num,
  .reno-badge .num {
    font-size: 0.85rem;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-img {
    min-height: 260px;
  }

  .about-strip {
    grid-template-columns: 1fr !important;
  }

  .about-strip-img,
  .reno-split-img {
    min-height: 240px;
  }

  .about-strip-text,
  .reno-split-text {
    padding: 36px 20px !important;
  }

  .reno-split {
    grid-template-columns: 1fr !important;
  }

  .md-split {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .md-photo {
    max-width: 220px;
    aspect-ratio: 1/1 !important;
    margin: 0 auto;
  }

  .md-content {
    text-align: center;
  }

  .md-content blockquote {
    font-size: 1.2rem;
  }

  .faq-list details {
    padding: 14px 16px;
  }

  .faq-list summary {
    font-size: 0.9rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px;
  }

  footer {
    padding: 48px 16px 16px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  [style*="display:flex"][style*="gap:12px"],
  [style*="display:flex"][style*="gap:16px"] {
    flex-wrap: wrap;
  }

  .hero-content [style*="display:flex"] {
    flex-direction: column;
  }

  .hero-content [style*="display:flex"] a {
    width: 100%;
    justify-content: center;
  }

  .page-hero-btns,
  .hero-cta-btns {
    flex-direction: column;
  }

  .page-hero-btns .btn,
  .hero-cta-btns .btn {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
    max-width: 320px;
  }

  .cta-inline {
    flex-direction: column;
  }

  .cta-inline .btn {
    width: 100%;
  }

  .wa-widget {
    bottom: 16px;
    right: 14px;
  }

  .wa-bubble,
  .call-bubble {
    width: 52px;
    height: 52px;
  }

  .wa-tooltip,
  .call-tooltip {
    display: none;
  }

  .float-widgets {
    bottom: 16px;
    right: 14px;
    gap: 10px;
  }

  .md-section {
    padding: 48px 16px;
  }

  /* MOBILE TRUST BADGES - LEFT ALIGN */
  .hero-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start !important;
    align-items: stretch;
    gap: 10px;
    margin-top: 28px;
    text-align: left;
  }

  .trust-item {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.8rem;
    padding: 10px 12px;
    white-space: normal;
    line-height: 1.35;
    border-radius: 18px;
  }
}

@media (max-width: 600px) {
  .topbar {
    justify-content: center;
    text-align: center;
  }

  .topbar .socials {
    display: none;
  }

  .stats-bar {
    padding: 28px 16px;
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    justify-items: center;
  }

  .stat-item {
    border-radius: 16px;
    padding: 20px 14px;
  }

  .stat-item .num {
    font-size: 2.2rem;
  }

  .stat-item p {
    font-size: 0.82rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .why-card {
    padding: 20px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step {
    padding: 24px 16px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .other-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .other-svc-card {
    height: 130px;
  }

  .cta-band {
    padding: 52px 16px;
  }

  /* Lock SVG/img icon size inside buttons */
.btn svg,
.btn img {
  flex-shrink: 0;
  max-width: 20px;
  max-height: 20px;
}

.cta-band .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .cta-band .btn-group .btn {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }

  .payment-methods {
    gap: 10px;
  }

  .payment-method-chip {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .btn-pay-cta {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }

  .payment-strip {
    padding: 44px 16px;
  }

  .payment-grid {
    grid-template-columns: 1fr !important;
  }

  .payment-card {
    padding: 28px 20px !important;
  }

  .benefits-grid,
  .why-grid-sm {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .services-chips {
    gap: 8px;
  }

  .services-chips a {
    font-size: 0.82rem;
    padding: 6px 14px;
  }

  .emergency-band {
    padding: 36px 16px;
  }

  .emergency-band h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .reno-benefits {
    padding: 44px 16px;
  }
}

@media (max-width: 540px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .nav-logo img {
    height: 38px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .feature-list li {
    font-size: 0.88rem;
  }

  .btn {
    font-size: 0.88rem;
    padding: 12px 20px;
  }

  .hero-btns .btn,
  .page-hero .btn {
    max-width: 100%;
  }

  .reno-chips {
    gap: 8px;
  }

  .reno-chip {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .section-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
  }

  .stat-item .num {
    font-size: 2rem;
  }

  .stat-item p {
    font-size: 0.78rem;
  }

  .other-services-grid {
    grid-template-columns: 1fr !important;
  }

  .other-svc-card {
    height: 150px;
  }

  .values-grid {
    grid-template-columns: 1fr !important;
  }

  .faq-list summary {
    font-size: 0.82rem;
  }

  .subsection-img img {
    max-height: 200px !important;
  }

  .service-card-img {
    height: 150px !important;
  }

  .pay-method-btn .pm-icon {
    font-size: 1.4rem;
  }

  .pay-method-btn {
    padding: 12px;
    font-size: 0.82rem;
  }

  .wa-bubble {
    width: 50px !important;
    height: 50px !important;
  }

  .trust-item {
    font-size: 0.72rem;
    padding: 8px 10px;
  }

  .hero-trust {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .topbar .socials {
    display: none;
  }

  .cta-band h2 {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .cta-band p {
    font-size: 0.92rem;
  }

  .payment-method-chip {
    font-size: 0.75rem;
    padding: 7px 12px;
  }

  .services-chips a {
    font-size: 0.76rem;
    padding: 6px 12px;
  }

  .hero-cta-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-btns .btn {
    justify-content: center;
  }

  .cta-btns-row {
    flex-direction: column;
    align-items: center;
  }

  .cta-btns-row .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .card-footer {
    flex-direction: column;
  }

  .card-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== CTA GROUPS ===== */
.hero-cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}

.hero-btns .btn {
  width: auto;
  flex: 0 0 auto;
}

.cta-btns-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.cta-btns-row .btn {
  width: auto;
  flex: 0 0 auto;
}

.page-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ===== REDUCED MOTION SAFEGUARDS ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}