/* ============ Abhay Sharma & Co. ============ */
:root {
  --ink: #0a2a5e;
  --ink-2: #0d3270;
  --blue: #1d5fd1;
  --blue-light: #5b8def;
  --paper: #f7f9fc;
  --white: #ffffff;
  --muted: #50607a;
  --line: rgba(10, 42, 94, 0.1);
  --radius: 18px;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.center { text-align: center; }

/* Justified body copy across the site */
.section-sub, .card p, .person-bio, .page-hero p,
.svc-detail p, .svc-detail li, .svc-usp,
.profile-body p, .post-body p, .post-body li,
.approach-list li, .hero-sub {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.center .section-sub { text-align: center; }

/* ============ Header ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.site-header.solid,
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(10,42,94,.1);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white); font-weight: 700; font-family: var(--font-serif);
  border-radius: 10px; font-size: 17px;
  box-shadow: 0 6px 18px rgba(29,95,209,.35);
}
.brand-name { font-family: var(--font-serif); font-size: 19px; font-weight: 600; letter-spacing: .2px; }
.brand-name em { color: var(--blue); font-style: normal; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(10,42,94,.8); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  padding: 9px 20px; border: 1px solid var(--blue); border-radius: 999px;
  color: var(--blue) !important;
}
.nav-cta:hover { background: var(--blue); color: var(--white) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: radial-gradient(120% 120% at 70% 20%, #ffffff 0%, #f0f5fd 55%, #dfeafa 100%);
  color: var(--ink); overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-content { position: relative; z-index: 2; padding: 140px 0 100px; }
.hero-kicker {
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 22px; font-weight: 700;
}
.hero-title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(40px, 6.2vw, 76px); line-height: 1.08; letter-spacing: -.5px;
  max-width: 16ch;
}
.hero-title .accent {
  background: linear-gradient(100deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 26px 0 38px; font-size: 19px; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid rgba(10,42,94,.3); border-radius: 14px; z-index: 2;
}
.hero-scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--blue); border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translateY(0)} 35%{opacity:1} 100%{opacity:0;transform:translateY(14px)} }

/* ============ Buttons ============ */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15.5px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-accent {
  background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: var(--white);
  box-shadow: 0 10px 30px rgba(29,95,209,.35);
}
.btn-accent:hover { box-shadow: 0 16px 40px rgba(29,95,209,.5); }
.btn-ghost { border: 1px solid rgba(10,42,94,.35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { box-shadow: 0 14px 32px rgba(10,42,94,.3); }
.btn-lg { padding: 18px 40px; font-size: 17px; }

/* ============ Stats ============ */
.stats { background: var(--ink-2); color: var(--white); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--font-serif); font-size: 44px; font-weight: 700;
  color: var(--blue-light);
}
.stat-label { font-size: 13.5px; color: rgba(255,255,255,.65); letter-spacing: .4px; }

/* ============ Sections ============ */
.section { padding: 110px 0; position: relative; }
.section-kicker {
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue); font-weight: 700; margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-serif); font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600; line-height: 1.12; letter-spacing: -.4px; margin-bottom: 18px;
}
.section-sub { color: var(--muted); font-size: 18px; max-width: 60ch; margin-bottom: 26px; }
.section-dark { background: linear-gradient(160deg, var(--ink) 0%, #061a3d 100%); color: var(--white); overflow: hidden; }
.section-dark .section-sub { color: rgba(255,255,255,.7); }
.section-tint { background: #eef3fb; }
#ribbonCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.section-dark .container { position: relative; z-index: 2; }

/* ============ Cards (3D tilt) ============ */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px;
  perspective: 1200px;
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px;
  transform-style: preserve-3d;
  transition: box-shadow .35s ease;
  will-change: transform;
}
.card:hover { box-shadow: 0 30px 60px rgba(10,42,94,.14); }
.card-icon {
  font-size: 30px; width: 62px; height: 62px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(29,95,209,.14), rgba(29,95,209,.04));
  border: 1px solid rgba(29,95,209,.3); border-radius: 16px; margin-bottom: 22px;
  transform: translateZ(40px);
}
.card h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 10px; transform: translateZ(30px); }
.card p { color: var(--muted); font-size: 15.5px; transform: translateZ(20px); }

/* ============ About / founder ============ */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.founder-note {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; text-align: center;
  box-shadow: 0 24px 50px rgba(10,42,94,.08);
}
.founder-photo {
  width: 168px; height: 168px; object-fit: cover; border-radius: 50%;
  border: 4px solid #e3ecf9; margin-bottom: 18px;
}
.founder-note h3 { font-family: var(--font-serif); font-size: 23px; }
.founder-creds { color: var(--blue); font-size: 14px; font-weight: 600; margin: 6px 0 16px; }
.founder-quote { font-family: var(--font-serif); font-size: 17px; color: var(--muted); line-height: 1.55; }

/* ============ Service details (accordion) ============ */
.svc-details { margin-top: 16px; transform: translateZ(15px); }
.svc-details summary {
  cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--blue);
  list-style: none; display: inline-flex; align-items: center; gap: 7px;
}
.svc-details summary::-webkit-details-marker { display: none; }
.svc-details summary::after { content: "+"; font-size: 17px; transition: transform .25s; }
.svc-details[open] summary::after { transform: rotate(45deg); }
.svc-details ul { margin: 12px 0 0; padding-left: 18px; }
.svc-details li { font-size: 14.5px; color: var(--muted); margin-bottom: 7px; }

