/* =============================================
   MAHA SHIVA NAADI JOTHIDAM — header.css
   Styles for: Top Bar · Header · Logo · Nav · Ticker
   ============================================= */

/* =============================================
   CSS Variables & Reset (shared)
   ============================================= */
:root {
  --deep-red: #8B0000;
  --crimson: #c0001a;
  --gold: #D4AF37;
  --gold-light: #f0d060;
  --gold-pale: #fdf3c0;
  --saffron: #FF6B00;
  --cream: #fdf5e4;
  --warm-white: #fffdf7;
  --dark: #1a0a00;
  --maroon-dark: #5c0000;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Crimson Text', Georgia, serif; overflow-x: hidden; }


/* ===== TOP BAR ===== */
.top-bar {
  background: var(--maroon-dark);
  color: #ffd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 30px;
  font-size: 13px;
  letter-spacing: 0.5px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--gold-light); text-decoration: none; }
.top-socials { display: flex; gap: 12px; }
.top-socials a { font-size: 15px; }
.top-contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.top-contacts span { display: flex; align-items: center; gap: 5px; }

/* ===== HEADER ===== */
header {
  background: linear-gradient(180deg, #6b0000 0%, #8B0000 60%, #a80010 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  min-height: 75px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* --- LOGO IMAGE --- */
.logo-text {
  display: flex;
  align-items: center;
  line-height: 1;
}
.logo-text img {
  height: 60px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
  /* Glow effect on dark header background */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55))
          drop-shadow(0 0 12px rgba(212,175,55,0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.logo-text img:hover {
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6))
          drop-shadow(0 0 22px rgba(212,175,55,0.65))
          brightness(1.1);
  transform: scale(1.04);
}

/* Fallback text styles (used if logo img is not available) */
.logo-icon {
  width: 52px;
  height: 52px;
  background: radial-gradient(circle, var(--gold-light), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 15px rgba(212,175,55,0.6);
  border: 2px solid var(--gold-light);
}
.brand-name {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
}
.brand-sub {
  font-size: 11px;
  color: #ffccaa;
  letter-spacing: 2px;
  text-transform: uppercase;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 5px;
}
nav ul li a {
  color: #ffeedd;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}
nav ul li a:hover {
  background: rgba(212,175,55,0.25);
  color: var(--gold-light);
}
.menu-toggle { display: none; cursor: pointer; font-size: 24px; color: white; }

/* ===== TICKER ===== */
.ticker-bar {
  background: var(--gold);
  color: var(--dark);
  padding: 8px 0;
  overflow: hidden;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker-track span { padding: 0 50px; white-space: nowrap; }
.ticker-track span::before { content: "🕉 "; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== HERO ===== */
/* =============================================
   RESPONSIVE — Header & Nav
   ============================================= */
@media (max-width: 700px) {
  header { min-height: 65px; padding: 0 16px; }
  /* --- TOP BAR --- */
  .top-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 15px;
    gap: 6px;
  }
  .top-contacts {
    justify-content: center; gap: 10px; flex-wrap: wrap;
  }
  .top-socials {
    justify-content: center; gap: 14px; flex-wrap: wrap;
  }
  .top-socials a {
    font-size: 16px;
  }
  .logo-icon {
    width: 42px; height: 42px; font-size: 20px;
  }
  .brand-name {
    font-size: 15px;
  }
  .brand-sub {
    font-size: 10px; letter-spacing: 1px;
  }
  .logo-text img {
    height: 46px; max-width: 170px;
  }
  /* --- MOBILE NAV --- */
  nav ul {
    position: fixed;
    top: 65px; right: 0; left: 0;
    background: #5c0000;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
    gap: 0;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 998;
  }
  nav ul.open {
    display: flex;
  }
  nav ul li a {
    display: block;
    padding: 14px 24px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
  }
  nav ul li:last-child a {
    border-bottom: none;
  }
  .menu-toggle {
    display: block;
  }
  /* --- TICKER --- */
  .ticker-bar {
    font-size: 11px; padding: 7px 0;
  }
  .ticker-track span {
    padding: 0 30px;
  }
  .section-header h2 {
    font-size: 20px;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 13px;
  }
  .brand-sub {
    display: none;
  }
  .logo-text img {
    height: 38px; max-width: 140px;
  }
}