/* ==========================================================================
   PAB LAW, P.A. — styles.css
   --------------------------------------------------------------------------
   EVERYTHING YOU MIGHT WANT TO CHANGE IS IN THE ":root" BLOCK BELOW.
   Change a color once here and it updates across every page of the site.
   ========================================================================== */

:root {

  /* ---- BRAND NAVY ---------------------------------------------------------
     --navy-700 is the firm's actual logo color. It was sampled directly out
     of the logo file (it makes up about 72% of every pixel in the logo), so
     it is the real brand color, not an approximation. The lighter and darker
     navies are all derived from it.
     ---------------------------------------------------------------------- */
  --navy-900: #0E2440;   /* Darkest navy. Footer background.                 */
  --navy-800: #102C4C;   /* Dark navy. Deep panels.                          */
  --navy-700: #15375D;   /* ** THE LOGO COLOR ** Headings, header, nav.      */
  --navy-600: #1B4573;   /* Slightly lifted navy. Button hovers.             */
  --navy-500: #2C5D91;   /* Mid navy. Text links.                            */
  --navy-300: #7FA3C7;   /* Soft navy. Icons and rules on dark backgrounds.  */
  --navy-100: #C7D6E6;   /* Pale navy. Body text ON navy backgrounds.        */
  --navy-050: #EDF2F7;   /* Barely-there navy. Hairlines and inset panels.   */

  /* ---- ACCENT (used sparingly, for buttons and calls to action only) ------
     A warm clay/terracotta. It is drawn from the firm's own imagery: the
     Miami skyline banner is navy water under a terracotta sunset, and the
     tie in the attorney's photograph is navy with rust-colored dots.
     Deliberately NOT gold — gold reads as the intimidating, marble-and-
     scales law firm cliche this site is designed to avoid.
     ---------------------------------------------------------------------- */
  --clay-700: #8E3823;   /* Darker clay. Button hover state.                 */
  --clay-600: #A8432C;   /* ** THE ACCENT ** Call-to-action buttons.         */
  --clay-500: #C0522E;   /* Lighter clay. Small highlights.                  */
  --clay-050: #FBF0EC;   /* Palest clay. Tinted callout backgrounds.         */

  /* ---- NEUTRALS ---------------------------------------------------------- */
  --white:     #FFFFFF;  /* Page background.                                 */
  --sand-50:   #F7F3EE;  /* The one soft tinted section color. Warm, not     */
                         /* grey, so it sits comfortably with the clay.      */
  --sand-100:  #EFE9E1;  /* A step darker. Borders on sand sections.         */
  --ink:       #12212F;  /* Main body text. 16.3:1 on white — very readable. */
  --muted:     #5A6B7D;  /* Secondary text, captions. 5.5:1 on white.        */
  --border:    #DFE5EB;  /* Default hairline border color.                   */

  /* ---- FOCUS RING (keyboard accessibility — do not remove) --------------- */
  --focus: #C0522E;

  /* ---- TYPEFACES ---------------------------------------------------------
     Display: Fraunces  — a warm old-style serif with real character.
     Body:    Source Sans 3 — highly legible, with full Spanish accent
                              coverage, which matters for the Español copy.
     ---------------------------------------------------------------------- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;

  /* ---- TYPE SCALE (fluid — grows smoothly between phone and desktop) ----- */
  --step--1: clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --step-0:  clamp(1.05rem, 1.01rem + 0.22vw, 1.175rem);
  --step-1:  clamp(1.25rem, 1.17rem + 0.38vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.36rem + 0.7vw, 1.95rem);
  --step-3:  clamp(1.85rem, 1.6rem + 1.2vw, 2.6rem);
  --step-4:  clamp(2.2rem, 1.75rem + 2.2vw, 3.5rem);
  --step-5:  clamp(2.6rem, 1.9rem + 3.4vw, 4.5rem);

  /* ---- SPACING ----------------------------------------------------------- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: clamp(4rem, 3rem + 5vw, 8rem);

  /* ---- SHAPE AND DEPTH --------------------------------------------------- */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(14, 36, 64, 0.06),
               0 2px 8px rgba(14, 36, 64, 0.05);
  --shadow:    0 2px 6px rgba(14, 36, 64, 0.07),
               0 12px 32px rgba(14, 36, 64, 0.09);

  /* ---- LAYOUT ------------------------------------------------------------ */
  --container: 1180px;
  --container-narrow: 760px;
  --header-h: 76px;
}

