/* ============================================================
   Shanti Ved & Associates LLP — styles
   Hand-crafted, zero-dependency. Fonts are self-hosted (latin
   subsets) so the page makes no third-party requests.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/fraunces-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/fraunces-italic-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-var.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --bg: #faf9f6;
  --bg-tint: #f3f1ec;
  --surface: #ffffff;
  --ink: #131c3a;
  --ink-deep: #0d1430;
  --muted: #5b6078;
  --hairline: #e5e2d9;
  --accent: #0e8f60;
  --accent-ink: #0b7350;
  --indigo: #2e3192;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --container: 1120px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 450;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(14, 143, 96, 0.18); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.375rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }

h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn-solid {
  background: var(--ink-deep);
  color: #fff;
  box-shadow: 0 1px 2px rgba(13, 20, 48, 0.2);
}
.btn-solid:hover {
  background: var(--indigo);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(46, 49, 146, 0.45);
}

.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--ink-deep);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 249, 246, 0.92);
  border-bottom-color: var(--hairline);
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-right: auto;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  background: var(--ink-deep);
  color: #f5f3ec;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
}

.brand-name { line-height: 1.25; min-width: 0; }
.brand-title {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-llp { color: var(--muted); }
.brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.site-nav {
  display: flex;
  gap: 1.9rem;
}
.site-nav a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
  padding-block: 0.3rem;
  transition: color 0.25s var(--ease);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover { color: var(--ink-deep); }
.site-nav a.is-active { color: var(--ink-deep); }
.site-nav a.is-active::after { transform: scaleX(1); }

.header-cta { padding: 0.65rem 1.35rem; font-size: 0.88rem; }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-line {
  height: 2px;
  width: 100%;
  background: var(--ink-deep);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-line:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-line:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 40;
  background: rgba(250, 249, 246, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 1rem clamp(1.25rem, 5vw, 2.5rem) 1.75rem;
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-deep);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 960px);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(46, 49, 146, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(14, 143, 96, 0.06), transparent 60%),
    var(--bg);
}

.hero-ornament {
  position: absolute;
  top: 50%;
  right: max(-160px, calc(50% - 800px));
  width: clamp(420px, 46vw, 640px);
  translate: 0 -50%;
  color: rgba(19, 28, 58, 0.08);
  animation: ornament-spin 90s linear infinite;
}
@keyframes ornament-spin {
  to { transform: rotate(360deg); }
}

.hero-inner {
  position: relative;
  padding-block: clamp(4rem, 10vh, 7rem);
  max-width: min(46rem, 100%);
  margin-inline: 0;
  margin-left: max(calc((100% - var(--container)) / 2), 0px);
}

.hero h1 { margin: 1.4rem 0 1.6rem; }

.hero-lede {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  list-style: none;
  margin-top: 3.2rem;
}
.hero-credentials li {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue-drop 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}
.scroll-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 12vh, 8.5rem); }
.section-tinted { background: var(--bg-tint); }

.section-head { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.section-head h2 { margin-top: 1.1rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-copy p + p { margin-top: 1.25rem; }
.about-copy { color: var(--muted); font-size: 1.09rem; }
.about-copy p::first-letter { color: var(--ink); }

.principles { list-style: none; display: grid; gap: 1.4rem; }
.principles li {
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.principles li:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 143, 96, 0.4);
  box-shadow: 0 16px 32px -18px rgba(13, 20, 48, 0.25);
}
.principles h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-deep);
  margin-bottom: 0.35rem;
}
.principles p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  position: relative;
  padding: 2rem 1.75rem 1.9rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--indigo));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 24px 48px -20px rgba(13, 20, 48, 0.28);
}
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--accent-ink);
}
.service-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--ink-deep);
  margin: 0.7rem 0 0.65rem;
  text-wrap: balance;
}
.service-card p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Partners ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.partner-card {
  padding: 2.4rem 2.2rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -22px rgba(13, 20, 48, 0.25);
}

.partner-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink-deep), var(--indigo));
  color: #f5f3ec;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 1.4rem;
}

.partner-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--ink-deep);
}
.partner-quals {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-top: 0.3rem;
}
.partner-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.55rem;
}
.partner-bio {
  font-size: 0.97rem;
  color: var(--muted);
  margin-top: 1rem;
}
.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.partner-link:hover { border-bottom-color: var(--accent-ink); }

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(46, 49, 146, 0.06), transparent 60%),
    var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-intro h2 { margin: 1.1rem 0 1.2rem; }
.contact-intro p { color: var(--muted); max-width: 26rem; }

.contact-details {
  display: grid;
  gap: 0;
}
.contact-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.contact-row:first-child { padding-top: 0.4rem; }
.contact-row h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-top: 0.3rem;
}
.contact-body { min-width: 0; }
.contact-row p { color: var(--ink); }
.contact-row p + p { margin-top: 0.3rem; }
.contact-row a {
  font-weight: 600;
  color: var(--ink-deep);
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.contact-row a:hover {
  color: var(--accent-ink);
  border-bottom-color: var(--accent-ink);
}
.contact-note {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(245, 243, 236, 0.85);
  padding-block: 3.2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-right: auto;
}
.brand-mark-footer {
  background: rgba(245, 243, 236, 0.1);
  border: 1px solid rgba(245, 243, 236, 0.2);
}
.footer-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: #f5f3ec;
}
.footer-sub {
  font-size: 0.8rem;
  color: rgba(245, 243, 236, 0.6);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(245, 243, 236, 0.75);
  transition: color 0.25s var(--ease);
}
.footer-nav a:hover { color: #fff; }

.footer-copy {
  width: 100%;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(245, 243, 236, 0.14);
  font-size: 0.82rem;
  color: rgba(245, 243, 236, 0.55);
}

/* ---------- Reveal animations ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .about-grid,
  .partners-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero-inner { margin-left: 0; }
  .hero-ornament { right: -30vw; opacity: 0.7; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .brand-sub { display: none; }
  .brand-title { font-size: 0.92rem; }
  .brand-mark { width: 38px; height: 38px; font-size: 0.95rem; }
  .scroll-cue { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-ornament { animation: none; }
  .scroll-line { animation: none; }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
