/* ============================================================
   HEADER.CSS — Results Real Estate Inc.
   Theme: Lavender + Brand (#08c3e9 / #0c3348)
   Nav Hover: #00b8e0 bg + white text
   Desktop: fixed left sidebar (always visible)
   Tablet/Phone (≤1100px): top bar + slide-in drawer
   ============================================================ */

/* ── Palette tokens ── */
:root {
  --lav-50:   #f5f3ff;
  --lav-100:  #ede9fe;
  --lav-200:  #ddd6fe;
  --lav-300:  #c4b5fd;
  --lav-400:  #a78bfa;
  --lav-500:  #8b5cf6;
  --lav-600:  #7c3aed;
  --lav-700:  #6d28d9;
  --lav-deep: #2d1b69;

  --brand-cyan:   #08c3e9;
  --brand-hover:  #00b8e0;   /* nav hover background */
  --brand-dark:   #0c3348;

  /* Sidebar gradient */
  --sidebar-gradient: linear-gradient(
    160deg,
    #ede9fe 0%,
    #c4b5fd 35%,
    #a78bfa 70%,
    #8b5cf6 100%
  );

  --sidebar-w: clamp(228px, 21vw, 260px);
  --mobile-topbar-h: 62px;
  --mobile-drawer-w: min(284px, 88vw);

  /* Transition presets */
  --tr-fast:   0.18s ease;
  --tr-medium: 0.28s ease;
}

/* ══════════════════════════════════════════
   MOBILE TOP BAR — hidden on desktop
══════════════════════════════════════════ */
.mobile-topbar {
  display: none;
}

/* ══════════════════════════════════════════
   SIDEBAR — Desktop permanent left panel
══════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w, 240px);
  height: 100vh;
  background: var(--sidebar-gradient);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  box-shadow: 4px 0 32px rgba(45, 27, 105, 0.18);
}

#site-header::-webkit-scrollbar { display: none; }

/* Decorative orb — top right */
#site-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(8, 195, 233, 0.15);
  pointer-events: none;
  z-index: 0;
}

/* Decorative orb — bottom left */
#site-header::after {
  content: '';
  position: absolute;
  bottom: 60px; left: -50px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(12, 51, 72, 0.10);
  pointer-events: none;
  z-index: 0;
}

/* Cyan accent stripe — right edge */
.sidebar-accent-stripe {
  position: absolute;
  top: 0; right: 0;
  width: 3px; height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--brand-cyan) 35%,
    var(--brand-cyan) 65%,
    transparent 100%
  );
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

/* ══════════════════════════════════════════
   LOGO
══════════════════════════════════════════ */
.sidebar-logo {
  padding: 24px 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.sidebar-logo a {
  display: block;
  transition: opacity var(--tr-fast);
  text-decoration: none;
}
.sidebar-logo a:hover { opacity: 0.88; }

.sidebar-logo .custom-logo-link,
.mobile-topbar__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.logo-img-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.sidebar-logo .custom-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.logo-text-fallback {
  display: flex;
  flex-direction: column;
}

.logo-text-fallback .lf-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 21px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(8, 195, 233, 0.38);
}

.logo-text-fallback .lf-name {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--lav-deep);
  line-height: 1.2;
}