/* ============ People ============ */
.people-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px;
  perspective: 1200px;
}
.vm-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 50px;
}
.vm-grid .card p { font-size: 16.5px; line-height: 1.7; }
.team-photo { margin: 50px 0 10px; }
.team-photo img {
  width: 100%; border-radius: var(--radius); display: block;
  box-shadow: 0 30px 60px rgba(10,42,94,.16);
}
.team-photo figcaption {
  text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px;
}
.person-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .35s ease;
}
.person-card:hover { box-shadow: 0 30px 60px rgba(10,42,94,.14); }
.person-card img {
  width: 120px; height: 120px; object-fit: cover; border-radius: 50%;
  border: 4px solid #e3ecf9; margin-bottom: 16px; transform: translateZ(35px);
}
.person-card h3 { font-family: var(--font-serif); font-size: 19px; transform: translateZ(25px); }
.person-role { color: var(--blue); font-size: 13.5px; font-weight: 600; margin: 4px 0 10px; }
.person-bio { color: var(--muted); font-size: 14px; line-height: 1.55; }
.person-card.founder { border-color: rgba(29,95,209,.35); box-shadow: 0 18px 40px rgba(29,95,209,.12); }
.person-card.founder img { width: 140px; height: 140px; }

/* ============ Contact details ============ */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin: 44px 0; text-align: left;
}
.contact-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 26px 24px;
}
.contact-card h3 { font-family: var(--font-serif); font-size: 19px; margin-bottom: 10px; color: var(--blue-light); }
.contact-card p { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.7; }
.contact-card a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact-card a:hover { color: var(--blue-light); border-color: var(--blue-light); }

/* ============ Card links (services / people) ============ */
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
a.card-link, a.person-card { text-decoration: none; color: inherit; display: block; }
.card-more {
  display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px;
  color: var(--blue); transform: translateZ(15px);
}
.people-row-title {
  font-family: var(--font-serif); font-size: 23px; font-weight: 600;
  margin: 56px 0 0; color: var(--ink);
}
.people-grid-2 { grid-template-columns: 1fr 1fr; max-width: 860px; margin-inline: auto; }

/* ============ Services detail page ============ */
.svc-toc {
  display: flex; flex-wrap: wrap; gap: 10px; padding-top: 34px;
}
.svc-toc a {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); text-decoration: none; color: var(--ink);
  font-size: 14px; font-weight: 500; transition: border-color .2s, color .2s;
}
.svc-toc a:hover { border-color: var(--blue); color: var(--blue); }
.svc-main { max-width: 860px; }
.svc-detail { padding: 64px 0 10px; scroll-margin-top: 90px; }
.svc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.svc-emoji {
  font-size: 26px; width: 58px; height: 58px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(29,95,209,.14), rgba(29,95,209,.04));
  border: 1px solid rgba(29,95,209,.3); border-radius: 14px;
}
.svc-detail h2 { font-family: var(--font-serif); font-size: 32px; }
.svc-detail h3 {
  font-family: var(--font-serif); font-size: 20px; margin: 26px 0 10px; color: var(--ink);
}
.svc-detail p, .svc-detail li { font-size: 16.5px; color: #2c3648; line-height: 1.7; }
.svc-detail ul { padding-left: 1.3em; }
.svc-detail li { margin-bottom: 8px; }
.svc-usp {
  margin-top: 24px; padding: 22px 26px; background: #eef3fb;
  border-left: 4px solid var(--blue); border-radius: 0 14px 14px 0;
  font-size: 16px; color: #2c3648; line-height: 1.7;
}

/* ============ Team profiles page ============ */
.profile {
  display: grid; grid-template-columns: 280px 1fr; gap: 44px;
  padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px;
}
.profile:last-of-type { border-bottom: 0; }
.profile-side { text-align: center; }
.profile-side img {
  width: 200px; height: 200px; object-fit: cover; border-radius: 50%;
  border: 5px solid #e3ecf9; margin-bottom: 18px;
  box-shadow: 0 18px 40px rgba(10,42,94,.14);
}
.profile-side h2 { font-family: var(--font-serif); font-size: 23px; line-height: 1.25; }
.profile-creds { color: var(--muted); font-size: 14px; margin-top: 6px; }
.profile-body p { font-size: 16.5px; color: #2c3648; line-height: 1.75; margin-bottom: 1em; }

/* ============ Contact form ============ */
.contact-form {
  max-width: 720px; margin: 10px auto 0; text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 15px 18px; margin-bottom: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px; color: var(--white); font-family: var(--font-sans);
  font-size: 15.5px; outline: none; transition: border-color .2s, background .2s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.5); }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--blue-light); background: rgba(255,255,255,.1);
}
.contact-form textarea { resize: vertical; }
.contact-form button { width: 100%; border: 0; cursor: pointer; font-family: var(--font-sans); }
.contact-form .honey { display: none; }
.form-note { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.55); text-align: center; }

