/* ============================================================
   YU, SOUTH & ASSOCIATES — IMMIGRATION LAWYERS
   Design: Refined Sino-Modern | Dallas, TX
   ============================================================ */

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

/* ── Variables ───────────────────────────────────────────── */
:root {
  --red:        #C41118;
  --red-dark:   #9a0d12;
  --gold:       #B8933F;
  --gold-light: #D4AE60;
  --ink:        #1A1A2E;
  --ink-mid:    #2C2C44;
  --paper:      #F8F5EF;
  --paper-dark: #EEEBE2;
  --white:      #FFFFFF;
  --muted:      #7A7A8C;
  --border:     rgba(184,147,63,0.25);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-chinese: 'Noto Serif SC', serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:     4px;
  --shadow-sm:  0 2px 12px rgba(26,26,46,0.08);
  --shadow-md:  0 8px 32px rgba(26,26,46,0.14);
  --shadow-lg:  0 20px 60px rgba(26,26,46,0.20);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Utility ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196,17,24,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 13px 28px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
  background: var(--ink);
  padding: 10px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-contact a {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.topbar-contact a:hover { color: var(--gold-light); }
.topbar-contact svg { width: 14px; height: 14px; fill: var(--gold); flex-shrink: 0; }

.topbar-lang {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-lang span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  padding: 0 6px;
}
.topbar-lang a { color: rgba(255,255,255,0.55); font-size: 12px; letter-spacing:0.04em; transition: color 0.2s; }
.topbar-lang a:hover, .topbar-lang a.active { color: var(--gold-light); }

/* ── Header / Nav ────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-seal {
  width: 52px;
  height: 52px;
  background: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.logo-seal::after {
  content: '玉';
  font-family: var(--font-chinese);
  font-size: 24px;
  color: var(--gold);
  position: absolute;
}
.logo-text-en {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.logo-text-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-mid);
  padding: 8px 14px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--red);
  background: rgba(196,17,24,0.06);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  margin-left: 10px;
}
.nav-cta:hover { background: var(--red-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 580px;
  background: var(--ink);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26,26,46,0.92) 40%, rgba(26,26,46,0.65) 100%),
    url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1400&auto=format&fit=crop') center/cover no-repeat;
  z-index: 0;
}

/* Decorative Chinese lattice pattern */
.hero-lattice {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 520px;
  height: 520px;
  opacity: 0.05;
  z-index: 1;
  background-image:
    repeating-linear-gradient(0deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(0deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(90deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 20px);
  transform: rotate(15deg);
}

.hero-accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--gold), var(--red));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 80px 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.hero-eyebrow span {
  font-family: var(--font-chinese);
  font-size: 18px;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}
.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.hero-eyebrow-en {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
  max-width: 700px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 36px;
  max-width: 520px;
}
.hero-stat {
  flex: 1;
  padding-right: 28px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-stat:first-child { padding-right: 28px; }
.hero-stat:last-child { padding-right: 0; border-right: none; padding-left: 28px; }
.hero-stat:not(:first-child):not(:last-child) { padding: 0 28px; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ── Trust Bar ───────────────────────────────────────────── */
.trust-bar {
  background: var(--paper-dark);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-mid);
}
.trust-item svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
  flex-shrink: 0;
}
.trust-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

/* ── Services Section ────────────────────────────────────── */
.services-section {
  padding: 100px 0 80px;
  background: var(--white);
}
.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 20px;
}
.services-header-left { max-width: 520px; }
.services-header-right {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
  text-align: right;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.service-card {
  background: var(--white);
  padding: 36px 32px;
  transition: background 0.25s, transform 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--red);
  transition: height 0.35s ease;
}
.service-card:hover { background: var(--paper); }
.service-card:hover::before { height: 100%; }

.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(196,17,24,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; fill: var(--red); }
.service-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.2;
}
.service-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 18px;
  transition: gap 0.2s;
}
.service-link:hover { gap: 10px; }
.service-link svg { width: 14px; height: 14px; fill: currentColor; }

