/* ==========================================================================
   VikramJha.com — Design System
   Clean, minimal, editorial. Warm off-white background, deep ink text,
   a single terracotta accent used sparingly for emphasis and CTAs.
   ========================================================================== */

:root {
  /* ---- Ink & Amber Gold ---- */
  --ink: #14181A;
  --ink-soft: #4B4438;
  --paper: #F4EFE6;
  --paper-alt: #ECE3D0;
  --line: #DED2B8;
  --accent: #E0A526;
  --accent-dark: #B8791A;
  --accent-soft: #FDECC8;
  --nav-bg: #12181B;
  --nav-text: #F4EFE6;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(20, 24, 26, 0.08);
  --shadow-lg: 0 12px 40px rgba(20, 24, 26, 0.16);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 24, 27, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--nav-text); }
.brand-tag { font-size: 0.72rem; color: rgba(244,239,230,0.65); letter-spacing: 0.02em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--nav-text); font-weight: 500; font-size: 0.95rem; }
.site-nav a.active { color: var(--accent); }
.site-nav a.nav-cta {
  background: var(--accent); color: var(--ink); padding: 9px 20px; border-radius: 999px; font-weight: 700;
}
.site-nav a.nav-cta:hover { background: var(--accent-dark); color: var(--white); text-decoration: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--nav-text); display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-copy .subhead { font-size: 1.15rem; color: var(--accent-dark); font-weight: 600; margin-bottom: 18px; }
.hero-copy p { font-size: 1.08rem; }
.hero-photo {
  aspect-ratio: 4/5; background: var(--paper-alt); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  font-size: 0.85rem; text-align: center; border: 1px dashed var(--line); overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Generic sections ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--paper-alt); }
section.block-tight { padding: 48px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.prose { max-width: 720px; }
.prose p { font-size: 1.05rem; }

/* ---------- Belief / manifesto points ---------- */
.belief-list { display: flex; flex-direction: column; gap: 36px; margin-top: 40px; }
.belief-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  padding-bottom: 36px; border-bottom: 1px solid var(--line);
}
.belief-item:last-child { border-bottom: none; padding-bottom: 0; }
.belief-num {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--accent);
  font-weight: 600;
}
.belief-item h3 { margin-bottom: 10px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 32px;
}
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.95rem; margin: 0; }

/* ---------- Story / testimonial card ---------- */
.story-list { display: flex; flex-direction: column; gap: 24px; }
.story-card {
  background: var(--white); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); max-width: 820px;
}
.story-card h3 { margin-bottom: 12px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink); color: var(--paper); border-radius: 16px;
  padding: 56px; text-align: center; margin: 0 auto;
}
.cta-banner h2, .cta-banner p { color: var(--paper); }
.cta-banner .btn-row { justify-content: center; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 32px; }
.blog-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s ease;
}
.blog-card:hover { box-shadow: var(--shadow-lg); }
.blog-card-img { aspect-ratio: 16/10; background: var(--paper-alt); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-date { font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card h3 { font-size: 1.15rem; margin: 0; }
.blog-card p { font-size: 0.92rem; margin: 0; flex: 1; }
.blog-card .read-more { font-size: 0.88rem; font-weight: 600; color: var(--accent-dark); }
.blog-empty { padding: 40px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius); }

.post-header { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.post-header .blog-card-date { display: block; margin-bottom: 12px; }
.post-featured-img { max-width: 900px; margin: 0 auto 40px; border-radius: var(--radius); overflow: hidden; }
.post-body { max-width: 720px; margin: 0 auto; font-size: 1.08rem; }
.post-body p { color: var(--ink); margin-bottom: 1.3em; }
.post-body h2, .post-body h3 { margin-top: 1.4em; }
.post-body img { border-radius: var(--radius); margin: 1.5em 0; }
.post-back { display: block; max-width: 720px; margin: 0 auto 8px; font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.contact-info-card p { margin-bottom: 14px; }
.contact-info-card a { color: var(--ink); font-weight: 600; }
.form-group { margin-bottom: 18px; }
/* Honeypot field — off-screen for real visitors, still present in the DOM for bots that fill every field. */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.98rem; background: var(--white); color: var(--ink);
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.95rem; }
.alert-success { background: #E4F2E7; color: #245C3A; border: 1px solid #BFE0C8; }
.alert-error { background: #FBE7E4; color: #8A2E1E; border: 1px solid #F3C6BE; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9CED6; padding: 56px 0 20px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-footer .brand-name { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.site-footer a { color: #C9CED6; }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-bottom { padding-top: 20px; font-size: 0.82rem; color: #8891A0; }

/* ---------- Stats bar ---------- */
.stats-bar {
  display: flex; flex-wrap: wrap; gap: 40px; margin-top: 44px;
  padding-top: 36px; border-top: 1px solid var(--line);
}
.stat-item { text-align: left; }
.stat-item .stat-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.1rem;
  color: var(--accent-dark); line-height: 1;
}
.stat-item .stat-label { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Motion: scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.6s; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 320px; margin: 0 auto; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .stats-bar { gap: 24px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--nav-bg); border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-cta { align-self: flex-start; }
  .belief-item { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 24px; }
}