/* ==========================================================================
   RESET
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Room for the sticky mobile call bar so it never covers the footer. */
  padding-bottom: env(safe-area-inset-bottom);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  /* Fraunces variable axes: soft, low "wonk" — characterful but still
     credible for a law firm. */
  font-variation-settings: "SOFT" 20, "WONK" 0;
  color: var(--navy-700);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-sm);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); font-weight: 600; }
h2 { font-size: var(--step-3); font-weight: 600; }
h3 { font-size: var(--step-1); font-weight: 600; }
h4 { font-size: var(--step-0); font-weight: 600; }

p { margin: 0 0 var(--space-sm); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-600); }

ul, ol { margin: 0 0 var(--space-sm); padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

/* Visible keyboard focus everywhere. Never remove this. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Screen-reader-only text (still read aloud, not shown on screen). */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-sm); top: -100px; z-index: 200;
  background: var(--clay-600); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.section--sand { background: var(--sand-50); }
.section--navy { background: var(--navy-700); color: var(--navy-100); }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: var(--space-lg); }
.section-head--center { margin-inline: auto; text-align: center; }

/* Small uppercase label above a heading. */
.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay-600);
  margin-bottom: var(--space-xs);
}
.section--navy .eyebrow { color: var(--navy-300); }

.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.section--navy .lede { color: var(--navy-100); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  min-height: 52px;               /* comfortable tap target on phones */
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary — the clay accent. This is the "call us" button. */
.btn--primary { background: var(--clay-600); border-color: var(--clay-600); color: #fff; }
.btn--primary:hover { background: var(--clay-700); border-color: var(--clay-700); color: #fff; }

/* Secondary — outlined navy. */
.btn--secondary { background: transparent; border-color: var(--navy-700); color: var(--navy-700); }
.btn--secondary:hover { background: var(--navy-700); color: #fff; }

/* For use on dark navy backgrounds. */
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--navy-700); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.btn svg { width: 20px; height: 20px; flex: none; }

/* A plain text link with an arrow that nudges on hover. */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; text-decoration: none; color: var(--navy-500);
}
.link-arrow::after { content: "\2192"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   HEADER AND NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; gap: var(--space-md);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: none; margin-right: auto; }
.brand img { height: 46px; width: auto; border-radius: 4px; }

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav a {
  display: block; padding: 0.6rem 0.8rem;
  color: var(--navy-700); font-weight: 600; font-size: var(--step--1);
  text-decoration: none; border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav a:hover { background: var(--navy-050); color: var(--navy-700); }
.nav a[aria-current="page"] { color: var(--clay-600); }

/* Dropdown menus for the two practice areas that have sub-pages. */
.has-menu { position: relative; }

.has-menu > button {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 600;
  color: var(--navy-700); border-radius: var(--radius-sm);
  white-space: nowrap;
}
.has-menu > button:hover { background: var(--navy-050); }
.has-menu > button::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.has-menu > button[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 2px; }

.menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 275px; padding: 0.5rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 0;
  display: none;
}
.has-menu > button[aria-expanded="true"] + .menu { display: block; }
.menu li { margin: 0; }
.menu a { padding: 0.6rem 0.75rem; font-weight: 500; }
.menu a:hover { background: var(--sand-50); color: var(--clay-600); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }

/* ---- The English / Español toggle -------------------------------------- */
.lang-toggle {
  display: flex; align-items: center;
  background: var(--navy-050);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle button {
  border: 0; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy-700);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  transition: background-color .18s ease, color .18s ease;
  min-height: 34px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--navy-700); color: #fff; }
.lang-toggle button:hover[aria-pressed="false"] { color: var(--clay-600); }

.header-call {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.65rem 1.1rem; min-height: 44px;
  background: var(--clay-600); color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: var(--step--1); text-decoration: none;
  white-space: nowrap;
}
.header-call:hover { background: var(--clay-700); color: #fff; }
.header-call svg { width: 17px; height: 17px; }

/* ---- Mobile menu button ------------------------------------------------- */
.nav-toggle {
  display: none;
  width: 46px; height: 46px; flex: none;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--navy-700);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero { position: relative; overflow: hidden; background: var(--white); }
.hero::before {
  /* A soft navy wash behind the portrait side of the hero. */
  content: ""; position: absolute; inset: 0 0 0 55%;
  background: linear-gradient(160deg, var(--sand-50), var(--navy-050));
  z-index: 0;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-xl); align-items: center;
  padding-block: var(--space-2xl);
}

.hero h1 { margin-bottom: var(--space-md); }
.hero .lede { margin-bottom: var(--space-lg); max-width: 34rem; }

.hero-reassure {
  display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-lg);
  font-size: var(--step--1); color: var(--muted);
}
.hero-reassure span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-reassure svg { width: 17px; height: 17px; color: var(--clay-600); flex: none; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 6; object-fit: cover; object-position: top center;
}

/* The attorney's name card that overlaps the photo. */
.hero-namecard {
  position: absolute; left: -1.25rem; bottom: 1.75rem;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.35rem;
  border-left: 4px solid var(--clay-600);
  max-width: 17rem;
}
.hero-namecard strong {
  display: block; font-family: var(--font-display);
  font-size: var(--step-0); color: var(--navy-700); line-height: 1.25;
}
.hero-namecard span { font-size: var(--step--1); color: var(--muted); }

/* ==========================================================================
   PAGE HEADER (used on every page except the homepage)
   ========================================================================== */

.page-head { background: var(--navy-700); color: var(--navy-100); }
.page-head .container { padding-block: var(--space-xl); }
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head .lede { color: var(--navy-100); max-width: 46rem; }

.breadcrumb {
  list-style: none; padding: 0; margin: 0 0 var(--space-sm);
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  font-size: var(--step--1); color: var(--navy-300);
}
.breadcrumb li { margin: 0; display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--navy-500); }
.breadcrumb a { color: var(--navy-100); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   TRUST BADGE ROW
   ========================================================================== */

.badges { border-block: 1px solid var(--border); background: var(--white); }
.badges .container { padding-block: var(--space-lg); }

.badges-title {
  text-align: center; font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--space-md);
}

