/* ============================
   HEADER — MOBILE FIRST
   ============================ */

.header {
  width: 100%;
  border-bottom: 1px solid var(--gray);
}

/* Shared row styling */
.header-top,
.header-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
}

/* ----------------------------
   LOGO
   ---------------------------- */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--white);
}

.logo-box {
  width: 32px;
  height: 32px;
  background: var(--gray);
  border-radius: 4px;
}

.logo-text {
  font-size: 1rem;
  font-weight: 600;
}

/* ----------------------------
   NAVIGATION (HIDDEN ON MOBILE)
   ---------------------------- */
.nav {
  display: none;
}

/* Social icons always visible */
.socials {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.socials a {
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
}


/* ----------------------------
   MOBILE ACTIONS
   ---------------------------- */
.mobile-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
}

/* Mobile call button (bottom row) */
.call-btn {
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

/* ----------------------------
   STATUS INDICATOR
   ---------------------------- */
.status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #00c853; /* green */
  border-radius: 50%;
}

.status-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* ----------------------------
   DESKTOP ACTIONS (HIDDEN)
   ---------------------------- */
.desktop-actions {
  display: none;
}

/* ----------------------------
   COLOR THEMING FOR ROWS
   ---------------------------- */
.header-top {
  background: var(--primary);
  color: var(--white);
}

.header-bottom {
  background: var(--white);
  color: var(--text);
}

/* ============================
   DESKTOP HEADER STYLES
   ============================ */

@media (min-width: 768px) {

  /* Show desktop elements */
  .nav,
  .socials,
  .desktop-actions {
    display: flex;
  }

  /* Hide mobile elements */
  .mobile-actions {
    display: none;
  }

  /* ----------------------------
     HEADER TOP (DESKTOP)
     ---------------------------- */
  .header-top {
    padding: var(--space-md) var(--space-xl);
  }

  .header-top .logo {
    color: var(--white);
  }

  .nav {
    gap: var(--space-lg);
    margin-left: auto;
    margin-right: var(--space-lg);
  }

  .nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
  }

  .nav a:hover {
    opacity: 0.8;
  }

  .socials {
    gap: var(--space-sm);
  }

  .socials a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
  }

  /* ----------------------------
     HEADER BOTTOM (DESKTOP)
     ---------------------------- */
  .header-bottom {
    padding: var(--space-sm) var(--space-xl);
  }

  .desktop-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-left: auto;
  }

  .btn-schedule {
    background: var(--primary);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
  }

  .btn-schedule:hover {
    opacity: 0.9;
  }

  .desktop-call {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
  }

  .desktop-call:hover {
    opacity: 0.7;
  }
}

/* ============================
   STICKY HEADER
   ============================ */

.header {
  position: sticky;
  top: 0;
  z-index: 900; /* below mobile menu (999) */
}

.header.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ============================
   MOBILE MENU PANEL
   ============================ */

   .mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100vh;
  background: var(--white);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);

  /* Start hidden off-screen */
  transform: translateX(100%);
  transition: transform 0.3s ease;

  /* Layer above content */
  z-index: 999;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

.mobile-socials {
  display: flex;
  gap: var(--space-md);
  margin-top: auto;
}


