/* ==========================================================================
   Tarun Gahlot Law Offices, site.css
   Palette sampled from the brand assets (#5b564d).
   Type: Source Serif 4 for headings, Source Sans 3 for everything read at length.
   ========================================================================== */

:root {
  --taupe:      #5b564d;
  --taupe-deep: #3c3933;
  --taupe-dark: #2b2925;
  --taupe-mid:  #6d675c;
  --paper:      #f7f5f1;
  --paper-2:    #ede9e2;
  --line:       #d8d3c9;
  --line-dark:  #514c44;
  --text:       #33302a;
  --text-mu:    #625d54;
  --on-dark:    #f4f2ee;
  --on-dark-mu: #c6c0b5;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --stack: clamp(3.5rem, 7vw, 6.5rem);

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans:  "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Body copy is sans: it stays legible at small sizes and on low-res screens,
   which a display serif does not. */
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, .97rem + .18vw, 1.09rem);
  line-height: 1.68;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }
.band--dark :focus-visible, .band--deep :focus-visible,
.hero :focus-visible, .foot :focus-visible { outline-color: var(--paper); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--paper); color: var(--taupe-deep);
  padding: .75rem 1.25rem; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: min(1180px, 100% - (var(--gutter) * 2)); margin-inline: auto; }
.wrap--narrow { width: min(720px, 100% - (var(--gutter) * 2)); margin-inline: auto; }

.band { padding-block: var(--stack); }
.band--soft { background: var(--paper-2); }
.band--dark { background: var(--taupe); color: var(--on-dark); position: relative; overflow: hidden; }
.band--deep { background: var(--taupe-deep); color: var(--on-dark); position: relative; overflow: hidden; }

/* One large instance of the jali motif rather than a tiled repeat, so there
   are no seams where the artwork fails to meet itself. */
.band--dark::before, .band--deep::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/pattern-white.png") no-repeat center / cover;
  opacity: .055; pointer-events: none;
}
.band--dark > *, .band--deep > * { position: relative; }

.center { text-align: center; }
.center .actions { justify-content: center; }
.center p { margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 600; line-height: 1.15;
  margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.008em;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: clamp(1.06rem, 1rem + .45vw, 1.24rem); line-height: 1.58; }

.label {
  font-size: .72rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; margin: 0 0 1.1rem; color: var(--taupe-mid);
}
.band--dark .label, .band--deep .label, .hero .label { color: var(--on-dark-mu); }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 60; background: var(--taupe-deep); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .8rem; }
.mark { display: block; flex-shrink: 0; }
.mark img { width: clamp(175px, 23vw, 240px); height: auto; }

.nav ul { display: flex; align-items: center; gap: clamp(.85rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: .78rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; color: var(--on-dark-mu); padding-block: .45rem;
  border-bottom: 1px solid transparent; transition: color .18s ease, border-color .18s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--on-dark); }

.nav__toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--on-dark);
  font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; padding: .55rem .9rem; cursor: pointer;
}
@media (max-width: 940px) {
  .nav__toggle { display: block; }
  .masthead__inner { position: relative; }
  .nav { position: absolute; inset: 100% calc(var(--gutter) * -1) auto; background: var(--taupe-deep); display: none; }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .25rem var(--gutter) 1.25rem; }
  .nav a { display: block; padding-block: .9rem; border-bottom: 1px solid var(--line-dark); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--on-dark);
  display: grid; place-items: center;
  min-height: clamp(430px, 66vh, 640px);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--taupe-deep); overflow: hidden; text-align: center;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,36,32,.66) 0%, rgba(38,36,32,.74) 50%, rgba(60,57,51,.88) 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 20ch; margin-inline: auto; margin-bottom: 0; }
.hero__lede { max-width: 56ch; margin: 1.5rem auto 0; color: var(--on-dark-mu); }
.hero .actions { justify-content: center; }

.hero--page { min-height: clamp(260px, 38vh, 380px); }
.hero--page h1 { max-width: 24ch; }

