/*
Beyond Smart Homes — site stylesheet (smart home automation in Kuwait)
Design system v1.9.52.1 — https://beyondsmarthomes.com
*/

/* =============================================
   SELF-HOSTED FONTS (v1.9.52 — D16)
   Inter 4.1 (rsms/inter) + IBM Plex Sans Arabic 1.1.0 (IBM/plex), SIL OFL 1.1 —
   licences in assets/fonts/*-LICENSE.txt. No request goes to Google Fonts.
   Weights 800/900 of Plex do not exist → the browser synthesises from 700.
   ============================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/Inter-ExtraBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/Inter-Black.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-Bold.woff2') format('woff2');
}

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --navy:        #0A1628;
  --navy-dark:   #060e1a;
  --navy-card:   #0D1E35;
  --navy-mid:    #112240;
  --yellow:      #F5C518;
  --yellow-dark: #d4a914;
  --orange:      #F57C18;
  --orange-dark: #d46810;
  --white:       #FFFFFF;
  --white-80:    rgba(255,255,255,0.8);
  --white-60:    rgba(255,255,255,0.6);
  --white-20:    rgba(255,255,255,0.2);
  --green-wa:    #25D366;
  --green-wa-dark: #1da851;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.5);
  --transition:  all 0.3s ease;
  --font-main:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width:   1200px;
  --header-h:    72px;
}

/* =============================================
   RESET & NORMALIZE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--yellow-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-main);
}

/* v1.9.52 (F-27-23) — skip link (first focusable element; visible on focus only) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10001;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: var(--navy); }
html[dir="rtl"] .skip-link { left: auto; right: 12px; }
#main-content:focus { outline: none; }
/* Text that only makes sense when JS runs (e.g. "Loading gallery…") */
html:not(.js) .bsh-js-only { display: none; }

input, textarea, select {
  font-family: var(--font-main);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
}

p {
  line-height: 1.7;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }

.text-yellow  { color: var(--yellow); }
.text-orange  { color: var(--orange); }
.text-muted   { color: var(--white-60); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 48px 0;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--yellow);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--yellow);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--yellow);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.25);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-wa);
  /* v1.9.52 (F-27-24) — navy on WhatsApp green ≈ 8:1 (white was 1.98:1) */
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--green-wa);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-wa:hover {
  background: var(--green-wa-dark);
  border-color: var(--green-wa-dark);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-ig:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220, 39, 67, 0.35);
  filter: brightness(1.1);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--navy-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.9rem;
  color: var(--white-80);
  line-height: 1.6;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--white-60);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  background: rgba(245, 197, 24, 0.15);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 197, 24, 0.3);
}

/* =============================================
   NAVIGATION
   ============================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-bottom-color 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

#site-header.scrolled {
  background: rgba(10, 22, 40, 1);
  box-shadow: 0 2px 24px rgba(0,0,0,0.6);
  border-bottom-color: rgba(255,255,255,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  border-radius: 4px;
}

.nav-logo-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

/* v1.9.39 — "Beyond" brand lockup: "Smart Homes" sits under it, smaller, never same-size/inline. */
.nav-logo-sub {
  display: inline-block;
  /* v1.9.52 (F-27-28) — legible: ≥ 10.5px and never wraps ("Smart / Homes") */
  font-size: max(0.66em, 10.5px);
  white-space: nowrap;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--white-80);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--yellow);
  background: rgba(245, 197, 24, 0.1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-wa);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: var(--transition);
}

.nav-wa-btn:hover {
  background: var(--green-wa-dark);
  color: var(--navy);
  transform: translateY(-1px);
}

/* ── Sample Trial emoji visual ── */
.trial-emoji-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 0;
  width: 100%;
  margin-bottom: 12px;
}
.trial-emoji-visual span { line-height: 1; }

/* Home page step card */
.trial-emoji-step {
  height: 80px;
  font-size: 2.8rem;
  gap: 10px;
}
/* How-it-works "What You Get" card */
.trial-emoji-card {
  height: 96px;
  font-size: 3rem;
  gap: 12px;
}
/* Pricing trust card icon — inside circle */
.trust-card-emoji-wrap {
  width: 64px;
  height: 64px;
  background: rgba(245,197,24,0.1);
  border-radius: 50%;
  border: none !important;
}
.trust-card-emoji-big {
  font-size: 1.5rem;
  letter-spacing: -4px;
}

/* ── Profile dropdown ── */
.nav-profile-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-profile-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--white-80);
  -webkit-tap-highlight-color: transparent;
}
.nav-profile-btn:hover,
.nav-profile-btn.open {
  background: rgba(245,197,24,0.15);
  border-color: var(--yellow);
  color: var(--yellow);
}

.nav-profile-svg { width: 20px; height: 20px; }
.nav-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 2000;
}
.nav-profile-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--white-80);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.nav-dropdown-item:hover {
  background: rgba(245,197,24,0.1);
  color: var(--yellow);
}
.nav-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 8px;
}
.nav-dropdown-logout { color: rgba(248,113,113,0.8); }
.nav-dropdown-logout:hover { background: rgba(248,113,113,0.1); color: #f87171; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-appearance: none;
  user-select: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #0A1628;
  background: rgba(10, 22, 40, 0.99);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 9998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.nav-mobile-overlay.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: all;
  visibility: visible !important;
}