/* ── About Section ───────────────────────────────────────── */
.about-section {
  padding: 100px 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '律';
  font-family: var(--font-chinese);
  font-size: 360px;
  color: rgba(255,255,255,0.02);
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-left .section-label { color: var(--gold); }
.about-left .section-title { color: var(--white); margin-bottom: 24px; }
.about-left .section-title em {
  font-style: italic;
  color: var(--gold-light);
}

.about-body {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 36px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.pillar {
  padding: 20px;
  border: 1px solid rgba(184,147,63,0.2);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.pillar:hover {
  border-color: var(--gold);
  background: rgba(184,147,63,0.05);
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.pillar-text {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.about-right {
  position: relative;
}
.about-image-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
.about-image-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 6px;
}
.about-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.5) 0%, transparent 50%);
  border-radius: 6px;
}
.about-accent-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  opacity: 0.35;
  z-index: -1;
}
.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  background: var(--red);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Team Section ────────────────────────────────────────── */
.team-section {
  padding: 100px 0;
  background: var(--paper);
}
.team-header { text-align: center; margin-bottom: 60px; }
.team-header .section-label { justify-content: center; }
.team-header .section-label::before { display: none; }
.team-header .section-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.team-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.team-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
  background: var(--paper-dark);
}
.team-photo-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
}
.team-info {
  padding: 22px 20px;
}
.team-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.team-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 10px;
}
.team-bio {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── News Section ────────────────────────────────────────── */
.news-section {
  padding: 100px 0;
  background: var(--white);
}
.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.news-all-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.news-all-link:hover { gap: 10px; }
.news-all-link svg { width: 14px; height: 14px; fill: currentColor; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
  background: var(--white);
}
.news-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.news-card-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--paper-dark), var(--paper));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-img-placeholder {
  font-family: var(--font-chinese);
  font-size: 32px;
  color: var(--gold);
  opacity: 0.4;
}
.news-card-body { padding: 24px; }
.news-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.news-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.news-card:hover .news-card-title { color: var(--red); }
.news-card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Contact Strip ───────────────────────────────────────── */
.contact-strip {
  background: var(--red);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.contact-strip::before {
  content: '联系我们';
  font-family: var(--font-chinese);
  font-size: 140px;
  color: rgba(255,255,255,0.05);
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  pointer-events: none;
}
.contact-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.contact-strip-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  color: var(--white);
  max-width: 500px;
}
.contact-strip-text span {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}
.contact-strip-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-mid);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-text-en { color: var(--white); font-size: 22px; }
.footer-brand .logo-text-sub { color: rgba(255,255,255,0.3); }
.footer-tagline {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}
.footer-socials a:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.footer-contact li svg {
  width: 15px;
  height: 15px;
  fill: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* ── Chat Button ─────────────────────────────────────────── */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(196,17,24,0.4);
  cursor: pointer;
  border: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(196,17,24,0.55);
}
.chat-fab svg { width: 24px; height: 24px; fill: var(--white); }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.7s ease forwards;
}
.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; animation-name: fadeUp; animation-duration: 0.7s; animation-timing-function: ease; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; animation-name: fadeUp; animation-duration: 0.7s; animation-timing-function: ease; }
.fade-up-delay-3 { animation-delay: 0.35s; opacity: 0; animation-fill-mode: forwards; animation-name: fadeUp; animation-duration: 0.7s; animation-timing-function: ease; }
.fade-up-delay-4 { animation-delay: 0.5s; opacity: 0; animation-fill-mode: forwards; animation-name: fadeUp; animation-duration: 0.7s; animation-timing-function: ease; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-section::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 28px 24px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
    gap: 4px;
  }
  .nav-toggle { display: flex; }
  .site-header .container { position: relative; }
  .trust-bar .container { justify-content: center; }
  .trust-divider { display: none; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .services-header-right { text-align: left; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-strip .container { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .hero-stat { border-right: none; padding: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px !important; }
  .hero-stat:last-child { border-bottom: none; }
  .about-pillars { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-pillars { grid-template-columns: 1fr 1fr; }
  .topbar-lang { display: none; }
}


/* ── SEO Content Sections ────────────────────────────────── */
.seo-intro-section {
  padding: 82px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.seo-intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.seo-intro-copy {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.85;
}
.seo-intro-copy p + p { margin-top: 18px; }

.focus-section {
  padding: 90px 0;
  background: var(--white);
}
.focus-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: stretch;
}
.focus-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  padding: 44px;
}
.focus-card-large p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin: 22px 0;
}
.text-link {
  display: inline-flex;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.text-link:hover { color: var(--red-dark); }

.focus-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.focus-list article {
  background: var(--white);
  padding: 30px;
}
.focus-list h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}
.focus-list p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

.process-section {
  padding: 96px 0;
  background: var(--paper);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
}
.process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(196,17,24,0.08);
  color: var(--red);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.process-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.process-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

.service-area-section {
  padding: 90px 0;
  background: var(--ink);
}
.service-area-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(184,147,63,0.25);
  border-radius: 10px;
  padding: 48px;
}
.service-area-card .section-title {
  color: var(--white);
  margin-bottom: 18px;
}
.service-area-card p {
  color: rgba(255,255,255,0.68);
  line-height: 1.8;
}
.service-area-card p a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.city-grid span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  border-radius: 4px;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
}