.badge-row {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: var(--space-md) var(--space-lg);
}
.badge-row img {
  height: 74px; width: auto;
  opacity: 0.72; filter: saturate(0.85);
  transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}
.badge-row img:hover { opacity: 1; filter: none; transform: scale(1.05); }

/* ==========================================================================
   CARDS — practice areas
   ========================================================================== */

.card-grid {
  display: grid; gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--navy-300); }

.card-icon {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  background: var(--clay-050); color: var(--clay-600);
  border-radius: var(--radius); margin-bottom: var(--space-sm);
}
.card-icon svg { width: 27px; height: 27px; }

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: var(--step--1); }

.card-links { list-style: none; padding: 0; margin: var(--space-sm) 0 var(--space-md); }
.card-links li { margin-bottom: 0.3rem; }
.card-links a {
  font-size: var(--step--1); color: var(--navy-500);
  text-decoration: none; font-weight: 600;
}
.card-links a:hover { color: var(--clay-600); text-decoration: underline; }

.card .link-arrow { margin-top: auto; }

/* ==========================================================================
   VISION AND VALUES
   ========================================================================== */

.vision-quote {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 0;
  font-size: var(--step-2); font-weight: 400; line-height: 1.4;
  color: var(--navy-700); margin: 0 0 var(--space-lg);
  border-left: 4px solid var(--clay-600); padding-left: var(--space-md);
}

.values {
  display: grid; gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  list-style: none; padding: 0; margin: 0;
}
.values li { margin: 0; }
.values h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.values p { font-size: var(--step--1); color: var(--muted); }
.values .num {
  display: block; font-family: var(--font-display);
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em;
  color: var(--clay-600); margin-bottom: 0.5rem;
}

/* ==========================================================================
   SPLIT SECTION — attorney intro, offices
   ========================================================================== */

