/* ==========================================================================
   Dudi Britman Law Firm — Design Tokens & Base
   ========================================================================== */

:root {
  /* Color palette — derived from the firm logo (charcoal + gold),
     lightened so the site reads as inviting rather than heavy. */
  --color-bg: #faf7f2;
  --color-bg-alt: #f2ece2;
  --color-surface: #ffffff;
  --color-text: #1f1b16;
  --color-text-muted: #5a5248;
  --color-dark: #22201c;
  --color-dark-alt: #2c2822;
  --color-gold: #b8925a;
  --color-gold-light: #d8b98a;
  --color-gold-dark: #96794a;
  --color-border: #e4dccc;

  /* Type */
  --font-heading: "Rubik", "Heebo", sans-serif;
  --font-sans: "Heebo", "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  /* Layout */
  --max-width: 1140px;
  --radius: 6px;
  --shadow-soft: 0 10px 30px rgba(34, 32, 28, 0.08);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --nav-height: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: 0.02em;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-3);
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--color-gold);
}

.section-intro {
  max-width: 640px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-4);
}

.section-intro.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

section {
  padding: var(--space-6) 0;
}

section[id] {
  scroll-margin-top: var(--nav-height);
}

/* Framed motif — echoes the square frame around the logo's monogram */
.framed {
  position: relative;
  border: 1px solid var(--color-gold);
  padding: var(--space-1);
}

.framed::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--color-gold-light);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

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

.btn-gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  border-color: rgba(250, 247, 242, 0.35);
  color: var(--color-bg);
}

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

.btn-outline-dark {
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-outline-dark:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 20px rgba(34, 32, 28, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-brand img {
  height: 44px;
  width: auto;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text);
  line-height: 1.2;
}

.nav-brand-text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-gold-dark);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 600;
}

.nav-phone svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-gold-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  color: var(--color-bg);
  overflow: hidden;
  padding: 130px 0 70px;
}

/* assets/hero-chess.jpg: "A Chess Board with Silver and Gold Pieces"
   by Peter Kambey, Pexels license (free for commercial use, no
   attribution required) — pexels.com/photo/15574419
   Kept on its own layer (rather than baked into .hero's background) so the
   brightness filter lifts only the photo, not the text sitting on top of it. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to left, rgba(34, 32, 28, 0.78) 0%, rgba(34, 32, 28, 0.45) 40%, rgba(34, 32, 28, 0.18) 75%, rgba(34, 32, 28, 0.05) 100%),
    url("assets/hero-chess.jpg") center / cover no-repeat;
  filter: brightness(1.08) contrast(1.03) saturate(1.05);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-3);
  opacity: 0;
  animation: fade-up 0.8s var(--transition) 0.1s forwards;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-gold);
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  color: var(--color-bg);
  margin-bottom: var(--space-3);
  opacity: 0;
  animation: fade-up 0.8s var(--transition) 0.25s forwards;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-gold-light);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(250, 247, 242, 0.75);
  max-width: 560px;
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: fade-up 0.8s var(--transition) 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  opacity: 0;
  animation: fade-up 0.8s var(--transition) 0.55s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Reveal-on-scroll utility
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

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

/* ==========================================================================
   About
   ========================================================================== */

.about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-5);
  align-items: start;
}

.about-portrait-wrap {
  position: sticky;
  top: 110px;
}

.about-portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, var(--color-dark) 0%, #3c362d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 247, 242, 0.35);
}

.about-portrait img {
  width: 110px;
  opacity: 0.85;
}

.about-portrait-caption {
  margin-top: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Values
   ========================================================================== */

.values {
  background: var(--color-bg-alt);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-2);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-gold);
}

.value-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
}

.value-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-gold-dark);
}

.value-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.value-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Practice Areas
   ========================================================================== */

.practice {
  background: var(--color-bg);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.practice-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-gold);
}

.practice-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.practice-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-gold-dark);
}

.practice-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.practice-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
  background: var(--color-dark);
  color: var(--color-bg);
}