.credentials {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 2.2rem;
  list-style: none; margin: 2.2rem 0 0; padding: 0;
  font-size: .74rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--on-dark-mu);
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-block; font: inherit; font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: .95rem 1.75rem; border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--light { background: var(--paper); color: var(--taupe-deep); }
.btn--light:hover { background: #fff; }
.btn--outline { border-color: rgba(244,242,238,.45); color: var(--on-dark); }
.btn--outline:hover { border-color: var(--on-dark); background: rgba(244,242,238,.1); }
.btn--dark { background: var(--taupe); color: var(--paper); }
.btn--dark:hover { background: var(--taupe-deep); }
.btn--dark-outline { border-color: var(--taupe); color: var(--taupe); }
.btn--dark-outline:hover { background: var(--taupe); color: var(--paper); }

/* ---------- Section heads ---------- */
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 62ch; }
.sec-head h2 { margin-bottom: .28em; }
.sec-head p { color: var(--text-mu); margin: 0; }
.band--dark .sec-head p, .band--deep .sec-head p { color: var(--on-dark-mu); }
.sec-head.center { margin-inline: auto; }

/* ==========================================================================
   Expandable practice grid: four per row, panel opens beneath its own row
   ========================================================================== */
.pgrid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.band--dark .pgrid, .band--deep .pgrid { background: var(--line-dark); border-color: var(--line-dark); }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .pgrid { grid-template-columns: 1fr; } }

.pcard {
  background: var(--paper); border: 0; margin: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: .85rem; padding: 2rem 1.1rem;
  transition: background-color .18s ease;
}
.band--dark .pcard, .band--deep .pcard { background: var(--taupe); }
.pcard:hover { background: var(--paper-2); }
.band--dark .pcard:hover, .band--deep .pcard:hover { background: var(--taupe-deep); }
.pcard[aria-expanded="true"] { background: var(--taupe); color: var(--on-dark); }
.pcard[aria-expanded="true"] .pcard__icon { filter: brightness(0) invert(1); }
.pcard__icon { width: 58px; height: 58px; }
.pcard__title { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; line-height: 1.45; margin: 0; font-family: var(--sans); }
.pcard__more { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--taupe-mid); margin: 0; }
.pcard[aria-expanded="true"] .pcard__more, .band--dark .pcard__more { color: var(--on-dark-mu); }

.ppanel {
  grid-column: 1 / -1; background: var(--taupe-deep); color: var(--on-dark);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.ppanel[hidden] { display: none; }
.ppanel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; }
.ppanel h3 { margin: 0; color: var(--on-dark); }
.ppanel p { color: var(--on-dark-mu); max-width: 78ch; }
.ppanel p:last-child { margin-bottom: 0; }
.ppanel__close {
  background: none; border: 1px solid var(--line-dark); color: var(--on-dark);
  font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: .45rem .8rem; cursor: pointer; flex-shrink: 0;
}
.ppanel__close:hover { border-color: var(--on-dark); }

/* Without JavaScript every description is simply visible. */
.pcard__body { display: none; }
.no-js .pcard__body { display: block; text-align: left; font-size: .93rem; color: var(--text-mu); }
.no-js .pcard { cursor: default; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative; font-family: var(--serif); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--taupe-mid); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--taupe); }
.faq__body { padding: 0 2.5rem 1.4rem 0; }
.faq__body p { margin: 0; color: var(--text-mu); }

/* ==========================================================================
   About page: alternating image and text
   ========================================================================== */
.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 5vw, 4rem); align-items: center;
}
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split--flip .split__media { order: 2; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

.quote {
  font-family: var(--serif); font-size: clamp(1.35rem, 1.05rem + 1.5vw, 2.15rem);
  line-height: 1.35; font-weight: 400; margin: 0 auto; max-width: 24ch;
  text-align: center; text-wrap: balance;
}
.quote__attrib { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-top: 1.8rem; color: var(--on-dark-mu); }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1.5rem, 3.5vw, 2.75rem); }
.pillars__item { border-top: 2px solid var(--taupe); padding-top: 1.15rem; }
.band--dark .pillars__item, .band--deep .pillars__item { border-top-color: var(--on-dark-mu); }
.pillars__item h3 { margin-bottom: .4rem; }
.pillars__item p { margin: 0; color: var(--text-mu); font-size: .96rem; }
.band--dark .pillars__item p, .band--deep .pillars__item p { color: var(--on-dark-mu); }

/* ---------- Leadership ---------- */
.figure-row {
  display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: clamp(1.8rem, 4.5vw, 3.75rem); align-items: start;
}
@media (max-width: 820px) { .figure-row { grid-template-columns: 1fr; } }