.faq-section {
  padding: 96px 0;
  background: var(--paper);
}
.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-grid details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-grid summary {
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after {
  content: '+';
  float: right;
  color: var(--red);
  font-family: var(--font-body);
}
.faq-grid details[open] summary::after { content: '–'; }
.faq-grid details p {
  padding: 0 26px 24px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}
.faq-grid a { color: var(--red); }

@media (max-width: 1024px) {
  .seo-intro-grid,
  .focus-grid,
  .service-area-card {
    grid-template-columns: 1fr;
  }
  .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .focus-list { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .seo-intro-section,
  .focus-section,
  .process-section,
  .service-area-section,
  .faq-section {
    padding: 64px 0;
  }
  .focus-card,
  .service-area-card {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .city-grid { grid-template-columns: 1fr; }
  .faq-grid summary { font-size: 19px; }
}


/* ============================================================
   Practice Areas SEO Page Enhancements
   Uses the shared Yu, South & Associates design system above.
   ============================================================ */
.practice-areas-page main {
  background: var(--paper);
}

.practice-areas-page .section-title {
  letter-spacing: -0.01em;
}

.pa-hero {
  position: relative;
  padding: 108px 0 94px;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.pa-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(184,147,63,0.18), transparent 26%),
    linear-gradient(135deg, rgba(26,26,46,0.96) 0%, rgba(26,26,46,0.78) 52%, rgba(154,13,18,0.72) 100%),
    url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1600&auto=format&fit=crop') center/cover no-repeat;
  z-index: -2;
}
.pa-hero::after {
  content: '法';
  position: absolute;
  right: clamp(10px, 6vw, 90px);
  bottom: -92px;
  font-family: var(--font-chinese);
  font-size: clamp(180px, 26vw, 330px);
  color: rgba(255,255,255,0.052);
  line-height: 1;
  z-index: -1;
}
.pa-hero .container {
  position: relative;
  z-index: 2;
}
.pa-crumb {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.pa-crumb a {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(212,174,96,0.45);
}
.pa-hero h1 {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.03;
  max-width: 920px;
  margin-bottom: 22px;
}
.pa-hero h1 em {
  color: var(--gold-light);
  font-style: italic;
}
.pa-hero p {
  color: rgba(255,255,255,0.74);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 790px;
  line-height: 1.82;
  margin-bottom: 34px;
}
.pa-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.pa-intro {
  background: #fff;
  padding: 82px 0;
}
.pa-intro-grid {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(320px,.88fr);
  gap: 52px;
  align-items: start;
}
.pa-intro p {
  color: var(--muted);
  margin-bottom: 18px;
}
.pa-highlight-box {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(248,245,239,0.98)),
    var(--paper);
  border: 1px solid var(--border);
  padding: 34px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 105px;
}
.pa-highlight-box h2 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.pa-highlight-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.pa-highlight-list li {
  display: flex;
  gap: 10px;
  color: var(--ink-mid);
  font-size: 14px;
}
.pa-highlight-list li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  flex: 0 0 auto;
}

.pa-quick-nav {
  background: var(--paper-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 80px;
  z-index: 30;
}
.pa-quick-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pa-quick-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid rgba(184,147,63,0.38);
  border-radius: 999px;
  background: rgba(255,255,255,0.64);
  color: var(--ink-mid);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
}
.pa-quick-nav a:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-1px);
}

