/* ==========================================================================
   Barrie Legal — Global Styles
   ========================================================================== */

:root {
  /* Brand palette, sampled from the Barrie Legal logo */
  --navy: #060b37;
  --navy-dark: #040827;
  --navy-light: #0d1a5c;
  --blue: #0000b6;
  --gold: #8e6e1d;
  --gold-text: #86671a;
  --gold-dark: #6f5516;
  --gold-light: #d9b650;
  --cream: #f7f5f1;
  --white: #ffffff;
  --gray-100: #f2f2f0;
  --gray-300: #d8d6d1;
  --gray-500: #8a8983;
  --gray-700: #4a4944;
  --text: #1e2228;
  --serif: 'Georgia', 'Times New Roman', Times, serif;
  --sans: 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1180px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.25;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow {
  color: var(--gold-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

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

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

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

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

.btn-outline-dark:hover {
  background: var(--blue);
  color: var(--white);
}

/* ---------------- Language notice ---------------- */

.lang-bar {
  background: var(--gold-light);
  color: var(--navy-dark);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 9px 0;
}

.lang-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.lang-bar svg,
.hero-lang svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lang-bar .lang-sep {
  opacity: 0.55;
}

.hero-lang {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 26px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

.hero-lang .lang-sep {
  opacity: 0.6;
}

.translate-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.translate-switch button {
  background: transparent;
  border: 1px solid rgba(4, 8, 39, 0.4);
  border-radius: 999px;
  color: var(--navy-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 3px 11px;
  transition: background var(--transition), color var(--transition);
}

.translate-switch button:hover {
  background: rgba(4, 8, 39, 0.14);
}

.translate-switch button[aria-pressed="true"] {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--gold-light);
}

.translate-note {
  background: var(--cream);
  border-bottom: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-size: 0.86rem;
  padding: 10px 0;
  text-align: center;
}

.translate-note button {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  margin-left: 8px;
  padding: 0;
  text-decoration: underline;
}

/* Keep Google's own translation widget UI out of the way; our switch replaces it */
#google_translate_element {
  position: absolute;
  left: -9999px;
  top: 0;
  height: 0;
  overflow: hidden;
}

iframe.goog-te-banner-frame,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-tooltip,
.goog-te-balloon-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

.footer-lang {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-light);
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: 0.01em;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-seal {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

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

.logo-text em,
.footer-logo em {
  font-style: normal;
  color: var(--gold-light);
}

.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  color: var(--gray-300);
  margin-top: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--gray-100);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

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

.nav-cta {
  margin-left: 8px;
}

.nav-links a {
  white-space: nowrap;
}

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

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background:
    radial-gradient(70% 90% at 90% 10%, rgba(0, 0, 182, 0.34) 0%, rgba(0, 0, 182, 0) 62%),
    linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 60px 0 72px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 182, 80, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 182, 80, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  left: -150px;
  bottom: -190px;
  width: 580px;
  height: 580px;
  background: url("../images/logo-seal.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 72px;
  align-items: center;
}

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

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 0 0 auto;
}

.hero-visual {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(217, 182, 80, 0.55);
  box-shadow: 0 26px 60px rgba(0, 0, 20, 0.55);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.hero-visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 64px 22px 20px;
  background: linear-gradient(to top, rgba(4, 8, 39, 0.94) 0%, rgba(4, 8, 39, 0.7) 55%, rgba(4, 8, 39, 0) 100%);
  font-size: 0.82rem;
  color: var(--gray-300);
}

.hero-visual figcaption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--white);
}

/* Entrance animation for the banner and scroll reveal for the rest of the page */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-inner > * {
  animation: fadeUp 0.8s ease backwards;
}

.hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.24s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.32s; }

.hero-visual {
  animation: fadeUp 0.9s 0.2s ease backwards;
}

.reveal {
  opacity: 0;
}

.reveal.in-view {
  opacity: 1;
  animation: fadeUp 0.7s ease backwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner > *,
  .hero-visual,
  .reveal.in-view {
    animation: none;
  }
  .reveal {
    opacity: 1;
  }
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--gray-300);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 170px));
  gap: 24px 40px;
  margin-top: 48px;
}

.hero-stats .stat-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--gold-light);
}

.hero-stats .stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-top: 4px;
}

/* Sub-page hero (smaller) */

.page-hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.breadcrumb .gold {
  color: var(--gold-light);
}

/* ---------------- Sections ---------------- */

section {
  padding: 96px 0;
}

.section-alt {
  background: var(--cream);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

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

.section-head h2 {
  font-size: 2.1rem;
}

.section-head p {
  color: var(--gray-700);
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ---------------- Cards / Grids ---------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: 40px 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(6, 11, 55, 0.10);
  border-color: var(--gold);
}

.card .icon {
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.card .icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--gray-700);
  font-size: 0.96rem;
}

.card a.learn-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ---------------- Practice Area detail rows ---------------- */

.practice-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-300);
}

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

.practice-detail .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold-text);
}

.practice-detail h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.practice-detail p {
  color: var(--gray-700);
  margin-bottom: 16px;
}

.practice-detail ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.practice-detail ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

/* ---------------- Attorneys ---------------- */

.attorney-card {
  text-align: center;
}

