/* =========================================================================
   CAR CURE UAE - CORE GLOBAL STYLESHEET (base.css)
   - Font System: Headings = Technor (sans-serif) | Body/UI = Supreme (sans-serif)
   - Layout Architecture: Flexbox / Grid powered page flow with sticky headers
   - Theme Pipeline: Defaults to curated premium dark mode; matches browser system themes
   ========================================================================= */

/* Import fonts */



/* ── Design Tokens — Dark Mode (default) ── */
:root {
  /* ── DESIGN SYSTEM TOKENS ──
     Locked variables defining the luxury brand identity.
     Capped to a modern harmony of dark surfaces and gold accents. */
  --gold:        #c9a84c;
  --gold-light:  #e2c882;
  --gold-dark:   #a07830;
  --gold-dim:    rgba(201,168,76,.15);
  --black:       #060608;
  --black-2:     #0d0d10;
  --black-3:     #13131a;
  --surface:     #161620;
  --surface-2:   #1d1d28;
  --border:      rgba(255,255,255,.06);
  --border-gold: rgba(201,168,76,.25);
  --text:        #e8e8ec;
  --text-muted:  #7a7a8c;
  --text-dim:    #4a4a5a;
  --white:       #ffffff;

  /* Font stack — 2 fonts only */
  --font-heading: 'Technor', sans-serif;
  --font-body:    'Supreme', sans-serif;

  --nav-h:       80px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  /* Backgrounds used throughout */
  --bg-page:     var(--black);
  --bg-surface:  var(--surface);
  --bg-nav:      rgba(6,6,8,.75);

  /* SOS red */
  --sos-red:      #e53935;
  --sos-red-dark: #b71c1c;
  --sos-red-glow: rgba(229,57,53,.25);

  /* Semantic status colours — used by profile, staff, contact pages */
  --primary-dark: #062f2d;
  --accent:       #4fa85a;
  --success:      #10b981;
  --error:        #dc3545;
  --danger:       #ef4444;
}

/* ── Global Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background .35s ease, color .35s ease;
  margin: 0;
  padding: 0;
}

p, li {
  font-size: 1.1rem;
}

img { display: block; max-width: 100%; height: auto; image-rendering: auto; }
svg { will-change: transform; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }

button, .btn {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  filter: brightness(1.08);
}

button:active, .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Remove focus/selection highlight on links (footer fix) */
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus:not(:focus-visible),
a:active {
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}


/* ════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background .4s ease, box-shadow .4s ease, border-color .35s ease;
}

.navbar.nav--scrolled {
  background: var(--bg-nav);
  box-shadow: 0 1px 0 var(--border-gold), 0 4px 24px rgba(0,0,0,.18);
}


.navbar-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar-mobile { display: none; }

.navbar-left {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

/* ════════════════════════════════════════
   BRAND IDENTITY — icon + name pair
   Used in both navbar and footer
════════════════════════════════════════ */

/* The anchor that wraps icon + name */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;          /* kill inline gaps */
}

/* Icon-only image (logo only.png) */
.logo-icon {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: transform .3s var(--ease-out);
}

/* Text/name image (logo_name.png) */
.logo-name {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
  margin-top: 0;
  opacity: .93;
  transition: opacity .3s ease;
}

/* In light mode, invert the text logo for contrast */

/* In light mode, add drop-shadow so white logo parts stay visible on white bg */

/* Hover micro-interactions */
.logo-link:hover .logo-icon { transform: scale(1.06) rotate(-2deg); }
.logo-link:hover .logo-name { opacity: .65; }

/* ── Search ── */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-lens {
  position: absolute;
  left: .65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 3;
  pointer-events: none;
  font-size: .75rem;
  transition: color .3s;
}

.search-submit-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  z-index: 10;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .3s;
  line-height: 1;
}

.search-submit-btn i {
  line-height: 1;
}

.search-submit-btn i {
  transition: transform .2s;
  font-size: .75rem;
}

.search-submit-btn:hover {
  color: var(--gold);
  transform: translateY(-50%);
}

