/* ============================================
   CHAMBERS OF SHAURYA SAHAY
   Black & Gold · Mahogany · Good Paper
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  --space-1:  0.25rem; --space-2:  0.5rem;  --space-3:  0.75rem;
  --space-4:  1rem;    --space-5:  1.25rem; --space-6:  1.5rem;
  --space-8:  2rem;    --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;
  --space-32: 8rem;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  --radius-sm: 0.25rem; --radius-md: 0.375rem; --radius-lg: 0.5rem;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --content-narrow: 700px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ---- LIGHT DEFAULT (Ivory Paper & Mahogany) ---- */
:root, [data-theme="light"] {
  --color-bg:             #F6F2EB;
  --color-surface:        #FEFCF8;
  --color-surface-2:      #F0ECE4;
  --color-surface-3:      #E8E3DA;
  --color-text:           #1A1710;
  --color-text-muted:     #5C574A;
  --color-text-faint:     #9C9688;
  --color-gold:           #8B7330;
  --color-gold-dim:       #6B5820;
  --color-gold-glow:      rgba(139,115,48,0.08);
  --color-gold-glow-2:    rgba(139,115,48,0.04);
  --color-divider:        rgba(26,23,16,0.08);
  --color-border:         rgba(26,23,16,0.12);
  --shadow-sm: 0 1px 3px rgba(26,23,16,0.06);
  --shadow-md: 0 4px 16px rgba(26,23,16,0.08);
  --shadow-lg: 0 12px 40px rgba(26,23,16,0.12);
}

/* ---- DARK MODE (Black & Gold) ---- */
[data-theme="dark"] {
  --color-bg:             #0C0B09;
  --color-surface:        #141311;
  --color-surface-2:      #1C1B18;
  --color-surface-3:      #242320;
  --color-text:           #EDE8DC;
  --color-text-muted:     #A09A8C;
  --color-text-faint:     #6B665C;
  --color-gold:           #C9A84C;
  --color-gold-dim:       #9E8438;
  --color-gold-glow:      rgba(201,168,76,0.10);
  --color-gold-glow-2:    rgba(201,168,76,0.05);
  --color-divider:        rgba(237,232,220,0.08);
  --color-border:         rgba(237,232,220,0.12);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
}

/* ============================================ BCI DISCLAIMER */
.bci-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: var(--space-6);
}
.bci-overlay.dismissed { display: none; }
.bci-modal {
  width: min(600px, 100%); max-height: calc(100vh - var(--space-12));
  overflow-y: auto; background: var(--color-surface);
  border: 1px solid var(--color-gold); border-radius: var(--radius-lg);
  padding: var(--space-8); text-align: center;
}
.bci-modal::-webkit-scrollbar { width: 5px; }
.bci-modal::-webkit-scrollbar-thumb { background: var(--color-gold-dim); border-radius: 3px; }
.bci-logo { margin-bottom: var(--space-6); }
.bci-modal h2 {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500;
  color: var(--color-gold); margin-bottom: var(--space-6);
}
.bci-body { text-align: left; margin-bottom: var(--space-8); }
.bci-body p {
  font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7;
  margin-bottom: var(--space-4);
}
.bci-body ul {
  list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-3);
}
.bci-body ul li {
  font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.6;
  padding-left: var(--space-4); position: relative;
}
.bci-body ul li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--color-gold); opacity: 0.5;
}
.bci-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }
.bci-actions .btn { min-width: 140px; justify-content: center; }

@media (max-width: 500px) {
  .bci-modal { padding: var(--space-5); }
  .bci-actions { flex-direction: column; }
  .bci-actions .btn { width: 100%; }
}

/* ============================================ LAYOUT */
.container { max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }
.container--narrow { max-width: var(--content-default); }
.container--tight { max-width: var(--content-narrow); }
section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }

/* ============================================ UTILITY */
.uppercase-label {
  font-family: var(--font-body); font-size: var(--text-xs);
  font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-gold);
}
.gold-rule { width: 48px; height: 2px; background: var(--color-gold); }
.gold-rule--center { margin-inline: auto; }
.text-muted { color: var(--color-text-muted); }