.attorney-photo {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.attorney-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.attorney-card .role {
  color: var(--gold-text);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.attorney-card p {
  color: var(--gray-700);
  font-size: 0.92rem;
}

/* ---------------- Values / About ---------------- */

.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.value-item h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.value-item h4::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.value-item p {
  color: var(--gray-700);
  font-size: 0.94rem;
}

.timeline {
  border-left: 2px solid var(--gray-300);
  margin-top: 40px;
  padding-left: 40px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--gold);
}

.timeline-item .year {
  font-family: var(--serif);
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--gray-700);
}

/* ---------------- Practice area detail pages ---------------- */

.practice-intro {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}

.practice-intro p {
  color: var(--gray-700);
  margin-bottom: 16px;
}

.glance {
  background: var(--cream);
  border: 1px solid var(--gray-300);
  border-top: 3px solid var(--gold);
  padding: 28px 28px 24px;
}

.glance h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.glance ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-300);
  font-size: 0.92rem;
  color: var(--gray-700);
}

.glance ul li:last-child {
  border-bottom: none;
}

.glance ul li strong {
  display: block;
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.glance .btn {
  display: block;
  margin-top: 18px;
}

.related-links {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--gray-700);
}

.related-links a {
  text-decoration: underline;
}

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--gray-300);
  margin-bottom: 12px;
}

.faq details[open] {
  border-color: var(--gold);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--navy);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .faq-body {
  padding: 0 22px 20px;
  color: var(--gray-700);
  font-size: 0.96rem;
}

.faq .faq-body ul {
  margin: 10px 0 0 20px;
  list-style: disc;
}

.faq .faq-body ul li {
  margin-bottom: 4px;
}

.general-info {
  max-width: 820px;
  margin: 28px auto 0;
  font-size: 0.8rem;
  color: var(--gray-500);
  text-align: center;
}

.learn-more-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ---------------- CTA band ---------------- */

.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}

.cta-band h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--gray-300);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------- Contact ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 32px;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-item p, .contact-info-item a {
  color: var(--gray-700);
  font-size: 0.94rem;
}

.form-error {
  display: none;
  background: #fbeceb;
  border: 1px solid #a3312a;
  color: #7d2520;
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.form-error.show {
  display: block;
}

.form-error a {
  text-decoration: underline;
}

.map-embed {
  margin-top: 8px;
  height: 260px;
  overflow: hidden;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.85rem;
}

#schedule {
  scroll-margin-top: 108px;
}

.schedule-embed {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-300);
}

.form-card {
  background: var(--cream);
  border: 1px solid var(--gray-300);
  padding: 48px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 0, 182, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group .error-msg {
  display: none;
  color: #a3312a;
  font-size: 0.8rem;
  margin-top: 6px;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #a3312a;
}

.form-group.invalid .error-msg {
  display: block;
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 18px;
}

.form-success {
  display: none;
  background: #eaf3ec;
  border: 1px solid #3f7a52;
  color: #2c5b3c;
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.form-success.show {
  display: block;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--navy-dark);
  color: var(--gray-300);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-grid p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

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

.footer-grid ul li a:hover {
  color: var(--gold-light);
}

.photo-figure {
  margin: 8px 0 20px;
}

.photo-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(6, 11, 55, 0.16);
}

.photo-figure figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.footer-seal {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
}

.portrait-figure {
  margin: 0;
}

.portrait {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(6, 11, 55, 0.20);
}

.portrait-figure figcaption {
  max-width: 460px;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--gray-700);
}

.portrait-figure figcaption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--navy);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-disclosure {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--gray-300);
}

.footer-disclosure p + p {
  margin-top: 4px;
}

.footer-disclosure strong {
  color: var(--white);
  font-weight: 600;
}

.scope-note {
  display: inline-block;
  margin: 4px 0 18px;
  padding: 8px 14px;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  font-size: 0.86rem;
  color: var(--navy);
  font-weight: 600;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

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

/* ---------------- Utilities ---------------- */

.disclaimer-banner {
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.78rem;
  text-align: center;
  padding: 10px 24px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .practice-detail {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .practice-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-visual {
    max-width: 320px;
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .values-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .logo {
    gap: 12px;
    font-size: 1.8rem;
    white-space: nowrap;
  }
  .logo-seal {
    width: 54px;
    height: 54px;
  }
  .logo small {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
  }
}

@media (max-width: 400px) {
  .lang-bar {
    font-size: 0.82rem;
  }
  .lang-bar svg,
  .lang-bar .lang-sep,
  .hero-lang .lang-sep {
    display: none;
  }
  .translate-switch {
    gap: 8px;
  }
  .translate-switch button {
    font-size: 0.84rem;
    padding: 8px 15px;
  }
  .lang-bar .container {
    gap: 2px 16px;
  }
  .logo {
    gap: 10px;
    font-size: 1.5rem;
  }
  .logo-seal {
    width: 46px;
    height: 46px;
  }
  .logo small {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
  }
  .container {
    padding: 0 16px;
  }
}

/* Collapse the menu at tablet widths so the larger firm name never gets squeezed */
@media (max-width: 1000px) {
  .nav-links {
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-cta {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero {
    padding: 80px 0 96px;
  }
  section {
    padding: 64px 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
