/* ============================================================
   Memon Tax Consultancy — custom styles
   (layered on top of Tailwind CDN utility classes)

   PALETTE — Burgundy & Slate
     Primary  #7B2D3A  deep burgundy
     Accent   #C79A54  antique gold
     Dark     #2A1216  wine ink
     Surface  #F7F3F1  warm ivory
     Text     #241A1C  dark plum
   ============================================================ */

:root {
  /* token names kept for compatibility; values = new palette */
  --navy: #7B2D3A;   /* primary brand (burgundy) */
  --navy-light: #9E4453;
  --navy-dark: #2A1216;
  --teal: #C79A54;   /* accent (antique gold) */
  --gold: #C79A54;
  --gold-light: #E0C088;
  --gold-dark: #A67C3C;
  --ivory: #F7F3F1;
  --plum: #241A1C;
}

body { font-family: 'Inter', sans-serif; background: var(--ivory); color: var(--plum); }
.font-display { font-family: 'Plus Jakarta Sans', sans-serif; }

/* warm surface for alternating sections */
.section-surface { background: #F1E9E6; }

/* ---------- NAVBAR ---------- */
/* Default (over dark hero) = light text; .scrolled (over ivory) = dark text */
#navbar .nav-title { color: #ffffff; }
#navbar .nav-sub   { color: var(--gold-light); }
#navbar .nav-link  { color: #efe3e5; transition: color .2s; }
#navbar .nav-link:hover { color: #ffffff; }
#navbar .nav-toggle { color: #ffffff; }

#navbar.scrolled {
  background: rgba(247, 243, 241, .95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(42, 18, 22, .10);
}
#navbar.scrolled .nav-title { color: var(--navy); }
#navbar.scrolled .nav-sub   { color: var(--gold-dark); }
#navbar.scrolled .nav-link  { color: #5b4a4d; }
#navbar.scrolled .nav-link:hover { color: var(--navy); }
#navbar.scrolled .nav-toggle { color: var(--navy); }

.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold); transition: width .25s;
}
.nav-link:hover::after { width: 100%; }

.mobile-link {
  display: block; padding: .65rem .25rem; border-radius: .5rem;
  transition: background .2s, padding-left .2s;
}
.mobile-link:hover { background: rgba(255,255,255,.08); padding-left: .75rem; }

/* ---------- BUTTONS ---------- */
/* Primary = gold with dark wine text — pops on both burgundy & ivory */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--gold); color: var(--navy-dark); font-weight: 700;
  padding: .6rem 1.4rem; border-radius: .65rem;
  box-shadow: 0 6px 18px rgba(199, 154, 84, .38);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary:hover { background: #d4aa62; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(199,154,84,.5); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: rgba(255,255,255,.10); color: #fff; font-weight: 600;
  padding: .6rem 1.4rem; border-radius: .65rem;
  border: 1px solid rgba(255,255,255,.30); transition: background .2s, transform .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--navy); color: #fff; font-weight: 600;
  padding: .6rem 1.4rem; border-radius: .65rem; transition: background .2s, transform .2s;
}
.btn-secondary:hover { background: #63232f; transform: translateY(-2px); }

/* ---------- HELPERS ---------- */
.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: .8rem; color: var(--gold-dark); margin-bottom: .75rem;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; color: var(--navy);
  margin-bottom: 1rem;
}
.text-gradient {
  background: linear-gradient(90deg, #D9B978, #EBD9AF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- HERO ---------- */
.hero-glow {
  position: absolute; top: -120px; right: -120px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(199,154,84,.28), transparent 70%);
  pointer-events: none;
}
.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 70px; display: block; }

/* ---------- STATS ---------- */
.stat-card {
  background: #fff; border: 1px solid #ece2df; border-radius: 1rem;
  padding: 1.6rem 1rem; text-align: center;
  box-shadow: 0 10px 30px rgba(42, 18, 22, .07);
}
.stat-num {
  display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--navy); line-height: 1;
}
.stat-label { margin-top: .4rem; font-size: .85rem; color: #7c6a6d; font-weight: 500; }

/* ---------- ABOUT ---------- */
.about-check {
  position: relative; padding-left: 1.75rem; color: #4a3d40; font-size: .95rem;
}
.about-check::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--gold-dark); font-weight: 800;
}