.search-input-wrapper {
  position: relative;
  overflow: visible;
  height: 36px;
  width: 240px;
  box-sizing: border-box;
}

.placeholder-text {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  z-index: 2;
  font-size: .85rem;
  font-family: var(--font-body);
  letter-spacing: .01em;
  transition: opacity .3s ease, transform .3s ease;
  white-space: nowrap;
}

.placeholder-text.slide-out { animation: slideUpOut .35s ease forwards; }
.placeholder-text.slide-in  { animation: slideInUp  .35s ease forwards; }

@keyframes slideUpOut {
  from { transform: translateY(-50%); opacity: 1; }
  to   { transform: translateY(-140%); opacity: 0; }
}
@keyframes slideInUp {
  from { transform: translateY(40%); opacity: 0; }
  to   { transform: translateY(-50%); opacity: 1; }
}

.search-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0 1rem 0 2rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 100%;
  height: 36px;
  outline: none;
  font-size: .8rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: .01em;
  transition: border-color .25s, box-shadow .25s, background .25s;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.search-bar:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
  background: var(--black-3);
}
.search-bar:focus ~ .search-lens,
.search-container:focus-within .search-lens { color: var(--gold); }

.search-bar:focus ~ .search-submit-btn,
.search-container:focus-within .search-submit-btn { color: var(--gold); }

/* ════════════════════════════════════════
    GLOBAL FORM FIELD STYLES
    Provides consistent padding and alignment for all forms across the site.
    Individual page styles can override as needed.
════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.form-group label {
  font-size: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a7a8c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select option {
  background: var(--surface);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

/* ── Search Dropdown ── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 360px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  z-index: 10000;
  opacity: 0;
  transform: scale(0);
  transform-origin: 0 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(0.32, 0.72, 0, 1), opacity .15s ease;
}
.search-dropdown.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}
.suggestion-category {
  padding: .5rem 1rem .25rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.category-label {
  font-size: .7rem;
  font-family: var(--font-body);
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1rem;
  cursor: pointer;
  transition: background .2s;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--gold-dim); }
.suggestion-title {
  font-size: .875rem;
  font-family: var(--font-body);
  color: var(--text);
  font-weight: 400;
}
.suggestion-type {
  font-size: .7rem;
  font-family: var(--font-body);
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--gold-dim);
  padding: .2rem .5rem;
  border-radius: 4px;
}
.suggestion-icon {
  color: var(--text-muted);
  font-size: .8rem;
  margin-right: .5rem;
  width: 16px;
  text-align: center;
}
.suggestion-left {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ── Navbar Right ── */
.navbar-right {
  display: flex;
  align-items: center;
  gap: .45rem;
}

/* Desktop: .nav-icon-wrap is just a neutral flex container */
.nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Desktop nav labels always visible - icon left, label right */
.nav-icon-wrap .nav-label {
  display: inline;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-icon-wrap {
  transition: transform 0.22s var(--ease-out);
}

/* Desktop icon buttons — show icon + text label */
.icon-text-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: .03em;
  padding: .45rem .7rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .22s, border-color .22s, color .22s, transform .22s var(--ease-out);
}
.icon-text-btn span { display: none; }
.icon-text-btn i { color: var(--gold); font-size: .92rem; }
.icon-text-btn .nav-icon-img {
  width: 22px;
  height: 22px;
  filter: sepia(1) saturate(3) hue-rotate(5deg) brightness(0.9);
  transition: filter 0.2s ease;
}
.icon-text-btn:hover {
  background: var(--surface);
  border-color: var(--border-gold);
  color: var(--text);
  transform: translateY(-1px);
}
.icon-text-btn:hover .nav-icon-img {
  filter: sepia(1) saturate(5) hue-rotate(5deg) brightness(1.1);
}

/* Theme toggle button */

.login-btn {
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
  padding: .55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .8rem;
  font-family: var(--font-body);
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .3s var(--ease-out);
  display: flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
}
.login-btn i { color: var(--black); }
.login-btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.28);
}