/* ============================================ HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header--hidden { transform: translateY(-100%); }
.site-header--scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--space-3); gap: var(--space-4);
}
.header-logo {
  display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: var(--color-text);
}
.header-logo img { height: 48px; width: auto; border-radius: 3px; }
.header-logo-text {
  font-family: var(--font-display); font-size: var(--text-sm);
  font-weight: 500; line-height: 1.2; letter-spacing: 0.01em;
}
.header-logo-text span { display: block; }
.header-logo-text strong { font-weight: 600; }

/* Nav */
.nav-links { display: flex; align-items: center; gap: var(--space-5); list-style: none; }
.nav-links a {
  font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted);
  text-decoration: none; letter-spacing: 0.01em; position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px; background: var(--color-gold);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { width: 100%; }

.theme-toggle {
  padding: var(--space-2); color: var(--color-text-muted);
  border-radius: var(--radius-sm); display: flex; align-items: center;
}
.theme-toggle:hover { color: var(--color-gold); background: var(--color-surface-2); }

.nav-toggle { display: none; padding: var(--space-2); color: var(--color-text); }

/* Mobile overlay */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--color-bg); flex-direction: column;
  align-items: center; justify-content: center; gap: var(--space-8);
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-family: var(--font-display); font-size: var(--text-xl);
  color: var(--color-text); text-decoration: none;
}
.mobile-nav a:hover { color: var(--color-gold); }
.mobile-nav-close {
  position: absolute; top: var(--space-4); right: var(--space-6);
  font-size: 2rem; color: var(--color-text-muted); line-height: 1;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================ HERO */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 50%, var(--color-gold-glow) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 30%, var(--color-gold-glow-2) 0%, transparent 60%);
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--color-gold-dim), transparent);
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-logo {
  margin-bottom: var(--space-8);
}
.hero-logo img {
  height: 140px; width: auto;
  background: transparent;
}
.hero-label {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-gold);
  margin-bottom: var(--space-6); display: flex; align-items: center; gap: var(--space-3);
}
.hero-label::before {
  content: ''; width: 36px; height: 1.5px; background: var(--color-gold); flex-shrink: 0;
}
.hero h1 {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 400; line-height: 1.08; margin-bottom: var(--space-8);
}
.hero h1 em { font-style: italic; color: var(--color-gold); }
.hero-description {
  font-size: var(--text-base); line-height: 1.75;
  color: var(--color-text-muted); max-width: 620px; margin-bottom: var(--space-10);
}
.hero-cta { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-12); }

/* Stats bar */
.hero-stats {
  display: flex; gap: var(--space-10); flex-wrap: wrap;
  padding-top: var(--space-8); border-top: 1px solid var(--color-divider);
}
.hero-stat-number {
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400;
  color: var(--color-gold); line-height: 1; margin-bottom: var(--space-1);
}
.hero-stat-label { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.03em; }

/* ============================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.03em; padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md); text-decoration: none; cursor: pointer;
  transition: background var(--transition-interactive), color var(--transition-interactive),
              transform var(--transition-interactive), box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}
.btn--gold { background: var(--color-gold); color: #0C0B09; border: 1px solid var(--color-gold); }
.btn--gold:hover { background: #D4B45A; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--gold:active { transform: translateY(0); }
.btn--outline { background: transparent; color: var(--color-gold); border: 1px solid var(--color-gold); }
.btn--outline:hover { background: var(--color-gold); color: #0C0B09; }

/* ============================================ SECTION HEADERS */
.section-header { margin-bottom: clamp(var(--space-10), 4vw, var(--space-16)); }
.section-header--center { text-align: center; }
.section-header h2 {
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400;
  margin-top: var(--space-3); margin-bottom: var(--space-3);
}
.section-header p {
  font-size: var(--text-base); color: var(--color-text-muted); max-width: 600px; line-height: 1.7;
}
.section-header--center p { margin-inline: auto; }

/* ============================================ PROFILE SECTION */
.profile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start;
}
.profile-bio p {
  font-size: var(--text-base); line-height: 1.75; color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.profile-bio p:last-child { margin-bottom: 0; }

.approach-block {
  margin-top: var(--space-10); padding: var(--space-8);
  background: var(--color-surface-2); border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-gold);
}
.approach-block h3 {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500;
  margin-bottom: var(--space-4);
}
.approach-block p { font-size: var(--text-sm); line-height: 1.7; color: var(--color-text-muted); }

