/* =========================================================
   Surte & Co. Advocates — brand stylesheet
   Palette : burgundy #55000B / cream #FFF8EC / gold #D3B57A
             grey #D4D4D4 / near-black #16130F
   Type    : Tiro Devanagari Marathi (display) · Manrope (text)
   ========================================================= */

:root {
  --burgundy: #55000B;
  --burgundy-deep: #430009;
  --cream: #FFF8EC;
  --cream-soft: #F6EEDF;
  --gold: #D3B57A;
  --gold-soft: #E4D2AC;
  --grey: #D4D4D4;
  --ink: #16130F;
  --ink-soft: #4a443c;

  --display: "Tiro Devanagari Marathi", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --hair: rgba(22, 19, 15, 0.14);
  --hair-gold: rgba(211, 181, 122, 0.55);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.has-disclaimer, html.has-disclaimer body { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* visible focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before { content: "§"; font-family: var(--display); font-size: 1.05rem; letter-spacing: 0; color: var(--gold); }

.page-title { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 3.6rem); margin-bottom: 0.4rem; }
.lead { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); line-height: 1.55; color: var(--ink); max-width: 60ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--hair);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: clamp(150px, 20vw, 190px); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.site-nav a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: 0.4rem 0; position: relative; white-space: nowrap;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--gold); transition: right 0.28s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--burgundy); }

.nav-toggle { display: none; }

/* ---------- hero (home) ---------- */
.hero {
  background: radial-gradient(120% 120% at 50% 0%, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  color: var(--cream);
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  min-height: 56vh;
  display: grid;
  place-content: center;
  gap: 2.4rem;
}
.hero-logo { width: min(440px, 82vw); margin-inline: auto; }
.hero-mark { display: grid; place-items: center; gap: 1.1rem; }
.hero-rule { width: 64px; height: 1px; background: var(--gold-soft); margin-inline: auto; }
.hero-sign { font-family: var(--display); font-size: 1.5rem; color: var(--gold); line-height: 1; }

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
/* first section on interior pages: lighter top padding so content is reachable sooner */
main > .section:first-child { padding-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.section + .section { border-top: 1px solid var(--hair); }
.section-intro { max-width: 62ch; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.band-burgundy { background: var(--burgundy); color: var(--cream); }
.band-burgundy .eyebrow, .band-burgundy .eyebrow::before { color: var(--gold-soft); }
.band-burgundy .lead { color: var(--cream); }

/* intro on home */
.intro-statement { font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.35rem); line-height: 1.3; max-width: 26ch; }
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px){ .intro-grid { grid-template-columns: 1fr; gap: 2.2rem; } }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
@media (max-width: 760px){ .tiles { grid-template-columns: 1fr; } }
.tile {
  background: var(--cream); padding: clamp(1rem, 2vw, 1.4rem); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 0.15rem; transition: background 0.25s ease;
}
.tile:hover { background: var(--cream-soft); }
.tile-index { font-family: var(--display); color: var(--gold); font-size: 1.2rem; }
.tile h3 { font-size: 1.45rem; }
.tile p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.tile-more { margin-top: 0.2rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--burgundy); }

