/* ============================================================
   CHIEF JUSTICE SOUMEN SEN — DOCUMENT STACK DESIGN SYSTEM
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg-base: #F5F3EF;
  --bg-document: #FFFFFF;
  --text-primary: #2C2C2C;
  --text-secondary: #5A5A5A;
  --heading-color: #1B2A4A;
  --accent: #8B7355;
  --accent-light: #B8A68E;
  --border-light: #E5E0D8;
  --border-subtle: #EDE9E3;
  --shadow-document: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 2px 8px rgba(0,0,0,0.08), 0 6px 24px rgba(0,0,0,0.06);
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --max-width: 960px;
  --spacing-doc: 28px;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--heading-color);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; letter-spacing: 0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============================================================
   TOP NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-document);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 6px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--heading-color);
  background: rgba(27, 42, 74, 0.05);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading-color);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============================================================
   DOCUMENT STACK — Core Section Layout
   ============================================================ */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.document-section {
  background: var(--bg-document);
  box-shadow: var(--shadow-document);
  border-radius: var(--radius);
  padding: 40px 48px;
  margin-bottom: var(--spacing-doc);
  border-left: 3px solid var(--accent);
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  animation: docFadeIn 0.5s ease forwards;
}

.document-section:nth-child(1) { animation-delay: 0.05s; }
.document-section:nth-child(2) { animation-delay: 0.1s; }
.document-section:nth-child(3) { animation-delay: 0.15s; }
.document-section:nth-child(4) { animation-delay: 0.2s; }
.document-section:nth-child(5) { animation-delay: 0.25s; }
.document-section:nth-child(6) { animation-delay: 0.3s; }
.document-section:nth-child(7) { animation-delay: 0.35s; }
.document-section:nth-child(8) { animation-delay: 0.4s; }

@keyframes docFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-number {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
}

/* ============================================================
   PASSWORD GATEWAY
   ============================================================ */
.gateway-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
}

.gateway-box {
  text-align: center;
  max-width: 380px;
  width: 100%;
  padding: 0 24px;
}

.gateway-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.gateway-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 400;
}

.gateway-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-document);
  outline: none;
  transition: border-color 0.2s ease;
  text-align: center;
  letter-spacing: 0.15em;
}

.gateway-input:focus {
  border-color: var(--accent);
}

.gateway-input::placeholder {
  color: var(--accent-light);
  letter-spacing: 0.08em;
}

.gateway-btn {
  width: 100%;
  padding: 13px 18px;
  margin-top: 14px;
  border: none;
  border-radius: var(--radius);
  background: var(--heading-color);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gateway-btn:hover {
  background: #243757;
}

.gateway-error {
  color: #a94442;
  font-size: 0.82rem;
  margin-top: 12px;
  min-height: 20px;
}

.gateway-fade {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  to { opacity: 0; }
}

/* ============================================================
   TITLE BLOCK (Homepage Hero)
   ============================================================ */
.title-block {
  display: flex;
  align-items: center;
  gap: 40px;
}

.title-block-photo {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.title-block-text h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.title-block-role {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.title-block-intro {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
}

/* ============================================================
   STRUCTURED ROWS
   ============================================================ */
.data-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}

.data-row:last-child {
  border-bottom: none;
}

.data-label {
  font-weight: 600;
  color: var(--heading-color);
  min-width: 180px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.data-value {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================================
   TWO-COLUMN LIST
   ============================================================ */
.two-col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  list-style: none;
}

.two-col-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.two-col-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   EXPANDABLE CASE ITEMS
   ============================================================ */
.case-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.case-item:last-child {
  border-bottom: none;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.case-header:hover .case-title {
  color: var(--accent);
}

.case-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading-color);
  transition: color 0.2s ease;
}

.case-meta {
  font-size: 0.78rem;
  color: var(--accent-light);
  font-weight: 500;
  white-space: nowrap;
  margin-left: 16px;
}

.case-toggle {
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.2s ease;
  margin-left: 12px;
  flex-shrink: 0;
}

.case-item.open .case-toggle {
  transform: rotate(180deg);
}

.case-summary {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 0 0 0;
}

.case-item.open .case-summary {
  max-height: 300px;
  padding: 12px 0 4px 0;
}

.case-summary p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================================
   DOCUMENT LIST (Resources / Media)
   ============================================================ */
.doc-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-list-item:last-child {
  border-bottom: none;
}

.doc-list-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 100px;
  flex-shrink: 0;
  padding-top: 2px;
}

.doc-list-title {
  font-weight: 600;
  color: var(--heading-color);
  font-size: 0.92rem;
  margin-bottom: 3px;
}

.doc-list-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   COURT IMAGE ROW
   ============================================================ */
.court-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.court-row:last-child {
  border-bottom: none;
}

.court-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.court-info h3 {
  margin-bottom: 4px;
}

.court-info p {
  font-size: 0.88rem;
  margin: 0;
}

/* ============================================================
   TABLE LAYOUT (Court & Jurisdiction)
   ============================================================ */
.structured-table {
  width: 100%;
  border-collapse: collapse;
}

.structured-table th,
.structured-table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-subtle);
}

