/* ============================================================
   Pichardo-Riestra Law — Modernization Preview Stylesheet
   Minimal Editorial Style · 2 Color Themes (Rose Gold / Soft Cream)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; transition: background-color 0.4s ease; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ============================================================
   THEME TOKENS
   ============================================================ */

:root,
[data-theme="rose-gold"] {
  --primary:       #9B4E63;
  --primary-light: #b5697a;
  --primary-dark:  #7a3a4e;
  --accent:        #D4A862;
  --accent-light:  #e0be82;
  --accent-dark:   #b88a45;
  --bg:            #FDF5F3;
  --bg-alt:        #F5E8E5;
  --bg-dark:       #9B4E63;
  --surface:       #ffffff;
  --text:          #2e1a22;
  --text-light:    #6a3f50;
  --text-muted:    #a07880;
  --border:        #e8d0cc;
  --shadow:        rgba(155, 78, 99, 0.08);
}

[data-theme="soft-cream"] {
  --primary:       #9B4E63;
  --primary-light: #b5697a;
  --primary-dark:  #7a3a4e;
  --accent:        #D4A862;
  --accent-light:  #e0be82;
  --accent-dark:   #b88a45;
  --bg:            #FEF8F0;
  --bg-alt:        #F8EFE4;
  --bg-dark:       #9B4E63;
  --surface:       #FFFCF7;
  --text:          #2e1a22;
  --text-light:    #6a3f50;
  --text-muted:    #a07880;
  --border:        #edd5c0;
  --shadow:        rgba(155, 78, 99, 0.06);
}

/* ============================================================
   BASE
   ============================================================ */

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
  color: var(--text);
  font-weight: 600;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }

/* ── Section Labels ── */
.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 56px;
  font-weight: 300;
  line-height: 1.8;
}

/* ── Divider line motif ── */
.rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 20px 0;
}

/* ============================================================
   PREVIEW BANNER
   ============================================================ */

.preview-banner {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 7px 16px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.preview-banner strong { color: var(--accent); }

/* ============================================================
   TOP BAR
   ============================================================ */

.top-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  padding: 9px 0;
  color: var(--text-muted);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a { color: var(--text-muted); transition: color 0.15s; }
.top-bar a:hover { color: var(--accent); }
.top-bar .phone-link { color: var(--text); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em; }

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 30px;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 12px;
  position: relative;
}

.site-logo img { height: 48px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.site-nav li { position: relative; }

.site-nav > li > a {
  display: block;
  padding: 6px 10px;
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-light);
  transition: color 0.15s;
  white-space: nowrap;
  text-transform: uppercase;
}

.site-nav > li > a:hover,
.site-nav > li > a.active {
  color: var(--primary);
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  min-width: 220px;
  list-style: none;
  padding: 8px 0;
  z-index: 100;
  box-shadow: 0 8px 32px var(--shadow);
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.15s, padding-left 0.15s;
}

.dropdown-menu a:hover { color: var(--primary); padding-left: 26px; }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 7px 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  margin-left: 6px;
}

.nav-cta:hover { background: var(--accent-dark) !important; color: #fff !important; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: -32px;
  right: -32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 2px solid var(--accent);
  list-style: none;
  padding: 0 0 16px;
  z-index: 999;
}

.mobile-nav.open { display: block; }

.mobile-nav li a {
  display: block;
  padding: 11px 32px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.mobile-nav .mobile-sub a {
  padding-left: 48px;
  color: var(--text-muted);
  font-size: 0.73rem;
}

.mobile-nav .mobile-cta-item a {
  margin: 12px 32px 0;
  display: block;
  background: var(--accent);
  color: #fff !important;
  text-align: center;
  padding: 11px !important;
  font-weight: 600;
  border: none;
  letter-spacing: 0.08em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  border-radius: 0;
}

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); border-radius: 4px; }
.btn-outline:hover { background: transparent; border-color: #fff; color: #fff; }

.btn-dark { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-dark:hover { background: var(--primary-light); border-color: var(--primary-light); }

.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }

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

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.65) 50%,
    rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 100px 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.hero-areas {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  margin-bottom: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 14px 0;
}

.hero-areas span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.hero-areas span:last-child { border-right: none; }

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   TRUST BAR
   ============================================================ */

.trust-bar {
  background: var(--primary);
  padding: 0;
  border-top: 3px solid var(--accent);
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 36px 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}

.trust-item:last-child { border-right: none; }

.trust-item .number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.trust-item .label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 8px;
  display: block;
}

/* ============================================================
   PRACTICE AREAS
   ============================================================ */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.practice-card {
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
  cursor: default;
}

.practice-card:hover { background: var(--bg-alt); }

.practice-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.practice-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
  filter: grayscale(30%);
}

.practice-card:hover .practice-card-img img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.practice-card-body {
  padding: 28px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 2px solid transparent;
  transition: border-color 0.2s;
}

.practice-card:hover .practice-card-body { border-color: var(--accent); }

.practice-card-icon {
  display: none; /* clean minimal look — no icons */
}

.practice-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.practice-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
  font-weight: 300;
}

/* Expandable subcategory chips */
.card-subs {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.25s ease, margin-top 0.25s ease;
  margin-top: 0;
}

.practice-card:hover .card-subs {
  max-height: 160px;
  opacity: 1;
  margin-top: 14px;
}

.card-subs-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-subs-inner span {
  font-size: 0.64rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 3px 8px;
  white-space: nowrap;
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}

.practice-card:hover .card-subs-inner span { color: var(--text-light); border-color: var(--accent); }

.practice-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.2s;
}

.practice-card .card-link:hover { gap: 12px; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */

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

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

.about-img-wrap { position: relative; }

.about-img-wrap img {
  width: 100%;
  display: block;
  filter: grayscale(20%);
}

.about-badge {
  position: absolute;
  bottom: 0;
  right: -24px;
  background: var(--accent);
  color: #fff;
  width: 112px;
  height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.about-badge .big {
  font-size: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1;
  display: block;
  margin-bottom: 2px;
}

.about-text .section-tag { color: var(--accent-light, var(--accent)); }
.about-text .section-title { color: #fff; }
.about-text p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
}

.about-checklist { list-style: none; margin: 24px 0 32px; }

.about-checklist li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-weight: 300;
}

.about-checklist li::before {
  content: '—';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 0.8rem;
}

/* ============================================================
   TEAM
   ============================================================ */

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

.team-card {
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card-img {
  height: 320px;
  overflow: hidden;
  position: relative;
}

.team-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  transition: background 0.25s;
}

.team-card:hover .team-card-img::after { background: var(--accent); }

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(25%);
  transition: filter 0.4s;
}

.team-card:hover .team-card-img img { filter: grayscale(0%); }

.team-card-info { padding: 20px 0 0; }

.team-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.team-card .role {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.team-card .bio {
  font-size: 0.84rem;
  color: var(--text-light);
  margin-top: 10px;
  line-height: 1.65;
  font-weight: 300;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

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

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

.testimonial-card {
  background: transparent;
  border-top: 2px solid var(--border);
  padding-top: 28px;
  transition: border-color 0.2s;
}

.testimonial-card:hover { border-color: var(--accent); }

.testimonial-card::before { display: none; }

.stars { color: var(--accent); font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 14px; }

.testimonial-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 18px;
}

.testimonial-author {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.cta-banner {
  background: var(--primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 28rem;
  color: rgba(255,255,255,0.03);
  position: absolute;
  top: -80px;
  right: 40px;
  line-height: 1;
  pointer-events: none;
}

.cta-banner .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.cta-banner p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  font-weight: 300;
  margin: 0;
  max-width: 480px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  flex-shrink: 0;
}

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

.site-footer {
  background: var(--primary-dark, var(--primary));
  color: rgba(255,255,255,0.55);
  padding: 64px 0 0;
}

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

.footer-logo { height: 44px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.9; }

.footer-about p { font-size: 0.84rem; line-height: 1.8; color: rgba(255,255,255,0.45); margin-bottom: 24px; font-weight: 300; }

.social-links { display: flex; gap: 0; }

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  transition: border-color 0.2s, color 0.2s;
  margin-right: -1px;
}

.social-links a:hover { border-color: var(--accent); color: var(--accent); z-index: 1; position: relative; }

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a {
  color: rgba(255,255,255,0.5);
  font-size: 0.84rem;
  font-weight: 300;
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1rem;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  align-items: flex-start;
  font-weight: 300;
}

.footer-contact-item .icon { color: var(--accent); flex-shrink: 0; font-size: 0.9rem; margin-top: 2px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--accent); }

.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.7;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-weight: 300;
}

/* ============================================================
   THEME / DARK MODE CONTROLS
   ============================================================ */

.controls-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.controls-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  padding: 2px 8px;
  border: 1px solid var(--border);
}

.theme-switcher {
  display: flex;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px;
  box-shadow: 0 4px 20px var(--shadow);
}

.theme-btn {
  width: 22px;
  height: 22px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  outline: none;
  margin-right: 4px;
}

.theme-btn:last-child { margin-right: 0; }
.theme-btn:hover { transform: scale(1.2); }
.theme-btn.active { border-color: var(--text); }

.theme-btn[data-t="rose-gold"]  { background: linear-gradient(135deg, #9B4E63 50%, #D4A862 50%); }
.theme-btn[data-t="soft-cream"] { background: linear-gradient(135deg, #FEF8F0 50%, #D4A862 50%); border: 1px solid #edd5c0; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */

.page-hero {
  background: var(--primary);
  padding: 64px 0 56px;
  border-bottom: 3px solid var(--accent);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.page-hero p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  font-weight: 300;
  max-width: 560px;
}

.breadcrumb {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: #fff; }

/* ============================================================
   CONTENT LAYOUT (interior pages)
   ============================================================ */

.content-section { padding: 72px 0; }

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}

.content-body h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
  color: var(--text);
  margin-top: 36px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.content-body h2:first-child { margin-top: 0; }

.content-body h3 {
  font-size: 1.25rem;
  margin: 28px 0 8px;
  color: var(--text);
}

.content-body p { margin-bottom: 14px; color: var(--text-light); font-size: 0.93rem; font-weight: 300; line-height: 1.85; }

.content-body ul {
  margin: 0 0 20px 0;
  list-style: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 300;
}

.content-body ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 20px;
  position: relative;
}

.content-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* Sidebar */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 28px;
  position: sticky;
  top: 110px;
}

.sidebar-card h3 { font-size: 1.15rem; color: var(--text); margin-bottom: 12px; }
.sidebar-card p { font-size: 0.84rem; color: var(--text-light); margin-bottom: 20px; font-weight: 300; }
.sidebar-card .btn { width: 100%; justify-content: center; margin-bottom: 8px; }

.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

.sidebar-phone {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
  font-family: 'Cormorant Garamond', serif;
}

.sidebar-phone-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

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

.form-group label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s;
  outline: none;
}

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

.form-group textarea { resize: vertical; min-height: 120px; border: 1px solid var(--border); }
.form-group textarea:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-notice {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  font-size: 0.86rem;
  color: var(--text);
}

.contact-info-card {
  background: var(--primary);
  padding: 36px;
  position: sticky;
  top: 110px;
  border-top: 3px solid var(--accent);
  border-radius: 10px;
}

.contact-info-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 28px; }

.contact-detail { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-detail .icon { color: var(--accent); flex-shrink: 0; font-size: 1rem; margin-top: 3px; }
.contact-detail h4 { font-size: 0.62rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.14em; font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 5px; }
.contact-detail p { font-size: 0.86rem; color: rgba(255,255,255,0.7); line-height: 1.6; font-weight: 300; }
.contact-detail a { color: var(--accent-light, var(--accent)); }

/* ============================================================
   FLAT FEES
   ============================================================ */

.fees-highlight {
  background: var(--primary);
  padding: 40px 44px;
  color: #fff;
  margin-bottom: 40px;
  border-left: 4px solid var(--accent);
}

.fees-highlight h2 { color: #fff; font-size: 1.9rem; margin-bottom: 12px; }
.fees-highlight p { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.8; font-weight: 300; margin-bottom: 10px; }

.fees-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 28px 0;
}

.fees-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  transition: background 0.15s;
}