/* ── SOS navbar button (outline style — remains in desktop nav) ── */
/* NOTE: the floating .roadside-btn-fixed is the PRIMARY SOS entry point.
   This .sos-nav-btn is kept only for the navbar icon shortcut.
   Per the brief, the SOS button should NOT appear in the navbar —
   so this class is intentionally left without display if you prefer.
   Remove the <a class="sos-nav-btn"> from base.html to hide it there. */
.sos-nav-btn {
  display: none; /* Hidden from navbar — SOS lives as floating button only */
}


/* ════════════════════════════════════════
   WHATSAPP FLOATING BUTTON — fixed bottom-right, above SOS
   - Locked layer above general page layout elements (z-index: 990)
   - Expands dynamically into a pill button with text on desktop hover states
   ════════════════════════════════════════ */
.whatsapp-btn-fixed {
  position: fixed;
  bottom: 100px;
  right: 2rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border: none;
  padding: 0;
  border-radius: 50%;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: width .4s ease, height .4s ease, padding .4s ease, background .4s ease, transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 6px 28px rgba(37, 211, 102, .45);
  z-index: 990;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  width: 48px;
  height: 48px;
  overflow: hidden;
}

.whatsapp-btn-fixed:hover {
  background: linear-gradient(135deg, #128C7E, #075E54);
  width: auto;
  height: auto;
  padding: .85rem 1.55rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}

.whatsapp-btn-fixed:hover .whatsapp-icon {
  position: static;
  transform: none;
}

.whatsapp-btn-fixed .whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.whatsapp-btn-fixed .whatsapp-icon i {
  font-size: 22px;
  color: #fff;
}

.whatsapp-btn-fixed .whatsapp-text {
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-btn-fixed:hover .whatsapp-text {
  max-width: 200px;
  opacity: 1;
}


/* ════════════════════════════════════════
   SOS FLOATING BUTTON — fixed bottom-right
   - Critical Emergency CTA widget with built-in breathing animation
   - Active scaling hover overrides with a highly customized ease-out transition
   ════════════════════════════════════════ */
.roadside-btn-fixed {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--sos-red), var(--sos-red-dark));
  color: #fff;
  border: none;
  padding: .85rem 1.55rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: transform .45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow .4s cubic-bezier(0.16, 1, 0.3, 1),
              background .35s ease;
  box-shadow: 0 6px 28px var(--sos-red-glow), 0 0 0 0 var(--sos-red-glow);
  z-index: 990;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  animation: sosBtnBreath 3s ease-in-out infinite;
}

@keyframes sosBtnBreath {
  0%, 100% { box-shadow: 0 6px 28px var(--sos-red-glow), 0 0 0 0 var(--sos-red-glow); }
  50%       { box-shadow: 0 8px 36px var(--sos-red-glow), 0 0 0 8px rgba(229,57,53,.07); }
}

.roadside-btn-fixed:hover {
  background: linear-gradient(135deg, var(--sos-red-dark), #8b1010);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 18px 48px rgba(229,57,53,.5), 0 0 0 4px rgba(229,57,53,.1);
  animation: none;
  /* Each property transitions separately for a layered, fluid feel */
  transition: transform .5s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow .4s cubic-bezier(0.16, 1, 0.3, 1),
              background .35s ease;
}

.roadside-btn-fixed .sos-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roadside-btn-fixed .sos-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}


/* ════════════════════════════════════════
   MAIN CONTENT AREA
════════════════════════════════════════ */
main {
  flex: 1;
  margin-top: var(--nav-h);
  background: var(--black);
  transition: background .35s ease;
  position: relative;
  z-index: 10;
}

main.with-breadcrumb { margin-top: calc(var(--nav-h) + 56px); }


