/* ============================================================
   Chambers of Advocate Selva Kumar
   Premium Classic Legal — Design System
   ============================================================ */

:root {
  --charcoal: #14181c;
  --slate: #1f2429;
  --navy: #1a2332;
  --gold: #c4a265;
  --gold-dark: #9e7d45;
  --gold-light: #dbc9a0;
  --cream: #faf9f7;
  --off-white: #f3f1ed;
  --text: #2a2f35;
  --text-muted: #5c6370;
  --border: #e8e4de;
  --white: #ffffff;
  --green: #34a853;
  --google-star: #fbbc04;
  --google-blue: #1a73e8;
  --google-blue-bg: #e8f0fe;
  --google-border: #dadce0;
  --shadow-sm: 0 1px 3px rgba(20, 24, 28, 0.06);
  --shadow-md: 0 4px 16px rgba(20, 24, 28, 0.08);
  --radius: 6px;
  --radius-lg: 10px;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1160px;
  --header-h: 72px;
  --section-pad: 108px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.012em;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.section-head { margin-bottom: 52px; }
.section-head--center { text-align: center; }

.section-head__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-head__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
  font-weight: 400;
}

.section-head--center .section-head__desc { margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  min-height: 48px;
}

.btn--gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  box-shadow: var(--shadow-sm);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}

.btn--outline-light:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(250, 249, 247, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--charcoal);
  text-decoration: none;
}

.logo:hover { color: var(--charcoal); }

.logo__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo__mark svg,
.logo__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.logo__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.logo__firm {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
  border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 88vw);
  height: 100vh;
  background: var(--cream);
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  transition: right var(--transition);
  z-index: 1000;
  padding: calc(var(--header-h) + 24px) 28px 28px;
  overflow-y: auto;
}

.nav.open { right: 0; }

.nav__list { display: flex; flex-direction: column; gap: 2px; }

.nav__link {
  display: block;
  padding: 14px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
}

.nav__link:hover, .nav__link.active { color: var(--gold-dark); }

.nav__link--cta {
  margin-top: 16px;
  padding: 14px 20px;
  background: var(--charcoal);
  color: var(--gold-light) !important;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav__link--cta:hover { background: var(--slate); color: var(--gold) !important; }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(20,24,28,0.45);
  z-index: 999;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.open { opacity: 1; visibility: visible; }

/* ---- Sections ---- */
.section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--navy) 100%);
  color: var(--white);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(ellipse, rgba(196,162,101,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 3.375rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--white);
}

.hero__subline {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 32px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__frame {
  border: 2px solid var(--gold);
  padding: 8px;
  background: var(--slate);
  max-width: 360px;
}

.hero__frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stats__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.125rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stats__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ---- About ---- */
#about .section-head {
  margin-bottom: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.about-gallery__main {
  position: relative;
  margin-bottom: 0;
}

.about-gallery__main img,
.about-gallery__secondary img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.about-gallery__main img {
  object-position: 42% 18%;
}

.about-gallery__secondary img {
  object-position: top center;
}

.about-gallery__badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--charcoal);
  color: var(--gold-light);
  padding: 9px 16px;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-content {
  width: 100%;
  max-width: 100%;
}

.mission {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.3125rem);
  font-style: italic;
  font-weight: 500;
  color: var(--charcoal);
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 0 0 28px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.96875rem;
  line-height: 1.8;
  letter-spacing: 0.015em;
}

.about-content p:last-of-type {
  margin-bottom: 0;
}

.checklist {
  margin: 28px 0 32px;
}

.checklist li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.about-content__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---- Credentials Page ---- */
.page-hero {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 48px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-hero__desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 640px;
  margin: 0 auto;
}

.credential-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}