.testimonials .section-label {
  color: var(--color-gold-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.testimonial-card {
  background: rgba(250, 247, 242, 0.04);
  border: 1px solid rgba(184, 146, 90, 0.2);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.testimonial-quote-mark {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.testimonial-card p {
  color: rgba(250, 247, 242, 0.8);
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
}

.testimonial-author {
  font-size: 0.85rem;
  color: var(--color-gold-light);
  font-weight: 600;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--color-bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-gold);
}

.contact-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-2);
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-gold-dark);
}

.contact-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.contact-card a,
.contact-card span {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  display: block;
}

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

.contact-note {
  text-align: center;
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-dark);
  color: rgba(250, 247, 242, 0.7);
  padding: var(--space-5) 0 var(--space-3);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(184, 146, 90, 0.2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.footer-brand img {
  height: 40px;
}

.footer-brand-text {
  font-family: var(--font-heading);
  color: var(--color-bg);
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-gold-light);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.footer-contact a:hover {
  color: var(--color-gold-light);
}

.footer-bottom {
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.45);
}

.footer-legal-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.45);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--transition);
}

.footer-legal-link:hover {
  color: var(--color-gold-light);
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: var(--space-3);
  left: var(--space-3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow-soft);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Accessibility widget
   ========================================================================== */

.a11y-widget {
  position: fixed;
  bottom: var(--space-3);
  right: var(--space-3);
  z-index: 110;
}

.a11y-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-gold-light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), background var(--transition);
}

.a11y-toggle:hover {
  transform: translateY(-2px);
  background: var(--color-dark-alt);
}

.a11y-toggle svg {
  width: 22px;
  height: 22px;
}

.a11y-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - (var(--space-3) * 2));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: var(--color-dark);
  color: var(--color-bg);
}

.a11y-panel-header h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

.a11y-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.a11y-close svg {
  width: 16px;
  height: 16px;
}

.a11y-panel-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--color-text);
}

.a11y-stepper {
  display: flex;
  gap: 6px;
}

.a11y-stepper button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.a11y-stepper button:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

.a11y-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  text-align: right;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.a11y-option:hover {
  border-color: var(--color-gold);
}

.a11y-option[aria-pressed="true"] {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

.a11y-reset {
  color: var(--color-text-muted);
  justify-content: center;
}

.a11y-panel-footer {
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.a11y-panel-footer button {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--color-gold-dark);
  cursor: pointer;
  text-decoration: underline;
}

/* Accessibility modes — these remap the design tokens (contrast) or apply
   broad, targeted overrides (grayscale, underline, stop-animations) so a
   single toggle re-themes the whole page consistently. */

html {
  font-size: calc(100% * var(--a11y-font-scale, 1));
}

html.a11y-contrast {
  --color-bg: #ffffff;
  --color-bg-alt: #ffffff;
  --color-surface: #ffffff;
  --color-text: #000000;
  --color-text-muted: #1a1a1a;
  --color-dark: #000000;
  --color-dark-alt: #000000;
  --color-gold: #96700a;
  --color-gold-light: #ffcc33;
  --color-gold-dark: #6b4f07;
  --color-border: #000000;
}

html.a11y-grayscale body {
  filter: grayscale(1);
}

html.a11y-underline a:not(.btn):not(.nav-brand):not(.footer-brand):not(.back-to-top):not(.a11y-toggle) {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

html.a11y-stop-animations *,
html.a11y-stop-animations *::before,
html.a11y-stop-animations *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0s !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Modal (accessibility statement, privacy policy, etc.)
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 32, 28, 0.55);
}

.modal-content {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
}

.modal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.modal-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  font-size: 0.95rem;
}

.modal-content p:last-child {
  margin-bottom: 0;
}

.modal-content strong {
  color: var(--color-text);
}

.modal-content a {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

.modal-content a:hover {
  color: var(--color-gold);
}

.modal-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}

.modal-close {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 6px;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-portrait-wrap {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

@media (max-width: 720px) {
  .nav-links,
  .nav-phone {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-2);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding: var(--space-5) 0;
  }

  /* Stack into clean full-width lines instead of an unpredictable wrap,
     and clear the fixed back-to-top / accessibility buttons that float
     over the bottom-left and bottom-right corners of the viewport. */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .footer {
    padding-bottom: 100px;
  }
}

@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}