.logo-text-fallback .lf-sub {
  font-size: 9px;
  color: var(--brand-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.sidebar-tagline {
  font-size: 9.5px;
  color: rgba(45, 27, 105, 0.55);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}

@media (max-width: 1280px) and (min-width: 1101px) {
  .sidebar-logo {
    padding: 20px 14px 18px;
  }

  .sidebar-logo .custom-logo,
  .logo-img {
    height: 44px;
  }

  .nav-list {
    padding: 0 8px;
  }

  .nav-link {
    gap: 8px;
    padding: 9px 11px;
    font-size: 12.75px;
    white-space: normal;
  }

  .nav-icon {
    width: 28px;
    height: 28px;
  }

  .nav-dropdown-link {
    padding: 8px 12px 8px 18px;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
  }

  .sidebar-contact {
    padding: 12px 14px;
    gap: 8px;
  }

  .sidebar-contact-item {
    font-size: 10.75px;
  }

  .sidebar-social {
    padding: 10px 14px 14px;
  }

  .sidebar-cta {
    padding: 10px 14px 18px;
  }
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.sidebar-nav {
  flex: 1;
  padding: 12px 0 8px;
  position: relative;
  z-index: 1;
}

.nav-list {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
  gap: 2px;
  list-style: none;
  margin: 0;
}

.nav-item {
  position: relative;
  list-style: none;
}

/* ── Nav link (works for <a> and <button>) ── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--lav-deep);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  /* Combined transitions for smooth hover */
  transition:
    background var(--tr-fast),
    color var(--tr-fast),
    padding-left 0.22s ease,
    box-shadow var(--tr-fast);
  font-family: inherit;
}

/* Left cyan accent bar */
.nav-link::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 55%;
  background: #fff;
  border-radius: 0 3px 3px 0;
  transition: transform 0.22s ease;
  z-index: 2;
}

/* ── HOVER STATE — #00b8e0 bg, white text ── */
.nav-link:hover {
  background: var(--brand-hover);
  color: #ffffff !important;
  padding-left: 17px;
  box-shadow: 0 4px 14px rgba(0, 184, 224, 0.32);
}

.nav-link:hover::before {
  transform: translateY(-50%) scaleY(1);
}

/* Icon colors on hover */
.nav-link:hover .nav-icon {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
}

.nav-link:hover svg {
  stroke: #ffffff;
}

/* Arrow on hover */
.nav-link:hover .nav-arrow {
  color: rgba(255,255,255,0.85);
}

/* ── ACTIVE STATE ── */
.nav-link.active {
  background: rgba(0, 184, 224, 0.16);
  color: var(--brand-dark);
  font-weight: 600;
  padding-left: 17px;
}

.nav-link.active::before {
  background: var(--brand-hover);
  transform: translateY(-50%) scaleY(1);
}

.nav-link.active .nav-icon {
  background: linear-gradient(135deg, rgba(8,195,233,0.25), rgba(12,51,72,0.15));
  border-color: rgba(8, 195, 233, 0.4);
}

/* ── Nav icon bubble ── */
.nav-icon {
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 7px;
  color: var(--lav-deep);
  flex-shrink: 0;
  transition:
    background var(--tr-fast),
    border-color var(--tr-fast),
    color var(--tr-fast);
  font-size: 14px;
}

/* Arrow indicator */
.nav-arrow {
  margin-left: auto;
  display: flex;
  align-items: center;
  color: rgba(45, 27, 105, 0.45);
  transition: transform 0.28s ease, color var(--tr-fast);
  flex-shrink: 0;
}

.nav-item.open > .nav-link .nav-arrow,
.nav-item.open > button.nav-link .nav-arrow {
  transform: rotate(180deg);
  color: var(--brand-cyan);
}

/* ── Dropdown panel ── */
.nav-dropdown {
  list-style: none;
  margin: 2px 0 4px 4px;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255,255,255,0.18);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.22);
}

.nav-item.open > .nav-dropdown {
  max-height: 600px;
}

.nav-dropdown li { list-style: none; }

.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 22px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--lav-deep);
  text-decoration: none;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition:
    color var(--tr-fast),
    background var(--tr-fast),
    padding-left 0.18s ease;
}

.nav-dropdown-link::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-cyan);
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.18s ease;
}

/* Dropdown links hover — same #00b8e0 treatment */
.nav-dropdown-link:hover {
  color: #ffffff;
  background: var(--brand-hover);
  padding-left: 26px;
}

.nav-dropdown-link:hover::before {
  opacity: 1;
  background: #fff;
  transform: scale(1.35);
}

.nav-dropdown-link.active {
  color: var(--brand-dark);
  background: rgba(8, 195, 233, 0.12);
  font-weight: 500;
}

.nav-dropdown li:last-child .nav-dropdown-link {
  border-bottom: none;
}

/* ══════════════════════════════════════════
   CONTACT SECTION — updated with icon badges
══════════════════════════════════════════ */
.sidebar-contact {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.22);
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.sidebar-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11.5px;
  color: rgba(45, 27, 105, 0.82);
  text-decoration: none;
  line-height: 1.45;
  transition: color var(--tr-fast), transform var(--tr-fast);
}

a.sidebar-contact-item:hover {
  color: var(--brand-dark);
  transform: translateX(2px);
}

/* Colored icon badges */
.sidebar-contact-icon {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, rgba(8,195,233,0.22), rgba(8,195,233,0.08));
  border: 1px solid rgba(8, 195, 233, 0.32);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--brand-dark);
  transition: background var(--tr-fast), border-color var(--tr-fast), transform var(--tr-fast);
}