.credential-card__image {
  padding: 24px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.credential-card__image img {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
  display: block;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.credential-card__body {
  padding: 28px 32px 32px;
}

.credential-card__body h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.credential-card__subtitle {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.credential-card__summary {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.credential-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.credential-details dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.credential-details dd {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.credential-details dd a {
  color: var(--gold-dark);
}

.credential-details__row {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.credential-details__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-back {
  margin-top: 48px;
  text-align: center;
}

/* ---- Corporate Clients Marquee ---- */
.clients-marquee {
  padding: 64px 0;
  overflow: hidden;
}

.clients-marquee .section-head {
  margin-bottom: 40px;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee__track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  margin: 0 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
  min-width: 280px;
}

.marquee__logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--off-white);
  padding: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.marquee__info h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 2px;
  line-height: 1.3;
}

.marquee__info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- Practice Areas ---- */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.practice-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.practice-card:hover { box-shadow: var(--shadow-md); }

.practice-card__banner {
  height: 160px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.practice-card:hover .practice-card__banner { transform: scale(1.04); }

.practice-card__body {
  padding: 24px;
  border-top: 3px solid var(--gold);
}

.practice-card__body h3 {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.practice-card__body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  letter-spacing: 0.012em;
}

.practice-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.02em;
}

.practice-cta {
  background: var(--charcoal);
  color: var(--white);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--charcoal);
}

.practice-cta h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--gold-light);
}

.practice-cta p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ---- Notable Cases ---- */
.matters-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.matters-list__item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.matters-list__item h3 {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.matters-list__item > p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.matters-list__outcome {
  font-size: 0.9rem !important;
  color: var(--text) !important;
  margin-bottom: 0 !important;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

.matters-list__outcome strong { color: var(--charcoal); }

/* ---- Media ---- */
.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.media-photo {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.media-photo--cert {
  background: var(--off-white);
}

.media-photo--cert img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  padding: 0;
  min-height: 320px;
  background: var(--off-white);
  display: block;
}

.media-photo--card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  min-height: 0;
  object-fit: contain;
  padding: 20px 16px;
  background: var(--white);
}

.media-photo--card {
  background: var(--off-white);
}

.media-cta {
  text-align: center;
  margin-top: 32px;
}

.media-photo figcaption {
  padding: 16px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  line-height: 1.45;
}

/* ---- Process ---- */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid var(--gold);
}

.process-step h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto;
}

/* ---- Reviews (Google Maps style) ---- */
.reviews-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.reviews-summary {
  background: var(--white);
  border: 1px solid var(--google-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.reviews-summary__score {
  font-size: 3rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1;
}

.reviews-summary__stars {
  color: var(--google-star);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin: 6px 0;
}

.reviews-summary__count {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.reviews-summary__bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.reviews-summary__bar-label { width: 28px; text-align: right; }

.reviews-summary__bar-track {
  flex: 1;
  height: 8px;
  background: #f1f3f4;
  border-radius: 4px;
  overflow: hidden;
}

.reviews-summary__bar-fill {
  height: 100%;
  background: var(--google-star);
  border-radius: 4px;
}

.reviews-summary__bar-pct { width: 36px; text-align: right; }

.reviews-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.reviews-filter {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--google-border);
  border-radius: 20px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.reviews-filter:hover { border-color: var(--google-blue); }

.reviews-filter.active {
  background: var(--google-blue-bg);
  color: var(--google-blue);
  border-color: var(--google-blue-bg);
}

.reviews-list {
  max-width: 720px;
  background: var(--white);
  border: 1px solid var(--google-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.review-card {
  padding: 20px 24px;
  border-bottom: 1px solid var(--google-border);
}

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

.review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.review-card__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}

.review-card__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
}

.review-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-card__stars {
  color: var(--google-star);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.review-card__text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 10px;
}

.review-card__tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: #f1f3f4;
  border-radius: 12px;
}

.reviews-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  max-width: 720px;
}

.reviews-pagination button {
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--google-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--google-blue);
  cursor: pointer;
  transition: var(--transition);
}

.reviews-pagination button:hover:not(:disabled) { background: var(--google-blue-bg); }
.reviews-pagination button:disabled { opacity: 0.4; cursor: not-allowed; color: var(--text-muted); }

.reviews-pagination__info {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Contact ---- */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.contact-block:last-of-type { border-bottom: none; }

.contact-block h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.contact-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  letter-spacing: 0.012em;
}

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

.contact-fee {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 14px 18px;
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  margin: 16px 0;
}

.contact-map {
  margin-top: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: var(--radius);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
}