.pa-grid-section {
  padding: 92px 0;
  background:
    linear-gradient(180deg, rgba(248,245,239,1), rgba(238,235,226,1));
}
.pa-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.pa-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.pa-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.32s ease;
}
.pa-card::after {
  content: '';
  position: absolute;
  right: -54px;
  top: -54px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(184,147,63,0.08);
  pointer-events: none;
}
.pa-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.pa-card:hover::before {
  transform: scaleX(1);
}
.pa-card-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.pa-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(196,17,24,0.1), rgba(184,147,63,0.14));
  color: var(--red);
  font-size: 25px;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(184,147,63,0.16);
}
.pa-card h2 {
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 31px);
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--ink);
}
.pa-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.76;
  margin-bottom: 16px;
}
.pa-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
  position: relative;
  z-index: 1;
}
.pa-card li {
  color: var(--ink-mid);
  font-size: 13.5px;
  line-height: 1.45;
  padding-left: 20px;
  position: relative;
}
.pa-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,147,63,0.14);
}
.pa-card .service-link {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.pa-process {
  padding: 92px 0;
  background: #fff;
}
.pa-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
  counter-reset: pa-steps;
}
.pa-step {
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 26px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.pa-step::after {
  content: '';
  position: absolute;
  width: 74px;
  height: 74px;
  right: -32px;
  bottom: -32px;
  border-radius: 50%;
  background: rgba(196,17,24,0.07);
}
.pa-step-num {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}
.pa-step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
}
.pa-step p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.pa-local {
  background: var(--ink);
  padding: 92px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pa-local::before {
  content: 'Dallas · North Texas';
  position: absolute;
  right: 30px;
  top: 30px;
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 92px);
  color: rgba(255,255,255,0.035);
  white-space: nowrap;
}
.pa-local .section-title {
  color: #fff;
}
.pa-local p {
  color: rgba(255,255,255,0.68);
  max-width: 860px;
  margin: 20px 0;
}
.city-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.city-cloud span {
  border: 1px solid rgba(184,147,63,0.38);
  color: rgba(255,255,255,0.8);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255,255,255,0.04);
}

.pa-faq {
  padding: 92px 0;
  background: var(--paper);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.faq-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.faq-item a {
  color: var(--red);
  font-weight: 600;
}

.pa-final-cta {
  padding: 74px 0;
  background: var(--red);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pa-final-cta::after {
  content: '咨询';
  position: absolute;
  right: 8%;
  bottom: -58px;
  font-family: var(--font-chinese);
  font-size: 190px;
  color: rgba(255,255,255,0.08);
}
.pa-final-cta .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.pa-final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px,4vw,46px);
  line-height: 1.13;
  max-width: 670px;
}
.pa-final-cta p {
  color: rgba(255,255,255,0.8);
  margin-top: 10px;
  max-width: 680px;
}
.btn-white-red {
  background: #fff;
  color: var(--red);
}
.btn-white-red:hover {
  background: var(--paper);
  color: var(--red-dark);
}

@media (max-width: 1024px) {
  .pa-highlight-box { position: static; }
  .pa-process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .pa-intro-grid,
  .pa-card-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .pa-quick-nav { position: relative; top: auto; }
}
@media (max-width: 560px) {
  .pa-hero { padding: 84px 0 72px; }
  .pa-process-grid { grid-template-columns: 1fr; }
  .pa-card { padding: 26px; }
  .pa-card-top { flex-direction: column; }
  .pa-final-cta .contact-strip-actions,
  .pa-hero-actions { width: 100%; }
  .pa-final-cta .btn-primary,
  .pa-final-cta .btn-outline,
  .pa-hero .btn-primary,
  .pa-hero .btn-outline { width: 100%; justify-content: center; }
}

