/* =====================================================================
   LAW FIRM WEBSITE — MAIN STYLESHEET (Part 1: foundation)
   Sections: 1 Tokens · 2 Base · 3 Buttons · 4 Top bar · 5 Header/Nav
             6 Mega menu · 7 Footer · 8 Floating · 9 Animations
   Later stages append: hero, sections, inner pages, admin-facing bits.
   ===================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  --navy-900: #0a1628;
  --navy-800: #0f1f38;
  --navy-700: #16294a;
  --charcoal: #1f2937;
  --gold-500: #b8975a;
  --gold-600: #a07f43;
  --gold-400: #cfb37f;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f4;
  --gray-300: #d3d8e0;
  --gray-500: #6b7686;
  --gray-700: #3a4453;

  --font-heading: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 6px;
  --shadow-sm: 0 2px 10px rgba(10, 22, 40, .06);
  --shadow-md: 0 10px 30px rgba(10, 22, 40, .10);
  --shadow-lg: 0 20px 50px rgba(10, 22, 40, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. BASE ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.25;
}
a { color: var(--gold-600); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold-500); }
img { max-width: 100%; height: auto; }
::selection { background: var(--gold-500); color: var(--white); }

/* ---------- 3. BUTTONS ---------- */
.btn-cta, .btn-gold {
  background: var(--gold-500);
  color: var(--white);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius);
  padding: .7rem 1.5rem;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  transition: all .3s var(--ease);
}
.btn-cta:hover, .btn-gold:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline-light-gold {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius);
  padding: .7rem 1.5rem;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  transition: all .3s var(--ease);
}
.btn-outline-light-gold:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

/* ---------- 4. TOP BAR ---------- */
.top-bar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  padding: .55rem 0;
}
.top-bar a { color: rgba(255, 255, 255, .78); }
.top-bar a:hover { color: var(--gold-400); }
.top-bar i { color: var(--gold-500); margin-right: .4rem; }
.top-bar-divider {
  display: inline-block;
  width: 1px; height: 14px;
  background: rgba(255, 255, 255, .22);
  margin: 0 1rem;
  vertical-align: middle;
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; }
.top-bar-social a { margin-left: .9rem; }
.top-bar-social a i { margin: 0; }

