/*
 * Navia Chrome — header, footer, mobile nav
 * Rebuilt to match the current navia.co.in brand design system.
 * Colors confirmed from the actual brand logo file: navy #223872, orange
 * #ed4d37 — matched exactly (pixel-sampled from the source PNG).
 * Font: Inter (already loaded by style.css) for nav/body text. The logo
 * itself is a real image (see images/navia-logo*.png), not text/font-based,
 * so no extra font dependency is needed for it.
 */

:root {
  --navia-navy-900: #0a1226;   /* footer bg, headline text */
  --navia-navy-800: #12224a;
  --navia-navy-700: #223872;   /* brand navy / lang pill / links / logo wordmark on light bg */
  --navia-orange:   #ed4d37;   /* brand accent / CTA / logo mark */
  --navia-orange-dark: #d8402c;
  --navia-ink:      #0a1226;
  --navia-muted:    #5a6a8a;
  --navia-line:     #e6e9f0;
  --navia-footer-link: #a9c3ec;
  --navia-footer-link-hover: #ffffff;
  --navia-footer-line: rgba(255,255,255,.12);
  --navia-radius: 10px;
  --navia-header-h: 76px;
}

/* ============ LOGO ============
 * Real image assets (images/navia-logo.png / navia-logo-light.png) — cropped
 * and made transparent from the brand's actual logo file, with a
 * colour-swapped light variant for the dark footer. See
 * tradeplusonlineblog_logo() in functions.php. Sized by height, width auto
 * so the browser preserves the source image's own aspect ratio — no
 * font/SVG reconstruction, so no font-metric guesswork.
 */
.site-logo-img { display: block; height: 34px; width: auto; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--navia-line);
  height: var(--navia-header-h);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(10,18,38,.08); }

.site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* logo link wrapper */
.site-header__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }

/* primary nav */
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav__list {
  list-style: none; display: flex; align-items: center; gap: 30px;
  margin: 0; padding: 0;
}
.site-nav__list li { position: relative; }
.site-nav__list > li > a {
  display: flex; align-items: center; gap: 5px;
  font-size: 15px; font-weight: 500; color: var(--navia-ink);
  text-decoration: none; padding: 10px 0;
}
.site-nav__list > li > a:hover,
.site-nav__list > li.current-menu-item > a { color: var(--navia-orange); }
.site-nav__list .chev { width: 14px; height: 14px; flex-shrink: 0; }