body.menu-open {
  overflow: hidden;
}

.nav-mobile-overlay a {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.nav-mobile-overlay a:hover {
  color: var(--yellow);
  background: rgba(245, 197, 24, 0.1);
}

.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

/* Page offset for fixed header */
.page-content {
  padding-top: var(--header-h);
}

/* =============================================
   FLOATING SOCIAL BUTTONS
   ============================================= */
.float-buttons {
  position: fixed;
  bottom: 30px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 50px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: var(--transition);
  white-space: nowrap;
}

.float-btn:hover {
  transform: translateX(-4px) scale(1.04);
  color: var(--white);
}
.float-wa:hover { color: var(--navy); }

.float-wa {
  background: var(--green-wa);
  color: var(--navy);
  animation: pulse-wa 2.5s ease-in-out infinite;
}

.float-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.float-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.float-btn .float-label {
  font-size: 0.8rem;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 0 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.2;
}

/* v1.9.39 — footer brand lockup follows the same "Beyond" / sub-line rule as the nav. */
.footer-brand-sub {
  display: inline-block;
  font-size: max(0.6em, 10.5px);
  white-space: nowrap;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--white-60);
  margin-bottom: 20px;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--white-60);
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--white-60);
}

.footer-warranty-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.3);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h)); /* v1.9.52 (F-27-32) — no 72px overshoot; iOS URL bar */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.3);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--white-80);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* =============================================
   TRUST STRIP
   ============================================= */
.trust-strip {
  background: var(--yellow);
  padding: 24px 0;
}

/* Pricing page trust strip — uniform card design */
.pricing-trust-strip {
  background: var(--navy-card);
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.pricing-trust-strip .trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.pricing-trust-strip .trust-title {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 28px;
}
/* 4 equal cards in a row */
.trust-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media(max-width: 900px) { .trust-cards-row { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 480px) { .trust-cards-row { grid-template-columns: 1fr; } }

.trust-card {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.trust-card:hover {
  border-color: rgba(245,197,24,0.4);
  background: rgba(245,197,24,0.05);
}
.trust-card-icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,197,24,0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.trust-card-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.trust-card-title {
  display: block;
  color: var(--white);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.3;
}
.trust-card-desc {
  display: block;
  color: var(--white-60);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* =============================================
   PRODUCT CATEGORY CARDS
   ============================================= */
.product-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  border-color: rgba(245, 197, 24, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.product-card .icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 12px;
}

.product-card h3 {
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--white-60);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.product-card .explore-link {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.product-card .explore-link:hover {
  color: var(--yellow);
}

/* =============================================
   VALUE PILLARS
   ============================================= */
.pillar-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 197, 24, 0.2);
}

.pillar-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  text-align: center;
}

.pillar-card h3 {
  color: var(--yellow);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pillar-card p {
  color: var(--white-80);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-card) 100%);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--white-60);
  font-size: 1rem;
  margin-bottom: 32px;
}

.cta-banner-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   SOLUTIONS PAGE
   ============================================= */
.solutions-section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  scroll-margin-top: 140px; /* header (72px) + subnav (~52px) + breathing room */
}

.solutions-section:nth-child(even) {
  background: var(--navy-card);
}

.solutions-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 48px;
}

.solutions-icon {
  font-size: 3.5rem;
  flex-shrink: 0;
}

.solutions-header-text h2 {
  color: var(--yellow);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.solutions-header-text p {
  color: var(--white-80);
  font-size: 1rem;
}

.device-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.device-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  font-size: 0.875rem;
  color: var(--white-80);
  transition: var(--transition);
}

.device-card:hover {
  border-color: rgba(245, 197, 24, 0.3);
  background: rgba(245, 197, 24, 0.05);
  color: var(--white);
}

.device-card .device-name {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.automation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.automation-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--white-80);
  font-size: 0.9rem;
}

.automation-item::before {
  content: '⚡';
  flex-shrink: 0;
}

.warranty-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.3);
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  margin-top: 8px;
}

/* Thermometer SVG animation */
.thermometer-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.thermo-svg {
  width: 60px;
  height: 160px;
}

/* =============================================
   HOW IT WORKS — TIMELINE
   ============================================= */
.timeline-section {
  padding: 80px 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--yellow), var(--orange));
  transform: translateX(-50%);
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 56px;
  position: relative;
}

.timeline-step:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-step:nth-child(odd) .timeline-card {
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--navy), 0 0 0 6px var(--yellow);
  flex-shrink: 0;
}