/* ---------- 5. HEADER / NAV ---------- */
.site-header {
  background: var(--white);
  z-index: 1030;
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.main-navbar { padding: .9rem 0; transition: padding .3s var(--ease); }
.site-header.is-stuck .main-navbar { padding: .55rem 0; }

.navbar-brand, .footer-brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-900);
  color: var(--gold-400);
  border-radius: 4px;
  font-size: 1.2rem;
  border-bottom: 3px solid var(--gold-500);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy-900);
}
.brand-sub {
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.main-navbar .nav-link {
  color: var(--navy-800);
  font-weight: 500;
  font-size: .92rem;
  padding: .6rem .85rem !important;
  position: relative;
}
.main-navbar .nav-link::after {
  content: '';
  position: absolute;
  left: .85rem; right: .85rem; bottom: .2rem;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after { transform: scaleX(1); }
.main-navbar .nav-link:hover, .main-navbar .nav-link.active { color: var(--gold-600); }
.main-navbar .dropdown-toggle::after { border: 0; content: none; }

.navbar-toggler { border: 1px solid var(--gray-300); padding: .4rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(184, 151, 90, .3); }

/* Simple dropdown (Resources) */
.resources-menu {
  border: 0;
  border-top: 3px solid var(--gold-500);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .6rem 0;
  min-width: 230px;
}
.resources-menu .dropdown-item { padding: .6rem 1.3rem; font-size: .9rem; color: var(--navy-800); }
.resources-menu .dropdown-item i { color: var(--gold-500); width: 22px; }
.resources-menu .dropdown-item:hover { background: var(--gray-50); color: var(--gold-600); }

/* ---------- 6. MEGA MENU ---------- */
@media (min-width: 992px) {
  .mega-menu-parent { position: static; }
  .mega-menu {
    left: 0; right: 0;
    width: 100%;
    margin-top: 0;
    border: 0;
    border-top: 3px solid var(--gold-500);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    padding: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: all .3s var(--ease);
  }
  .mega-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  /* open on hover for desktop */
  .mega-menu-parent:hover > .mega-menu {
    visibility: visible; opacity: 1; transform: translateY(0);
  }
}
.mega-menu-inner { padding: 2rem 1.5rem 1rem; max-width: 1320px; margin: 0 auto; }
.mega-menu-item {
  display: flex; gap: .85rem;
  padding: .7rem .6rem;
  border-radius: var(--radius);
  color: var(--navy-800);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.mega-menu-item:hover { background: var(--gray-50); transform: translateX(4px); color: var(--navy-900); }
.mega-menu-icon {
  flex: 0 0 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(184, 151, 90, .12);
  color: var(--gold-600);
  border-radius: 50%;
  font-size: .95rem;
}
.mega-menu-text { display: flex; flex-direction: column; line-height: 1.3; }
.mega-menu-title { font-weight: 600; font-size: .9rem; }
.mega-menu-desc { font-size: .76rem; color: var(--gray-500); margin-top: 2px; }
.mega-menu-footer {
  border-top: 1px solid var(--gray-100);
  margin-top: 1rem; padding: 1rem 0;
  text-align: right;
}
.mega-menu-viewall { font-weight: 600; font-size: .88rem; }
.mega-menu-viewall i { margin-left: .3rem; transition: transform .25s var(--ease); }
.mega-menu-viewall:hover i { transform: translateX(4px); }

/* Mobile: mega menu becomes accordion-style dropdown */
@media (max-width: 991.98px) {
  /* Explicit show/hide rules — do not rely solely on Bootstrap's own
     .collapse/.show CSS, so the mobile menu keeps working even if a
     conflicting rule or a slow-loading stylesheet interferes. */
  .navbar-collapse:not(.show) { display: none !important; }
  .navbar-collapse.show {
    display: block !important;
    animation: navCollapseIn .25s var(--ease);
  }
  .navbar-collapse { padding: 1rem 0 1.25rem; max-height: calc(100vh - 80px); overflow-y: auto; }
  .main-navbar .nav-link { padding: .8rem 0 !important; border-bottom: 1px solid var(--gray-100); }
  .main-navbar .nav-link::after { display: none; }
  .mega-menu { border: 0; box-shadow: none; padding: 0; background: var(--gray-50); }
  .mega-menu-inner { padding: .75rem; }
  .mega-menu-desc { display: none; }
  .mega-menu-footer { text-align: left; margin-top: .25rem; padding: .5rem 0 0; }
  .resources-menu { box-shadow: none; border-top: 0; background: var(--gray-50); }
  .btn-cta { display: block; margin-top: 1rem; text-align: center; }
}
@keyframes navCollapseIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 7. FOOTER ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); font-size: .92rem; }
.footer-main { padding: 5rem 0 3.5rem; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: rgba(255, 255, 255, .55); }
.footer-brand .brand-mark { background: var(--navy-700); }
.footer-about { margin: 1.4rem 0; max-width: 380px; }
.footer-heading {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
  padding-bottom: .8rem;
  position: relative;
}
.footer-heading::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 2px; background: var(--gold-500);
}
.footer-links, .footer-contact, .footer-legal { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255, 255, 255, .72); }
.footer-links a:hover { color: var(--gold-400); padding-left: 6px; }
.footer-links a { transition: all .25s var(--ease); }
.footer-contact li { display: flex; gap: .8rem; margin-bottom: 1rem; }
.footer-contact i { color: var(--gold-500); margin-top: .3rem; width: 16px; }
.footer-contact a { color: rgba(255, 255, 255, .72); }
.footer-contact a:hover { color: var(--gold-400); }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: var(--white);
  transition: all .3s var(--ease);
}
.footer-social a:hover { background: var(--gold-500); border-color: var(--gold-500); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.4rem 0; font-size: .84rem; }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: rgba(255, 255, 255, .65); }
.footer-legal a:hover { color: var(--gold-400); }
.footer-disclaimer { font-size: .75rem; color: rgba(255, 255, 255, .42); margin: 1rem 0 0; text-align: center; }