a.sidebar-contact-item:hover .sidebar-contact-icon {
  background: linear-gradient(135deg, rgba(0,184,224,0.35), rgba(0,184,224,0.15));
  border-color: rgba(0, 184, 224, 0.52);
  transform: scale(1.08);
}

/* Cell icon — slight purple tint */
.sidebar-contact-icon--cell {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.08));
  border-color: rgba(139, 92, 246, 0.3);
}

/* Email icon — teal tint */
.sidebar-contact-icon--email {
  background: linear-gradient(135deg, rgba(8,195,233,0.2), rgba(8,195,233,0.06));
  border-color: rgba(8, 195, 233, 0.3);
}

/* Address icon — dark tint */
.sidebar-contact-icon--addr {
  background: linear-gradient(135deg, rgba(12,51,72,0.14), rgba(12,51,72,0.06));
  border-color: rgba(12, 51, 72, 0.22);
}

.sidebar-contact-label {
  display: block;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(45, 27, 105, 0.42);
  margin-bottom: 1px;
  line-height: 1;
}

/* ══════════════════════════════════════════
   SOCIAL ICONS — always visible, redesigned
══════════════════════════════════════════ */
.sidebar-social {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.sidebar-social-label {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(45, 27, 105, 0.42);
  margin-bottom: 2px;
}

.sidebar-social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-icon {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lav-deep);
  text-decoration: none;
  transition:
    background var(--tr-fast),
    color var(--tr-fast),
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color var(--tr-fast),
    box-shadow var(--tr-fast);
  font-size: 13px;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.08);
}

.social-icon.fb:hover {
  background: rgba(24, 119, 242, 0.2);
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.42);
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.28);
}

.social-icon.li:hover {
  background: rgba(0, 119, 181, 0.2);
  color: #0077b5;
  border-color: rgba(0, 119, 181, 0.42);
  box-shadow: 0 6px 16px rgba(0, 119, 181, 0.28);
}

.social-icon.rss:hover {
  background: rgba(255, 140, 0, 0.2);
  color: #ff8c00;
  border-color: rgba(255, 140, 0, 0.42);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.28);
}

/* Tooltip on hover */
.social-icon-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--brand-dark);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.social-icon-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--brand-dark);
}

.social-icon:hover .social-icon-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════
   CTA BUTTON
══════════════════════════════════════════ */
.sidebar-cta {
  padding: 12px 16px 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.sidebar-cta .btn {
  width: 100%;
  font-size: 13px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  box-shadow: 0 4px 18px rgba(8, 195, 233, 0.38);
  transition: box-shadow 0.22s ease, transform 0.18s ease;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sidebar-cta .btn:hover {
  box-shadow: 0 6px 28px rgba(8, 195, 233, 0.55);
  transform: translateY(-2px);
}

.sidebar-cta .btn.pulsing {
  animation: btnGlow 2.8s ease-in-out infinite;
}

@keyframes btnGlow {
  0%,100% { box-shadow: 0 4px 18px rgba(8, 195, 233, 0.38); }
  50%      { box-shadow: 0 6px 30px rgba(8, 195, 233, 0.65); }
}

/* ══════════════════════════════════════════
   HAMBURGER — mobile only
══════════════════════════════════════════ */
.hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: var(--lav-700);
  border: none;
  border-radius: 9px;
  cursor: pointer;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(45, 27, 105, 0.38);
  transition: background var(--tr-fast);
  flex-shrink: 0;
}

.hamburger:hover { background: var(--lav-deep); }

.ham-line {
  display: block;
  width: 20px; height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.18s ease;
}

.hamburger[aria-expanded="true"] .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════
   OVERLAY — mobile drawer backdrop
══════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 27, 105, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ══════════════════════════════════════════
   SCROLL TO TOP
══════════════════════════════════════════ */
.scroll-top-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-cyan), var(--lav-500));
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(8, 195, 233, 0.42);
  z-index: 800;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(8, 195, 233, 0.58);
}

