/* ==========================================================================
   SIEW JUN SHENG & PARTNERS (ADVOCATES & SOLICITORS)
   Master Stylesheet — Crisp White Theme with PPT Oxford Navy & Antique Gold
   ========================================================================== */

:root {
  /* Core Heritage Palette from PPT Profile */
  --navy-ppt: #002060;           /* Primary Oxford Navy from PPT slides */
  --navy-deep: #07152E;          /* Deepest Navy for high-contrast headers */
  --navy-light: #0A358A;         /* Secondary Navy */
  --navy-subtle: rgba(0, 32, 96, 0.05);

  /* Clean White & Light Theme Base */
  --bg-main: #FFFFFF;            /* Pure White */
  --bg-surface: #F8FAFC;         /* Soft Alabaster / Off-White */
  --bg-surface-elevated: #FFFFFF;
  --bg-alt: #F1F5F9;             /* Alternating Section Background */
  --bg-card: #FFFFFF;
  --bg-card-hover: #FDFBF7;      /* Warm Ivory Hover */
  --bg-parchment: #FAF7F2;       /* Warm Legal Parchment */

  /* Old-Money Antique Gold Accents (Darker, Rich & Clearly Visible on White) */
  --gold-primary: #7E5718;       /* Rich Warm Antique Gold (4.8:1 contrast on white) */
  --gold-light: #7E5718;         /* Clear Medium Antique Gold */
  --gold-dark: #5C4010;          /* Deep Antique Bronze Gold (>6.8:1 contrast on white) */
  --gold-subtle: rgba(126, 87, 24, 0.08);
  --gold-glow: rgba(126, 87, 24, 0.18);
  --gold-on-navy: #DFC28A;       /* Warm Gold for dark navy backgrounds */
  --gold-sheen: linear-gradient(135deg, #002060 0%, #0A2E78 100%);

  /* Borders & Dividers */
  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-gold: #A68248;        /* Rich, defined warm antique gold border */
  --border-gold-strong: #7E5718;

  /* Typography Colors - High-Contrast Black & Deep Navy */
  --text-primary: #0A1426;       /* Deepest Navy-Black for Headings */
  --text-secondary: #334155;     /* Slate for Body Copy (Extremely legible) */
  --text-tertiary: #64748B;      /* Muted Labels & Notes */
  --text-navy: #002060;          /* PPT Oxford Navy */
  --text-gold: #5C4010;          /* Deep Bronze Gold Text (Strong, clear visibility) */

  --success: #15803D;
  --success-bg: #F0FDF4;
  --success-border: #86EFAC;

  /* Typography Scales */
  --font-serif-display: 'Cormorant Garamond', Garamond, 'Cinzel', Georgia, serif;
  --font-serif-heading: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Depth (Soft Luxury Lighting) */
  --shadow-sm: 0 2px 8px rgba(0, 32, 96, 0.05);
  --shadow-md: 0 8px 24px -3px rgba(0, 32, 96, 0.08);
  --shadow-lg: 0 16px 40px -6px rgba(0, 32, 96, 0.12);
  --shadow-gold: 0 6px 24px -2px rgba(184, 151, 88, 0.22);

  /* Timing & Radius */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1240px;
  --nav-height: 84px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  line-height: 1.68;
  overflow-x: hidden;
  background-color: var(--bg-main);
  color: var(--text-secondary);
}

::selection {
  background: var(--navy-ppt);
  color: #FFFFFF;
}

/* Headings in Deep Oxford Navy / Stately Black */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif-display);
  font-weight: 700;
  line-height: 1.22;
  color: var(--navy-ppt);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ==========================================================================
   HEADER & NAVIGATION (WHITE THEME WITH GOLD ACCENTS)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 32, 96, 0.07);
  border-bottom-color: var(--gold-primary);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.mobile-nav-menu {
  display: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  color: #1E293B;
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy-ppt);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Stately Buttons (Navy & Gold Sheen) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--navy-ppt);
  color: #FFFFFF;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 14px rgba(0, 32, 96, 0.2);
  font-weight: 700;
}