/* ---------- 8. FLOATING BUTTONS ---------- */
.floating-actions {
  position: fixed;
  right: 18px; bottom: 90px;
  display: flex; flex-direction: column; gap: .7rem;
  z-index: 1040;
}
.fab {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.fab:hover { transform: scale(1.08); color: var(--white); box-shadow: var(--shadow-lg); }
.fab-whatsapp { background: #25d366; }
.fab-call { background: var(--gold-500); font-size: 1.15rem; }
.back-to-top {
  position: fixed; right: 22px; bottom: 24px;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-400);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: all .3s var(--ease);
  z-index: 1040;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold-500); color: var(--white); }
@media (max-width: 575.98px) {
  .fab { width: 46px; height: 46px; font-size: 1.2rem; }
  .floating-actions { right: 12px; bottom: 80px; }
  .back-to-top { right: 16px; bottom: 20px; width: 40px; height: 40px; }
}

/* ---------- 9. REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* =====================================================================
   PART 2: HOMEPAGE SECTIONS (hero → process)
   ===================================================================== */

/* ---------- Section primitives ---------- */
.section { padding: 6rem 0; }
.section-light { background: var(--gray-50); }
.section-dark { background: var(--navy-900); }
.section-dark .section-title, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.7); }
.section-head { max-width: 720px; margin: 0 auto 3.5rem; }
.section-label {
  display: inline-block;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .9rem;
  position: relative; padding: 0 2.2rem;
}
.section-label::before, .section-label::after {
  content: ''; position: absolute; top: 50%;
  width: 24px; height: 1px; background: var(--gold-500);
}
.section-label::before { left: 0; }
.section-label::after { right: 0; }
.section .row .section-label { padding-right: 0; }
.section .row .section-label::after { display: none; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1.1rem; }
.section-sub { color: var(--gray-500); font-size: 1.05rem; }
.section-dark .section-sub { color: rgba(255,255,255,.65); }
.btn-outline-navy {
  border: 1px solid var(--navy-900); color: var(--navy-900);
  border-radius: var(--radius); padding: .7rem 1.6rem;
  font-weight: 600; font-size: .9rem; letter-spacing: .03em;
  transition: all .3s var(--ease);
}
.btn-outline-navy:hover { background: var(--navy-900); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  padding: 6rem 0;
  background-color: var(--navy-900);
  background-image: url('../images/hero-bg.jpg');
  background-size: cover; background-position: center;
  color: var(--white);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,22,40,.94) 0%, rgba(10,22,40,.82) 50%, rgba(10,22,40,.55) 100%);
}
.hero-badge {
  display: inline-block;
  border: 1px solid rgba(207,179,127,.6);
  color: var(--gold-400);
  padding: .4rem 1rem; border-radius: 50px;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hero-badge i { margin-right: .4rem; }
.hero-title {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700; margin-bottom: 1.3rem;
}
.hero-text { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-actions .btn-lg { font-size: .95rem; padding: .85rem 1.8rem; }

/* ---------- Trust counters ---------- */
.trust-section { background: var(--white); margin-top: -3.2rem; position: relative; z-index: 5; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-top: 3px solid var(--gold-500);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
}
.trust-item { text-align: center; padding: 2.2rem 1rem; border-right: 1px solid var(--gray-100); }
.trust-item:last-child { border-right: 0; }
.trust-number { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; color: var(--navy-900); line-height: 1; }
.trust-label { margin-top: .6rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); }
@media (max-width: 767.98px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--gray-100); }
  .trust-number { font-size: 2.1rem; }
}

/* ---------- About ---------- */
.about-image-wrap { position: relative; padding: 0 0 2rem 2rem; }
.about-image-wrap::before {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 70%; height: 70%;
  border: 2px solid var(--gold-500); border-radius: var(--radius); z-index: 0;
}
.about-image { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-badge {
  position: absolute; z-index: 2; right: -10px; bottom: 0;
  background: var(--navy-900); color: var(--white);
  padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: .9rem;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.about-badge strong { font-family: var(--font-heading); font-size: 2.2rem; color: var(--gold-400); line-height: 1; }
.about-badge span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; line-height: 1.4; }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.check-list li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 0; color: var(--gold-500); font-size: .85rem;
}
.signature { font-family: 'Cormorant Garamond', var(--font-heading); font-style: italic; font-size: 1.35rem; color: var(--navy-700); }

