/* ==========================================================================
   Shared Vyasu site chrome — header + footer2 — for the Online Consulting pages.
   Same look as agency.html's header/footer (tokens + rules lifted from there), namespaced so
   they cannot collide with this section's own stylesheet (.btn / .container are theirs, so the
   chrome uses .hbtn / .site-container).
   ========================================================================== */
.site-header,
.footer2 {
  --primary-black: #111827;
  --primary-slate: #111827;
  --primary-white: #FFFFFF;
  --secondary-cyan: #00C853;
  --secondary-cyan-dark: #00B24A;
  --secondary-cyan-light: #E6FBF0;
  --secondary-cyan-glow: rgba(0, 200, 83, 0.25);
  --chrome-text-dark: #111827;
  --chrome-text-muted: #667085;
  --chrome-border: #E5E7EB;
  --chrome-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

.site-header *, .footer2 * { box-sizing: border-box; }
.site-header a, .footer2 a { color: inherit; text-decoration: none; transition: var(--chrome-transition); }
.site-header ul, .footer2 ul { list-style: none; margin: 0; padding: 0; }
.site-header img, .footer2 img { max-width: 100%; height: auto; display: block; }
.site-header button { font-family: inherit; }

.site-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900; /* below the consulting modals (1000) and filter drawer (1040-1050) */
  background: #FFFFFF;
  border-bottom: none;
  transition: var(--chrome-transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }

.site-header .header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.site-header .logo-box { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.5rem; color: var(--primary-black); letter-spacing: -0.5px; }
.site-header .logo-box img { height: 48px; width: auto; max-width: 200px; object-fit: contain; display: block; }

.site-header .nav-menu { display: flex; align-items: center; gap: 18px; }
.site-header .nav-link { font-size: 0.82rem; font-weight: 600; color: var(--primary-slate); position: relative; padding: 6px 0; }
.site-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--secondary-cyan);
  border-radius: 2px;
  transition: var(--chrome-transition);
}
.site-header .nav-link:hover { color: var(--secondary-cyan); }
.site-header .nav-link:hover::after { width: 100%; }

.site-header .header-actions { display: flex; align-items: center; gap: 16px; }

.hbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--chrome-transition);
  white-space: nowrap;
  border: none;
  line-height: 1.2;
}
/* "a.hbtn-*" so these beat the header's generic `a { color: inherit }` reset above */
.site-header a.hbtn-ghost { background: transparent; color: var(--primary-black); border: 1px solid transparent; }
.site-header a.hbtn-ghost:hover { color: var(--secondary-cyan); background: var(--secondary-cyan-light); }
.site-header a.hbtn-cyan { background: var(--secondary-cyan); color: var(--primary-white); box-shadow: 0 4px 14px var(--secondary-cyan-glow); }
.site-header a.hbtn-cyan:hover { background: var(--secondary-cyan-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(11, 151, 186, 0.35); }
.site-header a.hbtn-dark { position: relative; overflow: hidden; background: var(--primary-black); color: var(--primary-white); }
.site-header a.hbtn-dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  transform: skewX(-20deg);
  animation: chrome-btn-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}
.site-header a.hbtn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(17, 24, 39, 0.28); }
@keyframes chrome-btn-shine { 0% { left: -75%; } 35% { left: 130%; } 100% { left: 130%; } }

.site-header .mobile-toggle { display: none; background: none; border: none; padding: 4px; color: var(--primary-black); cursor: pointer; }
.site-header .mobile-menu-panel { display: none; }

@media (max-width: 1023px) {
  .site-header .nav-menu { display: none; }
  .site-header .header-actions .hbtn { display: none; }
  .site-header .mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .site-header .mobile-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border-top: 1px solid var(--chrome-border);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    padding: 8px 24px 20px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .site-header .mobile-menu-panel.open { display: flex; }
  .site-header .mobile-nav-link { padding: 14px 0; font-size: 0.95rem; font-weight: 600; color: var(--primary-slate); border-bottom: 1px solid #F1F5F9; }
  .site-header .mobile-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .site-header .mobile-menu-actions .hbtn { display: flex; width: 100%; }
}
@media (min-width: 1024px) { .site-header .mobile-menu-panel { display: none !important; } }

/* ---- Footer 2.0 ---- */
.footer2 { background: #fff; border-top: 1px solid var(--chrome-border); padding: 80px 0 48px; margin-top: 40px; }

.footer2-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #E5E7EB; }
@media (min-width: 768px) { .footer2-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer2-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; padding-bottom: 0; border-bottom: none; } }

/* .footer2 prefix so this beats the generic ".footer2 img { height: auto }" reset above (otherwise the logo shows at its full natural size) */
.footer2 .footer2-logo { height: 44px; width: auto; max-width: none; margin-bottom: 16px; display: block; }

.footer2-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 32px 0; border-bottom: 1px solid var(--chrome-border); }
@media (min-width: 768px) { .footer2-brand { align-items: flex-end; text-align: right; margin-left: auto; max-width: 380px; } }
@media (min-width: 1024px) { .footer2-brand { margin-top: -220px; padding: 0 0 32px; } }
@media (min-width: 1024px) { .footer2 .footer2-logo { position: relative; top: 12px; } }

.footer2-brand p { font-size: 0.88rem; color: var(--chrome-text-muted); line-height: 1.6; max-width: 320px; margin: 0 0 20px; }

.footer2-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer2-social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #F1F5F9; color: #111827; transition: all 0.2s ease; flex-shrink: 0; }
.footer2-social-icon svg { width: 16px; height: 16px; }
.footer2-social-icon:hover { background: #111827; color: #fff; transform: translateY(-2px); }

.footer2-col h5 { font-family: inherit; font-size: 0.7rem; font-weight: 800; color: var(--chrome-text-dark); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; }
.footer2-col ul { display: flex; flex-direction: column; gap: 11px; list-style: none; margin: 0; padding: 0; }
.footer2-col a { font-size: 0.8rem; font-weight: 500; color: var(--chrome-text-muted); }
.footer2-col a:hover { color: var(--chrome-text-dark); }

.footer2-bottom { padding-top: 32px; display: flex; flex-direction: column; gap: 20px; align-items: center; justify-content: space-between; text-align: center; }
@media (min-width: 768px) { .footer2-bottom { flex-direction: row; text-align: left; } }
.footer2-bottom .legal { font-size: 0.72rem; color: #9CA3AF; }
.footer2-bottom .legal a { color: #9CA3AF; }
.footer2-bottom .legal a:hover { color: var(--chrome-text-dark); }

.footer2-lang { display: flex; align-items: center; gap: 16px; font-size: 0.75rem; font-weight: 700; color: var(--chrome-text-muted); }
.footer2-lang svg { width: 14px; height: 14px; vertical-align: -2px; }
.footer2-lang button { background: none; border: none; cursor: pointer; font-family: inherit; font-weight: 700; color: var(--chrome-text-muted); }
.footer2-lang button.current { color: var(--secondary-cyan-dark); }
