/* =====================================================
   Vedanthh Business & Investment Advisory — main styles
   Palette: deep navy + gold, matching the firm's flyer
   ===================================================== */
:root {
  --navy-900: #081c33;
  --navy-800: #0b2545;
  --navy-700: #13315c;
  --navy-600: #1d4577;
  --gold-500: #d4a017;
  --gold-400: #e6b93c;
  --gold-100: #faf3dd;
  --ink: #1c2733;
  --muted: #5b6b7b;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --red: #cc0000;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8, 28, 51, 0.10);
  --shadow-sm: 0 4px 14px rgba(8, 28, 51, 0.08);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--font-head); color: var(--navy-800); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-500); margin-bottom: 0.6rem;
}
.eyebrow-light { color: var(--gold-400); }
.text-gold { color: var(--gold-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 999px; font-weight: 600;
  font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: all 0.2s ease;
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-600); transform: translateY(-2px); }
/* .btn-outline was written for the navy hero — white text on a white card is
   invisible. It now defaults to the dark-ink version that works on light
   backgrounds, and only goes white where the surrounding surface is dark. */
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); background: transparent; }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.hero .btn-outline,
.section-navy .btn-outline,
.site-footer .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.hero .btn-outline:hover,
.section-navy .btn-outline:hover,
.site-footer .btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-nav { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: #b9c8da; font-size: 0.75rem; }
.topbar-inner { display: flex; gap: 1.2rem; padding: 0.35rem 0; flex-wrap: wrap; align-items: center; }
.topbar-item { color: #b9c8da; white-space: nowrap; }
.topbar a.topbar-item:hover { color: var(--gold-400); }
.topbar-spacer { flex: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400); font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 0.06em; color: var(--navy-800); }
.brand-text small { font-size: 0.66rem; color: var(--muted); letter-spacing: 0.02em; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { font-weight: 500; font-size: 0.93rem; color: var(--navy-800); }
.main-nav a:hover { color: var(--gold-500); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(212,160,23,0.22), transparent 60%),
    linear-gradient(140deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff; padding: 4.5rem 0 4rem;
}
.hero-inner { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin: 0.4rem 0 1rem; }
.hero-sub { font-size: 1.08rem; color: #cdd9e6; max-width: 34rem; }
.hero-sub strong { color: var(--gold-400); }
.hero-cta { display: flex; gap: 0.9rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.6rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-trust li { font-size: 0.83rem; color: #9fb2c6; position: relative; padding-left: 1.2rem; }
.hero-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-400); font-weight: 700; }

.hero-card {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--gold-500);
}
.hero-card h3 { margin-bottom: 0.2rem; }
.hero-card > p { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }

/* ---------- Forms ---------- */
.mini-form label, .contact-form label {
  display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy-800); margin-bottom: 0.8rem;
}
.mini-form input, .mini-form select,
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 0.3rem; padding: 0.65rem 0.8rem; border: 1.5px solid var(--line);
  border-radius: 9px; font: inherit; font-size: 0.92rem; color: var(--ink); background: #fff;
  transition: border-color 0.15s;
}
.mini-form input:focus, .mini-form select:focus,
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold-500);
}
.hp-field { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.7rem; text-align: center; }

.flash { margin: 1.2rem auto; padding: 0.9rem 1.2rem; border-radius: 10px; font-size: 0.95rem; }
.flash-ok { background: #e8f7ec; color: #14532d; border: 1px solid #bbe5c8; }
.flash-err { background: #fdecec; color: #7f1d1d; border: 1px solid #f5c2c2; }

/* ---------- Stats ---------- */
.stats { background: var(--gold-500); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 1.4rem 0.5rem; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--navy-900); }
.stat span { font-size: 0.82rem; color: #4a3a08; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-gray { background: var(--bg-soft); }
.section-navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); }
.section-navy h2 { color: #fff; }
.section-head { max-width: 46rem; margin: 0 auto 2.8rem; text-align: center; }
.section-head p { color: var(--muted); margin-top: 0.7rem; }
.section-navy .section-head p { color: #b9c8da; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--gold-100); color: var(--gold-500); margin-bottom: 1rem;
}
.service-icon svg { width: 28px; height: 28px; }
.service-desc { font-size: 0.88rem; color: var(--muted); margin: 0.3rem 0 0.9rem; }
.service-list { flex: 1; }
.service-list li {
  position: relative; padding: 0.32rem 0 0.32rem 1.5rem; font-size: 0.92rem; border-bottom: 1px dashed var(--line);
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before { content: "✓"; position: absolute; left: 0.2rem; color: var(--gold-500); font-weight: 700; }
.service-cta { margin-top: 1.1rem; font-weight: 600; font-size: 0.9rem; color: var(--navy-700); }
.service-cta:hover { color: var(--gold-500); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.why-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 1.5rem;
}
.why-card h3 { color: var(--gold-400); font-size: 1.02rem; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.9rem; color: #cdd9e6; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 3rem; align-items: start; }
.about-copy p { color: var(--muted); margin: 0.9rem 0; }
.about-copy h2 { margin-top: 0.3rem; }
.people { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.6rem; }
.person { display: flex; align-items: center; gap: 0.9rem; }
.person-avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-400);
  font-weight: 700; font-family: var(--font-head);
}
.person strong { display: block; color: var(--navy-800); }
.person small { color: var(--muted); font-size: 0.82rem; }
.about-panel {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  position: sticky; top: 100px;
}
.about-panel h3 { margin-bottom: 1rem; }
.cred-list li { display: flex; flex-direction: column; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); }
.cred-list li:last-child { border-bottom: none; }
.cred-list span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.cred-list strong { font-size: 0.9rem; color: var(--navy-800); word-break: break-all; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.video-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.2s;
}
.video-card:hover { transform: translateY(-4px); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem;
  color: #fff; background: rgba(8,28,51,0.35); opacity: 0.9; transition: background 0.2s;
}
.video-card:hover .video-play { background: rgba(8,28,51,0.55); }
.video-title { padding: 0.9rem 1rem 0.2rem; font-weight: 600; font-size: 0.92rem; color: var(--navy-800); }
.video-date { padding: 0 1rem 1rem; font-size: 0.78rem; color: var(--muted); }
.video-fallback { text-align: center; color: var(--muted); margin-bottom: 1.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-block { margin-bottom: 1.4rem; }
.contact-block h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.contact-block p { color: var(--muted); font-size: 0.95rem; }
.contact-block a { font-weight: 600; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow); border-top: 4px solid var(--gold-500);
}
.contact-form h3 { margin-bottom: 1.1rem; }