/* ---------- Practice area cards ---------- */
.pa-card {
  display: block; height: 100%;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  color: var(--gray-700);
  transition: all .35s var(--ease);
  position: relative; overflow: hidden;
}
.pa-card::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.pa-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; color: var(--gray-700); }
.pa-card:hover::after { transform: scaleX(1); }
.pa-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(184,151,90,.12); color: var(--gold-600);
  font-size: 1.3rem; margin-bottom: 1.2rem;
  transition: all .35s var(--ease);
}
.pa-card:hover .pa-icon { background: var(--navy-900); color: var(--gold-400); }
.pa-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.pa-card p { font-size: .9rem; color: var(--gray-500); margin-bottom: 1rem; }
.pa-link { font-size: .85rem; font-weight: 600; color: var(--gold-600); }
.pa-link i { margin-left: .3rem; transition: transform .25s var(--ease); }
.pa-card:hover .pa-link i, .service-card:hover .pa-link i { transform: translateX(5px); }

/* ---------- Service cards ---------- */
.service-card {
  display: flex; gap: 1.2rem; height: 100%;
  background: var(--white); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  border-left: 3px solid transparent; color: var(--gray-700);
  transition: all .3s var(--ease);
}
.service-card:hover { border-left-color: var(--gold-500); box-shadow: var(--shadow-md); transform: translateY(-4px); color: var(--gray-700); }
.service-icon { flex: 0 0 auto; font-size: 1.6rem; color: var(--gold-500); padding-top: .2rem; }
.service-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.service-card p { font-size: .88rem; color: var(--gray-500); margin-bottom: .6rem; }

