/* ============================================================
   Header — keshin.work
   ============================================================ */

.site-header {
  width: 100%;
  background: transparent;
  position: static;
}

.header-inner {
  display: flex;
  align-items: flex-start;        /* top-aligned per Figma */
  justify-content: space-between;
  width: 100%;
  padding: 24px 24px 0 24px;
  box-sizing: border-box;
}

/* ── Logo ─────────────────────────────────────────────────── */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* ── Date / Time ──────────────────────────────────────────── */
.header-datetime {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

/* Date row: SUNDAY, JAN 4 */
.datetime-date {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4B5163;               /* 2. Gray – Neutral Color/60 */
  line-height: 16px;
  white-space: nowrap;
}

/* Time row: IN ⊕ 08:34 PM IST */
.datetime-time {
  display: flex;
  align-items: center;
  gap: 8px;                     /* Figma: 8px gap */
  font-family: 'Inter', sans-serif;
  font-size: 13px;              /* Figma: 13px */
  font-weight: 600;             /* Figma: 600 semi-bold */
  color: #4B5163;               /* 2. Gray – Neutral Color/60 */
  line-height: 16px;
  white-space: nowrap;
}

/* "IN" + globe icon grouped — 2px gap between them */
.datetime-location {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.datetime-location img {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

/* ── Right group (Nav + CTA) ──────────────────────────────── */
.header-right {
  display: flex;
  align-items: flex-start;        /* top-aligned */
  gap: 40px;                      /* 40px between nav tabs and CTA */
}

/* ── Navigation ───────────────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 40px;
}

.header-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;          /* Figma: 0.8px */
  color: #4B5163;                 /* 2. Gray – Neutral Color/60 */
  text-decoration: none;
  white-space: nowrap;
  line-height: 16px;
  padding-bottom: 3px;            /* space for underline without layout shift */
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.header-nav a:hover {
  color: #1F2537;
}

/* Active — darker colour + 1px underline (Figma divider) */
.header-nav a.active {
  color: #1F2537;                 /* 2. Gray – Neutral Color/80 */
  border-bottom: 1px solid #1F2537;
}

/* ── LET'S TALK Button ────────────────────────────────────── */
.btn-talk {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  height: 40px;
  background: #002FA7;            /* Primary default */
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.btn-talk:hover {
  background: #002177;            /* Primary hover */
}

/* ── Icon box ─────────────────────────────────────────────── */
.btn-talk-icon {
  width: 32px;
  height: 32px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-talk-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

/* ── Label ────────────────────────────────────────────────── */
.btn-talk-label {
  height: 32px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 12px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* ── Hamburger (mobile) ───────────────────────────────────── */
.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.header-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #1a1a1a;
  transition: all 0.3s ease;
}

/* Mobile nav drawer */
.header-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 8px 24px 24px;
}

.header-mobile-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: opacity 0.2s ease;
}

.header-mobile-nav a:hover { opacity: 0.5; }

.header-mobile-nav .btn-talk-mobile {
  display: flex;
  align-items: center;
  gap: 0;
  height: 40px;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 16px;
  width: fit-content;
}

/* ============================================================
   Header — LIGHT variant (white text for dark backgrounds)
   ============================================================ */

.header-light {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.header-light .logo-img {
  /* Logo kept as-is — profile photo stays visible on dark bg */
}

.header-light .datetime-date,
.header-light .datetime-time {
  color: rgba(250, 250, 250, 0.7);
}

.header-light .datetime-location img {
  filter: brightness(0) invert(1);
}

.header-light .header-nav a {
  color: rgba(250, 250, 250, 0.7);
}

.header-light .header-nav a:hover {
  color: #FAFAFA;
}

.header-light .header-nav a.active {
  color: #FAFAFA;
  border-bottom-color: #FAFAFA;
}

.header-light .header-hamburger span {
  background: #FAFAFA;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .header-datetime { display: none; }
}

@media (max-width: 768px) {
  .header-nav     { display: none; }
  .btn-talk       { display: none; }
  .header-hamburger { display: flex; }

  .header-mobile-nav.open { display: flex; }

  .site-header.menu-open .header-hamburger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .site-header.menu-open .header-hamburger span:nth-child(2) {
    opacity: 0;
  }
  .site-header.menu-open .header-hamburger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}