/* ---------- people ---------- */
.people-group { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.people-group:first-of-type { margin-top: 0; }
.group-label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--burgundy); padding-bottom: 0.7rem; border-bottom: 1px solid var(--hair-gold); margin-bottom: 1.8rem;
}
.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 720px){ .people-grid { grid-template-columns: 1fr; } }
.person { border: 1px solid var(--hair); background: var(--cream); padding: clamp(1.4rem, 2.6vw, 1.9rem); }
.person-name { font-family: var(--display); font-size: 1.5rem; margin-bottom: 0.2rem; }
.person-role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.person dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 0.92rem; }
.person dt { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.person dd { margin: 0; }
.person-bio { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hair); font-size: 0.95rem; color: var(--ink-soft); }
.person-founder { grid-column: 1 / -1; background: var(--burgundy); color: var(--cream); border-color: transparent; }
.person-founder .person-name { color: var(--cream); }
.person-founder .person-role { color: var(--gold-soft); }
.person-founder .person-bio { border-top-color: rgba(255,248,236,0.2); color: var(--cream); }
.person-note { grid-column: 1 / -1; font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

/* ---------- practice areas ---------- */
.practice-list { display: grid; gap: 1px; background: var(--hair); border-block: 1px solid var(--hair); }
.practice-item { background: var(--cream); padding: clamp(1.8rem, 4vw, 2.8rem) 0; }
.practice-item .wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 760px){ .practice-item .wrap { grid-template-columns: 1fr; gap: 0.8rem; } }
.practice-name { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); display: flex; gap: 0.7rem; align-items: baseline; }
.practice-name::before { content: "§"; color: var(--gold); font-size: 0.85em; }
.practice-desc { color: var(--ink-soft); margin: 0; text-align: justify; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact-line { margin: 0 0 1.4rem; }
.contact-line .label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.contact-line a { color: var(--burgundy); text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.map-frame { border: 1px solid var(--hair); background: var(--cream-soft); aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; color: var(--ink-soft); font-size: 0.9rem; padding: 1.5rem; }

/* ---------- form ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--hair); padding: 0.75rem 0.85rem; border-radius: 2px;
}
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); }
.consent input { margin-top: 0.25rem; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 1.6rem; border-radius: 2px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--burgundy); color: var(--cream); }
.btn-primary:hover { background: var(--burgundy-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { border-color: var(--burgundy); color: var(--burgundy); }
.btn-onlight { align-self: start; }

/* ---------- footer ---------- */
.site-footer { background: var(--burgundy); color: var(--cream); margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 720px){ .footer-inner { grid-template-columns: 1fr; text-align: left; gap: 1.6rem; } }
.footer-monogram { width: 84px; }
.footer-meta { font-size: 0.9rem; line-height: 1.6; color: var(--gold-soft); }
.footer-name { font-family: var(--display); font-size: 1.25rem; color: var(--cream); margin-bottom: 0.3rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
.footer-note { border-top: 1px solid rgba(255,248,236,0.16); padding-block: 1.3rem 1.6rem; }
.footer-note p { font-size: 0.78rem; color: var(--gold-soft); margin: 0; max-width: 90ch; }
.footer-note a { color: var(--cream); }

/* ---------- disclaimer modal ---------- */
.disclaimer-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(24, 8, 12, 0.82);
  backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: var(--gutter);
}
html.disclaimer-accepted .disclaimer-overlay { display: none; }
.disclaimer-box {
  background: var(--cream); color: var(--ink); max-width: 640px; width: 100%;
  padding: clamp(1.8rem, 5vw, 3rem); border-top: 3px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45); max-height: 90vh; overflow-y: auto;
}
.disclaimer-mark { font-family: var(--display); font-size: 2.2rem; color: var(--gold); line-height: 1; margin-bottom: 0.6rem; }
.disclaimer-box h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.disclaimer-text p { font-size: 0.95rem; color: var(--ink-soft); }
.disclaimer-actions { display: flex; gap: 0.8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.disclaimer-declined { margin-top: 1.2rem; font-weight: 600; color: var(--burgundy); }

/* ---------- reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- mobile nav ---------- */
@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: transparent; border: 1px solid var(--hair); border-radius: 3px; cursor: pointer;
    padding: 0 10px;
  }
  .nav-toggle span { height: 2px; background: var(--burgundy); transition: transform 0.25s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--hair);
    padding: 0.5rem var(--gutter) 1.2rem; transform: translateY(-120%); transition: transform 0.3s ease; z-index: 39;
  }
  .site-nav.open { transform: translateY(0); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
  .site-nav a { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--hair); font-size: 0.95rem; }
  .site-nav a::after { display: none; }
}

/* =========================================================
   People — clickable team tiles + profile detail pages
   ========================================================= */

/* photo placeholder (initials) */
.photo-ph {
  display: grid; place-items: center; background: var(--cream-soft);
  border: 1px solid var(--hair); color: var(--burgundy);
  font-family: var(--display); line-height: 1; letter-spacing: 0.02em;
  aspect-ratio: 4 / 5; width: 100%; overflow: hidden;
}
.photo-ph img { width: 100%; height: 100%; object-fit: cover; }

/* team tiles */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 248px)); gap: 1.3rem; justify-content: start; }
@media (max-width: 460px){ .team-grid { grid-template-columns: 1fr; } }
/* partners: justified to the full width of the founder rectangle */
.team-grid.is-justify { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px){ .team-grid.is-justify { grid-template-columns: 1fr; } }
/* founder: full width of the container */
.team-grid.is-full { grid-template-columns: 1fr; }
/* consultants and support: centred */
.team-grid.is-center { grid-template-columns: repeat(auto-fit, 248px); justify-content: center; }
@media (max-width: 520px){ .team-grid.is-center { grid-template-columns: minmax(0, 280px); justify-content: center; } }
.team-card {
  display: flex; flex-direction: column; gap: 0; text-align: center; text-decoration: none; color: var(--ink);
  border: 1px solid var(--hair); background: var(--cream); transition: border-color 0.25s ease, transform 0.25s ease;
}
.team-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.team-card .photo-ph { width: 148px; margin: 1.3rem auto 1rem; border: 1px solid var(--hair); font-size: 1.9rem; }
.team-text { padding: 0 1rem 1.4rem; }
.team-name { font-family: var(--display); font-size: 1.2rem; line-height: 1.2; }
.team-role { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 0.35rem; }
.team-arrow { display: block; margin-top: 0.8rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--burgundy); }