/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 0;
  margin-top: auto;
  color: var(--text);
  transition: background .35s ease, border-color .35s ease;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-section h3 {
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-size: .72rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-section p,
.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  line-height: 2.2;
  display: block;
  transition: color .25s;
  font-size: .88rem;
  font-family: var(--font-body);
  /* Remove click/selection outline */
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.footer-section a:focus-visible { outline: none; box-shadow: none; }
.footer-section a:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.footer-section a:hover { color: var(--text); }

/* ── Footer brand identity (icon + name) ── */
.footer-logo-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-logo-section .logo-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-logo-section .logo-icon {
  width: 48px;
  height: 48px;
}

.footer-logo-section .logo-name {
  height: 56px;
  width: auto;
}

.footer-logo-section .tagline {
  color: var(--text-muted);
  font-size: .88rem;
  font-family: var(--font-body);
  line-height: 1.7;
  max-width: 240px;
}

/* Footer bottom — two-sided bar: copyright left, socials right */
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom p {
  font-size: .78rem;
  font-family: var(--font-body);
  color: var(--text-dim);
}

/* Social icons — horizontal pill row in footer-bottom */
.social-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  transition: transform .22s var(--ease-out);
}
.social-link:hover { transform: translateY(-2px); }
.social-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 50%;
}

/* Icon circle */
.social-link i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background .25s, border-color .25s, color .25s;
  color: var(--text-muted);
}
.social-link:hover i {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

/* Tooltip label — appears above icon on hover, hidden by default */
.social-label {
  position: absolute;
  bottom: calc(100% + .45rem);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--surface-2);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: .6rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .45rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
/* Downward caret */
.social-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--border-gold);
}
.social-link:hover .social-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ════════════════════════════════════════
   SCROLL ANIMATIONS (shared)
════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

[data-delay="100"] { transition-delay: .1s; }
[data-delay="200"] { transition-delay: .2s; }
[data-delay="300"] { transition-delay: .3s; }
[data-delay="400"] { transition-delay: .4s; }
[data-delay="500"] { transition-delay: .5s; }
[data-delay="600"] { transition-delay: .6s; }


/* ════════════════════════════════════════
   SCROLLBAR
════════════════════════════════════════ */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--black-2); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }


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

button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}