.contact-form h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 20px; }

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #d93025;
}

.form-error {
  display: block;
  font-size: 0.78rem;
  color: #d93025;
  margin-top: 4px;
  min-height: 1em;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* ---- Footer ---- */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding-top: 64px;
}

.footer__grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo--footer .logo__name { color: var(--white); }

.footer__brand p {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer__nav h4,
.footer__contact h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.footer__nav ul { display: flex; flex-direction: column; gap: 8px; }

.footer__nav a,
.footer__contact a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}

.footer__nav a:hover,
.footer__contact a:hover { color: var(--gold); }

.footer__contact p { font-size: 0.88rem; margin-bottom: 6px; }

.footer__disclaimer {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__disclaimer p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}

.footer__copy {
  padding: 20px 0;
  text-align: center;
}

.footer__copy p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ---- Mobile bar & FABs ---- */
.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.mobile-bar__btn--call {
  color: var(--charcoal);
  border-right: 1px solid var(--border);
}

.mobile-bar__btn--wa {
  color: #25d366;
}

.fab-group {
  display: none;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .practice-card__banner { transition: none; }
  .marquee__track { animation: none; }
}

/* ---- Responsive: Tablet ---- */
@media (min-width: 600px) {
  .hero__actions { flex-direction: row; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-cta { grid-column: 1 / -1; }
  .matters-list { grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
  .matters-list__item { padding: 28px 0; }
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .media-photo--cert img { min-height: 380px; }
  .form-actions { flex-direction: row; }
  .form-actions .btn { flex: 1; }
}

/* ---- Responsive: Desktop ---- */
@media (min-width: 900px) {
  :root { --section-pad: 108px; }

  .media-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1100px; }
  .media-photo--cert img { min-height: 380px; }

  .nav-toggle { display: none; }

  .nav {
    position: static;
    width: auto; height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .nav__link {
    padding: 8px 12px;
    font-size: 0.78rem;
    border-bottom: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
  }

  .nav__link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 12px; right: 12px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
  }

  .nav__link:hover::after,
  .nav__link.active::after { transform: scaleX(1); }

  .nav__link--cta {
    margin-top: 0;
    margin-left: 8px;
    padding: 10px 18px;
    background: var(--charcoal);
  }

  .nav__link--cta::after { display: none; }

  .hero__grid {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .hero__content { flex: 1; order: 1; }
  .hero__portrait { flex: 0 0 380px; order: 2; }

  .about-grid {
    grid-template-columns: minmax(300px, 480px) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }

  .about-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: none;
    margin: 0;
  }

  .about-content {
    padding-top: 0;
  }

  .credentials-grid {
    max-width: 1100px;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: start;
  }

  .practice-grid { grid-template-columns: repeat(4, 1fr); }
  .practice-cta { grid-column: span 2; }

  .process-steps {
    flex-direction: row;
    gap: 0;
    justify-content: space-between;
  }

  .process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 20%;
    right: 20%;
    height: 0;
    border-top: 2px dashed var(--gold-light);
    z-index: 0;
  }

  .process-step { flex: 1; z-index: 1; }

  .reviews-layout {
    flex-direction: row;
    gap: 40px;
    align-items: start;
  }

  .reviews-summary { flex: 0 0 280px; }
  .reviews-main { flex: 1; }

  .contact-grid {
    flex-direction: row;
    gap: 56px;
    align-items: start;
  }

  .contact-info { flex: 1; }
  .contact-form { flex: 1; }

  .footer__grid {
    flex-direction: row;
    gap: 48px;
  }

  .footer__brand { flex: 1.2; }
  .footer__nav, .footer__contact { flex: 1; }

  .mobile-bar { display: none; }

  body { padding-bottom: 0; }

  .fab-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 900;
  }

  .fab {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--white);
  }

  .fab:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    color: var(--white);
  }

  .fab--call { background: var(--charcoal); }
  .fab--wa { background: #25d366; }
}

/* Mobile bottom padding for sticky bar */
@media (max-width: 899px) {
  body { padding-bottom: 56px; }
  :root { --section-pad: 72px; }
}