.structured-table th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--heading-color);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(139, 115, 85, 0.06);
}

.structured-table td {
  color: var(--text-secondary);
}

.structured-table tbody tr:hover {
  background: rgba(139, 115, 85, 0.03);
}

/* ============================================================
   ABOUT PAGE — Profile Section
   ============================================================ */
.profile-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.profile-photo {
  width: 200px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.profile-bio {
  flex: 1;
}

.profile-bio h2 {
  margin-bottom: 12px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-base);
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-submit {
  padding: 12px 32px;
  background: var(--heading-color);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-submit:hover {
  background: #243757;
}

.contact-info-block h3 {
  margin-bottom: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: var(--heading-color);
  border-color: var(--heading-color);
  background: rgba(27, 42, 74, 0.04);
}

.social-links svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--heading-color);
  color: rgba(255,255,255,0.7);
  padding: 40px 24px;
  margin-top: 20px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
  display: block;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.6);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.footer-social svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   PAGE HEADER (Inner Pages)
   ============================================================ */
.page-title-bar {
  background: var(--bg-document);
  border-bottom: 1px solid var(--border-light);
  padding: 28px 24px;
}

.page-title-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-title-bar h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.page-title-bar .page-breadcrumb {
  font-size: 0.8rem;
  color: var(--accent-light);
}

.page-breadcrumb a {
  color: var(--accent);
}

/* ============================================================
   PRACTICE AREA CARDS (Primary)
   ============================================================ */
.practice-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}

.practice-card:last-child {
  border-bottom: none;
}

.practice-card:hover {
  background: rgba(139, 115, 85, 0.02);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.practice-icon {
  width: 48px;
  height: 48px;
  background: rgba(27, 42, 74, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.practice-card:hover .practice-icon {
  background: var(--heading-color);
}

.practice-icon svg {
  width: 22px;
  height: 22px;
  color: var(--heading-color);
  transition: color 0.25s ease;
}

.practice-card:hover .practice-icon svg {
  color: #fff;
}

.practice-content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.practice-content p {
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   PRACTICE AREA GRID (Secondary)
   ============================================================ */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.practice-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px 24px;
  background: var(--bg-document);
  transition: all 0.25s ease;
  gap: 12px;
}

.practice-grid-item:hover {
  background: rgba(27, 42, 74, 0.03);
}

.practice-grid-icon {
  width: 40px;
  height: 40px;
  background: rgba(139, 115, 85, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.practice-grid-item:hover .practice-grid-icon {
  background: var(--accent);
}

.practice-grid-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: color 0.25s ease;
}

.practice-grid-item:hover .practice-grid-icon svg {
  color: #fff;
}

.practice-grid-item span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.3;
}

/* ============================================================
   HERO BANNER (Homepage)
   ============================================================ */
.hero-banner {
  background: linear-gradient(135deg, var(--heading-color) 0%, #243757 60%, #2d4a6e 100%);
  padding: 56px 24px 48px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 115, 85, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 50%, var(--accent) 100%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-photo-frame {
  position: relative;
  flex-shrink: 0;
}

.hero-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 3px;
  border: 3px solid rgba(139, 115, 85, 0.5);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2);
}

.hero-photo-frame::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 1px solid rgba(139, 115, 85, 0.25);
  border-radius: 4px;
  pointer-events: none;
}

.hero-text h1 {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-designation {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.hero-court {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 18px;
}

.hero-intro {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 16px;
}

/* ============================================================
   STAT COUNTERS
   ============================================================ */
.stat-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--bg-document);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-item {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 22px 16px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--border-light);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* ============================================================
   DOCUMENT STAMP (Decorative)
   ============================================================ */
.document-section.has-stamp::after {
  content: 'OFFICIAL RECORD';
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(139, 115, 85, 0.18);
  border: 1.5px solid rgba(139, 115, 85, 0.12);
  padding: 3px 10px;
  border-radius: 1px;
}

/* ============================================================
   DISTINGUISHED QUOTE
   ============================================================ */
.distinguished-quote {
  position: relative;
  padding: 28px 32px 28px 36px;
  margin: 20px 0;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.03) 0%, rgba(139, 115, 85, 0.03) 100%);
  border-left: 3px solid var(--accent);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--heading-color);
  line-height: 1.7;
}