.timeline-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  width: calc(50% - 48px);
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: rgba(245, 197, 24, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.timeline-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-card h3,
.timeline-card h2.timeline-title {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
/* v1.9.52 (F-27-23) — steps became h2 (h1 → h2); keep the old h3 look */
.timeline-card h2.timeline-title { font-weight: 600; line-height: 1.25; }

.timeline-card p {
  color: var(--white-80);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* =============================================
   WHY BEYOND — DIFFERENTIATORS
   ============================================= */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.diff-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.diff-card:hover {
  border-color: rgba(245, 197, 24, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.diff-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}

.diff-card h3 {
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.diff-card p {
  color: var(--white-80);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Competitor Table */
.competitor-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
}

.competitor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}

.competitor-table th {
  background: var(--navy-dark);
  color: var(--white-60);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 20px;
  text-align: center;
  border-bottom: 2px solid rgba(255,255,255,0.08);
}

.competitor-table th:first-child {
  text-align: left;
}

.competitor-table th.bsh-col {
  background: rgba(245, 197, 24, 0.15);
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.competitor-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--white-80);
}

.competitor-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--white);
}

.competitor-table td.bsh-col {
  background: rgba(245, 197, 24, 0.05);
  font-weight: 700;
  color: var(--yellow);
}

.competitor-table tr:hover td {
  background: rgba(255,255,255,0.03);
}

.competitor-table tr:hover td.bsh-col {
  background: rgba(245, 197, 24, 0.1);
}

.check-yes  { color: #4ade80; }
.check-no   { color: #f87171; }
.check-bsh  { color: var(--yellow); }

/* =============================================
   ROI CALCULATOR
   ============================================= */
#roi-calculator {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

#roi-calculator h2,
#roi-calculator > h3.roi-calc-title {
  color: var(--yellow);
  text-align: center;
  margin-bottom: 32px;
}
/* v1.9.52 (F-27-23) — calculator title is now h3 under the section h2; keep its h2 size */
#roi-calculator > h3.roi-calc-title { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.calc-inputs label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--white-80);
  font-size: 0.9rem;
  font-weight: 500;
}

.calc-inputs input[type="number"],
.calc-inputs select {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.calc-inputs input[type="number"]:focus,
.calc-inputs select:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.1);
}

.calc-inputs select option {
  background: var(--navy-dark);
  color: var(--white);
}

.range-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-column: span 2;
}

.range-group label {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.range-group input[type="range"] {
  width: 100%;
  accent-color: var(--yellow);
  cursor: pointer;
}

.range-val {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 60px;
  text-align: right;
}

#calc-btn {
  width: 100%;
  font-size: 1.1rem;
  padding: 16px;
  border-radius: var(--radius-md);
}

.results-card {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
}

.result-row:last-child {
  border-bottom: none;
}

.result-row span:first-child {
  color: var(--white-80);
}

.result-row span:last-child {
  font-weight: 700;
  color: var(--white);
}

.result-row.highlight {
  background: rgba(245, 197, 24, 0.08);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 4px -16px;
}

.result-row.highlight span {
  color: var(--yellow) !important;
  font-size: 1.1rem;
}

#savings-chart {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
  margin: 24px auto;
  background: var(--navy);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}

#roi-explanation {
  margin: 24px 0;
}

#roi-explanation h3 {
  color: var(--yellow);
  margin-bottom: 16px;
}

.explanation-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--white-80);
  font-size: 0.9rem;
  line-height: 1.6;
}

.explanation-item:last-child {
  border-bottom: none;
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--white-60);
  font-style: italic;
  margin: 16px 0;
}

/* =============================================
   PRICING CONFIGURATOR
   ============================================= */
#pricing-wizard {
  max-width: 860px;
  margin: 0 auto;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-bottom: 40px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 16.66%;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeInUp 0.35s ease;
}

.step h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 32px;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto 32px;
}

.choice-btn {
  background: var(--navy-card);
  border: 2px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.4;
}

.choice-btn:hover,
.choice-btn.selected {
  border-color: var(--yellow);
  background: rgba(245, 197, 24, 0.1);
  color: var(--yellow);
  transform: translateY(-2px);
}

.num-btn {
  background: var(--navy-card);
  border: 2px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  min-width: 80px;
}

.num-btn:hover,
.num-btn.selected {
  border-color: var(--yellow);
  background: rgba(245, 197, 24, 0.1);
  color: var(--yellow);
}

.num-btn.large {
  min-width: 140px;
  font-size: 0.95rem;
}

.step label {
  display: block;
  text-align: center;
  color: var(--white-60);
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.package-card {
  background: var(--navy-card);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  position: relative;
}

.package-card:hover {
  border-color: rgba(245, 197, 24, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.package-card.featured {
  border-color: var(--yellow);
}

.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

.config-recap-box {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

#save-config-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 500px;
  margin: 0 auto;
}

#save-config-form input,
#save-config-form textarea {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  width: 100%;
}

#save-config-form input:focus,
#save-config-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.1);
}

#save-config-form input::placeholder,
#save-config-form textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.contact-pref {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-pref label {
  color: var(--white-60);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.pref-btn {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white-60);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.pref-btn.active,
.pref-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(245, 197, 24, 0.1);
}

.form-note {
  font-size: 0.78rem;
  color: var(--white-60);
  font-style: italic;
}

.success-box {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.success-box h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #4ade80;
}

.success-box p {
  color: var(--white-80);
  margin-bottom: 20px;
}

.custom-quote-box {
  background: var(--navy-card);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

.custom-quote-box p {
  color: var(--white-80);
  margin-bottom: 20px;
  font-size: 1rem;
}

/* =============================================
   ACCOUNT PAGE
   ============================================= */

.account-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white-60);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.account-tab.active {
  background: var(--yellow);
  color: var(--navy);
}

.account-form {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.account-form.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white-80);
}

.form-input {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.1);
}

.form-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-footer {
  text-align: right;
  margin-top: -8px;
}

