/* =============================================================
   shared-components.css — Jatin Karda & Co.
   Shared header + footer styles for utility pages
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&family=Source+Code+Pro:wght@400;500&display=swap');

/* ── Design tokens ───────────────────────────────────────── */
:root {
  --p:       #003d6b;
  --p-dark:  #00284a;
  --p-mid:   #004f8b;
  --p-soft:  #1a5a96;
  --p-tint:  #e6eef7;
  --p-tint2: #ccdcee;
  --gold:    #b8860b;
  --gold-lt: #d4a017;
  --gold-pl: #fdf6e3;
  --white:   #ffffff;
  --off:     #f5f7fa;
  --text:    #1a2535;
  --mid:     #3a4f63;
  --muted:   #56687a;
  --border:  #d8e2ec;
  --sh-sm:   0 2px 8px rgba(0,40,74,.08), 0 1px 4px rgba(0,40,74,.05);
  --sh-md:   0 4px 20px rgba(0,40,74,.11), 0 2px 8px rgba(0,40,74,.07);
  --r:  4px;
  --r2: 8px;
}

/* ── Scoped base resets ──────────────────────────────────── */
#header *, #footer * { box-sizing: border-box; }
#header a, #footer a { text-decoration: none; color: inherit; }
#header img, #footer img { display: block; max-width: 100%; }
#header button { font-family: inherit; cursor: pointer; border: none; outline: none; }

/* ── TOPBAR — fixed at very top ──────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: var(--p-dark);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-left {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topbar-right { display: flex; align-items: center; gap: 1.6rem; }
.topbar-link {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.7rem; color: rgba(255,255,255,0.48);
  letter-spacing: 0.03em; transition: color 0.2s;
}
.topbar-link:hover { color: var(--gold-lt); }
.topbar-link svg { width: 12px; height: 12px; fill: currentColor; flex-shrink: 0; }
.tb-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.1); }

/* ── NAV — fixed below topbar, slides to top:0 on scroll ─── */
nav#navbar {
  position: fixed !important;
  top: 38px;
  left: 0; right: 0;
  z-index: 1000;
  height: 70px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--sh-sm);
  transition: top 0.25s ease, box-shadow 0.25s ease;
}
nav#navbar.scrolled {
  top: 0 !important;
  box-shadow: var(--sh-md);
}
.nav-brand { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.nav-mark {
  width: 50px; height: 50px; background: #fff;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(184,134,11,0.3);
  flex-shrink: 0; overflow: hidden; padding: 3px;
}
.nav-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-text { display: flex; flex-direction: column; gap: 1px; }
.nav-name {
  font-family: 'Merriweather', serif;
  font-size: 1.08rem; font-weight: 700;
  color: var(--p); line-height: 1; letter-spacing: -0.015em;
}
.nav-sub {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.58rem; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nav-links { display: flex; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-links li a {
  font-family: 'Lato', sans-serif;
  font-size: 0.86rem; font-weight: 700; color: var(--mid);
  padding: 0.42rem 0.82rem; border-radius: var(--r);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em; display: block; text-decoration: none;
}
.nav-links li a:hover { color: var(--p); background: var(--p-tint); }
.nav-links .cta a {
  background: var(--p); color: #fff !important;
  margin-left: 0.4rem; padding: 0.46rem 1.2rem !important;
  border-radius: var(--r);
}
.nav-links .cta a:hover { background: var(--p-soft) !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--p); border-radius: 2px; transition: all 0.3s;
}

/* ── MOBILE MENU ─────────────────────────────────────────── */
.mob-menu {
  display: none; position: fixed;
  top: 108px; left: 0; right: 0;
  background: #fff;
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  z-index: 999; flex-direction: column;
  box-shadow: var(--sh-md);
}
.mob-menu.open { display: flex; }
.mob-menu a {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem; font-weight: 700; color: var(--mid);
  padding: 0.68rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s; text-decoration: none; display: block;
}
.mob-menu a:last-child { border: none; color: var(--p); font-weight: 900; }
.mob-menu a:hover { color: var(--p); }

/* ── FOOTER — explicitly declare everything, NO all:unset ── */
#footer footer {
  background: #010f1c;
  border-top: 1px solid rgba(184,134,11,0.18);
  padding: 3.5rem 3rem 2rem;
  display: block;
  font-family: 'Lato', sans-serif;
  color: rgba(255,255,255,0.4);
}
#footer .footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#footer .footer-brand-col {}
#footer .footer-logo-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
#footer .footer-mark {
  width: 44px; height: 44px; background: #fff;
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(184,134,11,0.25); flex-shrink: 0;
  overflow: hidden; padding: 3px;
}
#footer .footer-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
#footer .footer-brand-name {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem; font-weight: 900; color: #ffffff;
}
#footer .footer-brand-name span { color: var(--gold); }
#footer .footer-tagline {
  font-size: 0.87rem; font-weight: 300;
  color: rgba(255,255,255,0.38); line-height: 1.7; margin-bottom: 1.4rem;
  max-width: 280px;
}
#footer .footer-contact-row { display: flex; flex-direction: column; gap: 0.5rem; }
#footer .footer-contact-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.83rem; color: rgba(255,255,255,0.45);
  transition: color 0.2s; text-decoration: none;
}
#footer .footer-contact-item:hover { color: var(--gold-lt); }
#footer .footer-contact-item svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }
#footer .footer-col-title {
  font-family: 'Lato', sans-serif; font-size: 0.7rem; font-weight: 900;
  color: rgba(255,255,255,0.55); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(184,134,11,0.18);
}
#footer .footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
#footer .footer-links a {
  font-size: 0.85rem; color: rgba(255,255,255,0.4);
  transition: color 0.2s; font-weight: 400; text-decoration: none; display: block;
}
#footer .footer-links a:hover { color: var(--gold-lt); }
#footer .footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
#footer .footer-copy {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.67rem; color: rgba(255,255,255,0.2);
}
#footer .footer-social { display: flex; gap: 0.6rem; }
#footer .footer-social a {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r); display: grid; place-items: center;
  color: rgba(255,255,255,0.35);
  font-family: 'Source Code Pro', monospace; font-size: 0.65rem; font-weight: 600;
  transition: all 0.2s; text-decoration: none;
}
#footer .footer-social a:hover {
  border-color: var(--gold); color: var(--gold-lt);
  background: rgba(184,134,11,0.08);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1040px) {
  #footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  nav#navbar { top: 0 !important; padding: 0 1.3rem; }
  nav#navbar.scrolled { top: 0 !important; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mob-menu { top: 70px; }
  #footer .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  #footer .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
  nav#navbar { height: 60px; }
  .mob-menu { top: 60px; }
}