/* ════════════════════════════════════════
   MOBILE NAVBAR
════════════════════════════════════════ */
@media (max-width: 968px) {
  .navbar-desktop { display: none; }
  .navbar-mobile  { display: block; padding: .8rem 1rem; }

  .navbar { height: auto; }
  main    { margin-top: 165px; }
  main.with-breadcrumb { margin-top: 220px; }

  .mobile-top-layer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .8rem;
  }

  /* Mobile logo — proportional to desktop */
  .logo-icon { height: 36px; }
  .logo-name  { height: 26px; margin-top: 0; }


  /* Mobile icon button — with hover label reveal to the LEFT */
  .mobile-icons {
    display: flex;
    gap: .4rem;
    align-items: center;
  }

  .mobile-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }

  /* The label that slides in from the left on hover */
  .mobile-icon-wrap .icon-label {
    position: absolute;
    right: calc(100% + .45rem);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--surface);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    font-size: .65rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .28rem .55rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
    z-index: 10;
  }

  /* Arrow pointing right toward the button */
  .mobile-icon-wrap .icon-label::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: var(--border-gold);
  }

  .mobile-icon-wrap:hover .icon-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  /* Default transition for all icon wraps */
  .mobile-icon-wrap {
    transition: transform .22s var(--ease-out);
  }
  /* When any button is hovered, shift the entire icon group slightly left
     so the label (which appears to the LEFT of the hovered button) has room.
     Non-hovered buttons slide left; hovered one stays via its own transform. */
  .mobile-icons:has(.mobile-icon-wrap:hover) .mobile-icon-wrap:not(:hover) {
    transform: translateX(-5px);
  }
  /* Hovered button does not move — only label appears */
  .mobile-icons:has(.mobile-icon-wrap:hover) .mobile-icon-wrap:hover {
    transform: translateX(0);
  }

  .icon-btn-mobile {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: .5rem;
    transition: all .25s var(--ease-out);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
  .icon-btn-mobile i { color: var(--gold); }
  .icon-btn-mobile .nav-icon-img {
    width: 22px;
    height: 22px;
    filter: sepia(1) saturate(3) hue-rotate(5deg) brightness(0.9);
  }
  .icon-btn-mobile:hover {
    border-color: var(--border-gold);
    background: var(--gold-dim);
    transform: scale(1.06);
  }
  .icon-btn-mobile:hover .nav-icon-img {
    filter: sepia(1) saturate(5) hue-rotate(5deg) brightness(1.1);
  }

  /* SOS mobile icon — keep in mobile icons row only */
  .sos-icon-mobile {
    border-color: rgba(220,38,38,.5) !important;
    background: rgba(220,38,38,.06) !important;
  }
  .sos-icon-mobile i { color: #ef4444 !important; }
  .sos-icon-mobile:hover {
    border-color: #ef4444 !important;
    background: rgba(220,38,38,.12) !important;
  }

  .mobile-middle-layer { margin-bottom: .8rem; }
  .mobile-middle-layer .search-input-wrapper { width: 100%; }
  .mobile-middle-layer .search-bar { width: 100%; }

  .mobile-bottom-layer { display: flex; justify-content: flex-end; }

  .login-btn-mobile {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: .55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all .3s;
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
  .login-btn-mobile i { color: var(--black); }
  .login-btn-mobile:hover { background: var(--gold-light); }

  /* Footer — 2-col grid keeps it compact on mobile */
  footer { padding: 2.5rem 1.2rem 0; }
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 2rem;
    padding-bottom: 2rem;
  }
  /* Logo / social column: full width at top */
  .footer-logo-section {
    grid-column: 1 / -1;
    align-items: flex-start;
  }
  .footer-logo-section .logo-link {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-logo-section .logo-icon {
    width: 40px;
    height: 40px;
  }
  .footer-logo-section .logo-name {
    height: 42px;
    width: auto;
  }
  .footer-logo-section .tagline { text-align: left; max-width: 100%; }
  /* Social on mobile: compact horizontal row in footer-bottom */
  .social-icons { flex-direction: row; gap: .45rem; flex-wrap: wrap; }
.social-link i {
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
}
  /* Footer-bottom stacks on mobile */
  .footer-bottom { flex-direction: column; align-items: center; gap: .7rem; text-align: center; }
  .footer-section { text-align: left; }
  .footer-section h3 { margin-bottom: .7rem; }
  .footer-section a,
  .footer-section p { line-height: 1.95; font-size: .84rem; }

  /* SOS floating button — smaller on mobile */
  .roadside-btn-fixed {
    padding: .8rem 1.3rem;
    font-size: .8rem;
  }
}

@media (max-width: 480px) {
  /* SOS pill: bottom-right, collapses to icon-only circle, expands left on hover */
  .roadside-btn-fixed {
    /* Restore original bottom-right position */
    right: 1.2rem;
    left: auto;
    bottom: 1.2rem;
    transform: none;

    /* Collapsed: perfectly circular icon button */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* Use flex to perfectly centre the icon */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 0;
    overflow: hidden;

    transition: width .4s var(--ease-out),
                border-radius .4s var(--ease-out),
                padding .4s var(--ease-out),
                box-shadow .3s ease,
                transform .3s ease,
                background .25s ease;
    animation: sosBtnBreath 3s ease-in-out infinite;
  }

  /* Icon: perfectly centred inside the circle */
  .roadside-btn-fixed .sos-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    /* Override the outer gap so icon is in exact centre */
    margin: 0;
    transition: transform .4s var(--ease-out);
  }

  /* Text: hidden with max-width collapse; no display:none so it animates */
  .roadside-btn-fixed .sos-text {
    display: inline;
    font-size: .75rem;
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width .4s var(--ease-out),
                opacity .3s ease .12s,
                margin-left .4s var(--ease-out);
    margin-left: 0;
  }

  /* Hover: pill expands to pill shape revealing full text */
  .roadside-btn-fixed:hover {
    width: auto;
    min-width: 152px;
    border-radius: 50px;
    padding: 0 1.1rem 0 .8rem;
    gap: .5rem;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 44px rgba(229,57,53,.5), 0 0 0 3px rgba(229,57,53,.1);
    animation: none;
    transition: width .45s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-radius .4s cubic-bezier(0.16, 1, 0.3, 1),
                transform .45s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow .4s cubic-bezier(0.16, 1, 0.3, 1),
                padding .4s var(--ease-out),
                background .3s ease;
  }

  .roadside-btn-fixed:hover .sos-icon {
    transform: translateX(0);   /* stays centred as pill expands */
  }

  .roadside-btn-fixed:hover .sos-text {
    max-width: 130px;
    opacity: 1;
    margin-left: 0;
  }

  /* WhatsApp floating button — smaller on mobile */
  .whatsapp-btn-fixed {
    right: 1.2rem;
    bottom: 4.2rem;
  }
}

@media (max-width: 480px) {
  .whatsapp-btn-fixed {
    right: 1.2rem;
    bottom: 4.2rem;
  }

  .search-input-wrapper { width: 100%; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Call Confirmation Modal ── */
.call-confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.call-confirm-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.call-confirm-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 90%;
  max-width: 420px;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  margin: 1rem;
}

.call-confirm-modal-overlay.active .call-confirm-modal {
  transform: translateY(0);
}

.call-confirm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.call-confirm-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}

.call-confirm-modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 0.25rem;
}