.form-footer a {
  font-size: 0.8rem;
  color: var(--white-60);
}

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

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--white-80);
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--yellow);
  cursor: pointer;
}

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
  font-family: var(--font-main);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .product-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

}

/* v1.9.52 (F-27-06) — NAV ONLY: the desktop nav needs ~1000px (EN) — below that the hamburger
   takes over (was 768px → clipped WhatsApp/profile between 769 and ~1000px). */
@media (max-width: 999.98px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-lang-mobile { display: inline-flex; }
}
/* "Book a visit" link: shown on wide desktop only; always in the mobile menu + footer. */
@media (min-width: 1000px) and (max-width: 1239.98px) {
  .nav-links a.nav-link-book { display: none; }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .pillar-cards,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .product-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .timeline::before {
    left: 24px;
  }

  .timeline-step {
    flex-direction: column !important;
    padding-left: 64px;
  }

  .timeline-step:nth-child(odd) .timeline-card {
    text-align: left;
  }

  .timeline-dot {
    left: 0;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .timeline-card {
    width: 100%;
  }

  .calc-inputs {
    grid-template-columns: 1fr;
  }

  .range-group {
    grid-column: span 1;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .float-btn .float-label {
    display: none;
  }

  .float-btn {
    padding: 12px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    justify-content: center;
  }

  .cta-banner-actions {
    flex-direction: column;
    align-items: center;
  }

  #roi-calculator {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-padding {
    padding: 56px 0;
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 40px 24px;
  }
}

/* ================================================
   BEYOND SMART HOMES — NEW STYLES (v5 additions)
   ================================================ */

/* ── Logged-in profile icon — yellow SVG ── */
.nav-profile-btn.logged-in-user {
  background: rgba(245,197,24,0.15);
  border-color: var(--yellow);
  color: var(--yellow);
}
.nav-profile-btn.logged-in-user .nav-profile-svg {
  color: var(--yellow);
  stroke: var(--yellow);
}

/* ── Trust Bubbles (Home page) ── */
.trust-bubbles-section {
  background: linear-gradient(135deg, #F5C518 0%, #E8B000 60%, #F5C518 100%);
  padding: 40px 0;
}
.trust-bubbles-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-dark);
  border: 2px solid rgba(245,197,24,0.45);
  border-radius: 50px;
  padding: 16px 28px;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
  justify-content: center;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.trust-bubble:hover {
  background: var(--navy-card);
  border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.trust-bubble-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.trust-bubble-text {
  color: var(--white-80);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}
.trust-bubble-text strong {
  color: var(--yellow);
}
@media (max-width: 640px) {
  .trust-bubble {
    border-radius: 16px;
    max-width: 100%;
    flex: 0 0 100%;
    text-align: left;
  }
}

/* ── Why Beyond: high-end explainer text ── */
.highend-explainer {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid rgba(245,197,24,0.4);
  border-radius: 0 14px 14px 0;
  padding: 22px 28px;
  color: var(--white-80);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 8px;
}
.highend-explainer strong { color: var(--white); }

/* ── Bronze / Silver / Gold Wordart — Package Tier Labels ── */
/* ── Package tier badge labels ── */
.pkg-tier-word {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px 7px 14px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.pkg-tier-word::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}
.pkg-tier-bronze {
  background: linear-gradient(135deg, #7B3F10 0%, #CD7F32 35%, #E8A96B 55%, #A0522D 80%, #8B4513 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(205,127,50,0.5), 0 1px 0 rgba(255,255,255,0.15) inset;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.pkg-tier-silver {
  background: linear-gradient(135deg, #4a4a4a 0%, #9e9e9e 30%, #d8d8d8 55%, #7a7a7a 80%, #505050 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(160,160,160,0.45), 0 1px 0 rgba(255,255,255,0.2) inset;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.pkg-tier-gold {
  background: linear-gradient(135deg, #9a6b00 0%, #F5C518 30%, #FFE566 55%, #D4A017 80%, #B8860B 100%);
  color: #0a1628;
  box-shadow: 0 4px 22px rgba(245,197,24,0.6), 0 1px 0 rgba(255,255,255,0.45) inset;
  text-shadow: 0 1px 1px rgba(255,255,255,0.2);
}

/* ─────────────────────────────────────────────
   PRICING COMPARISON TABLE
───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   CONSULTATION FORM — CENTERED
───────────────────────────────────────────── */
.consult-form-centered {
  max-width: 560px;
  margin: 0 auto;
}
.consult-form-centered .consult-row,
.consult-form-centered .consult-field,
.consult-form-centered .consult-contact-pref,
.consult-form-centered .consult-submit-row {
  text-align: center;
}
.consult-form-centered .consult-label {
  text-align: left;
}
.consult-form-centered .consult-pref-btns {
  justify-content: center;
}
.consult-form-centered .consult-submit-row {
  justify-content: center;
}

/* ─────────────────────────────────────────────
   SETTINGS PROFILE — CENTERED
───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   PHONE INPUT — PROPER INLINE
───────────────────────────────────────────── */
.phone-input-wrap {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: stretch;
  width: 100%;
}
.phone-input-wrap .country-code-select {
  flex-shrink: 0;
  width: 120px;
  height: 48px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: var(--white);
  padding: 0 8px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-main);
  transition: border-color 0.2s ease;
}
.phone-input-wrap .country-code-select:focus {
  outline: none;
  border-color: var(--yellow);
}
.phone-input-wrap input[type="tel"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  border-radius: 0 10px 10px 0;
  border-left: 1px solid rgba(255,255,255,0.08);
}

/* ─────────────────────────────────────────────
   ADDITIONAL SETTINGS — FULL-WIDTH STACKED
───────────────────────────────────────────── */

/* Wider step-5 wizard for comparison table */
.pricing-wizard-wrap.step5-active {
  max-width: 1200px;
}

/* ─────────────────────────────────────────────
   PACKAGE CARD — FULL SEQUENTIAL FEATURE LIST
───────────────────────────────────────────── */
.pkg-includes-full {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}
.pkg-item-yes,
.pkg-item-no {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.82rem;
  line-height: 1.4;
}
.pkg-item-yes {
  color: var(--white-80);
}
.pkg-item-no {
  color: rgba(255,255,255,0.22);
  text-decoration: none;
}
.pkg-check {
  color: var(--yellow);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.9rem;
}
.pkg-x {
  color: rgba(255,255,255,0.22);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.9rem;
}
.pkg-item-icon {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.9rem;
  opacity: 1;
}
.pkg-item-no .pkg-item-icon {
  opacity: 0.25;
}
.pkg-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Feature name is ONE flex item so an inline <u> (PREMIUM) stays on the same
   line as the words after it; only .pkg-item-detail drops to the next line. */
.pkg-item-name {
  display: block;
}
.pkg-item-detail {
  font-size: 0.75rem;
  color: var(--white-60);
  line-height: 1.3;
  display: block;
}
.pkg-item-no .pkg-item-detail {
  color: rgba(255,255,255,0.15);
}
/* Section divider within card list */
.pkg-section-divider {
  list-style: none;
  padding: 8px 0 4px;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-bottom: 1px solid rgba(245,197,24,0.2);
  border-top: 1px solid rgba(245,197,24,0.1);
  opacity: 0.85;
}
/* Wider grid for 3-card comparison */
.package-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
  align-items: start;
}
@media(max-width:800px) { .package-cards-grid { grid-template-columns: 1fr; } }

/* ── Fix: disable global li::before checkmark for pkg-includes-full ── */
.pkg-includes-full li.pkg-item-yes::before,
.pkg-includes-full li.pkg-item-no::before,
.pkg-includes-full li.pkg-section-divider::before {
  content: none !important;
}

/* ── Dashboard section title: yellow band with inner navy bubble ── */
.dash-section-title {
  display: flex !important;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #F5C518 0%, #E8B000 60%, #F5C518 100%) !important;
  padding: 14px 20px !important;
  border-radius: 14px !important;
  margin-bottom: 32px !important;
  box-shadow: 0 4px 18px rgba(245,197,24,0.28) !important;
  color: transparent !important; /* hide direct text; content moved to inner span by JS */
  font-size: 0 !important;
}
.section-title-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-dark);
  border: 2px solid rgba(245,197,24,0.45);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  white-space: nowrap;
}

/* ── Fix: trust-card telephone icon visibility ── */
.trust-card-icon-wrap {
  background: rgba(245,197,24,0.15) !important;
  border: 1.5px solid rgba(245,197,24,0.3) !important;
}
.trust-card-icon {
  filter: none !important;
  opacity: 1 !important;
}

/* ── Package card: blank ✗ rows (no text, just mark + preserved height) ── */
.pkg-item-blank {
  min-height: 2.2rem;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 0 !important;
}
.pkg-item-blank .pkg-x {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.15);
}