.fees-list-item:hover { background: var(--bg-alt); }
.fees-list-item .icon { color: var(--accent); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.fees-list-item h4 { font-size: 0.8rem; color: var(--text); margin-bottom: 3px; font-family: 'Inter', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.fees-list-item p { font-size: 0.84rem; color: var(--text-light); margin: 0; font-weight: 300; }

/* ============================================================
   LOCATIONS
   ============================================================ */

.locations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 28px; }

.location-card { background: var(--surface); padding: 28px 32px; border-left: 3px solid transparent; transition: border-color 0.2s; }
.location-card:hover { border-color: var(--accent); }
.location-card h3 { color: var(--text); font-size: 1.2rem; margin-bottom: 12px; }
.location-card p { font-size: 0.86rem; color: var(--text-light); line-height: 1.8; font-weight: 300; }

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

@media (max-width: 1024px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-grid { gap: 48px; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .cta-banner .container { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 24px 20px; }
  .practice-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .fees-list { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .controls-bar { bottom: 12px; right: 12px; }
  .hero h1 { font-size: 2.6rem; }
  /* Show practice areas on mobile — pill badges */
  .hero-areas {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 14px 0 !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
  }
  .hero-areas span {
    font-size: 0.58rem !important;
    letter-spacing: 0.08em !important;
    padding: 5px 11px !important;
    margin: 0 !important;
    border-right: none !important;
    border: 1px solid rgba(255,255,255,0.28) !important;
    border-radius: 20px !important;
    background: rgba(255,255,255,0.07) !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 480px) {
  .hero { padding-top: 90px; padding-bottom: 50px; }
  .hero h1 { font-size: 2rem; }
  /* Hero CTA buttons side-by-side and compact on mobile portrait */
  .hero-buttons {
    flex-direction: row !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }
  .hero-buttons .btn {
    flex: 1 1 0 !important;
    padding: 12px 14px !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;
    text-align: center !important;
    min-width: 0 !important;
  }
  .trust-bar-grid { grid-template-columns: 1fr 1fr; }
  .top-bar .location-text { display: none; }
}


/* ============================================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   FLOWY HAMBURGER + CURVED MOBILE NAV
   ============================================================ */
.hamburger span {
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, padding 0.3s ease;
  max-height: 0;
  overflow: hidden;
  display: block !important;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.mobile-nav.open {
  max-height: 720px;
  opacity: 1;
  padding-top: 12px;
  padding-bottom: 18px;
}
.mobile-nav li a {
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.mobile-nav li a:hover {
  padding-left: 8px;
}

/* ============================================================
   PHONE LINK STYLING (stand out from default browser blue)
   ============================================================ */
a[href^="tel:"] {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}
a[href^="tel:"]:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}
/* In dark footer / dark surfaces — keep gold accent visible */
.footer a[href^="tel:"],
.contact-info-card a[href^="tel:"],
.cta-banner a[href^="tel:"] {
  color: var(--accent);
}
.footer a[href^="tel:"]:hover {
  color: var(--accent-light);
}

/* ============================================================
   STICKY HEADER (always visible while scrolling)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg, #FAF6F1);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}
.site-header.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 4px 16px rgba(107, 58, 74, 0.06);
  background: rgba(250, 246, 241, 0.95);
}
/* Top bar above header, also sticky to header */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--primary);
}
.top-bar + .site-header { top: 36px; }  /* offset header below top-bar */

/* Mobile: top-bar is shorter or hidden; adjust header offset */
@media (max-width: 768px) {
  .top-bar + .site-header { top: 0; }  /* top bar hides on mobile in some layouts */
}

/* Ensure mobile-nav drops BELOW the sticky header */
.mobile-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg, #FAF6F1);
  z-index: 99;
}

/* ============================================================
   FAX LINK (same family as sidebar-phone but lighter shade)
   ============================================================ */
.sidebar-fax {
  color: var(--primary-light);
  font-weight: 500;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  transition: color 0.2s ease;
}
.sidebar-fax:hover {
  color: var(--primary);
  text-decoration: underline;
}
/* Override iOS auto-detection-style for any fax text within label */
.sidebar-phone-label a[href^="tel:"] {
  color: var(--primary-light) !important;
  font-weight: 500;
}

/* ============================================================
   USER-REQUESTED TWEAKS (2026-05-24 v5)
   ============================================================ */

/* 1. Top bar: high-contrast white text on rose background */
.top-bar {
  background: var(--primary);
  color: #ffffff;
}
.top-bar,
.top-bar a,
.top-bar span,
.top-bar .lang-toggle,
.top-bar .phone-link {
  color: #ffffff !important;
}
.top-bar .lang-toggle:hover,
.top-bar .phone-link:hover,
.top-bar a:hover {
  color: var(--accent) !important;
}
/* The "Representing Clients Throughout the State of Florida" text — hide on mobile */
@media (max-width: 768px) {
  .top-bar .container > span:first-child {
    display: none;
  }
}

/* 2. Fax number: bigger so it doesn't disappear */
.sidebar-fax {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.sidebar-phone-label a[href^="tel:"].sidebar-fax {
  font-size: 1.05rem;
}

/* 3. Hero buttons: push them lower for better breathing room from description */
.hero-buttons,
.hero .cta-buttons,
.hero-cta-row {
  margin-top: 36px;
}
@media (max-width: 768px) {
  .hero-buttons,
  .hero .cta-buttons,
  .hero-cta-row {
    margin-top: 28px;
  }
}
/* Also give hero subtitle some breathing room from the buttons */
.hero p,
.hero .hero-subtitle {
  margin-bottom: 0;
}

/* ============================================================
   SITE NAME TEXT NEXT TO LOGO (sticky header)
   ============================================================ */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-logo img {
  flex-shrink: 0;
}
.site-name {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.site-name-primary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.site-name-secondary {
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  color: var(--text-muted, #8a6e74);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .site-logo { gap: 10px; }
  .site-name-primary { font-size: 1.25rem; }
  .site-name-secondary { font-size: 0.58rem; letter-spacing: 0.12em; }
}
@media (max-width: 400px) {
  /* Cramped phone: drop the secondary subtitle to keep things readable */
  .site-name-secondary { display: none; }
  .site-name-primary { font-size: 1.1rem; }
}

/* ============================================================
   MOBILE: push hero buttons further down (per user circle)
   ============================================================ */
@media (max-width: 768px) {
  .hero-buttons,
  .hero .cta-buttons,
  .hero-cta-row {
    margin-top: 100px;
  }
}
@media (max-width: 480px) {
  .hero-buttons,
  .hero .cta-buttons,
  .hero-cta-row {
    margin-top: 90px;
  }
}

/* ============================================================
   MOBILE: heading higher, buttons lower (per user feedback v7)
   ============================================================ */
@media (max-width: 768px) {
  .hero { padding-top: 40px !important; padding-bottom: 60px !important; }
  .hero-buttons,
  .hero .cta-buttons,
  .hero-cta-row {
    margin-top: 140px !important;
  }
}
@media (max-width: 480px) {
  .hero { padding-top: 32px !important; padding-bottom: 50px !important; }
  .hero-buttons,
  .hero .cta-buttons,
  .hero-cta-row {
    margin-top: 120px !important;
  }
}

/* ============================================================
   FOOTER TEXT: brighter + gold accent for legal links (v8)
   ============================================================ */

/* Main disclaimer paragraph */
.footer-disclaimer,
.footer .disclaimer,
footer p,
footer .legal-disclaimer {
  color: rgba(255, 255, 255, 0.82) !important;
  line-height: 1.65;
}

/* Copyright line */
.footer-bottom,
.footer-bottom span,
.footer .copyright,
footer .footer-bottom {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* Privacy Policy + Disclaimer / Aviso Legal links */
.footer-bottom a,
.footer-bottom a:visited,
footer .footer-bottom a,
.footer-legal a {
  color: var(--accent) !important;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}
.footer-bottom a:hover,
footer .footer-bottom a:hover {
  color: var(--accent-light) !important;
  text-decoration: underline;
}

/* The pipe separator between Privacy | Disclaimer */
.footer-bottom span {
  color: rgba(212, 168, 98, 0.55) !important;  /* faded gold */
}

/* Copyright line: bumped up brightness (v9) */
.footer-bottom,
.footer-bottom span:first-child,
.footer .copyright,
footer .footer-bottom > span:first-child {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ============================================================
   LIQUID GLASS — ROSE GOLD MOBILE NAV (iOS 26 inspired)
   ============================================================ */
.mobile-nav {
  /* base — closed state stays simple, no glass yet */
  background: transparent;
}

.mobile-nav.open {
  /* Translucent rose-gold gradient as the glass tint */
  background:
    linear-gradient(
      135deg,
      rgba(155, 78, 99, 0.55) 0%,
      rgba(212, 168, 98, 0.32) 38%,
      rgba(181, 105, 122, 0.48) 65%,
      rgba(155, 78, 99, 0.55) 100%
    );

  /* The "glass" effect — blurs everything behind it */
  backdrop-filter: blur(32px) saturate(220%) brightness(108%);
  -webkit-backdrop-filter: blur(32px) saturate(220%) brightness(108%);

  /* Glass-edge highlights (inset light at top, dark at bottom for depth) */
  border-top: 1px solid rgba(255, 226, 196, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 220, 0.55),       /* bright top edge */
    inset 0 0 1px rgba(255, 220, 180, 0.4),         /* inner rim */
    inset 0 -1px 0 rgba(82, 32, 47, 0.18),          /* darker bottom edge */
    0 24px 48px rgba(107, 58, 74, 0.30),            /* drop shadow */
    0 4px 12px rgba(155, 78, 99, 0.20);

  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  overflow: hidden;
  position: relative;
}

/* Specular glass highlight — diagonal sheen overlay */
.mobile-nav.open::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 240, 220, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(212, 168, 98, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle moving sheen along the top edge */
.mobile-nav.open::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 235, 200, 0.6) 25%,
    rgba(255, 245, 220, 0.85) 50%,
    rgba(255, 235, 200, 0.6) 75%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Menu items: bright white text for max contrast on the glass */
.mobile-nav.open li {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.mobile-nav.open li:last-child {
  border-bottom: none;
}
.mobile-nav.open li a {
  color: rgba(255, 250, 240, 0.96) !important;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(82, 32, 47, 0.35);
  transition: color 0.2s ease, padding-left 0.25s ease, background 0.2s ease;
}
.mobile-nav.open li a:hover,
.mobile-nav.open li a:focus {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(255, 235, 200, 0.18) 0%, transparent 100%);
  padding-left: 14px;
}

/* Safari fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  .mobile-nav.open {
    background: linear-gradient(
      135deg,
      rgba(155, 78, 99, 0.97) 0%,
      rgba(122, 58, 78, 0.97) 100%
    );
  }
}

/* ============================================================
   FIX: liquid glass mobile-nav position regression (v10)
   ============================================================ */
.mobile-nav.open {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

/* ============================================================
   FIX: liquid glass — less transparent for readability (v11)
   ============================================================ */
.mobile-nav.open {
  background:
    linear-gradient(
      135deg,
      rgba(140, 65, 86, 0.92) 0%,
      rgba(166, 99, 116, 0.90) 40%,
      rgba(155, 78, 99, 0.94) 100%
    ) !important;
  backdrop-filter: blur(20px) saturate(180%) brightness(98%);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(98%);
}

/* Menu items: stronger text shadow + higher opacity for crisp readability */
.mobile-nav.open li a {
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(60, 20, 35, 0.55), 0 0 1px rgba(60, 20, 35, 0.4);
  letter-spacing: 0.05em;
}

/* Brighter dividers */
.mobile-nav.open li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
}
.mobile-nav.open li:last-child {
  border-bottom: none !important;
}

/* Reduce gold/rose pseudo-element overlays so they don't make it more washy */
.mobile-nav.open::before {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 240, 220, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(212, 168, 98, 0.08) 0%, transparent 60%) !important;
}

/* Liquid glass: nudge opacity up one more notch (v12) */
.mobile-nav.open {
  background:
    linear-gradient(
      135deg,
      rgba(140, 65, 86, 0.97) 0%,
      rgba(166, 99, 116, 0.96) 40%,
      rgba(155, 78, 99, 0.98) 100%
    ) !important;
  backdrop-filter: blur(14px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(170%) !important;
}

/* ============================================================
   PAGE TRANSITIONS (v13)
   ============================================================ */

/* Native View Transitions API — works in Chrome 126+ / Safari 18+ */
@view-transition {
  navigation: auto;
}

/* Customize the transition timing + effect */
::view-transition-old(root) {
  animation: pageOut 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
::view-transition-new(root) {
  animation: pageIn 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
  to {
    opacity: 0;
    transform: scale(0.98) translateY(-12px);
    filter: blur(4px);
  }
}
@keyframes pageIn {
  from {
    opacity: 0;
    transform: scale(1.02) translateY(12px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

/* JS fallback for browsers without View Transitions support */
body.page-transitioning-out {
  animation: pageOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
body.page-transitioning-in {
  animation: pageIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================================
   DUBSADO IFRAME EMBED (v14)
   ============================================================ */
.dubsado-embed {
  width: 100%;
  margin: 8px 0 24px;
  background: #fff;
  border: 1px solid var(--border, #e8d9d3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(107, 58, 74, 0.08);
}
.dubsado-embed iframe {
  width: 100%;
  height: 1400px;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .dubsado-embed iframe {
    height: 1800px;
  }
}
@media (max-width: 480px) {
  .dubsado-embed iframe {
    height: 2000px;
  }
}

/* ============================================================
   IFRAME HEIGHT TIGHTER (v15) — clip Dubsado's trailing white space
   ============================================================ */
.dubsado-embed iframe {
  height: 850px !important;
}
@media (max-width: 768px) {
  .dubsado-embed iframe {
    height: 1100px !important;
  }
}
@media (max-width: 480px) {
  .dubsado-embed iframe {
    height: 1250px !important;
  }
}
/* If form needs more, user can scroll within it */
.dubsado-embed { overflow: hidden; }

/* ============================================================
   LAWPAY IFRAME EMBED (v16)
   ============================================================ */
.lawpay-embed {
  width: 100%;
  margin: 8px 0 24px;
  background: #fff;
  border: 1px solid var(--border, #e8d9d3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(107, 58, 74, 0.08);
}
.lawpay-embed iframe {
  width: 100%;
  height: 900px;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .lawpay-embed iframe {
    height: 1100px;
  }
}
@media (max-width: 480px) {
  .lawpay-embed iframe {
    height: 1250px;
  }
}

/* ============================================================
   IFRAMES: NO SCROLLING AT ALL (v17)
   ============================================================ */
.dubsado-embed,
.lawpay-embed {
  overflow: hidden !important;
}
.dubsado-embed iframe,
.lawpay-embed iframe {
  overflow: hidden !important;
  scrolling: no;
  /* iOS Safari needs explicit pointer behavior to fully disable iframe scroll */
  -webkit-overflow-scrolling: auto;
}

/* ============================================================
   IFRAMES: GENEROUS HEIGHTS — show ALL form content (v18)
   ============================================================ */

/* Dubsado contact form heights */
.dubsado-embed iframe {
  height: 1400px !important;
}
@media (max-width: 768px) {
  .dubsado-embed iframe {
    height: 1800px !important;
  }
}
@media (max-width: 480px) {
  .dubsado-embed iframe {
    height: 2000px !important;
  }
}

/* LawPay payment form heights */
.lawpay-embed iframe {
  height: 1100px !important;
}
@media (max-width: 768px) {
  .lawpay-embed iframe {
    height: 1400px !important;
  }
}
@media (max-width: 480px) {
  .lawpay-embed iframe {
    height: 1600px !important;
  }
}

/* ============================================================
   PAY LANDING CARD (v19) — replaces LawPay iframe (CSP-blocked)
   ============================================================ */
.pay-landing {
  display: flex;
  justify-content: center;
  margin: 8px 0 24px;
}
.pay-card {
  background: linear-gradient(180deg, #fff 0%, #fdfaf6 100%);
  border: 1px solid var(--border, #e8d9d3);
  border-radius: 14px;
  padding: 48px 36px;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 36px rgba(107, 58, 74, 0.10);
  position: relative;
  overflow: hidden;
}
.pay-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
}
.pay-icon-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(155, 78, 99, 0.10) 0%, rgba(212, 168, 98, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.pay-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 16px;
}
.pay-card-text {
  color: var(--text-light, #6b5158);
  line-height: 1.65;
  font-size: 1rem;
  margin: 0 0 28px;
}
.pay-btn {
  display: inline-block;
  font-size: 1.05rem;
  padding: 16px 36px;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-bottom: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pay-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 168, 98, 0.32);
}
.pay-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  text-align: left;
  font-size: 0.92rem;
  color: var(--text-light);
}
.pay-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pay-check {
  color: var(--accent-dark, #b88a45);
  font-weight: 700;
}
.pay-note {
  font-size: 0.82rem;
  color: var(--text-muted, #8a6e74);
  margin: 0;
  font-style: italic;
}
@media (max-width: 540px) {
  .pay-card { padding: 36px 24px; }
  .pay-card-title { font-size: 1.5rem; }
  .pay-features { grid-template-columns: 1fr; }
}

/* Dubsado iframe: taller on desktop (v20) — form was cut off */
.dubsado-embed iframe {
  height: 1750px !important;
}

/* ============================================================
   LANDSCAPE FIX (v21) — hamburger at 1024px instead of 768px
   so logo text doesn't collide with desktop nav on landscape phones
   ============================================================ */
@media (max-width: 1024px) {
  .site-nav { display: none !important; }
  .hamburger { display: flex !important; }
  .site-header .header-inner > .mobile-nav { display: block; }
}

/* Logo text scales gracefully at tablet-ish widths */
@media (max-width: 1024px) and (min-width: 481px) {
  .site-name-primary { font-size: 1.35rem; }
  .site-name-secondary { font-size: 0.6rem; }
}

/* ============================================================
   BREAKPOINT BUMP (v22) — cover iPad landscape (≤1280px → hamburger)
   ============================================================ */
@media (max-width: 1280px) {
  .site-nav,
  .main-nav,
  header nav:not(.mobile-nav) {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
}

/* Make sure when mobile nav opens, desktop nav definitely doesn't show */
.mobile-nav.open ~ .site-nav,
.site-header:has(.mobile-nav.open) .site-nav {
  display: none !important;
}

/* Re-scale site-name in tablet range so logo+text fits header nicely */
@media (max-width: 1280px) and (min-width: 481px) {
  .site-name-primary { font-size: 1.4rem; }
  .site-name-secondary { font-size: 0.62rem; }
}

/* ============================================================
   LIQUID GLASS — DESKTOP DROPDOWN MENUS (v23)
   Matches mobile nav aesthetic
   ============================================================ */
.dropdown-menu {
  background:
    linear-gradient(
      135deg,
      rgba(140, 65, 86, 0.97) 0%,
      rgba(166, 99, 116, 0.96) 40%,
      rgba(155, 78, 99, 0.98) 100%
    ) !important;
  backdrop-filter: blur(14px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(170%) !important;
  border: 1px solid rgba(255, 226, 196, 0.20) !important;
  border-top: 2px solid var(--accent) !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 220, 0.45),
    inset 0 0 1px rgba(255, 220, 180, 0.3),
    inset 0 -1px 0 rgba(82, 32, 47, 0.15),
    0 14px 32px rgba(107, 58, 74, 0.28),
    0 4px 12px rgba(155, 78, 99, 0.18) !important;
  padding: 6px 0 !important;
  position: absolute;
  min-width: 240px;
}

/* Specular highlight overlay (like the mobile nav has) */
.dropdown-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 240, 220, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(212, 168, 98, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* Glass top-edge sheen */
.dropdown-menu::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 235, 200, 0.7) 25%,
    rgba(255, 245, 220, 0.9) 50%,
    rgba(255, 235, 200, 0.7) 75%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Dropdown menu items */
.dropdown-menu li {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.dropdown-menu li:last-child {
  border-bottom: none;
}
.dropdown-menu li a {
  display: block;
  padding: 12px 22px;
  color: rgba(255, 250, 240, 0.96) !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(82, 32, 47, 0.40);
  transition: padding-left 0.25s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(255, 235, 200, 0.20) 0%, transparent 100%);
  padding-left: 28px;
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  .dropdown-menu {
    background: linear-gradient(
      135deg,
      rgba(140, 65, 86, 0.98) 0%,
      rgba(122, 58, 78, 0.98) 100%
    ) !important;
  }
}

/* ============================================================
   SPANISH PAGE LAYOUT (v24) — tighter spacing for longer Spanish words
   ============================================================ */
.lang-es .site-name-primary {
  font-size: 1.4rem;
}
.lang-es .site-name-secondary {
  font-size: 0.55rem;
  letter-spacing: 0.10em;
}
.lang-es .main-menu > li > a,
.lang-es .site-nav > ul > li > a {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding-left: 14px;
  padding-right: 14px;
}
.lang-es .site-logo {
  gap: 10px;
}

@media (max-width: 1440px) {
  .lang-es .site-name-primary { font-size: 1.25rem; }
  .lang-es .site-name-secondary { font-size: 0.52rem; }
  .lang-es .main-menu > li > a { font-size: 0.74rem; padding-left: 10px; padding-right: 10px; }
}

/* ============================================================
   MORE REFLECTIVE LIQUID GLASS (v25)
   ============================================================ */

/* Mobile nav — stronger white sheen */
.mobile-nav.open::before {
  background:
    radial-gradient(circle at 18% -5%, rgba(255, 248, 235, 0.32) 0%, transparent 50%),
    radial-gradient(circle at 82% 105%, rgba(255, 220, 180, 0.20) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 248, 235, 0.10) 0%, transparent 30%) !important;
}
.mobile-nav.open::after {
  height: 3px !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 248, 235, 0.85) 20%,
    rgba(255, 252, 240, 0.98) 50%,
    rgba(255, 248, 235, 0.85) 80%,
    transparent 100%
  ) !important;
  box-shadow: 0 0 8px rgba(255, 245, 220, 0.5) !important;
}

/* Desktop dropdowns — same brighter sheen */
.dropdown-menu::before {
  background:
    radial-gradient(circle at 18% -5%, rgba(255, 248, 235, 0.32) 0%, transparent 50%),
    radial-gradient(circle at 82% 105%, rgba(255, 220, 180, 0.20) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 248, 235, 0.10) 0%, transparent 30%) !important;
}
.dropdown-menu::after {
  height: 3px !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 248, 235, 0.85) 20%,
    rgba(255, 252, 240, 0.98) 50%,
    rgba(255, 248, 235, 0.85) 80%,
    transparent 100%
  ) !important;
  box-shadow: 0 0 8px rgba(255, 245, 220, 0.5) !important;
}

/* Stronger inset glass-edge highlights on both */
.mobile-nav.open,
.dropdown-menu {
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 240, 0.65),
    inset 0 0 2px rgba(255, 240, 220, 0.4),
    inset 0 -1px 0 rgba(82, 32, 47, 0.15),
    0 18px 36px rgba(107, 58, 74, 0.28),
    0 4px 12px rgba(155, 78, 99, 0.18) !important;
}

/* ============================================================
   LOGO SECONDARY TEXT: more bottom spacing (v25)
   ============================================================ */
.site-name {
  line-height: 1.1;
}
.site-name-secondary {
  margin-top: 10px !important;
}
@media (max-width: 768px) {
  .site-name-secondary { margin-top: 8px !important; }
}

/* ============================================================
   SPANISH PAGE: add horizontal gap between logo and nav (v26)
   Secondary text was extending too close to INICIO
   ============================================================ */
.lang-es .site-name-secondary {
  font-size: 0.52rem !important;
  letter-spacing: 0.05em !important;  /* tighter horizontally */
}
.lang-es .site-logo {
  margin-right: 36px !important;
}
.lang-es .site-name {
  max-width: 340px;
}

@media (max-width: 1440px) {
  .lang-es .site-name-secondary { font-size: 0.48rem !important; }
  .lang-es .site-logo { margin-right: 24px !important; }
}

/* Same nudge for English page so it never crowds too tight either */
.site-logo {
  margin-right: 24px;
}

/* ============================================================
   HEADER BAR: curved bottom corners (v27)
   ============================================================ */
.site-header {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.site-header.scrolled {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow:
    0 4px 18px rgba(107, 58, 74, 0.10),
    0 1px 0 rgba(0,0,0,0.04) !important;
}

/* Top bar gets a tiny curve at the bottom too, blending into header */
@media (min-width: 769px) {
  .top-bar {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

/* ============================================================
   APPLE-INSPIRED UI PASS (v28)
   - Generous continuous corners (squircle-ish)
   - Spring easing curves
   - Layered soft shadows
   - Interactive lift on hover
   ============================================================ */

/* ---- Apple-style easing curves as custom properties ---- */
:root {
  --ease-apple:     cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-soft:  cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-apple-sm: 0 1px 2px rgba(82, 32, 47, 0.06), 0 2px 6px rgba(107, 58, 74, 0.05);
  --shadow-apple-md: 0 2px 4px rgba(82, 32, 47, 0.05), 0 8px 24px rgba(107, 58, 74, 0.08);
  --shadow-apple-lg: 0 4px 8px rgba(82, 32, 47, 0.06), 0 20px 48px rgba(107, 58, 74, 0.12);
}

/* ---- More generous corners across the site ---- */
.practice-card,
.team-card,
.testimonial-card,
.sidebar-card,
.contact-info-card,
.fee-card,
.location-card,
.trust-item,
.cta-banner,
.pay-card,
.dubsado-embed,
.lawpay-embed {
  border-radius: 22px !important;
  overflow: hidden;
  transition:
    transform 0.5s var(--ease-out-soft),
    box-shadow 0.5s var(--ease-out-soft);
}

/* Lift on hover (cards & cta banners) */
.practice-card:hover,
.team-card:hover,
.testimonial-card:hover,
.trust-item:hover,
.fee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-apple-lg);
}

/* Layered soft shadows by default */
.practice-card,
.team-card,
.sidebar-card,
.contact-info-card,
.fee-card,
.pay-card {
  box-shadow: var(--shadow-apple-md);
  border: 1px solid rgba(232, 217, 211, 0.6);
}

/* ---- Buttons: pill-shaped primary, rounded outline ---- */
.btn-primary,
.btn,
button.btn {
  border-radius: 100px !important;
  padding: 14px 32px;
  transition:
    transform 0.4s var(--ease-spring),
    box-shadow 0.4s var(--ease-out-soft),
    background 0.3s var(--ease-apple);
  box-shadow: var(--shadow-apple-sm);
}
.btn-primary:hover,
.btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-apple-md);
}
.btn-primary:active,
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn-outline,
a.btn-outline {
  border-radius: 100px !important;
  border-width: 1.5px;
}

/* Hero CTA buttons */
.hero-buttons .btn,
.hero .cta-buttons .btn,
.hero-cta-row .btn {
  border-radius: 100px !important;
}

/* ---- Inputs / Selects / Textarea: softer corners ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
select,
textarea {
  border-radius: 14px !important;
  padding: 14px 18px;
  transition:
    border-color 0.3s var(--ease-apple),
    box-shadow 0.3s var(--ease-apple);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 168, 98, 0.15);
}

/* ---- Subcategory chips: pill ---- */
.subcategory-chip,
.section-tag-pill {
  border-radius: 999px !important;
  transition: background 0.3s var(--ease-apple), transform 0.3s var(--ease-spring);
}
.subcategory-chip:hover {
  transform: scale(1.04);
}

/* ---- Trust bar items: rounded + lift ---- */
.trust-item {
  background: #fff;
  padding: 32px 28px;
}

/* ---- Section tags (small labels) get more rounding ---- */
.section-tag {
  border-radius: 999px;
}

/* ---- Smoother scroll reveal easing (replace existing) ---- */
.reveal {
  transition:
    opacity 0.8s var(--ease-out-soft),
    transform 0.8s var(--ease-out-soft);
}
.reveal-stagger > * {
  transition:
    opacity 0.7s var(--ease-out-soft),
    transform 0.7s var(--ease-out-soft);
}

/* ---- Page transitions: spring-out + spring-in ---- */
::view-transition-old(root) {
  animation: pageOutApple 0.4s var(--ease-apple) forwards;
}
::view-transition-new(root) {
  animation: pageInApple 0.55s var(--ease-out-soft) forwards;
}
@keyframes pageOutApple {
  from { opacity: 1; transform: scale(1); filter: blur(0); }
  to   { opacity: 0; transform: scale(0.97); filter: blur(6px); }
}
@keyframes pageInApple {
  from { opacity: 0; transform: scale(1.03); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* ---- Header: continuous squircle-style corners ---- */
.site-header {
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}
.site-header.scrolled {
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  background: rgba(250, 246, 241, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-apple-md) !important;
}

/* ---- Mobile nav drop & dropdown menus: more rounding to match ---- */
.mobile-nav.open {
  border-bottom-left-radius: 24px !important;
  border-bottom-right-radius: 24px !important;
}
.dropdown-menu {
  border-radius: 18px !important;
}

/* ---- Hamburger animation: spring ---- */
.hamburger span {
  transition: transform 0.45s var(--ease-spring), opacity 0.3s var(--ease-apple);
}

/* ---- Smooth section transitions on hover ---- */
a, button {
  transition: all 0.3s var(--ease-apple);
}

/* ---- Image rounding inside cards (carry the radius) ---- */
.practice-card img,
.team-card img,
.testimonial-card img,
.pay-card img,
.location-card img {
  border-radius: 18px;
}

/* ---- Top bar: gentle continuous corner at bottom only ---- */
.top-bar {
  /* Top bar fully spans, no curve to avoid breaking the layered look */
}

/* ============================================================
   TRUST BAR FIX (v29) — labels were invisible (white on white)
   Restoring the original transparent-on-rose look + gentle Apple touch
   ============================================================ */
.trust-item {
  background: transparent !important;
  padding: 32px 24px !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  transition: transform 0.5s var(--ease-out-soft);
}
.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: none !important;
}
.trust-item .number {
  color: var(--accent, #D4A862);
  font-family: 'Cormorant Garamond', serif;
}
.trust-item .label {
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.74rem;
  font-weight: 500;
}

/* ============================================================
   HEADER CURVES: only when scrolled (v30)
   At top of page → flush flat bar
   After scroll → floating curved pill
   ============================================================ */
.site-header {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  transition:
    border-radius 0.45s var(--ease-out-soft),
    box-shadow 0.4s var(--ease-out-soft),
    background 0.4s var(--ease-out-soft),
    backdrop-filter 0.4s var(--ease-out-soft);
}
.site-header.scrolled {
  border-bottom-left-radius: 28px !important;
  border-bottom-right-radius: 28px !important;
}

/* Header curves: always on (v31) */
.site-header {
  border-bottom-left-radius: 28px !important;
  border-bottom-right-radius: 28px !important;
}

/* ============================================================
   HEADER AS FULL FLOATING PILL (v32)
   Hide top-bar (info lives in hamburger + footer) — header curves on all 4 sides
   ============================================================ */
.top-bar {
  display: none !important;
}
.top-bar + .site-header {
  top: 0 !important;
}

.site-header {
  border-radius: 28px !important;
  margin: 8px 8px 0 !important;
  width: calc(100% - 16px);
}
.site-header.scrolled {
  border-radius: 28px !important;
}

/* Ensure mobile-nav drops below the floating header pill cleanly */
.mobile-nav.open {
  top: calc(100% + 4px) !important;
  left: 8px !important;
  right: 8px !important;
  width: calc(100% - 16px) !important;
  border-radius: 24px !important;
}

/* Page bg behind the floating header — dark to match hero so curves look clean */
body {
  background: #2a1018;
}

/* ============================================================
   RESTORE TOP ROSE BAR (v33)
   ============================================================ */
.top-bar {
  display: block !important;
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--primary);
  color: #fff;
}
.top-bar + .site-header {
  top: 36px !important;
}
@media (max-width: 768px) {
  .top-bar + .site-header { top: 0 !important; }
}

/* Header keeps its floating pill look but sits below top-bar */
.site-header {
  border-radius: 28px !important;
  margin: 8px 8px 0 !important;
  width: calc(100% - 16px);
}

/* ============================================================
   REVERT BODY BG (v34) — dark was breaking team section text
   ============================================================ */
body {
  background: #FAF6F1 !important;
}

/* Make sure team-card + team-info backgrounds + text are explicit and readable */
.team-card {
  background: #ffffff !important;
}
.team-card h3,
.team-card .team-name,
.team-info h3,
.team-info .team-name {
  color: var(--primary, #9B4E63) !important;
}
.team-card p,
.team-card .team-role,
.team-info p,
.team-info .team-role {
  color: var(--text-muted, #6b5158) !important;
}

/* And section bgs are explicit too */
section,
.content-section,
.page-content {
  background: var(--bg, #FAF6F1);
}

/* ============================================================
   LOGO BIGGER ON THE HEADER (v35)
   ============================================================ */
.site-logo img {
  height: 82px !important;
  width: auto !important;
  max-width: none;
}
@media (max-width: 1024px) {
  .site-logo img { height: 70px !important; }
}
@media (max-width: 768px) {
  .site-logo img { height: 64px !important; }
}
@media (max-width: 480px) {
  .site-logo img { height: 58px !important; }
}

/* Give header a bit more vertical room so the larger logo fits */
.site-header .container,
.site-header .header-inner {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* ============================================================
   PILL FLOATS CLEANLY (v36)
   - Body bg dark so cream rectangle no longer appears behind the pill
   - But explicitly cream/white on all sections + team cards for readability
   ============================================================ */
html, body {
  background: #2a1018 !important;
}

/* All content sections explicitly cream/light */
.page-wrapper,
main,
section,
.content-section,
.page-content,
.hero,
.about-section,
.team-section,
.practice-section,
.testimonials-section,
.contact-section,
.fees-section,
.trust-bar,
.cta-banner,
footer,
.site-footer {
  /* Each will set their own bg below — they no longer rely on body */
}

/* Defaults for non-hero/non-footer sections */
section:not(.hero):not(.cta-banner):not(.trust-bar):not(.about-section) {
  background: #FAF6F1;
}

/* Page wrappers/main get cream so they don't show dark body either */
.page-wrapper, main {
  background: #FAF6F1;
}

/* Hero stays dark wine (its own gradient) */
/* Trust bar stays rose (its own bg) */
/* Footer stays whatever it was */

/* Team cards: always white with readable text */
.team-card,
.team-grid .team-member {
  background: #ffffff !important;
}
.team-card h3,
.team-card .team-name {
  color: var(--primary, #9B4E63) !important;
}

/* Just to be safe — explicit on sidebar / contact / fee cards too */
.sidebar-card,
.contact-info-card,
.fee-card,
.pay-card,
.location-card,
.practice-card {
  background: #ffffff !important;
}

/* ============================================================
   ROSE BAR ALWAYS ABOVE PILL (v37)
   ============================================================ */
.top-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 200 !important;
  background: var(--primary, #9B4E63);
}

.site-header {
  z-index: 100 !important;
  margin: 0 8px !important;          /* no gap above; side margins for pill float */
  position: sticky !important;
  /* Stick the pill right below the rose bar's height */
}
.top-bar + .site-header {
  top: 36px !important;               /* matches top-bar height */
}
@media (max-width: 768px) {
  .top-bar + .site-header { top: 36px !important; }
}

/* ============================================================
   REMOVE DARK BANNER (v38)
   Body cream so no dark color appears around/below pill
   ============================================================ */
html, body {
  background: #FAF6F1 !important;
}

/* Pill sits flush with no visible "banner" around it */
.site-header {
  margin: 0 8px !important;
}

/* ============================================================
   GAP BETWEEN TOP BAR AND PILL (v39)
   Pill never hides behind the rose bar when scrolled
   ============================================================ */
.site-header {
  margin: 8px 8px 0 !important;
}
.top-bar + .site-header {
  top: 44px !important;   /* 36px top-bar height + 8px gap */
}
@media (max-width: 768px) {
  .top-bar + .site-header { top: 50px !important; }  /* slightly taller bar on mobile */
}

/* ============================================================
   NO BANNER (v40)
   Pill full-width, bottom curves only, no side gaps
   ============================================================ */
.site-header {
  margin: 0 !important;
  width: 100% !important;
  border-radius: 0 0 28px 28px !important;
}
.site-header.scrolled {
  border-radius: 0 0 28px 28px !important;
}
.top-bar + .site-header {
  top: 36px !important;  /* flush below top bar, no extra gap */
}
@media (max-width: 768px) {
  .top-bar + .site-header { top: 36px !important; }
}

/* Mobile nav drop also full-width (no side margins) */
.mobile-nav.open {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  border-radius: 0 0 24px 24px !important;
}

/* Don't force body color either way — leave it alone */
html, body {
  background: #FAF6F1;  /* default cream like original page */
}

/* ============================================================
   FINAL BODY BG (v41) — dark behind the pill so curves are visible
   Sections have their own bgs to keep text readable
   ============================================================ */
html, body {
  background: #2a1018 !important;
}

/* Defensive: every section / footer / wrapper has its own bg so dark doesn't leak */
section:not(.hero):not(.cta-banner):not(.trust-bar),
main,
.page-wrapper,
.page-content,
.page-hero,
footer,
.site-footer {
  background: #FAF6F1;
}
.trust-bar {
  /* Keep trust bar's own rose bg */
}
.cta-banner {
  /* Keep cta-banner's own dark bg */
}

/* Cards still explicit (don't rely on parent bg) */
.team-card,
.sidebar-card,
.contact-info-card,
.fee-card,
.pay-card,
.location-card,
.practice-card {
  background: #ffffff !important;
}
.team-card h3,
.team-card .team-name {
  color: var(--primary, #9B4E63) !important;
}

/* ============================================================
   PILL: ALL 4 CORNERS CURVED (v42)
   ============================================================ */
.site-header {
  border-radius: 28px !important;
  margin: 6px 6px 0 !important;
  width: calc(100% - 12px) !important;
  border: none !important;
}
.site-header.scrolled {
  border-radius: 28px !important;
}
.top-bar + .site-header {
  top: 42px !important;
}
@media (max-width: 768px) {
  .top-bar + .site-header { top: 42px !important; }
}

/* Mobile-nav: same width as pill, no extra transforms */
.mobile-nav.open {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  transform: none !important;
  border-radius: 0 0 24px 24px !important;
}

/* ============================================================
   PILL STATIC (v43) — no scroll animations, no movement
   ============================================================ */
.site-header,
.site-header.scrolled {
  transition: none !important;
  border-radius: 28px !important;
  margin: 6px 6px 0 !important;
  background: var(--bg, #FAF6F1) !important;
  box-shadow: var(--shadow-apple-md, 0 4px 16px rgba(107, 58, 74, 0.10)) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Pill stays sticky (visible at top while scrolling) but visually unchanging */
.site-header {
  position: sticky !important;
  top: 42px !important;
}

/* ============================================================
   PAGE-HERO: remove rose banner (v44)
   Matches body so no visible rose strip behind pill
   ============================================================ */
.page-hero {
  background: transparent !important;
  border-bottom: none !important;
  padding: 48px 0 32px !important;
}
.page-hero h1 {
  color: #ffffff !important;  /* still white over dark wine body */
}
.page-hero p,
.page-hero .breadcrumb,
.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.82) !important;
}
.page-hero .breadcrumb a:hover {
  color: var(--accent) !important;
}

/* ============================================================
   CONTENT SECTIONS: explicit cream bg, readable text (v45)
   ============================================================ */
.content-section,
section.content-section,
section:not(.hero):not(.cta-banner):not(.trust-bar):not(.page-hero) {
  background: #FAF6F1 !important;
}

/* Ensure all dark text inside content sections is readable */
.content-section h1, .content-section h2, .content-section h3,
.content-section h4, .content-section p, .content-section li,
.content-section label, .content-section span:not(.section-tag) {
  color: var(--text, #3a2125) !important;
}
.content-section a:not(.btn):not(.btn-primary):not(.btn-outline) {
  color: var(--primary, #9B4E63);
}
.content-section .section-tag {
  color: var(--accent-dark, #b88a45) !important;
}
.content-section .section-title {
  color: var(--primary, #9B4E63) !important;
}

/* Sidebar/contact info card readable */
.sidebar-card,
.contact-info-card {
  background: #ffffff !important;
}
.sidebar-card *,
.contact-info-card * {
  color: var(--text, #3a2125);
}
.sidebar-card h3,
.contact-info-card h3 {
  color: var(--primary, #9B4E63) !important;
}
.sidebar-phone {
  color: var(--primary, #9B4E63) !important;
}
.sidebar-fax {
  color: var(--primary-light, #b5697a) !important;
}
.sidebar-phone-label {
  color: var(--text-muted, #8a6e74) !important;
}

/* ============================================================
   COMPREHENSIVE READABILITY RESET (v46)
   ============================================================ */

/* --- Body / html: cream (the designed bg) --- */
html, body {
  background: #FAF6F1 !important;
  color: var(--text, #3a2125) !important;
}

/* --- Page-hero: own dark rose backdrop so white text is readable
       regardless of body bg (v46 → v61 → v63 fix) --- */
.page-hero {
  background: linear-gradient(135deg, #9B4E63 0%, #7a3a4e 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
  padding: 56px 0 40px !important;
  position: relative;
}
.page-hero h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(40, 14, 22, 0.35);
}
.page-hero p,
.page-hero .page-subtitle {
  color: rgba(255, 255, 255, 0.88) !important;
}
.page-hero .breadcrumb,
.page-hero .breadcrumb span {
  color: rgba(255, 255, 255, 0.72) !important;
}
.page-hero .breadcrumb a {
  color: var(--accent, #D4A862) !important;
  text-decoration: none;
}
.page-hero .breadcrumb a:hover {
  color: var(--accent-light, #e0be82) !important;
}

/* --- All content sections cream with dark text --- */
section:not(.hero):not(.cta-banner):not(.trust-bar):not(.about-section):not(.site-footer),
.content-section,
main {
  background: #FAF6F1 !important;
}
.content-section h1, .content-section h2, .content-section h3, .content-section h4,
section h1, section h2, section h3, section h4 {
  color: var(--primary, #9B4E63);
}
.content-section p, .content-section li, .content-section label {
  color: var(--text, #3a2125);
}

/* --- Cards explicit white with dark text --- */
.team-card, .sidebar-card, .contact-info-card, .fee-card, .pay-card, .location-card, .practice-card {
  background: #ffffff !important;
}
.team-card h3, .sidebar-card h3, .contact-info-card h3, .fee-card h3,
.practice-card h3, .practice-card .practice-title {
  color: var(--primary, #9B4E63) !important;
}
.team-card p, .sidebar-card p, .contact-info-card p, .fee-card p,
.practice-card p, .practice-card .practice-description {
  color: var(--text, #3a2125) !important;
}

/* --- Hero stays dark wine gradient (white text appropriate there) --- */
.hero {
  /* original styling */
}
.hero h1, .hero p, .hero .section-tag, .hero .practice-tags span {
  color: #ffffff;
}

/* --- CTA banner: keep its rose bg, white text --- */
.cta-banner {
  background: var(--primary, #9B4E63);
}
.cta-banner h2, .cta-banner p, .cta-banner span, .cta-banner a {
  color: #ffffff;
}
.cta-banner a[href^="tel:"] {
  color: var(--accent, #D4A862) !important;
}

/* --- Trust bar: keep its rose bg, white text --- */
.trust-bar {
  background: var(--primary, #9B4E63);
}
.trust-item .label {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* --- Footer text readability --- */
.site-footer, footer {
  /* keep whatever bg the footer originally had */
}

/* --- Make pill define itself with shadow/border since bg matches body now --- */
.site-header {
  background: #FAF6F1 !important;
  border: 1px solid rgba(155, 78, 99, 0.08) !important;
  box-shadow: 0 4px 20px rgba(107, 58, 74, 0.10) !important;
}

/* ============================================================
   FOOTER DARK BG RESTORE (v47)
   Earlier overrides forced .site-footer to cream, but the footer's
   text is rgba(255,255,255,..) — white-on-cream = invisible.
   Restore the deep rose dark and re-assert readable text colors.
   ============================================================ */
.site-footer,
footer.site-footer,
footer {
  background: #7a3a4e !important;      /* --primary-dark */
  color: rgba(255,255,255,0.78) !important;
}

.site-footer .footer-col h4 {
  color: rgba(255,255,255,0.92) !important;
  border-bottom-color: rgba(255,255,255,0.14) !important;
}

.site-footer .footer-about p,
.site-footer .footer-col ul a,
.site-footer .footer-contact-item,
.site-footer .footer-contact-item a {
  color: rgba(255,255,255,0.82) !important;
}

.site-footer .footer-col ul a:hover,
.site-footer .footer-contact-item a:hover,
.site-footer .footer-bottom a:hover {
  color: var(--accent, #D4A862) !important;
}

.site-footer .footer-contact-item .icon {
  color: var(--accent, #D4A862) !important;
}

.site-footer .footer-bottom,
.site-footer .footer-bottom span,
.site-footer .footer-bottom a {
  color: rgba(255,255,255,0.68) !important;
}

.site-footer .footer-disclaimer {
  color: rgba(255,255,255,0.62) !important;
  border-top-color: rgba(255,255,255,0.12) !important;
}

.site-footer .footer-grid {
  border-bottom-color: rgba(255,255,255,0.14) !important;
}

.site-footer .footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-footer .social-links a {
  border-color: rgba(255,255,255,0.22) !important;
  color: rgba(255,255,255,0.85) !important;
}
.site-footer .social-links a:hover {
  border-color: var(--accent, #D4A862) !important;
  color: var(--accent, #D4A862) !important;
}

/* ============================================================
   FOOTER LOGO — show real colors, not a white silhouette (v48)
   The base64 logo in the footer was being filtered to pure white by
   .footer-logo { filter: brightness(0) invert(1) }. Remove the filter
   so the actual logo shows, and keep it modest in size.
   (Top rose bar stays — user wants it.)
   ============================================================ */
.site-footer .footer-logo,
footer .footer-logo {
  filter: none !important;
  opacity: 1 !important;
  height: 56px !important;
  width: auto !important;
  margin-bottom: 20px;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline-block;
}

/* ============================================================
   REMOVE CREAM STRIP UNDERNEATH THE PILL (v49)
   Make the body bg behind/around the pill match the top-bar rose so
   no cream rectangle shows around/under the pill. Sections still have
   their own explicit bgs, so this only paints the slivers around the
   floating pill.
   ============================================================ */
html, body {
  background: var(--primary, #9B4E63) !important;
}

/* Pill flush with top-bar above, no bottom gap before hero */
.site-header,
.top-bar + .site-header {
  margin: 0 6px !important;
  margin-bottom: 0 !important;
}

/* Push the hero up to meet the pill (kill any gap between them) */
.hero,
main > section:first-child,
.page-hero {
  margin-top: 0 !important;
}

/* Kill the cream on main/page-wrapper — they were the cream strip under
   the pill that scrolled-away. Let the body rose show through them, and
   sections inside still paint their own bgs. */
main,
.page-wrapper,
.page-content {
  background: transparent !important;
}

/* ============================================================
   PILL TRULY FLOATS OVER HERO (v50)
   Move pill OUT of document flow with position: fixed so no strip
   exists between top-bar and hero. The hero starts immediately
   below the top-bar; the pill floats over its top cushion area.
   ============================================================ */
.top-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 200 !important;
}

.site-header {
  position: fixed !important;
  top: 150px !important;           /* clear of extended top-bar with breathing room */
  left: 8px !important;
  right: 8px !important;
  width: auto !important;
  margin: 0 !important;
  z-index: 150 !important;
  border-radius: 28px !important;
}

@media (max-width: 768px) {
  .site-header {
    top: 146px !important;
    left: 6px !important;
    right: 6px !important;
  }
}

/* Hero (and any first content section) starts flush below the top-bar.
   Add cushion at top so its text/headline isn't hidden under the pill. */
.hero,
main > section:first-child,
main > .page-hero,
body > main {
  margin-top: 0 !important;
}

.hero {
  padding-top: 40px !important;   /* pill is in flow now, no clearance needed */
}
.page-hero {
  padding-top: 56px !important;
}

@media (max-width: 768px) {
  .hero { padding-top: 24px !important; }
  .page-hero { padding-top: 48px !important; }
}

/* Mobile-nav drops from the fixed pill, anchored to viewport */
.mobile-nav.open {
  position: fixed !important;
  top: calc(42px + 70px) !important;   /* below the pill */
  left: 8px !important;
  right: 8px !important;
  width: auto !important;
  z-index: 149 !important;
}

/* ============================================================
   RESTORE DARK ABOUT-SECTION + GLOBAL WHITE-ON-CREAM SAFETY (v51)
   .about-section was designed as a DARK feature section (dark rose
   bg + white text). Earlier overrides forced it cream, leaving the
   white text invisible. Restore it. Also belt-and-braces: anywhere
   a section ends up cream, force readable dark text.
   ============================================================ */
.about-section {
  background: var(--bg-dark, #9B4E63) !important;
}
.about-section,
.about-section p,
.about-section li,
.about-section .about-checklist li {
  color: rgba(255,255,255,0.92) !important;
}
.about-section .section-title,
.about-section h1,
.about-section h2,
.about-section h3 {
  color: #ffffff !important;
}
.about-section .section-tag {
  color: var(--accent-light, var(--accent, #D4A862)) !important;
}
.about-section .about-checklist li::before {
  color: var(--accent, #D4A862) !important;
}

/* Global safety: if any plain section ends up with cream bg, force its
   text dark so we never get white-on-cream. (Excludes the explicitly
   dark sections that own their white-on-dark scheme.) */
section:not(.hero):not(.cta-banner):not(.trust-bar):not(.about-section):not(.site-footer) h1,
section:not(.hero):not(.cta-banner):not(.trust-bar):not(.about-section):not(.site-footer) h2,
section:not(.hero):not(.cta-banner):not(.trust-bar):not(.about-section):not(.site-footer) h3,
section:not(.hero):not(.cta-banner):not(.trust-bar):not(.about-section):not(.site-footer) h4 {
  color: var(--primary, #9B4E63) !important;
}
section:not(.hero):not(.cta-banner):not(.trust-bar):not(.about-section):not(.site-footer) p,
section:not(.hero):not(.cta-banner):not(.trust-bar):not(.about-section):not(.site-footer) li,
section:not(.hero):not(.cta-banner):not(.trust-bar):not(.about-section):not(.site-footer) .section-sub,
section:not(.hero):not(.cta-banner):not(.trust-bar):not(.about-section):not(.site-footer) label {
  color: var(--text, #3a2125) !important;
}
section:not(.hero):not(.cta-banner):not(.trust-bar):not(.about-section):not(.site-footer) .section-tag {
  color: var(--accent-dark, #b88a45) !important;
}

/* ============================================================
   ROSE-FORWARD PILL SHADOW + DUSTY-ROSE PILL TONE (v52, refined)
   Primary lift is rose so the pill keeps definition against cream
   sections as you scroll. Gold underglow adds warmth. 1px rose ring
   guarantees a visible edge. Pill body shifts from pure cream to a
   warmer dusty-rose so it reads as its own surface, not the page.
   ============================================================ */
.site-header,
.site-header.scrolled {
  background: #FAF6F1 !important;            /* cream */
  /* No drop shadow — gold outline carries the definition on every
     background. Apply to both states so the .scrolled class can't
     overwrite the outline (8 other .scrolled rules existed in CSS). */
  box-shadow:
    0 0 0 2px var(--accent, #D4A862),                       /* solid gold edge */
    0 0 0 3px rgba(184, 138, 69, 0.55),                     /* darker gold outer ring */
    0 0 12px 1px rgba(212, 168, 98, 0.35) !important;       /* subtle gold halo */
  border: none !important;
}

/* ============================================================
   STICKY PILL — always visible (v59, final)
   Top-bar sticky at top:0; pill sticky right below it. Pill is in
   document flow initially (no fixed-positioning math), and when you
   scroll past it, it sticks below the top-bar. Always visible.
   ============================================================ */
.top-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 200 !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Body bg back to cream — only the top-bar stays rose. Pill blends
   into the body bg, defined only by its gold outline. No more rose
   "header" extending past the pill corners. */
body {
  background: #FAF6F1 !important;
}

.site-header,
.top-bar + .site-header {
  position: fixed !important;        /* fixed = always pinned, no sticky drift */
  top: 50px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  max-width: 1140px !important;
  width: calc(100% - 120px) !important;
  border-radius: 28px !important;
  z-index: 150 !important;
}

@media (min-width: 1280px) {
  .site-header,
  .top-bar + .site-header {
    width: 78% !important;
  }
}

@media (max-width: 768px) {
  .site-header,
  .top-bar + .site-header {
    top: 53px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 40px) !important;
    max-width: none !important;
  }
}

/* Spanish pill — narrower (centered), wider than English but not edge-to-edge */
.lang-es .site-header,
.lang-es .top-bar + .site-header {
  max-width: 1280px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 60px) !important;
}
@media (min-width: 1280px) {
  .lang-es .site-header,
  .lang-es .top-bar + .site-header {
    width: 88% !important;
  }
}
@media (max-width: 768px) {
  .lang-es .site-header,
  .lang-es .top-bar + .site-header {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 40px) !important;
    max-width: none !important;
  }
}

/* Pill is fixed → out of document flow. Push first content section
   down so the pill doesn't overlap its content. Top-bar (sticky) is
   in flow at ~36px; pill renders fixed at top:50 with ~80px height,
   so content needs to start below ~y=130. Hero/page-hero already
   start after the top-bar (y=36), so they need ~100px padding-top. */
.hero,
.page-hero,
main > section:first-child {
  padding-top: 110px !important;
}
@media (max-width: 768px) {
  .hero,
  .page-hero,
  main > section:first-child {
    padding-top: 110px !important;
  }
}

/* ============================================================
   MOBILE NAV LIQUID GLASS — DARKER, MORE TRANSPARENT (v71)
   Real liquid-glass feel: deep rose base with lower alpha so the
   content behind shows through more, stronger backdrop blur, and
   layered white gradient highlights for that wet-glass sheen.
   ============================================================ */
.mobile-nav.open {
  background:
    linear-gradient(
      135deg,
      rgba(60, 22, 34, 0.62) 0%,        /* darker rose, more transparent */
      rgba(122, 58, 78, 0.55) 40%,
      rgba(40, 14, 22, 0.70) 100%       /* darkest at bottom-right */
    ) !important;
  backdrop-filter: blur(32px) saturate(220%) brightness(92%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(220%) brightness(92%) !important;
}

/* Layered white-gradient highlights for liquid-glass realism */
.mobile-nav.open::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    /* top-left bright white glow — primary "light source" */
    radial-gradient(ellipse 80% 55% at 12% 8%,
      rgba(255, 255, 255, 0.32) 0%,
      rgba(255, 250, 240, 0.14) 30%,
      transparent 60%
    ),
    /* secondary warm highlight bottom-right */
    radial-gradient(ellipse 55% 45% at 92% 92%,
      rgba(255, 240, 220, 0.18) 0%,
      transparent 65%
    ),
    /* mid diagonal sheen — the "wet" reflection */
    linear-gradient(
      112deg,
      transparent 0%,
      rgba(255, 255, 255, 0.04) 35%,
      rgba(255, 255, 255, 0.16) 48%,
      rgba(255, 255, 255, 0.20) 52%,
      rgba(255, 255, 255, 0.08) 60%,
      transparent 100%
    ) !important;
  pointer-events: none !important;
  z-index: 0 !important;
  border-radius: inherit !important;
}

/* Brighter top-edge sheen for the glass-rim effect */
.mobile-nav.open::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 245, 230, 0.55) 20%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 245, 230, 0.55) 80%,
    transparent 100%
  ) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Keep menu items above the gradient overlays + brighter for readability */
.mobile-nav.open li {
  position: relative;
  z-index: 2;
}
.mobile-nav.open li a {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(40, 14, 22, 0.65), 0 0 8px rgba(40, 14, 22, 0.35) !important;
  font-weight: 600 !important;
}

/* Tighter Spanish nav as extra insurance against overflow */
.lang-es .main-menu > li > a,
.lang-es .site-nav > ul > li > a {
  padding-left: 8px !important;
  padding-right: 8px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.03em !important;
}

/* Shift logo+name closer to the pill's left edge on Spanish so the
   wider Spanish nav has more breathing room on the right. */
.lang-es .site-header .container,
.lang-es .site-header .header-inner {
  padding-left: 12px !important;
  padding-right: 18px !important;
  max-width: none !important;
}
.lang-es .site-logo {
  margin-right: 12px !important;
}

/* ============================================================
   ROUND THE "10+ YEARS" BADGE (v64)
   ============================================================ */
.about-badge {
  border-radius: 18px !important;
  box-shadow:
    0 12px 28px rgba(122, 58, 78, 0.22),
    0 4px 10px rgba(122, 58, 78, 0.16) !important;
}

/* ============================================================
   CONTENT IMAGE SHADOWS (v65)
   Photos sitting on cream content sections need lift so they don't
   float visually flat. Targets <img> inside content sections, hero
   wraps, and about images — excludes logos, footer images, team
   silhouettes (those have their own treatment).
   ============================================================ */
.content-section img:not([src*="logo"]):not(.footer-logo),
.about-img-wrap img,
.page-content img:not([src*="logo"]),
section > .container img:not([src*="logo"]):not(.footer-logo):not(.site-logo img) {
  border-radius: 14px;
  box-shadow:
    0 18px 40px rgba(122, 58, 78, 0.18),
    0 6px 16px rgba(122, 58, 78, 0.12);
  overflow: hidden;
}

/* Don't double-shadow the team card photos (they have their own
   styling), pill logo, or the M letter in .site-logo */
.team-card-img img,
.site-logo img,
.footer-logo {
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ============================================================
   CTA AS A FLOATING CARD (v66)
   Detach the "Ready to Get Started" CTA from the footer with
   side margins, rounded corners, breathing margin-bottom, and a
   subtle dark-rose shadow so it reads as its own card.
   ============================================================ */
.cta-banner {
  border-radius: 24px !important;
  margin: 24px 24px 24px !important;
  width: auto !important;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(60, 22, 34, 0.22),
    0 6px 16px rgba(60, 22, 34, 0.14);
}
@media (max-width: 768px) {
  .cta-banner {
    margin: 16px 8px 16px !important;
    border-radius: 18px !important;
  }
}

/* ============================================================
   FOOTER WITH ROUNDED TOP CORNERS (v67)
   Footer stands out by curving its top-left and top-right corners
   only (bottom stays flush with the viewport edge).
   ============================================================ */
.site-footer {
  border-top-left-radius: 32px !important;
  border-top-right-radius: 32px !important;
  position: relative;
  box-shadow:
    0 -10px 30px rgba(40, 14, 22, 0.20),
    0 -3px 8px rgba(60, 22, 34, 0.12);
}
@media (max-width: 768px) {
  .site-footer {
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
  }
}

/* ============================================================
   TRUST BAR LAYOUT (v68)
   Desktop + mobile landscape: all three items centered in a row.
   Mobile portrait: 13+ and 500+ share row 1; Florida sits centered
   on its own row below.
   ============================================================ */
.trust-item {
  text-align: center !important;
}
.trust-item .number,
.trust-item .label {
  text-align: center !important;
}

/* Desktop: 3-column grid so the 3 items fill the row centered
   (default was 4 columns with 3 items, packing them left). */
.trust-bar-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* Darker-rose dividers as inset pseudo-elements so they don't touch
   the corners of the trust-bar element and stay equal-length across
   items. Same dark-rose color (#3c1622 @ 35%). */
.trust-item {
  border-right: none !important;
  position: relative;
}
.trust-item::after {
  content: "";
  position: absolute;
  top: 25%;
  bottom: 25%;
  right: 0;
  width: 1px;
  background: rgba(60, 22, 34, 0.45);
  pointer-events: none;
}
.trust-item:last-child::after {
  display: none;
}

/* Mobile portrait: vertical line between items 1 & 2 (inset top/bottom),
   horizontal line above item 3 (inset left/right). Same dark rose. */
@media (max-width: 768px) and (orientation: portrait) {
  .trust-bar-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .trust-item:nth-child(1)::after {
    display: block;
  }
  .trust-item:nth-child(2)::after {
    display: none;
  }
  .trust-item:nth-child(3) {
    grid-column: 1 / -1 !important;
    border-top: none !important;
  }
  .trust-item:nth-child(3)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 1px;
    background: rgba(60, 22, 34, 0.45);
    pointer-events: none;
  }
  .trust-item:nth-child(3)::after {
    display: none;
  }
}

/* Mobile landscape: keep three items in one row, centered */
@media (max-width: 900px) and (orientation: landscape) {
  .trust-bar-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ============================================================
   .btn-outline ON CREAM CONTENT (v73)
   The base .btn-outline is white-on-transparent for dark backdrops.
   Inside .content-section (cream bg), use dark rose ink + border so
   the button is readable.
   ============================================================ */
.content-section .btn-outline,
.content-section a.btn-outline,
section.content-section .btn-outline {
  color: var(--accent-dark, #b88a45) !important;
  border-color: var(--accent, #D4A862) !important;
  background: transparent !important;
  font-weight: 600;
}
.content-section .btn-outline:hover,
section.content-section .btn-outline:hover {
  background: var(--accent, #D4A862) !important;
  color: #ffffff !important;
  border-color: var(--accent, #D4A862) !important;
}

/* ============================================================
   TEAM CARD PLACEHOLDER (v74)
   For staff who don't have photos yet. Rose-gradient bg + centered
   white silhouette icon. Fills the .team-card-img container.
   ============================================================ */
.team-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #9B4E63 0%, #7a3a4e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card-placeholder svg {
  width: 80px;
  height: 80px;
}

/* ============================================================
   TEAM CARDS AS CLICKABLE LINKS (v72)
   Each card is now an <a>; remove default link styling, add hover
   lift + outline shimmer.
   ============================================================ */
.team-card-link {
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  display: block;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 6px 18px rgba(122, 58, 78, 0.10);
  border-radius: 14px;
  overflow: hidden;
}
.team-card-link:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 36px rgba(122, 58, 78, 0.22),
    0 4px 12px rgba(122, 58, 78, 0.14),
    0 0 0 1px rgba(212, 168, 98, 0.45);
}
.team-card-link:focus-visible {
  outline: 2px solid var(--accent, #D4A862);
  outline-offset: 4px;
}
/* Title-only cards: tighter card-info, no bio (already stripped) */
.team-card-link .team-card-info {
  padding-bottom: 22px;
}

/* ============================================================
   CLIENT STORIES COLLAPSIBLE (v70)
   Uses native <details>/<summary>. Summary acts as a clickable
   header; cards reveal when expanded. Animated chevron + bg fade
   for a smooth open/close.
   ============================================================ */
.testimonials-collapse {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(155, 78, 99, 0.12);
  border-radius: 14px;
  padding: 16px 22px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.testimonials-collapse[open] {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(155, 78, 99, 0.20);
}
.testimonials-collapse summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  user-select: none;
}
.testimonials-collapse summary::-webkit-details-marker {
  display: none;
}
.testimonials-collapse .testimonials-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.testimonials-collapse .testimonials-chevron {
  margin-left: auto;
  font-size: 1rem;
  color: var(--primary, #9B4E63);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: inline-block;
}
.testimonials-collapse[open] .testimonials-chevron {
  transform: rotate(180deg);
}
.testimonials-collapse .testimonials-grid {
  margin-top: 24px;
  animation: testimonialsReveal 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes testimonialsReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .testimonials-collapse {
    padding: 12px 16px;
  }
  .testimonials-collapse .testimonials-meta {
    font-size: 0.68rem;
  }
}

/* ============================================================
   PRACTICE AREAS — 2-UP ON MOBILE (v69)
   Previously stacked to 1 column on mobile; user wants two cards
   side by side for a denser, scannable layout.
   ============================================================ */
@media (max-width: 768px) {
  .practice-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    background: transparent !important;
    border: none !important;
  }
  .practice-card {
    border-radius: 14px;
    overflow: hidden;
  }
  /* If the practice-card has body padding too generous, tighten it */
  .practice-card-body {
    padding: 14px !important;
  }
  .practice-card h3 {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 768px) {
  .site-header,
  .top-bar + .site-header {
    top: 53px !important;
    margin: 0 !important;
    width: calc(100% - 40px) !important;
  }
  /* Push logo further left, center the name block in the remaining space */
  .site-header .header-inner {
    padding-left: 8px !important;
    padding-right: 8px !important;
    gap: 10px !important;
  }
  .site-header .site-logo {
    margin-left: 0 !important;
  }
  .site-header .site-name {
    flex: 1 1 auto !important;
    text-align: center !important;
    align-items: center !important;
  }
}

/* ============================================================
   TEAM CARD INNER PADDING (v62)
   .team-card-info had top-only padding so text was flush against
   the card's rounded edges — first letter of each line got clipped.
   ============================================================ */
.team-card-info {
  padding: 22px 24px 24px !important;
}
@media (max-width: 768px) {
  .team-card-info {
    padding: 20px 20px 22px !important;
  }
}

/* (v60 mobile bottom rose gradient removed — was covering content / Safari URL bar) */

/* ============================================================
   MOBILE-NAV OPEN/CLOSE ANIMATIONS (v53)
   Open: slide+fade down. Close: same animation reversed (slide+fade up).
   JS toggles .closing for 300ms before removing .open.
   ============================================================ */
@keyframes mnavSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scaleY(0.92);
    transform-origin: top center;
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    transform-origin: top center;
  }
}
@keyframes mnavSlideUp {
  from {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    transform-origin: top center;
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scaleY(0.92);
    transform-origin: top center;
  }
}

.mobile-nav.open:not(.closing) {
  animation: mnavSlideDown 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.mobile-nav.open.closing {
  animation: mnavSlideUp 0.28s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
  pointer-events: none;
}

/* ============================================================
   FOOTER PHONE NUMBERS IN GOLD (v54)
   The 833 and 352 numbers in the footer's contact column pop in
   the accent gold. Hover brightens to the lighter accent.
   ============================================================ */
.site-footer .footer-contact-item a[href^="tel:"],
.site-footer a[href^="tel:"] {
  color: var(--accent, #D4A862) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-footer .footer-contact-item a[href^="tel:"]:hover,
.site-footer a[href^="tel:"]:hover {
  color: var(--accent-light, #e0be82) !important;
}

/* Underline phone numbers — makes them clearly tappable */
.site-footer .footer-contact-item a[href^="tel:"],
.site-footer a[href^="tel:"] {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent, #D4A862);
}

/* Fax line: lighter warm gold, no underline (it's not a clickable link) */
.site-footer .footer-contact-item span:not(:has(a)) {
  color: var(--accent-light, #e0be82) !important;
  text-decoration: none !important;
}
.site-footer .footer-contact-item span:not(:has(a)) strong,
.site-footer .footer-contact-item span:not(:has(a)) b {
  color: var(--accent-light, #e0be82) !important;
  font-weight: 600;
}

/* ============================================================
   ABOUT-SECTION DARK + READABLE (v56)
   Maximum-specificity override. Earlier rules with 4 :not() classes
   beat a single .about-section selector even with !important, so we
   chain the class 5 times to outrank them. Use the darkest rose
   (#7a3a4e) for strong white-text contrast.
   ============================================================ */
.about-section.about-section.about-section.about-section.about-section {
  background: #7a3a4e !important;
  background-color: #7a3a4e !important;
}
.about-section.about-section.about-section.about-section.about-section,
.about-section.about-section.about-section.about-section.about-section p,
.about-section.about-section.about-section.about-section.about-section li,
.about-section.about-section.about-section.about-section.about-section .about-checklist li {
  color: #ffffff !important;
}
.about-section.about-section.about-section.about-section.about-section h1,
.about-section.about-section.about-section.about-section.about-section h2,
.about-section.about-section.about-section.about-section.about-section h3,
.about-section.about-section.about-section.about-section.about-section .section-title {
  color: #ffffff !important;
}
.about-section.about-section.about-section.about-section.about-section .section-tag {
  color: #e0be82 !important;
}
.about-section.about-section.about-section.about-section.about-section .about-checklist li::before {
  color: #D4A862 !important;
}
.about-section.about-section.about-section.about-section.about-section .btn-primary {
  background: #D4A862 !important;
  color: #ffffff !important;
  border-color: #D4A862 !important;
}

/* ============================================================
   DESKTOP DROPDOWN OPEN/CLOSE ANIMATION (v57)
   Replace display:none/block toggle with opacity+transform so it
   slides+fades in on hover and slides+fades back out on unhover —
   same feel as the mobile menu (open and reverse-close).
   ============================================================ */
.dropdown .dropdown-menu {
  display: block !important;          /* always rendered so we can transition */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px) scaleY(0.94);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 0.26s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 0.26s;       /* delay hiding until fade-out finishes */
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scaleY(1);
  pointer-events: auto;
  transition:
    opacity 0.26s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 0s;          /* show immediately so anim can run */
}

/* ============================================================
   CTA BANNER "LIGHT FROM ABOVE" GRADIENT (v58)
   Replace the giant decorative quote glyph (which clips weirdly on
   mobile) with a soft white spotlight + faint diagonal rays —
   "seeing the light" feel for the call-to-action.
   ============================================================ */
.cta-banner::before {
  /* override the quote-glyph definition: no glyph, full-section overlay */
  content: "" !important;
  font-family: inherit !important;
  font-size: 0 !important;
  color: transparent !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  line-height: 0 !important;
  background:
    /* central spotlight glow from top */
    radial-gradient(
      ellipse 65% 80% at 50% -5%,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.10) 28%,
      rgba(255, 255, 255, 0.03) 55%,
      transparent 75%
    ),
    /* soft diagonal sheen — liquid-glass highlight */
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(255, 255, 255, 0.04) 35%,
      rgba(255, 255, 255, 0.09) 50%,
      rgba(255, 255, 255, 0.04) 65%,
      transparent 100%
    ) !important;
  pointer-events: none;
  z-index: 0;
}

/* (sun-ray beams removed — spotlight + diagonal sheen carry the look) */

/* Keep the CTA heading + buttons above the light layers */
.cta-banner > .container,
.cta-banner > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   iOS SAFE-AREA INSETS (viewport-fit=cover)
   Prevents content from sliding under the notch / Dynamic Island
   in landscape. Sections fill edge-to-edge; key chrome gets inset.
   ============================================================ */
@supports (padding: env(safe-area-inset-left)) {
  .top-bar {
    padding-left:  calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
  }
  .site-header .header-inner {
    padding-left:  calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
  }
  .site-footer {
    padding-left:  calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .mobile-nav.open {
    padding-left:  env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  /* All content respects notch/Dynamic Island in landscape */
  @media (orientation: landscape) {
    /* Main content wrapper */
    .container {
      padding-left:  calc(32px + env(safe-area-inset-left)) !important;
      padding-right: calc(32px + env(safe-area-inset-right)) !important;
    }
    /* CTA floating card — push its margins out past the notch */
    .cta-banner {
      margin-left:  calc(24px + env(safe-area-inset-left)) !important;
      margin-right: calc(24px + env(safe-area-inset-right)) !important;
    }
    /* Trust bar items */
    .trust-bar {
      padding-left:  calc(16px + env(safe-area-inset-left)) !important;
      padding-right: calc(16px + env(safe-area-inset-right)) !important;
    }
    /* Hero content (outside container in some layouts) */
    .hero-content, .page-hero-content {
      padding-left:  calc(24px + env(safe-area-inset-left)) !important;
      padding-right: calc(24px + env(safe-area-inset-right)) !important;
    }
    /* Mobile nav drop — keep same width as pill, let pill handle safe-area */
    .mobile-nav.open {
      left:  0 !important;
      right: 0 !important;
      width: 100% !important;
    }
  }
}

/* ============================================================
   LANDSCAPE PILL SHRINK ON SCROLL
   In landscape on mobile, shrink the pill smoothly after 40px
   of scroll so the user has more reading room.
   JS adds .landscape-scrolled to .site-header.
   ============================================================ */
@media (orientation: landscape) and (max-height: 500px) {
  /* Override global transition:none so the shrink/grow animates smoothly */
  .site-header,
  .site-header.scrolled {
    transition:
      border-radius 0.35s ease,
      box-shadow    0.35s ease,
      width         0.35s ease !important;
  }
  .site-header .header-inner,
  .site-header .container {
    transition: padding-top 0.35s ease, padding-bottom 0.35s ease !important;
  }
  .site-header .site-logo img {
    transition: height 0.35s ease !important;
  }
  .site-header .site-name-primary {
    transition: font-size 0.35s ease !important;
  }
  .site-header .site-name-secondary {
    transition: opacity 0.25s ease, max-height 0.3s ease, margin 0.3s ease !important;
  }
  .site-header .hamburger {
    transition: transform 0.35s ease !important;
  }

  /* ── Compact state — JS adds .landscape-scrolled after 40px scroll ── */
  .site-header.landscape-scrolled {
    border-radius: 20px !important;
    width: calc(100% - 220px) !important;
    transition:
      border-radius 0.35s ease,
      box-shadow    0.35s ease,
      width         0.35s ease !important;
  }
  .site-header.landscape-scrolled .header-inner,
  .site-header.landscape-scrolled .container {
    padding-top:    4px !important;
    padding-bottom: 4px !important;
  }
  .site-header.landscape-scrolled .site-logo img {
    height: 28px !important;
  }
  .site-header.landscape-scrolled .site-name-primary {
    font-size: 0.8rem !important;
  }
  .site-header.landscape-scrolled .site-name-secondary {
    opacity:    0 !important;
    max-height: 0 !important;
    overflow:   hidden !important;
    margin:     0 !important;
  }
  .site-header.landscape-scrolled .hamburger {
    transform:        scale(0.82) !important;
    transform-origin: center !important;
  }

  /* Mobile nav compact in landscape — scrollable, tighter rows */
  .mobile-nav.open {
    max-height: calc(100vh - 90px) !important;
    overflow-y: auto !important;
  }
  .mobile-nav.open li a {
    padding-top:    8px !important;
    padding-bottom: 8px !important;
    font-size:      0.85rem !important;
  }
}

/* ============================================================
   MOBILE NAV — flush to pill, scrollable, slide animation
   header-inner is set static so site-header (sticky) becomes
   the containing block → top:100% hits the true pill bottom.
   ============================================================ */

/* Open: slide down */
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Close: slide back up */
@keyframes navSlideUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); }
}

@media (max-width: 1024px) {
  /* Remove relative positioning from header-inner so the pill
     (site-header, sticky) becomes the nav's containing block */
  .site-header .header-inner {
    position: static !important;
  }
}

.mobile-nav.open {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  transform: none !important;
  border-radius: 0 0 28px 28px !important;
  margin-top: 0 !important;
  z-index: 149 !important;
  /* Scroll */
  max-height: calc(100vh - 80px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  /* Slide in */
  animation: navSlideDown 0.28s ease-out !important;
}

.mobile-nav.closing {
  animation: navSlideUp 0.28s ease-in forwards !important;
  pointer-events: none !important;
}

/* When menu is open: flatten pill's bottom corners so it connects
   flush to the menu — together they look like one capsule */
.site-header:has(.mobile-nav.open) {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
/* Restore pill rounding while menu is animating closed */
.site-header:has(.mobile-nav.closing) {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* ============================================================
   FOOTER MOBILE PORTRAIT LAYOUT
   Row 1: About (full width)
   Row 2: Practice Areas | Quick Links (equal cols, divider between)
   Row 3: Contact (full width — gives phone/fax room to breathe)
   ============================================================ */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px 12px !important;
  }
  /* About and Contact span both columns */
  .footer-grid .footer-about,
  .footer-grid .footer-col:last-child {
    grid-column: 1 / -1 !important;
  }
  /* Divider between Practice Areas and Quick Links */
  .footer-grid .footer-col:nth-child(2) {
    border-right: 1px solid rgba(255,255,255,0.18) !important;
    padding-right: 12px !important;
  }
  .footer-grid .footer-col:nth-child(3) {
    padding-left: 12px !important;
  }
  /* Contact row: heading on top, items as a clean 2-col grid below */
  .footer-grid .footer-col:last-child {
    border-top: 1px solid rgba(255,255,255,0.12) !important;
    padding-top: 14px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 14px !important;
    row-gap: 6px !important;
  }
  .footer-grid .footer-col:last-child h4 {
    grid-column: 1 / -1 !important;
  }
  .footer-grid .footer-col:last-child .footer-contact-item {
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
    white-space: nowrap !important;
    align-items: center !important;
  }
  /* Empty icon spans add unwanted gap; hide them */
  .footer-grid .footer-col:last-child .footer-contact-item .icon:empty {
    display: none !important;
  }
  /* Tighten headings */
  .site-footer .footer-col h4 {
    font-size: 0.62rem !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 10px !important;
  }
  .footer-col ul li {
    font-size: 0.72rem !important;
    line-height: 1.55 !important;
  }
  .footer-contact-item,
  .footer-contact-item a {
    font-size: 0.72rem !important;
  }
  .site-footer a[href^="tel:"] {
    white-space: nowrap !important;
  }
}

/* ============================================================
   TOP-BAR BACKGROUND — locked to primary rose, never inherits body bg
   ============================================================ */
.top-bar {
  background: var(--primary, #9B4E63) !important;
}

/* ============================================================
   LANDSCAPE PILL — very narrow when scrolled + smaller hamburger
   ============================================================ */
@media (orientation: landscape) and (max-height: 500px) {
  .site-header.landscape-scrolled {
    width: calc(100% - 320px) !important;
  }
  /* Hamburger smaller in landscape at all times */
  .site-header .hamburger {
    padding: 4px !important;
  }
  .site-header .hamburger span {
    width: 16px !important;
  }
}

/* ============================================================
   MOBILE PILL: icon flush left, name truly centered on pill
   ============================================================ */
@media (max-width: 768px) {
  .site-header .header-inner {
    position: relative !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 0 !important;
  }
  /* Logo link: only as wide as the icon, stays at far left */
  .site-header .site-logo {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    z-index: 2 !important;
  }
  /* Text block: absolutely centered on the full header-inner width */
  .site-header .site-logo .site-name {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    white-space: nowrap !important;
    pointer-events: none !important;
  }
  .site-header .hamburger {
    z-index: 2 !important;
  }
}

/* ============================================================
   HERO CTA BUTTONS — centered on mobile portrait
   ============================================================ */
@media (max-width: 480px) {
  .hero-buttons {
    justify-content: center !important;
  }
}

/* ============================================================
   MOBILE NAV — liquid glass: rose-toned shine + gold dividers
   ============================================================ */

/* Gold dividers between items — subtle */
.mobile-nav.open li {
  border-bottom: 1px solid rgba(212, 168, 98, 0.22) !important;
}
.mobile-nav.open li:last-child {
  border-bottom: none !important;
}

/* Replace white/cream highlights with rose-tinted glow so
   the whole surface reads as uniformly rose liquid glass */
.mobile-nav.open::before {
  background:
    radial-gradient(ellipse 80% 55% at 12% 8%,
      rgba(230, 140, 170, 0.28) 0%,
      rgba(200, 100, 135, 0.10) 35%,
      transparent 60%
    ),
    radial-gradient(ellipse 55% 45% at 92% 92%,
      rgba(155, 78, 99, 0.20) 0%,
      transparent 65%
    ),
    linear-gradient(
      112deg,
      transparent 0%,
      rgba(220, 130, 160, 0.04) 35%,
      rgba(235, 155, 185, 0.14) 48%,
      rgba(235, 155, 185, 0.18) 52%,
      rgba(220, 130, 160, 0.06) 60%,
      transparent 100%
    ) !important;
}

/* Top rim: rose-gold sheen instead of white */
.mobile-nav.open::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 168, 98, 0.30) 20%,
    rgba(230, 155, 180, 0.55) 50%,
    rgba(212, 168, 98, 0.30) 80%,
    transparent 100%
  ) !important;
}

/* ============================================================
   MOBILE NAV — scrollable container + compact landscape items
   ============================================================ */
.mobile-nav.open {
  max-height: calc(100vh - 80px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Landscape / shrunk window: tighter items so less scrolling needed */
@media (max-height: 500px) {
  .mobile-nav.open li a {
    padding: 7px 20px !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.04em !important;
  }
  .mobile-nav.open .mobile-sub a {
    padding: 6px 20px 6px 32px !important;
    font-size: 0.66rem !important;
  }
  .mobile-nav.open li {
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }
}

/* ============================================================
   DESKTOP NAV FIT — all items stay inside the pill
   Container padding must exceed border-radius (28px) so nav
   never visually enters the curved corner area.
   ============================================================ */
@media (min-width: 769px) {
  .site-name-primary { font-size: 1.2rem !important; }
  .site-name-secondary { font-size: 0.56rem !important; letter-spacing: 0.1em !important; }
  .site-logo { gap: 10px !important; }
  .header-inner { gap: 8px !important; }
  .site-nav > li > a { padding: 5px 10px !important; font-size: 0.8rem !important; letter-spacing: 0.03em !important; }
  .nav-cta { padding: 6px 14px !important; margin-left: 6px !important; }
  /* Keep content well inside the 28px rounded corners */
  .site-header .container {
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
}