.portrait { width: 100%; border: 1px solid var(--line); background: var(--paper-2); }

.person__role { font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe-mid); margin: 0 0 .5rem; }

/* Contact block that sits directly under the portrait */
.vcard { margin-top: 1.35rem; border-top: 1px solid var(--line); padding-top: 1.15rem; font-size: .94rem; }
.vcard h2, .vcard .vcard__name {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  letter-spacing: .01em; margin: 0 0 .15rem; text-transform: uppercase;
}
.vcard__title { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe-mid); margin: 0 0 1rem; }
.vcard dl { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .45rem .5rem; margin: 0; }
.vcard dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe-mid); padding-top: .18rem; }
.vcard dd { margin: 0; }
.vcard dd address { font-style: normal; }
.vcard a { text-decoration: none; border-bottom: 1px solid var(--line); }
.vcard a:hover { border-bottom-color: var(--taupe); }
.vcard__social { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.15rem; text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.vcard__social img { width: 22px; height: 22px; }
.vcard__social:hover { color: var(--taupe); }

/* ---------- Affiliation card (BNG Partners) ---------- */
.affil {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem; border: 1px solid var(--line); border-left: 3px solid var(--taupe);
  padding: 1.4rem 1.6rem; background: var(--paper);
}
.band--dark .affil, .band--deep .affil { background: transparent; border-color: var(--line-dark); border-left-color: var(--on-dark); }
.affil p { margin: 0; max-width: 60ch; }
.affil__kicker { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe-mid); margin: 0 0 .3rem; }
.band--dark .affil__kicker, .band--deep .affil__kicker { color: var(--on-dark-mu); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(1.6rem, 4vw, 3rem); }
.contact-grid h3 { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-mu); margin-bottom: .7rem; }
.contact-grid p, .contact-grid address { font-style: normal; margin: 0 auto; max-width: 32ch; }
.contact-grid a { text-decoration: none; border-bottom: 1px solid rgba(244,242,238,.35); }
.contact-grid a:hover { border-bottom-color: var(--on-dark); }

/* ---------- Prose ---------- */
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.15rem; max-width: var(--measure); }
.prose li { margin-bottom: .45em; }

.crumbs { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-mu); margin: 0 0 1.2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); }

/* ---------- Footer ---------- */
.foot { background: var(--taupe-dark); color: var(--on-dark-mu); font-size: .87rem; padding-block: 3rem 1.9rem; }
.foot__logo { width: 170px; margin-bottom: 1.4rem; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line-dark); }
.foot h2 { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark); margin-bottom: .85rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .45rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-dark); }
.foot address { font-style: normal; line-height: 1.7; }
.foot__affil { padding: 1.5rem 0; border-bottom: 1px solid var(--line-dark); font-size: .84rem; }
.foot__affil strong { color: var(--on-dark); font-weight: 600; }
.foot__affil a { border-bottom: 1px solid var(--line-dark); }
.foot__affil a:hover { border-bottom-color: var(--on-dark); }
.foot__base { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; padding-top: 1.4rem; font-size: .78rem; }
.foot__base p { margin: 0; max-width: none; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--on-dark); }

/* ==========================================================================
   Disclaimer gate, Bar Council of India notice
   ========================================================================== */
.gate { position: fixed; inset: 0; z-index: 300; background: rgba(28,26,23,.94); display: grid; place-items: center; padding: var(--gutter); overflow-y: auto; }
.gate[hidden] { display: none; }
.gate__panel { background: var(--paper); width: min(660px, 100%); margin-block: auto; border-top: 4px solid var(--taupe); padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.gate__logo { width: 145px; margin-bottom: 1.5rem; }
.gate__kicker { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-mid); margin: 0 0 .6rem; }
.gate__panel h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: .55em; }
.gate__panel p, .gate__panel ul { font-size: .94rem; line-height: 1.6; max-width: none; }
.gate__panel ul { padding-left: 1.1rem; margin: 0 0 1.1em; }
.gate__panel li { margin-bottom: .4em; }
.gate__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.gate__decline { background: none; border: 1px solid var(--line); color: var(--text-mu); }
.gate__decline:hover { border-color: var(--taupe); color: var(--taupe); }