/* ============================================================
   Practice Area Inline CSS Additions
   Moved from the individual practice area HTML files.
   ============================================================ */
.practice-area-page{font-family:inherit;color:#1f2937;line-height:1.7}.practice-hero{background:linear-gradient(135deg,#10233f,#1f4b78);color:#fff;padding:48px 36px;border-radius:18px;margin:0 0 34px;box-shadow:0 18px 45px rgba(16,35,63,.18)}.practice-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:13px;font-weight:700;color:#d8b46a;margin:0 0 12px}.practice-hero h2{font-size:34px;line-height:1.18;margin:0 0 14px;color:#fff}.practice-hero p{font-size:18px;max-width:850px;margin:0 0 22px;color:#eef5ff}.practice-actions{display:flex;gap:14px;flex-wrap:wrap}.practice-btn{display:inline-block;padding:12px 18px;border-radius:999px;font-weight:700;text-decoration:none!important}.practice-btn.primary{background:#d8b46a;color:#10233f}.practice-btn.secondary{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.35)}.practice-section{margin:34px 0}.practice-section h2{font-size:28px;color:#10233f;margin:0 0 14px}.practice-section h3{font-size:21px;color:#10233f;margin:0 0 8px}.practice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}.practice-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:22px;box-shadow:0 8px 24px rgba(15,23,42,.07)}.practice-card p{margin-bottom:0}.practice-split{display:grid;grid-template-columns:1.45fr .75fr;gap:24px;align-items:start}.practice-callout{background:#f8fafc;border-left:5px solid #d8b46a;border-radius:14px;padding:24px}.practice-list{margin:14px 0 0;padding-left:20px}.practice-faq details{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px 18px;margin-bottom:12px}.practice-faq summary{font-weight:700;color:#10233f;cursor:pointer}.practice-related{background:#f8fafc;border-radius:16px;padding:24px}.practice-related ul{columns:2;margin-bottom:0}.practice-note{font-size:14px;color:#64748b}.left.item-image{display:none!important}@media(max-width:900px){.practice-grid,.practice-split{grid-template-columns:1fr}.practice-hero{padding:34px 22px}.practice-hero h2{font-size:28px}.practice-related ul{columns:1}}


/* ── Practice Areas Dropdown Navigation ──────────────────── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80px;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  left: -8px;
  right: -8px;
  top: 100%;
  height: 16px;
  display: block;
  pointer-events: auto;
}

.nav-dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}

.nav-dropdown.active > .nav-dropdown-toggle {
  color: var(--red);
  background: rgba(196,17,24,0.06);
}

.nav-dropdown.active > .nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.nav-caret {
  font-size: 10px;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret,
.nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(330px, 92vw);
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 250;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.main-nav .nav-dropdown-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 7px;
  color: var(--ink-mid);
  font-size: 13px;
  line-height: 1.35;
  background: transparent;
  white-space: normal;
}

.main-nav .nav-dropdown-menu a:hover,
.main-nav .nav-dropdown-menu a:focus {
  background: rgba(196,17,24,0.07);
  color: var(--red);
}

.main-nav .nav-dropdown-menu a::after {
  display: none !important;
}

@media (max-width: 768px) {
  .main-nav.open {
    align-items: stretch;
  }

  .main-nav.open .nav-dropdown {
    display: block;
    width: 100%;
  }

  .main-nav.open .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav.open .nav-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    margin: 6px 0 8px;
    padding: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border-radius: 8px;
    background: var(--paper);
  }

  .main-nav.open .nav-dropdown-menu::before {
    display: none;
  }

  .main-nav.open .nav-dropdown-menu a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .nav-dropdown.active > .nav-dropdown-toggle::after {
    display: none;
  }
}