/* dropdown (desktop hover, keyboard-focus, and JS click-toggle for touch) */
.sub-menu, .site-nav__dropdown {
  list-style: none; margin: 0; padding: 10px; position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 220px; background: #fff; border: 1px solid var(--navia-line);
  border-radius: var(--navia-radius); box-shadow: 0 12px 30px rgba(10,18,38,.12);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 20;
}
.site-nav__list li.has-dropdown:hover > .sub-menu,
.site-nav__list li.has-dropdown:hover > .site-nav__dropdown,
.site-nav__list li.has-dropdown:focus-within > .sub-menu,
.site-nav__list li.has-dropdown:focus-within > .site-nav__dropdown,
.site-nav__list li.is-open > .sub-menu,
.site-nav__list li.is-open > .site-nav__dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.sub-menu li, .site-nav__dropdown li { width: 100%; }
.sub-menu a, .site-nav__dropdown a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 14px; font-weight: 500; color: var(--navia-ink); white-space: nowrap;
  text-decoration: none;
}
.sub-menu a:hover, .site-nav__dropdown a:hover { background: #f5f7fc; color: var(--navia-orange); }

/* right-side actions */
.site-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* Language switcher — injected at runtime by js/i18n.js into
 * .site-header__actions (desktop, compact "EN | हिं") and .mobile-nav__cta
 * (mobile, full "English | हिंदी"). See i18n.js and i18n/hi.json. */
.langsw {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navia-navy-700); border-radius: 999px; padding: 7px 14px;
}
.langsw__btn {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  color: rgba(255,255,255,.55); font-size: 13px; font-weight: 700; font-family: inherit;
}
.langsw__btn[aria-pressed="true"] { color: #fff; }
.langsw__sep { color: rgba(255,255,255,.35); font-size: 12px; }
.mobile-nav__cta .langsw--m {
  width: 100%; justify-content: center; background: #f5f7fc; margin-bottom: 4px;
}
.mobile-nav__cta .langsw--m .langsw__btn { color: var(--navia-muted); font-size: 14px; }
.mobile-nav__cta .langsw--m .langsw__btn[aria-pressed="true"] { color: var(--navia-navy-700); }

.btn-cta {
  display: inline-flex; align-items: center;
  background: var(--navia-orange); color: #fff !important;
  font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 11px 20px; border-radius: 999px; white-space: nowrap;
  transition: background .15s ease;
}
.btn-cta:hover { background: var(--navia-orange-dark); }

.site-header__burger {
  display: none; background: none; border: none; padding: 8px; cursor: pointer;
}
.site-header__burger span {
  display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--navia-ink);
  transition: transform .2s ease, opacity .2s ease;
}
.site-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header__search { display: flex; align-items: center; }
.site-header__search .widget { margin: 0; }
.site-header__search form { display: flex; }
.site-header__search input[type="search"] {
  border: 1px solid var(--navia-line); border-radius: 999px 0 0 999px;
  padding: 8px 14px; font-size: 13px; width: 150px;
}
.site-header__search button {
  border: 1px solid var(--navia-line); border-left: none; background: #f5f7fc;
  border-radius: 0 999px 999px 0; padding: 0 12px; cursor: pointer;
}

/* body offset so fixed header doesn't cover content */
body { padding-top: var(--navia-header-h); }

/* ============ MOBILE NAV PANEL ============ */
.mobile-nav {
  position: fixed; inset: 0; z-index: 1000;
  visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility .2s;
}
.mobile-nav.is-open { visibility: visible; opacity: 1; }
.mobile-nav__scrim { position: absolute; inset: 0; background: rgba(10,18,38,.5); }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: #fff; overflow-y: auto; padding: 20px;
  transform: translateX(100%); transition: transform .25s ease;
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-nav__close { background: none; border: none; font-size: 22px; cursor: pointer; line-height: 1; }
.mobile-nav__list { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-nav__list > li > a {
  display: block; padding: 12px 4px; font-size: 16px; font-weight: 600;
  color: var(--navia-ink); text-decoration: none; border-bottom: 1px solid var(--navia-line);
}
.mobile-nav__list .sub-menu, .mobile-nav__list .site-nav__dropdown {
  list-style: none; margin: 0 0 8px; padding: 0 0 0 14px; position: static;
  box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none;
}
.mobile-nav__list .sub-menu a, .mobile-nav__list .site-nav__dropdown a {
  padding: 8px 4px; font-size: 14px; font-weight: 500; color: var(--navia-muted);
}
.mobile-nav__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mobile-nav__cta .btn-cta { justify-content: center; }

@media (max-width: 980px) {
  .site-nav, .site-header__search, .site-header__actions .langsw, .site-header__actions .btn-cta { display: none; }
  .site-header__burger { display: block; }
  .site-header__actions { gap: 4px; }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navia-navy-900);
  color: #c7d2e8;
  padding: 56px 24px 28px;
}
.site-footer a { color: var(--navia-footer-link); text-decoration: none; }
.site-footer a:hover { color: var(--navia-footer-link-hover); }

.site-footer__inner { max-width: 1320px; margin: 0 auto; }

.site-footer__top {
  display: grid;
  grid-template-columns: 1.9fr repeat(5, 1fr);
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--navia-footer-line);
}