.btn-primary:hover {
  background: #001745;
  border-color: var(--gold-dark);
  color: #FDFCF7;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 32, 96, 0.28);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--navy-ppt);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--gold-primary);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

.btn-outline {
  background: #FFFFFF;
  color: var(--text-gold);
  border: 1.5px solid var(--border-gold);
  font-weight: 700;
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  background: var(--gold-subtle);
  color: var(--gold-dark);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--navy-ppt);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (WHITE THEME WITH WALNUT BOARDROOM & CITY LIGHTS)
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: calc(var(--nav-height) + 70px);
  padding-bottom: 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-gold);
  background-color: #FFFFFF;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0.28;
  filter: saturate(1.1) brightness(0.95);
  transform: scale(1.02);
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(255, 255, 255, 0.65) 100%),
              linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.94) 85%, #FFFFFF 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 2px 10px rgba(0, 32, 96, 0.05);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold-primary);
}

.hero-badge-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.14;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  color: var(--navy-ppt);
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, var(--navy-ppt) 0%, #0A2E78 60%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: #334155;
  margin-bottom: 38px;
  max-width: 760px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 56px;
}

/* Record of Advocacy (Metrics Bar in White Theme) */
.metrics-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 36px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 30px rgba(0, 32, 96, 0.07);
}

.metrics-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-ppt) 0%, var(--gold-primary) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.metric-item {
  position: relative;
  padding-right: 18px;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-gold);
}

.metric-value {
  font-family: var(--font-serif-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy-ppt);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.metric-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.metric-note {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
  background-color: #FFFFFF;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.section-header {
  margin-bottom: 54px;
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--gold-subtle);
  border: 1.5px solid var(--border-gold);
  color: var(--text-gold);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  color: var(--navy-ppt);
}

.section-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
}

/* ==========================================================================
   CHAMBERS & PRACTICE PHILOSOPHY (WHITE THEME SHOWCASE)
   ========================================================================== */
.chambers-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.chambers-image-frame {
  position: relative;
  border-radius: var(--radius-md);
  padding: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  box-shadow: 0 12px 36px rgba(0, 32, 96, 0.08);
}

.chambers-image-frame img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.chambers-image-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-gold);
  padding: 14px 18px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 32, 96, 0.08);
}

.chambers-image-caption .caption-title {
  font-family: var(--font-serif-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-ppt);
}

.chambers-image-caption .caption-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   PRACTICE AREAS & DISPUTE PORTFOLIO (WHITE THEME)
   ========================================================================== */
.practice-navigator-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 34px;
  background: #F1F5F9;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.practice-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  color: #475569;
  font-family: var(--font-serif-display);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  border: 1px solid transparent;
}

.practice-tab-btn:hover {
  color: var(--navy-ppt);
  background: #FFFFFF;
}

.practice-tab-btn.active {
  background: var(--navy-ppt);
  color: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: 0 4px 14px rgba(0, 32, 96, 0.2);
}

.practice-tab-btn.active .tab-icon {
  color: var(--gold-on-navy);
}

.practice-content-panel {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

.practice-content-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.practice-overview-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 44px;
  box-shadow: 0 10px 30px rgba(0, 32, 96, 0.06);
}

.practice-lead-title {
  font-size: 2rem;
  margin-bottom: 14px;
  color: var(--navy-ppt);
}

.practice-lead-desc {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 30px;
}

.service-capsules-header {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-gold);
  margin-bottom: 14px;
}

.service-capsules-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 500;
  color: #1E293B;
}

.service-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-primary);
}

/* Dispute Scenarios Side */
.scenarios-container {
  background: #FAF7F2;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 28px;
}

.scenarios-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-ppt);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 12px;
}

.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.scenario-item {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(184, 151, 88, 0.2);
}