/* ── Custom quote "Request a Follow-Up" bubble ── */
.cfg-followup-bubble {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(245,124,24,0.15);
  border: 1.5px solid rgba(245,124,24,0.45);
  color: #F57C18;
  transition: all 0.2s ease;
}
.cfg-followup-bubble:hover {
  background: rgba(245,124,24,0.25);
  border-color: #F57C18;
  color: #F57C18;
}

/* ── Package cards: ✗ marks — large, yellow, centered ── */
.pkg-item-blank {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
.pkg-item-blank .pkg-x,
.pkg-item-no .pkg-x {
  color: var(--yellow) !important;
  font-weight: 900 !important;
  font-size: 1.1rem !important;
  opacity: 0.7;
  text-align: center;
  display: block;
  width: 100%;
}
/* Hide section dividers since they're removed from all cards */
.pkg-section-divider { display: none !important; }

/* Consultation form card */
.consult-form-card .settings-card-title {
  margin-bottom: 20px;
}
.consult-form-card .consult-form {
  max-width: 100%;
}

/* =============================================
   GALLERY — Before/After Slider (Task 3)
   ============================================= */
.bsh-gallery-grid {
  display: grid;
  /* F1 (batch #17) — cap card width + center so a single entry isn't a massive full-width block */
  grid-template-columns: repeat(auto-fit, minmax(320px, 460px));
  justify-content: center;
  gap: 32px;
  padding: 20px 0;
}
.bsh-gallery-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bsh-gallery-card:hover {
  border-color: rgba(245,197,24,0.3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.bsh-gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
}
.bsh-ba-slider {
  position: relative;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}
/* F1 — the AFTER image sets the slider's natural aspect ratio (no zoom/crop) */
.bsh-ba-after {
  position: relative;
  display: block;
  font-size: 0;
}
.bsh-ba-after img {
  display: block;
  width: 100%;
  height: auto;
}
/* The BEFORE image is the SAME size, anchored to the slider's left edge and clipped by the
   container width — so dragging only changes how much shows, the photos never move/zoom */
.bsh-ba-before {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
}
.bsh-ba-before img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
}
.bsh-ba-handle:focus-visible .bsh-ba-circle {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}
.bsh-ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  cursor: col-resize;
  z-index: 10;
}
.bsh-ba-line {
  width: 3px;
  height: 100%;
  background: white;
  opacity: 0.9;
  position: absolute;
}
.bsh-ba-circle {
  width: 40px;
  height: 40px;
  background: var(--yellow, #F5C518);
  color: var(--navy, #0A1628); /* v1.9.52 (F-27-24) — navy arrows on yellow (white was 1.63:1) */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  z-index: 11;
  flex-shrink: 0;
}
/* F1 — larger Before/After markings: brand-yellow text on brand-blue bubbles */
.bsh-ba-label {
  position: absolute;
  bottom: 14px;
  background: #0A1628;
  color: #F5C518;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 16px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.bsh-ba-label-before { left: 14px; }
.bsh-ba-label-after  { right: 14px; }
/* F1 — heading + subtitle ABOVE the entry, brand-yellow text on brand-blue */
.bsh-gallery-caption {
  background: #0A1628;
  padding: 14px 18px;
  text-align: center;
}
.bsh-gallery-caption h3,
.bsh-gallery-caption h2 {
  color: #F5C518;
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
}
.bsh-gallery-caption p {
  color: rgba(245,197,24,0.8);
  font-size: 0.85rem;
  margin: 0;
}

/* F1 (batch #18) — contact-channel bubble styles promoted to GLOBAL so the EXACT same
   Instagram bubble from the Contact page renders identically on the Gallery page. */
.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px;
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  color: white;
}
.contact-channel-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.4); }
.contact-wa-card { background: linear-gradient(135deg, #128C7E, #25D366); }
.contact-ig-card { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.channel-icon {
  background: rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-text h3,
.channel-text h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.channel-text p  { font-size: 0.9rem; opacity: 0.85; margin-bottom: 8px; }
.channel-cta     { font-size: 0.82rem; font-weight: 700; opacity: 0.8; }

/* FE8 (batch #20) — Solutions mini-header: horizontally scrollable on mobile (like the account
   dashboard mini-header), no wrapping. The sticky `top` uses --header-h so it sits flush under
   the header with no gap (header is 60px on mobile, 72px on desktop). */
@media (max-width: 700px) {
  .sol-jump-row {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sol-jump-row::-webkit-scrollbar { display: none; }
  .sol-jump-row .sol-jump-link { flex: 0 0 auto; white-space: nowrap; }
}

/* F2 (batch #16) — Gallery side-by-side display mode (both photos fully shown, bordered) */
.bsh-ba-sidebyside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
}
.bsh-ba-sbs-frame {
  margin: 0;
  border: 2px solid var(--yellow);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-dark);
  position: relative;
}
.bsh-ba-sbs-frame img {
  display: block;
  width: 100%;
  height: auto; /* F3 — natural aspect ratio of the source photo (no crop) */
}
.bsh-ba-sbs-frame figcaption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(10,22,40,0.82);
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}
/* FE9 (batch #20) — keep BOTH photos side-by-side on mobile too (was stacking to 1 column).
   Tighter gap/padding so two columns fit comfortably on a phone. */
@media (max-width: 480px) {
  .bsh-ba-sidebyside { grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
  .bsh-ba-sbs-frame figcaption { font-size: 0.6rem; padding: 3px 7px; }
}

/* =============================================
   BOOKING / CONSULTATION FORM (Task 4)
   ============================================= */
.bsh-booking-section {
  max-width: 720px;
  margin: 0 auto;
}
.bsh-booking-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px;
}
.bsh-booking-date-row {
  margin-bottom: 24px;
}
.bsh-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.bsh-slot-btn {
  padding: 12px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: all 0.2s;
}
.bsh-slot-btn:hover {
  background: rgba(245,197,24,0.15);
  border-color: var(--yellow);
}
.bsh-slot-btn.selected {
  background: var(--yellow);
  color: #0A1628;
  border-color: var(--yellow);
  font-weight: 700;
}
.bsh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bsh-form-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: flex-end;
}
.bsh-booking-notice {
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 16px;
}
.bsh-error {
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.3);
  color: #ff8080;
}
.bsh-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  font-family: var(--font-main);
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.bsh-input:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(245,197,24,0.04);
}
.bsh-input::placeholder {
  color: rgba(255,255,255,0.35);
}
.bsh-input option {
  background: #0A1628;
  color: white;
}
.bsh-loading {
  text-align: center;
  padding: 16px 0;
  color: rgba(255,255,255,0.5);
}
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .bsh-booking-form-wrap { padding: 24px 18px; }
  .bsh-form-grid { grid-template-columns: 1fr; }
  .bsh-form-actions { flex-direction: column; }
}