.distinguished-quote::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 2.5rem;
  color: var(--accent-light);
  font-family: var(--font-heading);
  line-height: 1;
  opacity: 0.4;
}

.quote-attribution {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   CAREER MILESTONE ROWS
   ============================================================ */
.milestone-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}

.milestone-row:last-child {
  border-bottom: none;
}

.milestone-row:hover {
  background: rgba(139, 115, 85, 0.02);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.milestone-year {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading-color);
  min-width: 80px;
  flex-shrink: 0;
  line-height: 1.3;
}

.milestone-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  position: relative;
}

.milestone-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--accent-light);
  border-radius: 50%;
  opacity: 0.4;
}

.milestone-content h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 3px;
}

.milestone-content p {
  font-size: 0.87rem;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.milestone-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 2px;
  margin-top: 6px;
}

.milestone-badge.current {
  background: rgba(27, 42, 74, 0.08);
  color: var(--heading-color);
}

.milestone-badge.past {
  background: rgba(139, 115, 85, 0.1);
  color: var(--accent);
}

/* ============================================================
   ABOUT PAGE — Enhanced Profile
   ============================================================ */
.about-hero {
  background: linear-gradient(135deg, var(--heading-color) 0%, #243757 100%);
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}

.about-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 50%, var(--accent) 100%);
}

.about-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.about-photo-frame {
  position: relative;
  flex-shrink: 0;
}

.about-photo {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 2px;
  border: 3px solid rgba(139, 115, 85, 0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.about-photo-frame::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 1px solid rgba(139, 115, 85, 0.2);
  border-radius: 3px;
  pointer-events: none;
}

.about-hero-text h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 4px;
}

.about-hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.about-hero-bio {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 540px;
}

/* Quick Facts Grid */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.quick-fact {
  text-align: center;
  padding: 24px 16px;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.quick-fact + .quick-fact {
  border-left: 1px solid var(--border-subtle);
}

.quick-fact-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.quick-fact-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* Education Card */
.edu-entry {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.edu-entry:last-child {
  border-bottom: none;
}

.edu-icon {
  width: 44px;
  height: 44px;
  background: rgba(27, 42, 74, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--heading-color);
}

.edu-icon svg {
  width: 20px;
  height: 20px;
}

.edu-details h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 2px;
}

.edu-details p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-secondary);
}

.edu-details .edu-institution {
  font-weight: 500;
  color: var(--accent);
  font-size: 0.82rem;
}

/* Section Intro Text */
.section-intro {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-document);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .document-section {
    padding: 28px 24px;
  }

  .title-block {
    flex-direction: column;
    text-align: center;
  }

  .title-block-photo {
    width: 140px;
    height: 140px;
  }

  .title-block-intro {
    max-width: 100%;
  }

  .two-col-list {
    grid-template-columns: 1fr;
  }

  .data-row {
    flex-direction: column;
    gap: 4px;
  }

  .data-label {
    min-width: unset;
  }

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

  .profile-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .court-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-banner { padding: 36px 24px 32px; }
  .hero-inner { flex-direction: column; text-align: center; gap: 28px; }
  .hero-photo { width: 150px; height: 150px; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-intro { max-width: 100%; }
  .hero-divider { margin: 0 auto 16px; }
  .stat-strip { flex-wrap: wrap; }
  .stat-item { min-width: 33%; }

  .about-hero { padding: 32px 24px; }
  .about-hero-inner { flex-direction: column; text-align: center; gap: 24px; }
  .about-photo { width: 180px; height: 230px; }
  .about-hero-bio { max-width: 100%; }
  .quick-facts { grid-template-columns: 1fr; }
  .quick-fact + .quick-fact { border-left: none; }

  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-card { flex-wrap: wrap; }

  .milestone-row { flex-wrap: wrap; gap: 12px; }
  .milestone-year { min-width: unset; font-size: 1.1rem; }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
}
