/*
 * Guards against styles leaking in from the parent theme and from Elementor's
 * site kit. Elementor stays installed for WooCommerce routes, and its kit CSS
 * loads after ours, so these rules carry a little extra specificity on purpose.
 */

html body .nav-cta { color: #fff; }
html body .nav-links a { color: rgba(240, 237, 232, 0.7); }
html body .mega-col li a { color: var(--text-dim); }
html body .mega-col li a:hover { color: var(--accent); }
html body .footer .footer-col a,
html body .footer .footer-bottom a { color: rgba(240, 237, 232, 0.55); }
html body .footer .footer-col a:hover { color: var(--accent); }
html body .product-card,
html body a.product-card { color: inherit; }

/* The parent resets headings; keep the display face on ours. */
html body h1, html body h2, html body h3, html body h4 { font-family: var(--font-display); }

/* WooCommerce ships `.woocommerce-page img { height:auto }` at (0,1,1),
   which out-weighs `.nav-logo-img` and blew the logo up to its intrinsic
   size on every shop template. */
html body .nav .nav-logo .nav-logo-img { height: 48px; width: auto; max-width: none; }
html body .cat-card-img img,
html body .r-card-img img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
/* Supplier photos come in every shape (portrait cut-outs, padded squares):
   show each whole on a white card rather than cropping the odd one. */
html body .split-img { width: 100%; height: 100%; object-fit: contain; background: #fff; max-width: none; }

/* ── Scrolled header: black on every page ──
   Once the page moves the header goes black, whether it started transparent
   over a dark hero or white on a light template. The nav--solid selectors
   are spelled out because they outrank a plain .nav.scrolled. */
html body .nav.scrolled,
html body .nav.nav--solid.scrolled {
  background: rgba(12, 12, 14, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
html body .nav.scrolled .nav-logo-img,
html body .nav.nav--solid.scrolled .nav-logo-img { filter: brightness(10); }
html body .nav.scrolled .nav-logo-text,
html body .nav.nav--solid.scrolled .nav-logo-text { color: #F0EDE8; }
html body .nav.scrolled .nav-links a,
html body .nav.nav--solid.scrolled .nav-links a { color: rgba(240, 237, 232, 0.7); }
html body .nav.scrolled .nav-links a:hover,
html body .nav.nav--solid.scrolled .nav-links a:hover { color: #F0EDE8; }
html body .nav.scrolled .nav-toggle span,
html body .nav.nav--solid.scrolled .nav-toggle span { background: #F0EDE8; }
html body .nav.scrolled .nav-icon-btn svg,
html body .nav.nav--solid.scrolled .nav-icon-btn svg { stroke: rgba(240, 237, 232, 0.8); }

/* Home service cards: the whole card opens its link, not only the button (2026-11-11). */
.service-card { cursor: pointer; }
.service-card .service-card-btn::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* The CTA glow is 500px wide; on a phone it pushed the page 60px sideways. */
html body .cta-section { overflow: hidden; }

/* Phone hero text: the desktop's right-only padding let lines run off the left edge. */
@media (max-width: 767px) {
  html body .hero-phase { padding: 0 1.25rem; }
}