/* ============ Industries ============ */
.industries-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.pill {
  padding: 13px 26px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  font-size: 15px; color: rgba(255,255,255,.85);
  transition: border-color .25s, background .25s, transform .25s;
  cursor: default;
}
.pill:hover { border-color: var(--blue); background: rgba(29,95,209,.12); transform: translateY(-3px); }

/* ============ Approach ============ */
.approach-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.approach-list { list-style: none; counter-reset: step; }
.approach-list li {
  counter-increment: step; position: relative;
  padding: 26px 0 26px 78px; border-bottom: 1px solid var(--line);
  font-size: 17px; color: var(--muted);
}
.approach-list li strong { color: var(--ink); display: block; font-size: 19px; margin-bottom: 4px; }
.approach-list li::before {
  content: "0" counter(step);
  position: absolute; left: 0; top: 26px;
  font-family: var(--font-serif); font-size: 34px; font-weight: 700; color: var(--blue);
}

/* ============ Blog ============ */
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; text-decoration: none; display: block;
  transition: transform .3s ease, box-shadow .3s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10,42,94,.12); }
.post-card .post-date { font-size: 13px; color: var(--blue); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.post-card h3 { font-family: var(--font-serif); font-size: 21px; margin: 10px 0 8px; line-height: 1.3; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .post-more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14.5px; color: var(--ink); }

/* Blog page hero */
.page-hero {
  background: radial-gradient(120% 140% at 70% 0%, #123c85 0%, var(--ink) 60%);
  color: var(--white); padding: 170px 0 90px; position: relative; overflow: hidden;
}
.page-hero .section-title { margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 18px; }

/* Single post */
.post-body { max-width: 760px; margin: 0 auto; padding: 70px 0 110px; }
.post-body h1, .post-body h2, .post-body h3 { font-family: var(--font-serif); line-height: 1.25; margin: 1.6em 0 .6em; }
.post-body h1 { font-size: 40px; margin-top: 0; }
.post-body h2 { font-size: 29px; }
.post-body p, .post-body li { font-size: 17.5px; color: #2c3648; margin-bottom: 1em; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.post-body blockquote {
  border-left: 4px solid var(--blue); padding: 8px 0 8px 24px; margin: 1.6em 0;
  font-family: var(--font-serif); font-size: 21px; color: var(--ink);
}
.post-body code { background: #e3ecf9; padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.post-meta { color: var(--muted); font-size: 14.5px; margin-bottom: 2em; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--blue); font-weight: 600; text-decoration: none; }

/* ============ Contact / Footer ============ */
.contact { padding: 130px 0; }
.site-footer { background: #061a3d; color: rgba(255,255,255,.55); padding: 34px 0; font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--blue-light); }

/* ============ Reveal animations ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr 1fr; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .profile-side { text-align: left; }
  .vm-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .approach-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .people-grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0; background: rgba(255,255,255,.98);
    flex-direction: column; justify-content: center; gap: 34px;
    transform: translateX(100%); transition: transform .35s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 22px; }
  .nav-toggle { position: relative; z-index: 101; }
  .brand { position: relative; z-index: 101; }
  .hero-sub { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
