/* ==========================================================================
   Mukesh Kumar — DSC & Compliance Services for the CA community
   Shared custom styles. Tailwind (CDN) handles the utility layer; this file
   holds page-specific components, the VSL placeholder, chat & WhatsApp
   widgets, form controls and scroll-reveal helpers.
   ========================================================================== */

:root {
  --navy: #0f2440;
  --navy-800: #16324f;
  --gold: #b8935a;
  --gold-600: #a37e4a;
  --cream: #f7f6f3;
  --ink: #1b242e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--gold);
  color: #fff;
}

/* ---- Focus states (accessibility) ---- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ==========================================================================
   Sticky header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 36, 64, 0.08);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(15, 36, 64, 0.08);
}

.nav-link {
  position: relative;
  color: #33455c;
  font-weight: 500;
  font-size: 0.925rem;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--navy);
}
.nav-link[aria-current='page'] {
  color: var(--navy);
}
.nav-link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-gold {
  background-color: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background-color: var(--gold-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(184, 147, 90, 0.35);
}
.btn-navy {
  background-color: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background-color: var(--navy-800);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 36, 64, 0.28);
}
.btn-outline {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background-color: var(--navy);
  color: #fff;
}

/* ==========================================================================
   VSL video placeholder
   "Video message from Mukesh Kumar — coming soon".
   Swap block in the HTML, not here — see the HTML comment above each .vsl-frame.
   ========================================================================== */
.vsl-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 60px rgba(15, 36, 64, 0.35);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vsl-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 36, 64, 0.15) 0%, rgba(10, 26, 48, 0.72) 100%);
  pointer-events: none;
}
.vsl-play {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(247, 246, 243, 0.12);
  border: 2px solid rgba(247, 246, 243, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.vsl-play:hover {
  transform: scale(1.06);
  background: rgba(184, 147, 90, 0.85);
  border-color: var(--gold);
}
.vsl-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: #5a6b80;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Floating action button (FAB) + chat panel.
   One launcher bottom-right expands into a menu with two choices:
   "Chat with us" and "WhatsApp us". The chat panel is a visual UI shell only
   (see the comment block in main.js) meant to be connected to a chat platform
   (e.g. GHL Conversation AI web chat embed) later.
   ========================================================================== */
.fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
}
.fab-menu {
  position: absolute;
  bottom: calc(100% + 0.8rem);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e4e1d9;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 36, 64, 0.18);
  padding: 0.55rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}
.fab-menu.open {
  display: flex;
}
.fab-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
button.fab-option { border: none; background: transparent; }
a.fab-option { text-decoration: none; }
.fab-option:hover {
  background: #efece6;
  color: var(--ink);
}
.fab-main {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 36, 64, 0.35);
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.fab-main:hover {
  transform: translateY(-2px);
  background-color: var(--navy-800);
}
.fab-main .fab-ico-chat { display: block; }
.fab-main .fab-ico-close { display: none; }
.fab.open .fab-main .fab-ico-chat { display: none; }
.fab.open .fab-main .fab-ico-close { display: block; }

.chat-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 6.75rem;
  z-index: 59;
  width: 340px;
  max-width: calc(100vw - 2.5rem);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 36, 64, 0.3);
  overflow: hidden;
  display: none;
}
.chat-panel.is-open {
  display: block;
}
.chat-header {
  background: var(--navy);
  color: #fff;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-body {
  padding: 1.1rem;
  min-height: 160px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
}
.chat-msg.bot {
  background: #f1efe9;
  border-bottom-left-radius: 3px;
  align-self: flex-start;
}
.chat-input {
  width: 100%;
  border: 1px solid #e4e1d9;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fbfaf7;
}
.chat-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ==========================================================================
   Scroll reveal
   Elements start visible; gsap.from() animates them only when JS runs, so
   the content is never hidden if JavaScript is unavailable.
   ========================================================================== */

/* ==========================================================================
   Trust bar numbers
   ========================================================================== */
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.offer-card {
  background: #fff;
  border: 1px solid #eae6dd;
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 36, 64, 0.1);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-field {
  width: 100%;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.18);
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #33455c;
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item {
  background: #fff;
  border: 1px solid #eae6dd;
  border-radius: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  background: #fff;
}
.faq-q:hover {
  background: #fbfaf7;
}
.faq-q .faq-icon {
  flex-shrink: 0;
  color: var(--gold-600);
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: #3d4f66;
  line-height: 1.7;
  font-size: 0.95rem;
}
.faq-item.is-open .faq-a {
  display: block;
}

/* ==========================================================================
   Responsive: only used for cases Tailwind can't express cleanly per-breakpoint
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gs-reveal, .vsl-play, .offer-card, .faq-q, .stat-number {
    transition: none !important;
  }
}