.credentials-list { display: flex; flex-direction: column; gap: var(--space-5); }
.credential-card {
  padding: var(--space-5) var(--space-6); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  transition: border-color 0.3s var(--ease-out);
}
.credential-card:hover { border-color: var(--color-gold); }
.credential-card h4 {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  margin-bottom: var(--space-1);
}
.credential-card p { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.55; }
.credential-card .credential-tag {
  display: inline-block; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-gold); background: var(--color-gold-glow);
  padding: 2px 8px; border-radius: 100px; margin-bottom: var(--space-2);
}

.education-row {
  margin-top: var(--space-10); padding-top: var(--space-8); border-top: 1px solid var(--color-divider);
}
.education-items { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-4); }
.education-item { display: flex; gap: var(--space-4); align-items: baseline; }
.education-item .year { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-gold); min-width: 50px; }
.education-item h4 { font-size: var(--text-sm); font-weight: 600; }
.education-item p { font-size: var(--text-xs); color: var(--color-text-muted); }

@media (max-width: 768px) {
  .profile-grid { grid-template-columns: 1fr; gap: var(--space-10); }
}

/* ============================================ PRACTICE AREAS */
.alt-bg { background: var(--color-surface); }
.practice-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--space-6);
}
.practice-card {
  padding: var(--space-8); background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.practice-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-gold); transform: translateY(-2px); }
.practice-card-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--color-gold-glow); color: var(--color-gold);
  border-radius: var(--radius-md); margin-bottom: var(--space-5);
}
.practice-card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; margin-bottom: var(--space-3); }
.practice-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; }

.practice-card--highlight {
  border-color: var(--color-gold); position: relative;
  background: linear-gradient(160deg, var(--color-surface-2), var(--color-surface-3));
}
.practice-card--highlight::before {
  content: 'Core Practice'; position: absolute; top: var(--space-4); right: var(--space-4);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-gold); background: var(--color-bg); padding: 3px 10px;
  border-radius: 100px; border: 1px solid var(--color-gold);
}

/* ============================================ TEAM */
.team-lead {
  display: grid; grid-template-columns: 280px 1fr; gap: var(--space-12);
  align-items: start; margin-bottom: var(--space-16);
  padding: var(--space-8); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.team-lead-photo {
  aspect-ratio: 3/4; background: var(--color-surface-3); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.team-lead-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-lead-photo .initials {
  font-family: var(--font-display); font-size: var(--text-3xl); color: var(--color-gold);
  opacity: 0.3;
}
.team-lead-info h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; margin-bottom: var(--space-2); }
.team-lead-info .designation { font-size: var(--text-sm); color: var(--color-gold); margin-bottom: var(--space-6); font-weight: 500; }
.team-lead-info p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-3); }

.associates-header { margin-bottom: var(--space-8); }
.associates-header h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; margin-bottom: var(--space-2); }
.associates-header p { font-size: var(--text-sm); color: var(--color-text-muted); }

.associates-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--space-5);
}
.associate-card {
  padding: var(--space-6); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  text-align: center;
}
.associate-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--color-surface-3);
  margin: 0 auto var(--space-4); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-gold); opacity: 0.5;
}
.associate-card h4 { font-size: var(--text-sm); font-weight: 600; margin-bottom: 2px; }
.associate-card .role { font-size: var(--text-xs); color: var(--color-gold); margin-bottom: var(--space-2); }
.associate-card p { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; }
.associate-photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  margin: 0 auto var(--space-4); display: block;
  border: 2px solid var(--color-gold-dim);
  filter: grayscale(20%);
}

.collab-section {
  margin-top: var(--space-16); padding-top: var(--space-12); border-top: 1px solid var(--color-divider);
}
.collab-section h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; margin-bottom: var(--space-3); }
.collab-section > p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; max-width: 700px; }
.collab-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--space-5);
}

@media (max-width: 700px) {
  .team-lead { grid-template-columns: 1fr; }
  .team-lead-photo { max-width: 200px; }
}