.split {
  display: grid; gap: var(--space-xl);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.split--portrait { grid-template-columns: 0.85fr 1.15fr; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.contact-list { list-style: none; padding: 0; margin: var(--space-md) 0 0; }
.contact-list li { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.contact-list svg { width: 19px; height: 19px; color: var(--clay-600); flex: none; }
.contact-list a { color: var(--navy-700); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--clay-600); text-decoration: underline; }

/* ==========================================================================
   REVIEWS
   ========================================================================== */

.reviews-grid {
  display: grid; gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.review {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  display: flex; flex-direction: column;
}
.review blockquote {
  margin: 0 0 var(--space-md); font-size: var(--step-0);
  color: var(--ink); line-height: 1.6;
}
.review footer { margin-top: auto; font-size: var(--step--1); color: var(--muted); }
.review footer strong { display: block; color: var(--navy-700); font-size: var(--step-0); }

.stars { display: flex; gap: 2px; margin-bottom: var(--space-sm); color: #E8A33D; }
.stars svg { width: 19px; height: 19px; }

/* ==========================================================================
   OFFICES
   ========================================================================== */

.office-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* When there is only one office card, keep it from stretching the full
   width of the page. */
.office-grid--single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.office {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.office img { width: 100%; height: 190px; object-fit: cover; }
.office-body { padding: var(--space-md); display: flex; flex-direction: column; flex: 1; }
.office h3 { margin-bottom: 0.35rem; }
.office address { font-style: normal; color: var(--muted); font-size: var(--step--1); margin-bottom: var(--space-sm); }
.office .btn-row { margin-top: auto; padding-top: var(--space-sm); }

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: var(--space-md); }
.field-row { display: grid; gap: var(--space-md); grid-template-columns: 1fr 1fr; }

label {
  display: block; margin-bottom: 0.4rem;
  font-weight: 600; font-size: var(--step--1); color: var(--navy-700);
}
.req { color: var(--clay-600); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 0.8rem 0.95rem; min-height: 50px;
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(44, 93, 145, 0.18);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

.field-hint { font-size: var(--step--1); color: var(--muted); margin-top: 0.35rem; }

.form-note {
  font-size: var(--step--1); color: var(--muted);
  background: var(--sand-50); border-radius: var(--radius-sm);
  padding: var(--space-sm); margin-top: var(--space-md);
}

.form-status { margin-top: var(--space-sm); font-weight: 600; }
.form-status[data-state="ok"]   { color: #1B6B45; }
.form-status[data-state="error"]{ color: var(--clay-700); }

/* ==========================================================================
   ARTICLE — the practice sub-pages
   ========================================================================== */

.article-layout {
  display: grid; gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-lg); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-md); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.55rem; }
.prose strong { color: var(--navy-700); }

.callout {
  background: var(--clay-050);
  border-left: 4px solid var(--clay-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-md);
  margin: var(--space-lg) 0;
}
.callout h3 { margin-top: 0; }

.sidebar { position: sticky; top: calc(var(--header-h) + var(--space-md)); display: grid; gap: var(--space-md); }

.sidebar-card {
  background: var(--sand-50); border: 1px solid var(--sand-100);
  border-radius: var(--radius-lg); padding: var(--space-md);
}
.sidebar-card h3 { font-size: var(--step-1); }
.sidebar-card p { font-size: var(--step--1); color: var(--muted); }
.sidebar-card .btn { width: 100%; margin-top: var(--space-sm); }

.sibling-links { list-style: none; padding: 0; margin: 0; }
.sibling-links li { margin-bottom: 0.2rem; }
.sibling-links a {
  display: block; padding: 0.55rem 0.7rem;
  font-size: var(--step--1); font-weight: 600;
  color: var(--navy-700); text-decoration: none;
  border-radius: var(--radius-sm);
}
.sibling-links a:hover { background: #fff; color: var(--clay-600); }
.sibling-links a[aria-current="page"] {
  background: #fff; color: var(--clay-600);
  box-shadow: inset 3px 0 0 var(--clay-600);
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */

.cta-banner { background: var(--navy-700); color: #fff; }
.cta-banner .container {
  padding-block: var(--space-xl);
  display: flex; flex-wrap: wrap; gap: var(--space-md);
  align-items: center; justify-content: space-between;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-banner p { color: var(--navy-100); margin: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { background: var(--navy-900); color: var(--navy-100); }
.site-footer .container { padding-block: var(--space-xl); }

.footer-grid {
  display: grid; gap: var(--space-lg);
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
.footer-grid h4 {
  color: #fff; font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--font-body); margin-bottom: var(--space-sm);
}
.site-footer img.footer-logo { height: 52px; width: auto; border-radius: 4px; margin-bottom: var(--space-sm); }
.site-footer p, .site-footer li { font-size: var(--step--1); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--navy-100); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.social-row { display: flex; gap: 0.6rem; margin-top: var(--space-sm); }
.social-row a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm);
}
.social-row a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.social-row svg { width: 19px; height: 19px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: var(--space-lg); padding-top: var(--space-md);
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  justify-content: space-between;
  font-size: 0.85rem; color: var(--navy-300);
}
.footer-bottom p { margin: 0; }
.disclaimer { max-width: 62ch; line-height: 1.55; }

/* ==========================================================================
   STICKY MOBILE CALL BAR
   ========================================================================== */

.call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--navy-700);
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
  box-shadow: 0 -4px 20px rgba(14,36,64,.22);
}
.call-bar a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.45rem; min-height: 50px; padding: 0.7rem 0.6rem;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
}
.call-bar .call { background: var(--clay-600); color: #fff; }
.call-bar .text { background: #fff; color: var(--navy-700); }
.call-bar svg { width: 18px; height: 18px; }

/* ==========================================================================
   SCROLL REVEAL — subtle, and switched off for reduced-motion users
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  /* Mobile navigation drops into a full-width panel under the header. */
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: var(--space-sm);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  /* Long practice-area names must wrap inside the mobile panel rather than
     run off the edge, so drop the desktop nav's no-wrap rule here. */
  .nav a, .has-menu > button {
    padding: 0.85rem 0.75rem; font-size: var(--step-0); width: 100%;
    white-space: normal;
  }
  .has-menu > button::after { flex: none; }
  .has-menu > button { justify-content: space-between; }
  .menu {
    position: static; display: none; box-shadow: none; border: 0;
    border-left: 2px solid var(--border); border-radius: 0;
    margin: 0 0 0 0.75rem; padding: 0; min-width: 0;
  }
  .header-inner { position: relative; }
  .header-call span { display: none; }        /* icon-only phone button */
  .header-call { padding: 0.65rem 0.8rem; }

  .hero::before { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-lg); padding-block: var(--space-xl); }
  .hero-figure { order: -1; max-width: 400px; }
  .hero-figure img { aspect-ratio: 4 / 3; }
  .hero-namecard { left: auto; right: 0.75rem; bottom: -1rem; }

  .split, .split--portrait { grid-template-columns: 1fr; gap: var(--space-lg); }

  /* Sticky call bar appears only on phones and small tablets. */
  .call-bar { display: flex; }
  body { padding-bottom: 74px; }
  .site-footer { padding-bottom: var(--space-sm); }
}

@media (max-width: 620px) {
  /* Tighten the page gutters and the header so that everything fits inside
     a 375px phone screen without the page scrolling sideways. */
  .container { padding-inline: var(--space-sm); }
  .header-inner { gap: var(--space-sm); }
  .brand img { height: 40px; }
  .header-actions { gap: 0.45rem; }
  .lang-toggle button { padding: 0.42rem 0.7rem; }

  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .badge-row { gap: var(--space-md); }
  .badge-row img { height: 58px; }
  .btn-row .btn { width: 100%; }
  .cta-banner .container { flex-direction: column; align-items: flex-start; }
  .vision-quote { padding-left: var(--space-sm); }
  .hero-namecard { position: static; margin-top: var(--space-sm); max-width: none; }
}

/* Very narrow phones (iPhone SE and similar, 320px wide). */
@media (max-width: 380px) {
  .brand img { height: 34px; }
  .header-actions { gap: 0.35rem; }
  .lang-toggle button { padding: 0.42rem 0.55rem; font-size: 0.78rem; }
  .header-call { padding: 0.65rem 0.7rem; }
}

/* ==========================================================================
   REDUCED MOTION — respect the operating system setting
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .badge-row img:hover { transform: none; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .site-header, .call-bar, .cta-banner, .nav-toggle { display: none !important; }
  body { color: #000; }
  a { text-decoration: underline; }
}

/* ==========================================================================
   DECORATIVE FULL-WIDTH IMAGE BAND (the Miami skyline above the offices)
   ========================================================================== */

.image-band {
  height: clamp(140px, 22vw, 260px);
  width: 100%;
  object-fit: cover;
  object-position: center 62%;
}