/* ---------- Why choose us ---------- */
.why-card {
  height: 100%; padding: 2.2rem 1.8rem;
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  transition: all .35s var(--ease);
}
.why-card:hover { background: rgba(255,255,255,.07); border-color: var(--gold-500); transform: translateY(-6px); }
.why-icon { font-size: 1.8rem; color: var(--gold-400); display: block; margin-bottom: 1.1rem; }
.why-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.why-card p { font-size: .92rem; margin: 0; }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 34px; left: 10%; right: 10%;
  height: 1px; background: var(--gold-400); opacity: .6;
}
.timeline-step { text-align: center; position: relative; padding: 0 .5rem; }
.timeline-no {
  width: 68px; height: 68px; margin: 0 auto 1.3rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 2px solid var(--gold-500);
  border-radius: 50%; color: var(--navy-900);
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
  position: relative; z-index: 1;
  transition: all .3s var(--ease);
}
.timeline-step:hover .timeline-no { background: var(--navy-900); color: var(--gold-400); }
.timeline-step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.timeline-step p { font-size: .88rem; color: var(--gray-500); margin: 0; }
@media (max-width: 991.98px) {
  .timeline { grid-template-columns: 1fr; gap: 2rem; padding-left: 0; }
  .timeline::before { top: 0; bottom: 0; left: 34px; right: auto; width: 1px; height: auto; }
  .timeline-step { text-align: left; padding-left: 5.5rem; }
  .timeline-no { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
  .hero { min-height: auto; padding: 4rem 0 5.5rem; }
  .about-image-wrap { padding: 0 0 1.5rem 1rem; }
  .about-badge { right: 0; }
}

/* =====================================================================
   PART 3: HOMEPAGE SECTIONS (attorneys → contact)
   ===================================================================== */

/* ---------- Attorney cards ---------- */
.attorney-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  height: 100%; transition: all .35s var(--ease);
}
.attorney-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.attorney-photo {
  position: relative; aspect-ratio: 4 / 4.4; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
}
.attorney-photo img { width: 100%; height: 100%; object-fit: cover; }
.attorney-initials { font-family: var(--font-heading); font-size: 3.2rem; color: var(--gold-400); }
.attorney-social {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; gap: .6rem;
  padding: .9rem; background: linear-gradient(0deg, rgba(10,22,40,.85), transparent);
  transform: translateY(100%); opacity: 0; transition: all .3s var(--ease);
}
.attorney-card:hover .attorney-social { transform: translateY(0); opacity: 1; }
.attorney-social a {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-500); color: var(--white); font-size: .85rem;
}
.attorney-social a:hover { background: var(--gold-600); color: var(--white); }
.attorney-body { padding: 1.6rem; text-align: center; }
.attorney-body h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.attorney-role { color: var(--gold-600); font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
.attorney-exp { font-size: .8rem; color: var(--gray-500); margin-bottom: .3rem; }
.attorney-exp i { color: var(--gold-500); margin-right: .3rem; }
.attorney-areas { font-size: .78rem; color: var(--gray-500); margin-bottom: .8rem; }
.attorney-bio { font-size: .88rem; color: var(--gray-500); margin-bottom: 1.2rem; }
.btn-outline-navy.btn-sm { padding: .5rem 1.2rem; font-size: .82rem; }

/* ---------- Case result cards ---------- */
.case-card {
  height: 100%; background: var(--white);
  border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 2rem; transition: all .3s var(--ease);
}
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); border-color: transparent; }
.case-category {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-600); background: rgba(184,151,90,.12);
  padding: .3rem .8rem; border-radius: 50px; margin-bottom: 1rem;
}
.case-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.case-card p { font-size: .9rem; color: var(--gray-500); margin-bottom: 1.4rem; }
.case-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--gray-100); flex-wrap: wrap; gap: .6rem; }
.case-status { font-size: .8rem; color: var(--gray-500); }
.case-status i { color: #1f9d55; margin-right: .3rem; }

/* ---------- Testimonials ---------- */
.testimonial { max-width: 760px; margin: 0 auto; text-align: center; color: rgba(255,255,255,.88); }
.testimonial-quote { font-size: 2.2rem; color: var(--gold-500); opacity: .5; margin-bottom: 1rem; display: block; }
.testimonial .stars { color: var(--gold-400); margin-bottom: 1.2rem; font-size: .9rem; }
.testimonial .stars i { margin: 0 2px; }
.testimonial p { font-size: 1.2rem; font-family: 'Cormorant Garamond', var(--font-heading); font-style: italic; line-height: 1.6; margin-bottom: 1.6rem; }
.testimonial footer strong { display: block; color: var(--white); font-style: normal; font-size: 1rem; }
.testimonial footer span { font-size: .82rem; color: rgba(255,255,255,.55); }
.testimonial-dots { position: static; margin-top: 2.5rem; }
.testimonial-dots [data-bs-target] { background: rgba(255,255,255,.3); width: 9px; height: 9px; border-radius: 50%; opacity: 1; }
.testimonial-dots .active { background: var(--gold-500); }

/* ---------- Blog cards ---------- */
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; transition: all .3s var(--ease); }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.blog-thumb { display: block; aspect-ratio: 16/10.5; background: var(--gray-100); overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gray-300); font-size: 2rem; }
.blog-body { padding: 1.6rem; }
.blog-meta { display: flex; justify-content: space-between; font-size: .75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .7rem; }
.blog-cat { color: var(--gold-600); font-weight: 600; }
.blog-body h3 { font-size: 1.08rem; margin-bottom: .6rem; }
.blog-body h3 a { color: var(--navy-900); }
.blog-body h3 a:hover { color: var(--gold-600); }
.blog-body p { font-size: .88rem; color: var(--gray-500); margin-bottom: .8rem; }

/* ---------- FAQ accordion ---------- */
.faq-accordion .accordion-item { border: 1px solid var(--gray-100); border-radius: var(--radius) !important; margin-bottom: 1rem; overflow: hidden; }
.faq-accordion .accordion-button {
  font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem;
  color: var(--navy-900); padding: 1.2rem 1.4rem; background: var(--white);
}
.faq-accordion .accordion-button:not(.collapsed) { color: var(--gold-600); background: var(--gray-50); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: 0 0 0 3px rgba(184,151,90,.25); }
.faq-accordion .accordion-button::after { filter: sepia(1) saturate(3) hue-rotate(0deg); }
.faq-accordion .accordion-body { font-size: .92rem; color: var(--gray-500); padding: 0 1.4rem 1.4rem; }