/* ── F8: Global mobile overflow safety — keep buttons/bubbles inside their containers ── */
@media (max-width: 768px) {
  /* any flex row of buttons/chips wraps instead of overflowing */
  .cfg-actions, .cfg-card-footer, .dash-qa-grid, .trust-cards-row,
  .btn-row, .hero-cta, .cta-row, .wa-row { flex-wrap: wrap !important; }
  /* buttons/bubbles never exceed their parent and may wrap text */
  .btn-wa, .btn-primary, .btn-outline, .btn-cfg-want, .btn-cfg-view, .btn-cfg-delete,
  .cfg-detail-bubble, .cfg-package-badge, .float-btn, .dash-qa-btn {
    max-width: 100%; min-width: 0; white-space: normal; word-break: break-word;
    box-sizing: border-box;
  }
  /* cards/bubbles and their contents respect the viewport */
  .trust-card, .dash-stat-card, .saved-config-card, .consult-type-btn { min-width: 0; }
  .trust-card *, .dash-stat-card *, .saved-config-card * { max-width: 100%; min-width: 0; }
}

/* =====================================================================
   EN/AR — v1.9.14 language toggle + Arabic RTL layer.
   Everything here is scoped to html[dir="rtl"] / .bsh-lang-ar, so it is
   completely inert for English visitors (additive, never alters English).
   Row-based flex layouts mirror automatically once direction:rtl is set
   (the browser does this from the <html dir="rtl"> attribute); the rules
   below add the Arabic font, right-alignment, LTR islands for Latin data
   (email/phone/prices), and a handful of physical-property flips.
   ===================================================================== */