/* ══════════════════════════════════════════
   TABLET + PHONE  ≤ 1100px
   Sidebar → slide-in drawer.
   Top bar shows: logo | social icons | CTA | hamburger
══════════════════════════════════════════ */
@media (max-width: 1100px) {

  /* ── Top bar ── */
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    min-height: calc(var(--mobile-topbar-h) + env(safe-area-inset-top, 0px));
    background: linear-gradient(90deg, #ede9fe 0%, #c4b5fd 55%, #a78bfa 100%);
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 8px;
    z-index: 1050;
    box-shadow: 0 2px 20px rgba(45, 27, 105, 0.22);
    border-bottom: 1px solid rgba(255,255,255,0.24);
    gap: 10px;
  }

  .mobile-topbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-topbar__logo a {
    display: flex;
    align-items: center;
    max-width: 100%;
  }

  .mobile-topbar__logo .custom-logo,
  .mobile-logo-img {
    height: 34px;
    width: auto;
    max-width: clamp(120px, 22vw, 180px);
    object-fit: contain;
  }

  /* Right group: social + cta + burger */
  .mobile-topbar__right {
    display: flex;
    align-items: center;
    gap: clamp(5px, 0.9vw, 8px);
    min-width: 0;
    flex-shrink: 0;
  }

  /* Social icons in top bar */
  .mobile-topbar-social {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .mob-social-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lav-deep);
    text-decoration: none;
    transition:
      background var(--tr-fast),
      color var(--tr-fast),
      transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .mob-social-icon:hover { transform: translateY(-3px); }

  .mob-social-icon.fb:hover {
    background: rgba(24, 119, 242, 0.2);
    color: #1877f2;
  }
  .mob-social-icon.li:hover {
    background: rgba(0, 119, 181, 0.2);
    color: #0077b5;
  }
  .mob-social-icon.rss:hover {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
  }

  /* Free Consultation button in top bar */
  .mobile-cta-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-dark) 100%);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(8, 195, 233, 0.38);
    transition: box-shadow var(--tr-fast), transform var(--tr-fast);
    flex-shrink: 0;
  }

  .mobile-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(8, 195, 233, 0.52);
  }

  /* ── Sidebar drawer ── */
  #site-header {
    top: 0;
    width: var(--mobile-drawer-w);
    max-width: calc(100vw - 24px);
    height: 100vh;
    transform: translateX(-100%);
    transition:
      transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.38s ease;
    z-index: 1060;
    box-shadow: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  #site-header.open {
    transform: translateX(0);
    box-shadow: 8px 0 44px rgba(45, 27, 105, 0.45);
  }

  /* ── Hide sidebar logo — top bar carries it ── */
  .sidebar-logo { display: none; }

  /* ── Page wrap adjustment ── */
  #page-wrap {
    margin-left: 0 !important;
    padding-top: calc(var(--mobile-topbar-h) + env(safe-area-inset-top, 0px));
  }

  .site-footer { margin-left: 0 !important; }

  /* ── Overlay visible on mobile ── */
  .sidebar-overlay { display: block; }

  /* ── Dropdowns stay accordion on mobile ── */
  .nav-dropdown {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .nav-link,
  .nav-dropdown-link {
    white-space: normal;
  }

  .sidebar-contact {
    padding: 12px 14px 16px;
  }

  /* Sidebar social icons stay visible in drawer too */
  .sidebar-social { display: flex; }

  /* Tooltip suppressed on touch */
  .social-icon-tooltip { display: none; }
}

/* ── Hide mobile-only elements on desktop ── */
.mobile-topbar-social,
.mobile-cta-btn {
  display: none;
}

@media (max-width: 1100px) {
  .mobile-topbar-social,
  .mobile-cta-btn {
    display: flex;
  }
}

/* ── Small phones ── */
@media (max-width: 480px) {
  #site-header {
    width: min(84vw, 284px);
  }

  .mobile-topbar {
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 8px;
  }

  /* On very small screens, hide social text if tight */
  .mobile-cta-btn span {
    display: none;
  }

  .mobile-cta-btn {
    padding: 7px 9px;
  }

  .scroll-top-btn {
    right: 18px;
    bottom: 18px;
    width: 40px;
    height: 40px;
  }
}

/* ── Extra small: show consult text again above 380px ── */
@media (min-width: 380px) {
  .mobile-cta-btn span {
    display: inline;
  }
}

@media (max-width: 860px) {
  .mobile-topbar-social {
    display: none !important;
  }

  .mobile-topbar__right {
    gap: 6px;
  }

  .mobile-topbar__logo .custom-logo,
  .mobile-logo-img {
    max-width: clamp(110px, 34vw, 160px);
  }

  .mobile-cta-btn {
    padding: 7px 9px;
  }
}

@media (max-width: 560px) {
  .mobile-topbar {
    gap: 8px;
  }

  .mobile-topbar__right {
    gap: 5px;
  }

  .hamburger {
    width: 40px;
    height: 40px;
  }

  .mob-social-icon,
  .social-icon {
    width: 30px;
    height: 30px;
  }
}