/* founder highlight tile (full width, burgundy) */
.team-founder {
  grid-column: 1 / -1; display: grid; grid-template-columns: 190px 1fr; gap: 0; align-items: stretch;
  background: var(--burgundy); border-color: transparent; color: var(--cream); text-align: left;
}
@media (max-width: 560px){ .team-founder { grid-template-columns: 1fr; } }
.team-founder .photo-ph { width: auto; margin: 0; background: var(--burgundy-deep); color: var(--gold-soft); border: 0; border-right: 1px solid rgba(255,248,236,0.15); aspect-ratio: auto; min-height: 220px; }
@media (max-width: 560px){ .team-founder .photo-ph { border-right: 0; border-bottom: 1px solid rgba(255,248,236,0.15); min-height: 220px; } }
.team-founder .team-text { align-self: center; padding: 1.4rem 1.6rem; }
.team-founder .team-name { color: var(--cream); font-size: 1.5rem; }
.team-founder .team-role { color: var(--gold-soft); }
.team-founder .team-arrow { color: var(--gold-soft); }
.team-founder:hover { border-color: transparent; transform: translateY(-3px); }

/* =========================================================
   Profile detail pages
   ========================================================= */
.back-link { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--burgundy); text-decoration: none; margin-bottom: 2rem; }
.back-link:hover { text-decoration: underline; }
.profile-grid { display: grid; grid-template-columns: 200px 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 720px){ .profile-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
@media (max-width: 720px){ .profile-photo { max-width: 260px; } }
.profile-photo .photo-ph { font-size: 3.4rem; }
.profile-name { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); margin-bottom: 0.3rem; }
.profile-role { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; }
.profile-bio { font-size: 1.02rem; color: var(--ink); }
.profile-bio.justify { text-align: justify; text-justify: inter-word; }
.profile-qual { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--hair-gold); }
.profile-qual .group-label { border: 0; padding: 0; margin-bottom: 0.7rem; }
.profile-qual p { margin: 0; color: var(--ink); }

/* founder profile — burgundy tribute treatment */
.profile-founder { background: var(--burgundy); color: var(--cream); }
.profile-founder .back-link { color: var(--gold-soft); }
.profile-founder .profile-name { color: var(--cream); }
.profile-founder .profile-role { color: var(--gold-soft); }
.profile-founder .profile-bio { color: var(--cream); }
.profile-founder .profile-photo .photo-ph { background: var(--burgundy-deep); color: var(--gold-soft); border-color: rgba(255,248,236,0.2); }
.profile-founder .profile-qual { border-top-color: rgba(255,248,236,0.28); }
.profile-founder .profile-qual .group-label { color: var(--gold-soft); }
.profile-founder .profile-qual p { color: var(--cream); }

/* =========================================================
   Useful Links
   ========================================================= */
.links-group { margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.links-group:first-of-type { margin-top: 0; }
.link-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink);
}
.link-row:hover { color: var(--burgundy); }
.link-row:hover .link-name { text-decoration: underline; }
.link-name { font-family: var(--display); font-size: 1.2rem; }
.link-host { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); white-space: nowrap; }
.link-row:hover .link-host { color: var(--burgundy); }
.links-note { margin-top: 2.4rem; font-size: 0.85rem; color: var(--ink-soft); max-width: 80ch; text-align: justify; text-justify: inter-word; }

/* photo placeholder silhouette icon */
.ph-icon { width: 42%; height: auto; opacity: 0.32; }
.ph-icon circle, .ph-icon path { fill: currentColor; }

/* justify utility */
.justify { text-align: justify; text-justify: inter-word; }

/* profile social (LinkedIn) */
.profile-social { margin-top: 1.6rem; }
.social-link { display: inline-flex; align-items: center; justify-content: center; color: var(--burgundy); transition: color 0.2s ease, transform 0.2s ease; }
.social-link:hover { color: var(--gold); transform: translateY(-1px); }
.social-link svg { width: 24px; height: 24px; display: block; }
.profile-founder .social-link { color: var(--gold-soft); }
.profile-founder .social-link:hover { color: var(--cream); }

/* profile lifespan dates */
.profile-dates { font-size: 0.95rem; letter-spacing: 0.06em; color: var(--gold); margin: 0 0 0.9rem; }
.profile-founder .profile-dates { color: var(--gold-soft); }