.call-confirm-modal-close:hover {
  color: var(--gold);
}

.call-confirm-modal-body {
  margin-bottom: 1.75rem;
}

.call-confirm-modal-message {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.call-confirm-modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.call-confirm-modal-btn {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  white-space: nowrap;
  box-sizing: border-box;
}

.call-confirm-modal-btn--secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.call-confirm-modal-btn--secondary:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
}

.call-confirm-modal-btn--primary {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #0d0d10;
}

.call-confirm-modal-btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
}

/* SOS Page Context */
.call-confirm-modal[data-modal-context="sos"] .call-confirm-modal-title {
  color: var(--sos-red, #e53935);
}

.call-confirm-modal[data-modal-context="sos"] .call-confirm-modal-btn--primary {
  background: var(--sos-red, #e53935);
  border-color: var(--sos-red, #e53935);
}

.call-confirm-modal[data-modal-context="sos"] .call-confirm-modal-btn--primary:hover {
  background: #ef5350;
  border-color: #ef5350;
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.3);
}

/* Spare Parts Page Context */
.call-confirm-modal[data-modal-context="spare-parts"] .call-confirm-modal-title {
  color: var(--sp-accent, #4fa85a);
}

.call-confirm-modal[data-modal-context="spare-parts"] .call-confirm-modal-btn--primary {
  background: var(--sp-accent, #4fa85a);
  border-color: var(--sp-accent, #4fa85a);
  color: var(--sp-text-on-acc, #0d1a10);
}

.call-confirm-modal[data-modal-context="spare-parts"] .call-confirm-modal-btn--primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(79, 168, 90, 0.3);
}

/* Responsive */
@media (max-width: 480px) {
  .call-confirm-modal {
    padding: 1.25rem;
  }
  
  .call-confirm-modal-actions {
    flex-direction: column;
  }
  
  .call-confirm-modal-btn {
    min-width: 0;
    width: 100%;
  }
  
  .call-confirm-modal-btn--secondary,
  .call-confirm-modal-btn--primary {
    flex: none;
  }
}

/* ── Contact Form Success Message ── */
.contact__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  min-height: 400px;
}

.contact__success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  color: #fff;
}

.contact__success h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.contact__success p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 320px;
}

/* ── Button Spinner (Loading Circle) & Submission States ── */
.btn--primary:disabled,
.btn-primary-page:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-left-color: #000000;
  border-radius: 50%;
  animation: btn-spinner-spin 0.8s linear infinite;
  margin-left: 10px;
  flex-shrink: 0;
  vertical-align: middle;
}

@keyframes btn-spinner-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Enquiry Success Alert Box ── */
.enquiry-success-box {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  padding: 1.1rem 1.4rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: enquiryAlertFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.enquiry-success-box i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

@keyframes enquiryAlertFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
