/* Magadh Consultants — shared styles. Page-specific styles live in each page's <style> block. */

body { margin: 0; background: #F6F4EE; }
a { color: #24503F; }
a:hover { color: #17332A; }
[id] { scroll-margin-top: 84px; }
img, video { max-width: 100%; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: #24503F; color: #FFFFFF; font: 600 15px 'Manrope', system-ui, sans-serif; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

/* Hover states carried over from the design ("style-hover"); !important beats the inline styles. */
.hv-solid:hover { background: #24503F !important; color: #FFFFFF !important; }
.hv-mint:hover { background: #E3EEE8 !important; }
.hv-menu:hover { background: #EEF3F0 !important; color: #24503F !important; }
.hv-glass:hover { background: rgba(255,255,255,0.06) !important; }
.hv-glass-strong:hover { background: rgba(255,255,255,0.12) !important; }
.hv-card:hover { border-color: #478971 !important; box-shadow: 0 18px 40px rgba(23,34,29,0.08) !important; }

/* Hero video play/pause icons */
[data-video-toggle] .ico-pause, [data-video-toggle] .ico-play { display: flex; }
[data-video-toggle] .ico-play { display: none; }
[data-video-toggle].is-paused .ico-pause { display: none; }
[data-video-toggle].is-paused .ico-play { display: flex; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  color: #FFFFFF; background: rgba(246,244,238,0); border-bottom: 1px solid transparent; box-shadow: none;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.site-header.is-solid {
  color: #17221D; background: rgba(246,244,238,0.97); border-bottom-color: #E2DED4;
  box-shadow: 0 8px 28px rgba(23,34,29,0.08);
}
.site-header__bar {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-header__brand img { width: 52px; height: auto; display: block; }
.logo-on-light { display: none !important; }
.is-solid .logo-on-light { display: block !important; }
.is-solid .logo-on-dark { display: none !important; }
.site-header__wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.site-header__name {
  font-family: 'Cinzel', 'Trajan Pro', Georgia, serif; font-size: 17px; font-weight: 600;
  letter-spacing: 0.06em; color: #FFFFFF;
}
.site-header__tag {
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 14px;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.85);
}
.is-solid .site-header__name { color: #24503F; }
.is-solid .site-header__tag { color: #4C5752; }

.nav-primary { display: flex; align-items: center; gap: 30px; }
.nav-item { position: relative; padding: 24px 0; }
.nav-top {
  display: flex; align-items: center; gap: 6px; min-height: 28px; font-size: 15px; font-weight: 600;
  color: inherit; text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav-top:hover { color: inherit; }
.nav-top.is-active { border-bottom-color: #FFFFFF; }
.is-solid .nav-top.is-active { border-bottom-color: #478971; }
.nav-menu {
  display: none; position: absolute; top: 100%; left: -14px; min-width: 280px; padding: 10px;
  background: #FFFFFF; border: 1px solid #E2DED4; border-radius: 12px;
  box-shadow: 0 22px 48px rgba(23,34,29,0.16); flex-direction: column; gap: 2px;
}
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { display: flex; }
.nav-menu a {
  display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: #17221D; text-decoration: none;
}
.nav-menu a.nav-menu__strong { font-weight: 700; }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: #24503F; color: #FFFFFF; text-decoration: none; font-size: 15px; font-weight: 700;
}
.nav-cta:hover { color: #FFFFFF; filter: brightness(1.08); }
.nav-cta.is-active { box-shadow: 0 0 0 3px rgba(71,137,113,0.35); }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; color: inherit; border: 1px solid rgba(255,255,255,0.5); border-radius: 10px; cursor: pointer;
}
.is-solid .nav-toggle { border-color: #CFCAC0; }

.nav-mobile {
  background: #F6F4EE; border-top: 1px solid #E2DED4; padding: 8px 20px 24px;
  display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 76px); overflow-y: auto;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a { color: #17221D; text-decoration: none; }
.nav-mobile__top { padding: 14px 4px; font-weight: 700; font-size: 17px; border-bottom: 1px solid #E2DED4; }
.nav-mobile__group { padding: 12px 4px; border-bottom: 1px solid #E2DED4; }
.nav-mobile__head { display: block; padding: 4px 0; font-weight: 700; font-size: 17px; }
.nav-mobile__items { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.nav-mobile__items a { display: inline-flex; align-items: center; min-height: 36px; color: #24503F; font-size: 15px; font-weight: 500; }
.nav-mobile a.nav-mobile__cta {
  margin-top: 16px; display: flex; align-items: center; justify-content: center; min-height: 48px;
  border-radius: 999px; background: #24503F; color: #FFFFFF; font-weight: 700;
}

@media (max-width: 979px) {
  .nav-primary { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Chat widget ---------- */
.chat {
  position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif; color: #17221D; line-height: 1.5;
}
.chat__panel {
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: #FFFFFF;
  border-radius: 20px; box-shadow: 0 28px 70px rgba(12,26,20,0.28); display: flex; flex-direction: column;
  overflow: hidden; border: 1px solid #E2DED4;
}
.chat__panel[hidden] { display: none; }
.chat__head { background: #24503F; color: #FFFFFF; padding: 16px 16px 16px 18px; display: flex; align-items: center; gap: 12px; }
.chat__head img { width: 38px; height: auto; }
.chat__title { flex: 1; line-height: 1.3; }
.chat__name { font-weight: 700; font-size: 15px; }
.chat__sub { font-size: 13px; color: #DCE9E2; }
.chat__close {
  width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.chat__list { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #F6F4EE; }
.chat__msg { max-width: 85%; padding: 10px 14px; font-size: 14px; line-height: 1.55; }
.chat__msg--bot { align-self: flex-start; background: #FFFFFF; border: 1px solid #E2DED4; border-radius: 4px 16px 16px 16px; color: #17221D; }
.chat__msg--user { align-self: flex-end; background: #24503F; border-radius: 16px 4px 16px 16px; color: #FFFFFF; }
.chat__quick { padding: 10px 14px 0; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #E2DED4; }
.chat__chip {
  min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #CFDCD5; background: #F3F7F5;
  color: #24503F; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chat__contact {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
  background: #24503F; color: #FFFFFF; font-size: 13px; font-weight: 700; text-decoration: none;
}
.chat__contact:hover { color: #FFFFFF; }
.chat__form { padding: 12px 14px 14px; display: flex; gap: 8px; align-items: center; }
.chat__form input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid #CFCAC0; border-radius: 999px;
  font: inherit; font-size: 14px; background: #FBFAF7;
}
.chat__form button {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #24503F; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.chat__contact--wa { background: #0B7A5C; }
/* WhatsApp: deep WhatsApp green so the white icon keeps enough contrast */
.chat__wa {
  height: 58px; min-width: 58px; padding: 0 15px; box-sizing: border-box; border-radius: 999px;
  background: #0B7A5C; color: #FFFFFF; text-decoration: none;
  display: flex; align-items: center; justify-content: flex-end; box-shadow: 0 14px 34px rgba(12,26,20,0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.chat__wa svg { flex: none; }
.chat__wa { position: relative; }
/* invisible margin around the button that also counts as hovering it */
.chat__wa::before { content: ""; position: absolute; inset: -8px; border-radius: 999px; }
/* The label slides out on first load (for a few seconds), on hover and on keyboard focus */
.chat__wa-label {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-weight: 700; font-size: 15px;
  /* folding back waits a moment, so brushing the edge with the mouse doesn't make it flicker */
  transition: max-width 0.35s ease 0.4s, opacity 0.25s ease 0.4s, margin 0.35s ease 0.4s;
}
.chat__wa.is-expanded .chat__wa-label, .chat__wa:hover .chat__wa-label, .chat__wa:focus-visible .chat__wa-label {
  max-width: 220px; opacity: 1; margin-right: 10px;
  transition-delay: 0s;
}
/* no movement on hover: a button that shifts can slide out from under the pointer */
.chat__wa:hover { color: #FFFFFF; filter: brightness(1.1); }
@media (prefers-reduced-motion: reduce) { .chat__wa-label { transition: none; } }
.chat__wa:focus-visible { outline: 3px solid #478971; outline-offset: 3px; }
.chat__panel:not([hidden]) ~ .chat__wa { display: none; }
.chat__launcher {
  min-height: 58px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: #24503F; color: #FFFFFF;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 14px 34px rgba(12,26,20,0.3);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}

/* ---------- Platform pages: heading sub-line and Q&A ---------- */
.h1-sub {
  display: block; margin-top: 14px; font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(18px, 2vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: 0; color: #CFE3D8;
}
.faq { padding: clamp(64px, 8vw, 104px) 0 clamp(24px, 4vw, 40px); font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif; }
.faq__inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.faq__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #24503F; margin-bottom: 14px; }
.faq__title { margin: 0 0 28px; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; }
.faq__list { border-top: 1px solid #D9D4C9; max-width: 900px; }
.faq__item { border-bottom: 1px solid #D9D4C9; }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 44px; padding: 18px 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; color: #17221D; }
.faq__item summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid #24503F; border-bottom: 2px solid #24503F;
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__item summary:focus-visible { outline: 2px solid #478971; outline-offset: 4px; border-radius: 4px; }
.faq__item p { margin: 0 0 20px; max-width: 760px; color: #4C5752; font-size: 16px; line-height: 1.65; }

/* ---------- Contact form status ---------- */
.form-error {
  margin: 0; padding: 12px 14px; border-radius: 10px; background: #FBEDEA; border: 1px solid #E8C4BC;
  color: #7A2E1F; font-size: 14px;
}
.form-error[hidden] { display: none; }
button[disabled] { opacity: 0.7; cursor: progress; }