.site-footer__brand .site-logo-img { height: 30px; margin-bottom: 12px; }
.site-footer__desc { font-size: 13.5px; line-height: 1.6; color: #93a3c4; margin: 14px 0 16px; max-width: 260px; }

.site-footer__stores { margin-bottom: 16px; line-height: 0; }
/*
 * .store-badge is deliberately laid out WITHOUT relying on the parent's
 * flex+gap (unlike most of this stylesheet): it's `display:inline-flex` on
 * the badge itself, spaced with margin, so it behaves as a normal inline
 * element and sits side-by-side by default in every rendering engine,
 * wrapping only if genuinely out of room — no dependency on flexbox `gap`
 * support on the parent.
 *
 * `.site-footer .store-badge` (two classes) is used instead of the single
 * class `.store-badge` specifically to out-rank `.site-footer a` (class +
 * element = higher specificity than a lone class) — without this, the
 * general footer-link light-blue color was winning over the button's own
 * navy-black text/icon color, which is why the buttons looked tinted blue
 * instead of solid black-on-white.
 */
.site-footer .store-badge {
  display: inline-block; vertical-align: middle;
  background: #fff; color: #0a1226; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; text-decoration: none;
  white-space: nowrap; margin: 0 8px 8px 0;
}
.site-footer .store-badge:last-child { margin-right: 0; }
.store-badge svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }

.site-footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer__social a {
  width: 34px; height: 34px; border-radius: 50%; background: #1d2537;
  display: flex; align-items: center; justify-content: center; color: #b6c0d0;
}
.site-footer__social svg { width: 16px; height: 16px; }
.site-footer__social a:hover { background: var(--navia-orange); color: #fff; }

.site-footer__col h5 {
  color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin: 0 0 14px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a { font-size: 13.5px; }

.site-footer__quick {
  padding: 20px 0; border-bottom: 1px solid var(--navia-footer-line);
  font-size: 13px; color: #93a3c4;
}
.site-footer__quick .label { text-transform: uppercase; font-weight: 700; letter-spacing: .05em; color: #93a3c4; margin-right: 10px; }
.site-footer__quick a { margin-right: 4px; }
.site-footer__quick .sep { color: #445274; margin: 0 8px; }
.site-footer__quick p { margin: 8px 0 0; }

.site-footer__regulators {
  padding: 18px 0; border-bottom: 1px solid var(--navia-footer-line);
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px;
}

.site-footer__disclosures { padding: 18px 0; border-bottom: 1px solid var(--navia-footer-line); }
.site-footer__disclosures summary {
  cursor: pointer; color: #fff; font-size: 12.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.site-footer__disclosures summary::-webkit-details-marker { display: none; }
.site-footer__disclosures summary .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.site-footer__disclosures[open] summary .chev { transform: rotate(180deg); }
.site-footer__disclosures .disclosures-body { padding-top: 16px; font-size: 12.5px; line-height: 1.7; color: #93a3c4; }
.site-footer__disclosures .disclosures-body p { margin: 0 0 12px; }
.site-footer__disclosures .disclosures-body b { color: #c7d2e8; }
.site-footer__disclosures .reg-line { color: #b7c4e0; margin-bottom: 14px !important; }

.site-footer__instruments { padding: 16px 0 0; font-size: 12.5px; color: #93a3c4; }
.site-footer__instruments .label { text-transform: uppercase; font-weight: 700; letter-spacing: .05em; color: #93a3c4; margin-right: 8px; }
.site-footer__instruments a { margin-right: 3px; }
.site-footer__instruments .sep { color: #445274; margin: 0 6px; }

.site-footer__copy { padding-top: 18px; font-size: 12.5px; color: #6b7aa0; }

@media (max-width: 1100px) {
  .site-footer__top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* Match navia.co.in: no search box in the header bar. On live, the WP 'search'
   sidebar renders a wp-block-search widget whose submit button (bg #f5f7fc)
   breaks out to the right and collides with the "Open free account" CTA. Hidden
   to match the main site and align the CTA. Remove this rule to re-enable search. */
.site-header__search { display: none !important; }