.scenario-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.scenario-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 5px;
}

.scenario-remedy {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.5;
}

/* ==========================================================================
   REPORTED JUDICIAL PRECEDENTS (BOUND VOLUMES IN WHITE THEME)
   ========================================================================== */
.case-docket-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 36px;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  box-shadow: 0 2px 10px rgba(0, 32, 96, 0.04);
}

.court-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  color: var(--navy-ppt);
  border-color: var(--gold-primary);
  background: #FFFFFF;
}

.filter-chip.active {
  background: var(--navy-ppt);
  color: #FFFFFF;
  border-color: var(--navy-ppt);
  font-weight: 700;
}

.case-search-box {
  position: relative;
  min-width: 300px;
}

.case-search-input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #0F172A;
  font-size: 0.88rem;
  transition: border-color var(--transition-fast);
}

.case-search-input:focus {
  border-color: var(--gold-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.case-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  pointer-events: none;
}

/* Cases Grid (Law Volume Cards on White) */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.case-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 30px;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 32, 96, 0.04);
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px rgba(0, 32, 96, 0.08);
}

.case-card:hover::before {
  opacity: 1;
}

.case-card-header {
  margin-bottom: 18px;
}

.case-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.case-citation {
  font-family: var(--font-serif-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-ppt);
  background: #FAF7F2;
  padding: 3px 10px;
  border-radius: 3px;
  border: 1.5px solid var(--border-gold);
  letter-spacing: 0.02em;
}

.court-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 3px;
  background: #F1F5F9;
  border: 1px solid var(--border-subtle);
  color: #475569;
}

.court-badge.appellate {
  background: #FAF7F2;
  border: 1.5px solid var(--border-gold);
  color: var(--gold-dark);
  font-weight: 700;
}

.case-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--navy-ppt);
}

.case-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.case-summary {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.case-card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.case-takeaway-block {
  background: #FAF7F2;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  border-left: 2px solid var(--gold-primary);
}

.takeaway-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.takeaway-text {
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.45;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.case-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
}

.case-view-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-serif-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-ppt);
  padding-top: 6px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.case-view-btn:hover {
  color: var(--gold-dark);
}

/* ==========================================================================
   PARTNERS & COUNSEL PROFILES (WHITE THEME)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.team-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 42px;
  box-shadow: 0 6px 20px rgba(0, 32, 96, 0.05);
  position: relative;
  transition: all var(--transition-normal);
}

.team-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 12px 36px rgba(0, 32, 96, 0.1);
}

.team-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.team-name {
  font-size: 1.85rem;
  margin-bottom: 4px;
  color: var(--navy-ppt);
}

.team-role {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-gold);
  margin-bottom: 8px;
}

.team-admission-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: #FAF7F2;
  border: 1.5px solid var(--border-gold);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-ppt);
}

.team-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  background: var(--navy-ppt);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EAD9BD;
  font-family: var(--font-serif-display);
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 32, 96, 0.15);
}

.team-bio {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 26px;
}

.team-focus-section {
  margin-bottom: 30px;
}

.team-focus-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-gold);
  margin-bottom: 12px;
}

.team-focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-tag {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #1E293B;
}

.team-contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border-gold);
}

.action-btn-whatsapp {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.action-btn-whatsapp:hover {
  background: var(--success);
  color: #FFFFFF;
  border-color: var(--success);
}

.action-btn-email {
  background: var(--navy-ppt);
  color: #FFFFFF;
  border: 1px solid var(--gold-primary);
}

.action-btn-email:hover {
  background: #001745;
  border-color: var(--gold-dark);
}

.action-btn-tel {
  background: #FFFFFF;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}

.action-btn-tel:hover {
  color: var(--navy-ppt);
  border-color: var(--navy-ppt);
}

/* ==========================================================================
   WHY CHAMBERS REPRESENTATION (STRATEGIC ADVANTAGES)
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.advantage-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 32, 96, 0.04);
  transition: all var(--transition-normal);
}

.advantage-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px rgba(0, 32, 96, 0.08);
}

.advantage-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #FAF7F2;
  border: 1.5px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  margin-bottom: 22px;
}

.advantage-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--navy-ppt);
}

.advantage-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT & CONSULTATION HUB
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 34px;
  box-shadow: 0 4px 16px rgba(0, 32, 96, 0.05);
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.contact-detail-row:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #FAF7F2;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-ppt);
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-gold);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.5;
}

.contact-value a:hover {
  color: var(--gold-dark);
}

.location-preview-box {
  border-radius: var(--radius-sm);
  background: #FAF7F2;
  border: 1.5px solid var(--border-gold);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-ppt);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Consultation Form */