/* Language toggle button (desktop) — quiet outlined pill next to the WA button */
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 13px;
  border: 1px solid var(--white-20, rgba(255,255,255,0.25));
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-lang-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-1px);
}

/* =============================================
   v1.9.16 — Language toggle flags + mobile top-bar control,
   compact hamburger menu, and mobile WhatsApp button fix
   ============================================= */

/* Inline flag SVG sits neatly inline with the label in both toggles. */
.nav-flag {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
  flex: 0 0 auto;
}

/* Mobile top-bar language toggle — hidden on desktop, shown on mobile. */
.nav-lang-mobile {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-xl, 999px);
  background: transparent;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.nav-lang-mobile .nav-lang-mobile-txt { line-height: 1; }
/* In RTL the control still reads flag → label naturally; keep it LTR-flowing. */
html[dir="rtl"] .nav-lang-mobile { margin-left: 8px; margin-right: auto; }

@media (max-width: 768px) {
  /* Show the always-visible mobile language toggle in the top bar. */
  .nav-lang-mobile { display: inline-flex; }

  /* --- Compact hamburger menu: smaller font / padding / line-height --- */
  .nav-mobile-overlay {
    justify-content: flex-start;
    padding: 72px 20px 32px;
    gap: 2px;
  }
  .nav-mobile-overlay a,
  .nav-mobile-overlay .mobile-nav-link {
    font-size: 1.02rem;
    font-weight: 600;
    padding: 11px 18px;
    line-height: 1.25;
    max-width: 360px;
  }
  .nav-mobile-social {
    margin-top: 20px;
    gap: 12px;
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  /* --- Mobile WhatsApp / Instagram social buttons: correct sizing, label never wraps --- */
  .nav-mobile-social .btn-sm {
    padding: 10px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .nav-mobile-overlay a,
  .nav-mobile-overlay .mobile-nav-link {
    font-size: 0.96rem;
    padding: 10px 16px;
  }
  .nav-lang-mobile { font-size: 0.75rem; padding: 5px 8px; }
}

/* Belt-and-braces: the WhatsApp label must never break the "p" onto a new line,
   anywhere the button appears.
   v1.9.52 (F-27-31) — on ≤768px the F8 overflow-safety rule lets long .btn-wa labels wrap
   (it was dead because this rule came later at equal specificity); nowrap now applies above
   768px only. Short labels ("WhatsApp") still never break because they fit. */
.nav-wa-btn { white-space: nowrap; }
@media (min-width: 768.02px) {
  .btn-wa { white-space: nowrap; }
}

/* ---- Arabic typography + base direction ---- */
html[dir="rtl"] body,
body.bsh-lang-ar {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  text-align: right;
  letter-spacing: 0;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] li,
html[dir="rtl"] label,
html[dir="rtl"] .section-label {
  letter-spacing: 0;
}

/* Keep Latin data (email, phone, prices, brand tokens, code) left-to-right so
   it never gets visually reordered by the RTL context. */
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="password"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] .ltr,
html[dir="rtl"] .price,
html[dir="rtl"] .kwd,
html[dir="rtl"] .pkg-price,
html[dir="rtl"] .dash-money {
  direction: ltr;
  text-align: right;      /* aligned to the reading edge, digits still LTR */
  unicode-bidi: plaintext;
}
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
}
/* v1.9.52 (F-27-27) — form controls + buttons use the Arabic font too (element-level
   font-family beat inheritance, so they rendered Arabic through Inter's fallback). */
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  font-family: inherit;
}

/* Inputs whose placeholder/content is Arabic should read right; the type-based
   rules above already keep email/phone/password LTR. */

