/* ═══════════════════════════════════════════
   shared.css — RevAvenues.in
   Loaded first by every page: main site (index, team, case-studies)
   and the blog (listing + posts), so the header is identical everywhere.
   Sections:
     1. Brand Tokens
     3. Nav (desktop)
     4. Mobile Nav (hamburger + drawer)
   (numbers match the original sections in styles.css)
   Behaviour (hamburger, scroll shadow) is in script.js.
═══════════════════════════════════════════ */


/* ─────────────────────────────
   1. BRAND TOKENS — RevAvenues
───────────────────────────── */
:root {
  /* Dark backgrounds — Deep Navy */
  --dark:        #0B1F3A;
  --dark-2:      #122848;
  /* Electric Blue accent */
  --blue:        #2E6FF2;
  --blue-d:      #1A5ADB;
  --blue-l:      #EBF1FD;
  /* Neutrals */
  --ink:         #0B1F3A;
  --ink-2:       #1F3557;
  --muted:       #5B6B7C;
  --subtle:      #8A9BB0;
  --border:      #E2E6ED;
  --surface:     #F7F8FA;
  --white:       #FFFFFF;
  /* Semantic */
  --emerald:     #059669;
  --emerald-l:   #ECFDF5;
  /* Aliases — everything maps to the Electric Blue system */
  --indigo:      var(--blue);
  --indigo-d:    var(--blue-d);
  --indigo-l:    var(--blue-l);
  --obsidian:    var(--dark);
  --obsidian-2:  var(--dark-2);
  --teal:        var(--blue);
  --teal-d:      var(--blue-d);
  --teal-l:      var(--blue-l);
  --gold:        var(--blue);
  --gold-d:      var(--blue-d);
  --gold-l:      var(--blue-l);
  /* Radii */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.12);
  /* Font */
  --font-body:   'Inter', system-ui, sans-serif;
}


/* Base for the header itself, so it renders the same on pages that do
   not load styles.css (the blog) */
#nav, .mobile-drawer {
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#nav a, .mobile-drawer a { text-decoration: none; }
#nav img { display: block; } /* no inline-image baseline gap under the logo */
#nav { will-change: transform; } /* own GPU layer — fixed element */


/* ─────────────────────────────
   3. NAV (desktop)
───────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  /* Solid white so mix-blend-mode:multiply on the JPG logo works correctly */
  background: #ffffff;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#nav.scrolled { box-shadow: var(--shadow-sm); }

/* Nav logo — multiply blend removes the white JPG background on the light nav */
.nav-logo {
  height: 32px; flex-shrink: 0;
  object-fit: contain; width: auto;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 500;
  color: var(--muted); letter-spacing: .01em;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }

/* "Book a Call" CTA pill in the desktop nav */
.nav-cta {
  height: 36px; padding: 0 1.1rem;
  background: var(--indigo); color: var(--white) !important;
  border-radius: 50px;
  font-size: .82rem !important; font-weight: 600 !important;
  display: flex; align-items: center; gap: .4rem;
  transition: background .15s !important;
}
.nav-cta:hover { background: var(--indigo-d) !important; }


/* ─────────────────────────────
   4. MOBILE NAV — hamburger + drawer
───────────────────────────── */

/* Right-side group: mobile CTA pill + hamburger button (hidden on desktop) */
.nav-mobile-right {
  display: none;
  align-items: center; gap: .6rem;
}
@media (max-width: 768px) {
  .nav-mobile-right { display: flex; }
}

/* "Book a Call" pill shown on mobile instead of the full nav CTA */
.nav-mobile-cta {
  height: 34px; padding: 0 1rem;
  background: var(--indigo); color: var(--white);
  border-radius: 50px;
  font-size: .8rem; font-weight: 600;
  display: flex; align-items: center;
}

/* Hamburger icon button */
.nav-hamburger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 34px; height: 34px;
  background: none; border: none; cursor: pointer; padding: 4px;
  border-radius: 6px;
}
.nav-hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .3s, opacity .3s, width .3s;
}
.nav-hamburger span:nth-child(1) { width: 20px; }
.nav-hamburger span:nth-child(2) { width: 14px; }
.nav-hamburger span:nth-child(3) { width: 20px; }

/* Open state — top and bottom bars rotate into an X */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 20px; }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 20px; }

/* Slide-down mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  height: 100dvh;
  z-index: 195;
  background: var(--dark);
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 8% 4rem;
  gap: 0;
  transform: translateX(100%);
  opacity: 0;
  transition: transform .38s cubic-bezier(.4,0,.2,1), opacity .3s;
  pointer-events: none;
}
.mobile-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer a {
  font-size: 2rem; font-weight: 800; color: rgba(255,255,255,.75);
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .15s;
  letter-spacing: -.02em;
}
.mobile-drawer a:last-child { border-bottom: none; }
.mobile-drawer a:hover { color: var(--white); }

/* Full-width CTA at the bottom of the mobile drawer */
.mobile-drawer-cta {
  margin-top: 2rem;
  display: flex !important; justify-content: center;
  background: var(--indigo) !important; color: white !important;
  border-radius: 50px; height: 52px; padding: 0 2rem;
  font-size: 1rem !important; font-weight: 700 !important;
  align-items: center;
  border-bottom: none !important;
  letter-spacing: .01em;
}
.mobile-drawer-cta:hover { opacity: .9; color: white !important; }


/* Nav responsive */
@media (max-width: 768px) {
  #nav { padding: 0 4%; }
  #nav .nav-links { display: none; } /* replaced by the mobile drawer */
}
@media (max-width: 480px) {
  #nav { padding: 0 5%; }
}