/* ---------- SERVICES ---------- */
.service-card {
  background: #fff; border: 1px solid #ece2df; border-radius: 1rem; padding: 1.6rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(123, 45, 58, .14);
  border-color: rgba(199,154,84,.5);
}
.service-icon {
  width: 3.25rem; height: 3.25rem; border-radius: .85rem;
  background: linear-gradient(135deg, rgba(123,45,58,.12), rgba(199,154,84,.20));
  display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1rem;
}
.service-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.service-desc { font-size: .9rem; color: #7c6a6d; line-height: 1.55; }

/* ---------- WHY US ---------- */
.why-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 1rem; padding: 1.6rem; transition: background .25s, transform .25s, border-color .25s;
}
.why-card:hover { background: rgba(255,255,255,.11); border-color: rgba(199,154,84,.35); transform: translateY(-4px); }
.why-icon { font-size: 1.8rem; margin-bottom: .75rem; }
.why-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.why-desc { font-size: .9rem; color: #e7d6d9; line-height: 1.55; }

/* ---------- PROCESS ---------- */
.process-step { text-align: center; position: relative; }
.process-num {
  width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(123,45,58,.32); position: relative; z-index: 2;
  border: 2px solid var(--gold);
}
.process-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.process-desc { font-size: .88rem; color: #7c6a6d; line-height: 1.55; }
.process-line {
  display: none; position: absolute; top: 1.75rem; left: 12%; right: 12%;
  height: 2px; background: repeating-linear-gradient(90deg, #d8c4bf 0 8px, transparent 8px 16px);
  z-index: 1;
}
@media (min-width: 768px) { .process-line { display: block; } }

/* ---------- CONTACT ---------- */
.contact-item {
  display: flex; align-items: flex-start; gap: .9rem;
  background: #fff; border: 1px solid #ece2df; border-radius: .85rem; padding: 1rem 1.1rem;
  transition: border-color .2s, transform .2s;
}
a.contact-item:hover { border-color: rgba(199,154,84,.5); transform: translateX(3px); }
.contact-ic { font-size: 1.35rem; flex: none; }
.contact-k { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #a08f92; font-weight: 600; }
.contact-v { display: block; color: var(--navy); font-weight: 500; font-size: .95rem; }

.form-label { display: block; font-size: .82rem; font-weight: 600; color: #5b4a4d; margin-bottom: .35rem; }
.form-input {
  width: 100%; border: 1px solid #e2d6d2; border-radius: .6rem; padding: .7rem .9rem;
  font-size: .95rem; color: var(--navy); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,84,.2);
}

/* ---------- FOOTER ---------- */
.footer-h { color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; margin-bottom: 1rem; }
.footer-link { color: #c9b6b9; transition: color .2s; }
.footer-link:hover { color: var(--gold-light); }

/* ---------- FLOATING BUTTONS ---------- */
#wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s;
  animation: wa-pulse 2.5s infinite;
}
#wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

#to-top {
  position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 50;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(123,45,58,.35); transition: transform .2s, opacity .3s;
}
#to-top:hover { transform: translateY(-3px); }

/* ---------- LOGO INTRO ANIMATION ---------- */
#logo-intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--ivory);
  transition: opacity .45s ease, visibility .45s ease;
}
#logo-intro.intro-done { opacity: 0; visibility: hidden; }

.intro-logo {
  width: 140px; height: 140px;
  will-change: transform;
  transform-origin: top left;
  animation: intro-pop .5s cubic-bezier(.2,.8,.25,1) both;
  filter: drop-shadow(0 18px 40px rgba(42,18,22,.28));
}
/* JS adds this to trigger the flight to the header (transform set inline) */
.intro-logo.intro-fly {
  transition: transform .75s cubic-bezier(.6,.02,.2,1);
  filter: drop-shadow(0 6px 14px rgba(42,18,22,.18));
}

@keyframes intro-pop {
  0%   { opacity: 0; transform: scale(.82); }
  100% { opacity: 1; transform: scale(1); }
}

/* gold arrow "grows" upward (draws from bottom to tip) */
.intro-arrow {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: arrow-grow .6s ease forwards;
  animation-delay: .5s;
}
.intro-arrow-head { animation-delay: .95s; animation-duration: .3s; }
@keyframes arrow-grow { to { stroke-dashoffset: 0; } }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  #wa-float { animation: none; }
  #logo-intro { display: none; }
  html { scroll-behavior: auto; }
}