/* ============================================ ARTICLES & MEDIA */
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--space-6);
}
.article-card {
  padding: var(--space-6) var(--space-6) var(--space-5);
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); display: flex; flex-direction: column;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.article-card:hover { border-color: var(--color-gold); box-shadow: var(--shadow-md); }
.article-card .article-type {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-gold); margin-bottom: var(--space-3);
}
.article-card h3 {
  font-family: var(--font-display); font-size: var(--text-base); font-weight: 500;
  margin-bottom: var(--space-3); line-height: 1.35; flex-grow: 1;
}
.article-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; margin-bottom: var(--space-4); }
.article-card .article-meta { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: auto; }

/* ============================================ NOTABLE MATTERS (compact) */
.matters-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: var(--space-5);
}
.matter-card {
  padding: var(--space-5) var(--space-6); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.matter-card .matter-tag {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-gold); margin-bottom: var(--space-2); display: inline-block;
}
.matter-card h4 { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--space-2); line-height: 1.35; }
.matter-card p { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.55; }

/* ============================================ CONTACT */
.contact-section { background: var(--color-surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; margin-bottom: var(--space-6); }
.contact-info > p { color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-8); }
.contact-details { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-detail { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-detail-icon { width: 20px; flex-shrink: 0; color: var(--color-gold); margin-top: 3px; }
.contact-detail-text h4 { font-size: var(--text-sm); font-weight: 600; margin-bottom: 2px; }
.contact-detail-text p, .contact-detail-text a {
  font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none;
}
.contact-detail-text a:hover { color: var(--color-gold); }
.contact-map {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid var(--color-border);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3); }
/* Contact form */
.contact-form-wrap {
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8);
}
.contact-form { display: flex; flex-direction: column; gap: var(--space-5); }
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-group label {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.05em; color: var(--color-text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body); font-size: var(--text-sm);
  color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); outline: none;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold); box-shadow: 0 0 0 2px var(--color-gold-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-faint); }
.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-status {
  font-size: var(--text-sm); text-align: center; margin-top: var(--space-3);
  min-height: 1.5em;
}
.form-status.success { color: #5cb85c; }
.form-status.error { color: #d9534f; }

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-10); } }

/* ============================================ FOOTER */
.site-footer {
  padding: var(--space-8) 0; border-top: 1px solid var(--color-divider);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4);
}
.footer-inner p { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer-links { display: flex; gap: var(--space-6); list-style: none; }
.footer-links a { font-size: var(--text-xs); color: var(--color-text-faint); text-decoration: none; }
.footer-links a:hover { color: var(--color-gold); }

/* ============================================ SCROLL ANIMATION */
.fade-in { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .fade-in { opacity: 0; animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
}
@keyframes reveal-fade { to { opacity: 1; } }

/* ============================================ EMPANELMENT STRIP */
.empanelment-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4);
  padding-top: var(--space-6);
}
.empanelment-chip {
  font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4); background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-radius: 100px;
}

/* ============================================ DOME MOTIFS */
.hero-dome-bg {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  pointer-events: none; overflow: hidden;
}
.hero-dome-svg {
  width: min(70vw, 700px); height: auto;
  color: var(--color-gold); opacity: 0.4;
}

/* Section dome divider */
.dome-divider {
  display: flex; justify-content: center;
  padding: var(--space-4) 0; overflow: hidden;
}
.dome-divider svg {
  width: min(40vw, 320px); height: auto;
  color: var(--color-gold); opacity: 0.5;
}

/* Hero baseline gold gradient */
.hero-baseline {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--color-gold-dim) 30%, var(--color-gold) 50%, var(--color-gold-dim) 70%, transparent 95%);
  opacity: 0.4;
}

/* Section title used inline */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
}

/* ============================================ CLICKABLE CARD STATES */
.associate-card--clickable {
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.associate-card--clickable:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-expand-hint {
  font-size: var(--text-xs); font-weight: 600; color: var(--color-gold);
  margin-top: var(--space-3); letter-spacing: 0.05em;
  opacity: 0.7; transition: opacity 0.2s var(--ease-out);
}
.associate-card--clickable:hover .card-expand-hint { opacity: 1; }

/* ============================================ PROFILE MODAL */
.profile-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  pointer-events: none; opacity: 0;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease, opacity 0.35s ease;
  padding: var(--space-6);
}
.profile-modal-overlay.active {
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: auto; opacity: 1;
}

