/* ============================================================
   GLOBAL.CSS — Gautam Jaiswal & Associates | gjaca.in
   Shared across all pages: variables, reset, nav, footer,
   buttons, typography utilities, WhatsApp FAB, animations
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy-dark: #0a1628;
  --navy: #1a2a4a;
  --navy-mid: #243552;
  --navy-light: #2e4269;
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gold-dark: #a67c2e;
  --white: #ffffff;
  --off-white: #f8f7f5;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --border-gold: rgba(201, 168, 76, 0.25);
  --border-navy: rgba(26, 42, 74, 0.1);
  --shadow-sm: 0 2px 8px rgba(26, 42, 74, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 42, 74, 0.08);
  --shadow-lg: 0 16px 56px rgba(26, 42, 74, 0.12);
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.22;
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
}

/* ── Layout utilities ──────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
section {
  padding: 5.5rem 5%;
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--navy-dark);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}
.section-header {
  margin-bottom: 3.5rem;
}
.section-header-center {
  text-align: center;
}
.section-header-center .section-sub {
  margin: 0 auto;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 13px 26px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 13.5px;
  transition:
    background 0.2s,
    transform 0.15s;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 13px 26px;
  border-radius: 5px;
  font-weight: 500;
  font-size: 13.5px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-dark);
  color: var(--gold);
  padding: 13px 26px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 13.5px;
  transition: background 0.2s;
}
.btn-navy:hover {
  background: var(--navy-mid);
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.2s;
}
.reveal-d3 {
  transition-delay: 0.3s;
}
.reveal-d4 {
  transition-delay: 0.4s;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Navigation ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
  transition: box-shadow 0.3s;
}
nav.scrolled {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.nav-brand-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--navy-dark);
  flex-shrink: 0;
}
.nav-brand-name {
  font-family: "Playfair Display", serif;
  font-size: 14.5px;
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
}
.nav-brand-sub {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.06em;
  font-weight: 500;
  display: block;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}
.nav-links .nav-cta {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 8px 18px;
  border-radius: 5px;
  font-weight: 600 !important;
  transition:
    background 0.2s,
    transform 0.15s;
}
.nav-links .nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform 0.28s,
    opacity 0.28s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  border-bottom: 1px solid var(--border-gold);
  padding: 1.25rem 5%;
  z-index: 999;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s;
}
.mobile-menu a:last-child {
  border-bottom: none;
  color: var(--gold);
  font-weight: 600;
}
.mobile-menu a:hover {
  color: var(--gold);
}

/* ── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  background-color: var(--navy-dark);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 55px 55px;
  padding: 7rem 5% 4rem;
  margin-top: 68px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-gold);
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.page-hero .eyebrow {
  color: var(--gold);
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 540px;
  line-height: 1.75;
}

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: var(--gold);
  padding: 4rem 5%;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(22px, 3vw, 34px);
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
}
.cta-banner p {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 2rem;
  opacity: 0.8;
}
.cta-banner .btn-navy {
  margin: 0 auto;
}

/* ── Trust Bar ─────────────────────────────────────────────── */
.trust-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--border-navy);
  padding: 1.25rem 5%;
}
.trust-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--navy-dark);
  padding: 4rem 5% 2.25rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-brand-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.72;
  max-width: 250px;
  margin-top: 1rem;
}
.footer-social {
  display: flex;
  gap: 9px;
  margin-top: 1.25rem;
}
.fsoc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.fsoc:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.footer-col-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-reg {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.75;
}
.footer-reg strong {
  color: rgba(255, 255, 255, 0.65);
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-reg a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}
.footer-reg a:hover {
  color: var(--gold);
}
.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-disclaimer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1.65;
  max-width: 680px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-copy a {
  color: var(--gold);
}

/* ── WhatsApp FAB ─────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.38);
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}
.wa-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.48);
}
.wa-fab svg {
  width: 30px;
  height: 30px;
}
.wa-tip {
  position: absolute;
  right: 70px;
  background: var(--navy-dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wa-tip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--navy-dark);
}
.wa-fab:hover .wa-tip {
  opacity: 1;
}

/* ── Back to Top ───────────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 1100;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-dark);
  border: 1.5px solid var(--border-gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.back-top.show {
  opacity: 1;
  pointer-events: all;
}
.back-top:hover {
  background: var(--navy-mid);
}

/* ── Responsive (global) ───────────────────────────────────── */
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 620px) {
  section {
    padding: 3.75rem 4%;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .trust-inner {
    gap: 1.25rem;
    justify-content: flex-start;
  }
  .page-hero {
    padding: 5.5rem 4% 3rem;
  }
}