/* ---------- Thank-you ---------- */
.thanks { min-height: 55vh; display: grid; place-items: center; }
.thanks-card { max-width: 34rem; margin-inline: auto; }
.thanks-icon {
  width: 74px; height: 74px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.2rem; color: #fff;
  background: linear-gradient(135deg, #1f9d55, #27ae60);
}
.thanks-card p { color: var(--muted); margin: 0.8rem 0 1.4rem; }
.center-cta { justify-content: center; }
.thanks-back { margin-top: 1.4rem; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c8da; padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr; gap: 2.2rem; padding-bottom: 2.5rem; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; letter-spacing: 0.03em; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col a { color: #b9c8da; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-400); }
.footer-brand p { font-size: 0.88rem; margin-top: 0.9rem; }
.footer-ids { font-size: 0.75rem !important; color: #7e93a9; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #7e93a9; }
address { font-style: normal; font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer-contact li { font-size: 0.9rem; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 0.9rem; }
.footer-social a {
  border: 1px solid rgba(255,255,255,0.25); padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.8rem;
}
.footer-social a:hover { border-color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.1rem 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: #7e93a9; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-panel { position: static; }
  .video-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar-inner { justify-content: center; }
  .topbar-item:nth-child(1), .topbar-item:nth-child(2) { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 1.2rem 5%; gap: 1rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}

/* ---------- Gallery ---------- */
.gallery-empty { text-align: center; color: var(--muted); max-width: 34rem; margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.gallery-item { margin: 0; }
.gallery-link {
  display: block; overflow: hidden; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; line-height: 0;
}
.gallery-link img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .35s ease;
}
.gallery-link:hover img, .gallery-link:focus-visible img { transform: scale(1.05); }
.gallery-link:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.gallery-item figcaption {
  font-size: .9rem; color: var(--muted); margin-top: .6rem; line-height: 1.4;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 18, 32, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 3.5rem 1rem 4.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox-caption {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  color: #dbe4f0; font-size: .95rem; text-align: center;
  max-width: min(90%, 46rem); margin: 0;
}
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff;
  border: 0; cursor: pointer; border-radius: 50%;
  width: 3rem; height: 3rem; font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
  .lightbox-close, .lightbox-nav { width: 2.5rem; height: 2.5rem; font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-link img { transition: none; }
  .gallery-link:hover img { transform: none; }
}

/* ---------- Shared: post-result lead capture ---------- */
/* Used by the calculators and the compliance calendar. Always rendered AFTER a
   result, never as a gate in front of one. */
.lead-card {
  margin: 2rem 0 0; padding: 1.5rem;
  background: var(--gold-100); border: 1px solid var(--gold-400);
  border-radius: var(--radius);
}
.lead-card h3 { margin: 0 0 .4rem; font-size: 1.1rem; color: var(--navy-700); }
.lead-card > p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; max-width: 60ch; }
.lead-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.lead-row input[type="tel"] {
  flex: 1 1 16rem; padding: .8rem 1rem; font: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.lead-row input[type="tel"]:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 1px; }
.lead-note { margin: .8rem 0 0; font-size: .84rem; color: var(--muted); }
/* Honeypot — must be reachable by bots but invisible and unfocusable for people. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Flash messages after a lead submission (POST-Redirect-GET). */
.flash { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .95rem; }
.flash-ok  { background: #e8f5ec; border: 1px solid #b7e0c4; color: #14532d; }
.flash-err { background: #fdecea; border: 1px solid #f5c2bd; color: #7f1d1d; }

/* Service list items link into their own pages where one exists. */
.service-list li a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.service-list li a:hover { color: var(--navy-700); border-bottom-color: var(--gold-500); }
.service-list li a:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 2px; }
.section-head-cta { margin-top: 1.4rem; }
.lead-flash-wrap { padding-top: 1.2rem; }
/* Telugu affordance — a trust and conversion signal, not an SEO play.
   Tax vocabulary (GST, ITR, TDS) has no idiomatic Telugu equivalent in use, so
   prospects search in English regardless; what Telugu buys is warmth on contact. */
.contact-telugu { margin-top: .5rem; font-size: .93rem; }
.contact-telugu span { display: block; font-size: .86rem; color: var(--muted); margin-top: .15rem; }

.section-head h1 { font-family: var(--font-head); }