.profile-modal {
  position: relative;
  width: min(700px, 100%);
  max-height: calc(100vh - var(--space-12));
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--color-gold-glow);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease-out), opacity 0.35s ease;
  opacity: 0;
}
.profile-modal-overlay.active .profile-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Scrollbar styling */
.profile-modal::-webkit-scrollbar { width: 6px; }
.profile-modal::-webkit-scrollbar-track { background: transparent; }
.profile-modal::-webkit-scrollbar-thumb { background: var(--color-gold-dim); border-radius: 3px; }

.profile-modal-close {
  position: sticky; top: 0; float: right;
  width: 40px; height: 40px; margin: var(--space-4) var(--space-4) 0 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; line-height: 1; color: var(--color-text-muted);
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: 50%; cursor: pointer; z-index: 2;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.profile-modal-close:hover {
  color: var(--color-text); background: var(--color-surface-3); border-color: var(--color-gold);
}

.profile-modal-body { padding: 0 var(--space-8) var(--space-8); clear: both; }

.profile-modal-header {
  display: flex; align-items: center; gap: var(--space-6);
  margin-bottom: var(--space-8); padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.profile-modal-photo {
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; border: 2px solid var(--color-gold);
  filter: grayscale(20%);
}
.profile-modal-avatar {
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-surface-3); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-gold); opacity: 0.5;
}
.profile-modal-name h3 {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500;
}
.profile-modal-name .role {
  font-size: var(--text-sm); color: var(--color-gold); font-weight: 500; margin-top: 2px;
}

.profile-modal-section { margin-bottom: var(--space-6); }
.profile-modal-section:last-child { margin-bottom: 0; }
.profile-modal-label {
  font-family: var(--font-body); font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gold);
  margin-bottom: var(--space-3);
}
.profile-modal-section p {
  font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7;
}
.profile-modal-section ul {
  list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2);
}
.profile-modal-section ul li {
  font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55;
  padding-left: var(--space-4); position: relative;
}
.profile-modal-section ul li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--color-gold); opacity: 0.6;
}

/* Tag pills inside modal */
.profile-modal-tags {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
}
.profile-modal-tags span {
  font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted);
  padding: 3px 10px; background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: 100px;
}

@media (max-width: 600px) {
  .profile-modal-overlay { padding: var(--space-3); }
  .profile-modal-body { padding: 0 var(--space-5) var(--space-5); }
  .profile-modal-header { flex-direction: column; text-align: center; gap: var(--space-4); }
  .profile-modal-photo, .profile-modal-avatar { width: 80px; height: 80px; }
}

/* Lock body scroll when modal is open */
body.modal-open { overflow: hidden; }

/* ============================================ CLIENT REVIEWS */
.reviews-section { background: var(--color-surface); }
.reviews-track {
  display: flex; gap: var(--space-6); overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: var(--space-4);
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 min(380px, 85vw); scroll-snap-align: start;
  padding: var(--space-8); background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: border-color 0.3s var(--ease-out);
}
.review-card:hover { border-color: var(--color-gold); }
.review-stars {
  color: var(--color-gold); font-size: var(--text-base);
  letter-spacing: 2px; margin-bottom: var(--space-4);
}
.review-text {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.7; flex-grow: 1; margin-bottom: var(--space-6);
  font-style: italic;
}
.review-text::before { content: '\201C'; font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-gold); opacity: 0.5; line-height: 0; vertical-align: -0.3em; margin-right: 2px; }
.review-author { border-top: 1px solid var(--color-divider); padding-top: var(--space-4); }
.review-name {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text);
}
.review-role {
  font-size: var(--text-xs); color: var(--color-text-faint); margin-top: 2px;
}
.reviews-nav {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-6); margin-top: var(--space-8);
}
.reviews-nav-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--color-text-muted);
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: 50%; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.reviews-nav-btn:hover { color: var(--color-gold); border-color: var(--color-gold); background: var(--color-surface-3); }
.reviews-google-link {
  font-size: var(--text-xs); font-weight: 600; color: var(--color-gold);
  text-decoration: none; letter-spacing: 0.05em;
}
.reviews-google-link:hover { text-decoration: underline; }