/* ---------- CTA banner ---------- */
.cta-section {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  padding: 5rem 0; text-align: center; color: var(--white);
}
.cta-section h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .8rem; }
.cta-section p { color: rgba(255,255,255,.75); margin-bottom: 2rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ---------- Contact section ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--gray-100); }
.contact-list li:first-child { padding-top: 0; }
.contact-list i { color: var(--gold-500); font-size: 1.2rem; width: 24px; margin-top: .2rem; }
.contact-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); margin-bottom: .2rem; }
.contact-list span, .contact-list a { font-size: .96rem; color: var(--navy-800); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.btn-whatsapp { background: #25d366; border: 1px solid #25d366; color: var(--white); border-radius: var(--radius); padding: .65rem 1.4rem; font-weight: 600; font-size: .88rem; transition: all .3s var(--ease); }
.btn-whatsapp:hover { background: #1ea952; color: var(--white); transform: translateY(-2px); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  height: 260px; background: var(--gray-100); color: var(--gray-500); text-align: center; font-size: .9rem;
}
.map-placeholder i { font-size: 1.8rem; color: var(--gold-500); }

.contact-form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 2.2rem; }
.contact-form-card .form-label { font-size: .85rem; font-weight: 600; color: var(--navy-800); margin-bottom: .4rem; }
.contact-form-card .form-control, .contact-form-card .form-select {
  border: 1px solid var(--gray-300); border-radius: var(--radius); padding: .65rem .9rem; font-size: .92rem;
}
.contact-form-card .form-control:focus, .contact-form-card .form-select:focus {
  border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(184,151,90,.18);
}
.form-note { font-size: .76rem; color: var(--gray-500); margin: .8rem 0 0; text-align: center; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; }
.alert-success { background: rgba(31,157,85,.1); border: 1px solid rgba(31,157,85,.3); color: #1f9d55; border-radius: var(--radius); padding: .9rem 1.2rem; font-size: .9rem; margin-bottom: 1.2rem; }
.alert-danger { background: rgba(200,60,60,.08); border: 1px solid rgba(200,60,60,.3); color: #c83c3c; border-radius: var(--radius); padding: .9rem 1.2rem; font-size: .9rem; margin-bottom: 1.2rem; }

@media (max-width: 767.98px) {
  .contact-form-card { padding: 1.5rem; }
  .cta-actions .btn-lg { width: 100%; }
}

/* =====================================================================
   PART 4: INNER / DYNAMIC PAGES
   (breadcrumb, inner hero, prose, sidebar, profile, blog single)
   ===================================================================== */

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--gray-50); border-bottom: 1px solid var(--gray-100); padding: 1rem 0; }
.breadcrumb-nav { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; font-size: .84rem; }
.breadcrumb-nav li { color: var(--gray-500); display: flex; align-items: center; gap: .4rem; }
.breadcrumb-nav li:not(:last-child)::after { content: '/'; margin-left: .4rem; color: var(--gray-300); }
.breadcrumb-nav li.active { color: var(--gold-600); font-weight: 600; }
.breadcrumb-nav a { color: var(--gray-500); }
.breadcrumb-nav a:hover { color: var(--gold-600); }

/* ---------- Inner hero (practice-area, case-study, generic) ---------- */
.inner-hero {
  position: relative; padding: 5rem 0 4rem; text-align: center;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}
.inner-hero-compact { padding: 3.5rem 0; }
.inner-hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(184,151,90,.12), transparent 60%); }
.inner-hero-icon {
  width: 72px; height: 72px; margin: 0 auto 1.4rem; display: flex; align-items: center; justify-content: center;
  background: rgba(184,151,90,.15); border: 1px solid rgba(207,179,127,.4);
  border-radius: 50%; font-size: 1.8rem; color: var(--gold-400); position: relative; z-index: 1;
}
.inner-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: .8rem; position: relative; z-index: 1; }
.inner-hero p { color: rgba(255,255,255,.75); max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.case-category-hero { display: inline-block; margin-bottom: 1rem; }
.case-status-hero { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: rgba(255,255,255,.85); font-size: .95rem; }
.case-status-hero i { color: #4ade80; }

/* ---------- Prose (long-form content) ---------- */
.prose { font-size: 1rem; color: var(--gray-700); }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 .8rem; }
.prose p { margin-bottom: 1.1rem; }
.lead-summary { font-size: 1.15rem; color: var(--navy-800); font-family: 'Cormorant Garamond', var(--font-heading); font-style: italic; margin-bottom: 1.6rem; }
.disclaimer-note { font-size: .82rem; color: var(--gray-500); border-top: 1px solid var(--gray-100); margin-top: 2rem; padding-top: 1.2rem; }

/* ---------- Sidebar ---------- */
.sidebar-card { background: var(--gray-50); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.5rem; }
.sidebar-card h3 { font-size: 1.05rem; margin-bottom: 1.1rem; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { border-bottom: 1px solid var(--gray-100); }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; font-size: .88rem; color: var(--gray-700); }
.sidebar-list a:hover { color: var(--gold-600); padding-left: 5px; }
.sidebar-list a i { color: var(--gold-500); width: 18px; }
.sidebar-list li.is-current a { color: var(--gold-600); font-weight: 600; }
.sidebar-cta { background: var(--navy-900); color: rgba(255,255,255,.85); text-align: center; }
.sidebar-cta h3 { color: var(--white); }
.sidebar-cta p { font-size: .88rem; margin-bottom: 1.2rem; }
.detail-list { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.detail-list li { padding: .5rem 0; border-bottom: 1px solid var(--gray-100); }
.detail-list li:last-child { border-bottom: 0; }

/* ---------- Attorney profile page ---------- */
.profile-card { background: var(--gray-50); border-radius: var(--radius); padding: 1.6rem; text-align: center; position: sticky; top: 110px; }
.profile-photo {
  aspect-ratio: 4/4.4; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.2rem;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-social { display: flex; justify-content: center; gap: .6rem; margin-bottom: 1.4rem; }
.profile-social a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--navy-900); color: var(--gold-400); }
.profile-social a:hover { background: var(--gold-500); color: var(--white); }
.profile-facts { list-style: none; padding: 0; margin: 0 0 1.4rem; text-align: left; font-size: .86rem; }
.profile-facts li { padding: .5rem 0; border-bottom: 1px solid var(--gray-100); }
.profile-facts i { color: var(--gold-500); width: 20px; }
.profile-role { color: var(--gold-600); font-weight: 600; margin-bottom: 1rem; }
.profile-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tag { background: rgba(184,151,90,.12); color: var(--gold-600); font-size: .78rem; font-weight: 600; padding: .35rem .9rem; border-radius: 50px; }
@media (max-width: 991.98px) { .profile-card { position: static; } }

/* ---------- Blog single ---------- */
.blog-single-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; font-size: .82rem; color: var(--gray-500); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.blog-single-image { width: 100%; border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow-sm); }
.blog-share { display: flex; align-items: center; gap: .7rem; margin: 2.5rem 0; padding-top: 1.5rem; border-top: 1px solid var(--gray-100); font-size: .9rem; color: var(--gray-500); }
.blog-share a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gray-100); color: var(--navy-800); }
.blog-share a:hover { background: var(--gold-500); color: var(--white); }
.author-box { display: flex; gap: 1.2rem; align-items: center; background: var(--gray-50); border-radius: var(--radius); padding: 1.4rem; }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--navy-900); color: var(--gold-400); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box strong { display: block; color: var(--navy-900); margin-bottom: .2rem; }
.author-box a { font-size: .85rem; }

/* ---------- Blog pagination ---------- */
.blog-pagination { margin-top: 3.5rem; display: flex; justify-content: center; }
.blog-pagination ul { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0; }
.blog-pagination a {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-300); border-radius: var(--radius); color: var(--navy-800); font-size: .9rem; font-weight: 600;
}
.blog-pagination a:hover { border-color: var(--gold-500); color: var(--gold-600); }
.blog-pagination a.active { background: var(--gold-500); border-color: var(--gold-500); color: var(--white); }