.contact-form-panel {
  background: #FFFFFF;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 32, 96, 0.06);
  position: relative;
}

.contact-form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-ppt) 0%, var(--gold-primary) 100%);
}

.form-header {
  margin-bottom: 26px;
}

.form-title {
  font-size: 1.7rem;
  margin-bottom: 8px;
  color: var(--navy-ppt);
}

.form-subtext {
  font-size: 0.9rem;
  color: #475569;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: 0.03em;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: #0F172A;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--gold-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23002060' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-privacy-note {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  line-height: 1.45;
}

/* ==========================================================================
   FOOTER (CLEAN LIGHT THEME WITH GOLD ACCENTS)
   ========================================================================== */
.site-footer {
  background: #FAF7F2;
  border-top: 1px solid var(--border-gold);
  padding: 75px 0 32px;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-col {
  padding-right: 24px;
}

.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 18px;
  display: block;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 22px;
}

.footer-col-title {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-ppt);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.86rem;
  color: #475569;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--navy-ppt);
}

.footer-disclaimer-box {
  padding: 7px 16px;
  background: #FAF7F2;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  text-align: center;
}

.disclaimer-title-inline {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-ppt);
  margin-right: 6px;
  display: inline;
}

.disclaimer-text {
  font-size: 0.70rem;
  color: #64748B;
  line-height: 1.45;
  margin: 0;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--border-gold);
  font-size: 0.82rem;
  color: #64748B;
}

.client-editor-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #64748B;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px dashed var(--border-gold);
  background: #FFFFFF;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.client-editor-trigger-btn:hover {
  color: var(--navy-ppt);
  border-color: var(--gold-primary);
  background: var(--gold-subtle);
}

/* ==========================================================================
   MODAL & DRAWER COMPONENTS (WHITE THEME)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 21, 46, 0.65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 32, 96, 0.2);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 30px;
  border-bottom: 1px solid var(--border-gold);
}

.modal-close-btn {
  background: transparent;
  color: #64748B;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--navy-ppt);
}

.modal-body {
  padding: 30px;
}

/* Content Manager Quick Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2050;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
}

.drawer-overlay.open {
  display: block;
}

.editor-drawer {
  position: fixed;
  top: 0;
  right: -540px;
  width: 100%;
  max-width: 540px;
  height: 100vh;
  background: #FFFFFF;
  border-left: 1px solid var(--border-gold);
  z-index: 2100;
  overflow-y: auto;
  padding: 34px;
  transition: right var(--transition-normal);
  box-shadow: -10px 0 40px rgba(0, 32, 96, 0.15);
}

.editor-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-gold);
}

.code-output-box {
  background: #FAF7F2;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--navy-ppt);
  overflow-x: auto;
  margin-top: 14px;
  max-height: 220px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chambers-showcase-grid {
    grid-template-columns: 1fr;
  }
  .practice-overview-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .practice-navigator-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .metric-item:nth-child(2)::after {
    display: none;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
  }

  .nav-menu,
  .nav-actions .btn-primary {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-gold);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
  }

  .mobile-nav-menu.open {
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 32, 96, 0.15);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

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

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .practice-navigator-tabs {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
  }
}