/* ---- Targeted physical-property flips (things dir alone can't mirror) ---- */

/* Trust ticks / list bullets that used a left margin now sit on the right */
html[dir="rtl"] .float-buttons {
  right: auto;
  left: 20px;
}
/* v1.9.52 (F-27-07) — was `.nav-dropdown` (no such element) → the AR profile menu opened off-screen */
html[dir="rtl"] .nav-profile-dropdown {
  right: auto;
  left: 0;
}
html[dir="rtl"] .forgot-link {
  text-align: left;   /* stays on the far (visual) edge opposite the label */
}

/* Directional arrows in CTAs read the other way in Arabic. Authors already
   used the correct glyph (← / →) per string in translations.php, so no glyph
   swap is needed here — this just keeps arrow-bearing buttons centered. */
html[dir="rtl"] .btn-primary,
html[dir="rtl"] .btn-outline,
html[dir="rtl"] .btn-large {
  text-align: center;
}

/* Before/After slider is a visual widget — keep it LTR so the drag handle math
   (left-anchored clip) is unaffected by the RTL context. */
html[dir="rtl"] .bsh-ba-slider,
html[dir="rtl"] .bsh-ba-before,
html[dir="rtl"] .bsh-ba-after {
  direction: ltr;
}

/* ─────────────────────────────────────────────
   v1.9.17 — RTL phone-input group + country-code selector.
   In LTR the select is on the LEFT (radius 10 0 0 10, border-right:none) and the
   tel input on the RIGHT (radius 0 10 10 0, border-left). Under RTL the flex row
   reverses so the select sits on the RIGHT — mirror the radii/borders so the joined
   group has clean matching corners (no pointy/broken corners at the seam).
───────────────────────────────────────────── */
/* v1.9.20 (defect 4) — force the whole phone group to flow LTR under RTL so the
   select stays on the LEFT and the tel input on the RIGHT (same as English and as
   the phone-parse order). This removes the reversed/broken-corner look the CEO saw;
   the country name inside the select is still Arabic, only the box order is LTR. */
html[dir="rtl"] .phone-input-wrap {
  direction: ltr;
}
html[dir="rtl"] .phone-input-wrap .country-code-select {
  border-radius: 10px 0 0 10px;   /* rounded on the LEFT (start side, LTR-forced) */
  border-right: none;
  border-left: 1.5px solid rgba(255,255,255,0.12);
  /* keep flag+code readable LTR inside the select */
  direction: ltr;
  text-align: right;
}
html[dir="rtl"] .phone-input-wrap input[type="tel"] {
  border-radius: 0 10px 10px 0;   /* rounded on the RIGHT (end side, LTR-forced) */
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: none;
  direction: ltr;
  text-align: left;
}

/* ─────────────────────────────────────────────
   v1.9.17 — RTL dashboard/portal table alignment.
   Base th cells force text-align:left; under RTL body cells inherit start(right),
   so headers no longer line up over their columns. Flip header alignment to the
   RTL start (right) so each header sits above its data column.
───────────────────────────────────────────── */
html[dir="rtl"] .dash-table th,
html[dir="rtl"] .dash-table td,
html[dir="rtl"] .bsh-p-tbl th,
html[dir="rtl"] .bsh-p-tbl td {
  text-align: right;
}
/* Numeric / money / LTR-content cells stay LTR-aligned even in RTL. */
html[dir="rtl"] .dash-table td.num,
html[dir="rtl"] .dash-table th.num,
html[dir="rtl"] .bsh-p-tbl td.num,
html[dir="rtl"] .bsh-p-tbl th.num,
html[dir="rtl"] .dash-table .dash-money,
html[dir="rtl"] .bsh-p-tbl .dash-money {
  text-align: left;
}
/* Any inline text-align:left header row (e.g. warranty table header) → right in RTL. */
html[dir="rtl"] tr[style*="text-align:left"] th,
html[dir="rtl"] tr[style*="text-align:left"] td,
html[dir="rtl"] tr[style*="text-align: left"] th,
html[dir="rtl"] tr[style*="text-align: left"] td {
  text-align: right;
}

/* Mobile language link inherits .mobile-nav-link styling; nothing extra needed. */

/* =============================================
   PRINT (v1.9.52 — F-27-32)
   ============================================= */
@media print {
  #site-header,
  .nav-mobile-overlay,
  .float-buttons,
  .skip-link,
  .nav-hamburger,
  .nav-lang-mobile,
  #site-footer .footer-social,
  .cta-banner-actions,
  #roi-calculator button {
    display: none !important;
  }
  .page-content { padding-top: 0 !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .hero { min-height: 0 !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
  a[href^="http"]:not([href*="wa.me"])::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  section, .card, .diff-card, .timeline-step, .bsh-gallery-card { break-inside: avoid; }
  h1, h2, h3, p, li, td, th, span, strong { color: #000 !important; }
}

/* ── Native rebuild additions: logout as a form button in the profile menu, preview captcha note ── */
.nav-dropdown-form { display: contents; }
button.nav-dropdown-item { background: none; border: 0; width: 100%; font-family: inherit; cursor: pointer; text-align: start; }
.preview-captcha-note { margin: 8px 0 0; font-size: 0.75rem; color: var(--white-60); }
