/* ==========================================================================
   Ataur Law Chamber — Full Responsive Design System
   Senior Frontend Web Designer Grade
   Breakpoints: 1400px | 1200px | 1024px | 992px | 768px | 576px | 480px | 375px
   ========================================================================== */

/* ============================================================
   1. GLOBAL BASE RESPONSIVE HELPERS
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  min-width: 320px;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ============================================================
   2. TYPOGRAPHY RESPONSIVE SCALE
   ============================================================ */
h1, .hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
}

h2, .section-title {
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.75;
}

/* ============================================================
   3. HEADER & NAVIGATION — FULLY RESPONSIVE
   ============================================================ */

/* ── Desktop XL (1400px+) ── */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ── Large Desktop (1200px) ── */
@media (max-width: 1200px) {
  .nav-wrapper {
    gap: 12px;
  }
  .main-menu {
    gap: clamp(10px, 1.4vw, 20px);
  }
  .nav-link {
    font-size: 0.83rem;
  }
  .nav-phone-box small {
    display: none;
  }
  .btn-regalis-whatsapp {
    padding: 9px 14px;
    font-size: 0.78rem;
  }
}

/* ── Tablet (992px – 1199px) ── */
@media (max-width: 992px) {

  /* Header */
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
  .nav-phone-box {
    display: none !important;
  }
  .site-header .btn-regalis-whatsapp {
    display: none !important;
  }

  /* Mobile Menu Overlay */
  .main-menu {
    position: fixed !important;
    top: 74px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.99) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 24px 20px 40px !important;
    gap: 4px !important;
    border-top: 2px solid rgba(184, 134, 11, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: none !important;
    z-index: 999;
  }

  .main-menu.mobile-open {
    display: flex !important;
    animation: mobileMenuSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes mobileMenuSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .main-menu .nav-link {
    display: block;
    padding: 14px 16px !important;
    font-size: 1rem !important;
    font-weight: 600;
    border-radius: 10px;
    color: #1a2a3e !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s, color 0.2s;
  }

  .main-menu .nav-link:hover,
  .main-menu .nav-link.active {
    background: rgba(184, 134, 11, 0.08);
    color: #071321 !important;
    border-bottom-color: rgba(184, 134, 11, 0.2);
  }

  .main-menu .nav-link::after {
    display: none;
  }

  /* Dropdown in mobile */
  .nav-item-dropdown {
    position: relative;
    width: 100%;
  }

  .nav-dropdown-arrow {
    float: right;
    margin-top: 2px;
    transition: transform 0.25s ease;
  }

  .nav-item-dropdown.dropdown-open .nav-dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    position: static !important;
    background: rgba(250, 247, 242, 0.9) !important;
    border: 1px solid rgba(184, 134, 11, 0.18) !important;
    border-radius: 10px !important;
    padding: 8px !important;
    margin: 8px 0 4px 16px !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none;
  }

  .nav-item-dropdown.dropdown-open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu .dropdown-item {
    padding: 10px 14px !important;
  }

  /* Mobile CTA strip at bottom of menu */
  .main-menu::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: rgba(184, 134, 11, 0.15);
    margin: 8px 0;
  }

  /* Hero */
  .hero-section {
    min-height: 100svh !important;
    padding: 80px 0 60px !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    text-align: center;
  }

  .hero-image-wrapper {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-content {
    order: 1;
  }

  .hero-cta-buttons {
    justify-content: center;
  }

  .hero-stats-strip {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-stat-item[style] {
    border-left: none !important;
    padding-left: 0 !important;
  }

  .floating-advocate-badge {
    left: 10px !important;
    right: auto;
    bottom: 15px;
    font-size: 0.82rem;
    padding: 10px 16px;
  }
}

/* ── Mobile Landscape / Small Tablets (768px) ── */
@media (max-width: 768px) {

  /* Container */
  .container {
    padding: 0 16px;
  }

  /* Hide top bar */
  .top-bar {
    display: none !important;
  }

  /* Header reduced */
  .nav-wrapper {
    height: 64px !important;
  }
  .site-logo-img {
    height: 42px !important;
    max-width: 210px !important;
    width: auto !important;
  }

  /* Hero */
  .hero-section {
    padding: 70px 0 50px !important;
    min-height: auto !important;
  }
  .hero-title {
    font-size: clamp(1.9rem, 7.5vw, 2.8rem) !important;
    margin-bottom: 16px;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 28px;
  }
  .hero-badge {
    font-size: 0.7rem !important;
    margin-bottom: 18px;
  }
  .hero-stats-strip {
    gap: 14px !important;
    padding-top: 20px !important;
  }
  .hero-stat-item strong {
    font-size: 0.82rem !important;
  }
  .hero-stat-item span {
    font-size: 0.7rem !important;
  }
  .advocate-cutout-container {
    max-width: 380px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .advocate-cutout-image {
    max-width: 100% !important;
    max-height: 460px !important;
  }
  .advocate-halo-glow {
    width: 320px !important;
    height: 320px !important;
  }
  .floating-advocate-badge {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 12px !important;
    width: calc(100% - 24px) !important;
    max-width: 320px !important;
    padding: 10px 14px !important;
  }

  /* Section Padding */
  .section-padding {
    padding: 70px 0 !important;
  }
  .section-title {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem) !important;
  }

  /* About Section */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .about-main-image {
    height: 280px !important;
  }
  .about-experience-badge {
    right: 10px !important;
    bottom: -12px !important;
    padding: 12px 16px !important;
    max-width: 220px !important;
  }
  .about-contact-strip {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .about-content .section-tag {
    justify-content: center;
  }
  .about-content .section-tag::before {
    display: block;
  }
  .about-content .section-title {
    text-align: center;
  }

  /* Practice Grid */
  .practice-grid,
  .spec-header-row {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Spec Cards */
  .spec-card {
    flex: 0 0 calc(100% - 0px) !important;
    min-width: 280px !important;
    height: 380px !important;
  }

  /* Court Grid */
  .court-network-grid,
  .court-showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Court Showcase Panels */
  .court-panel-visual {
    min-height: 200px;
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }

  .court-visual-img {
    height: 200px;
    object-fit: cover;
  }

  .court-panel-list {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    max-height: 280px;
    overflow-y: auto;
  }

  .court-panel-detail {
    padding: 24px 20px;
  }

  /* Blog Grid */
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Testimonial Grid */
  .testimonial-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Stats Strip */
  .stats-grid,
  .stats-bar,
  .stats-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  /* Booking/CTA Grid */
  .booking-grid,
  .cta-grid,
  .consultation-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .footer-bottom > div[style] {
    flex-direction: column !important;
    text-align: center;
    gap: 10px !important;
  }
  .footer-bottom div > div {
    justify-content: center;
  }

  /* Modal */
  .modal-box {
    border-radius: 14px !important;
    margin: 10px;
  }
  .modal-header,
  .modal-body {
    padding: 18px 20px !important;
  }

  /* Dropdown nav */
  .nav-dropdown-menu {
    width: 100% !important;
    left: 0 !important;
  }
}

/* ── Small Mobile (576px) ── */
@media (max-width: 576px) {

  /* Hero */
  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.3rem) !important;
    line-height: 1.15;
  }
  .hero-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px !important;
  }
  .hero-cta-buttons .btn-regalis-gold,
  .hero-cta-buttons .btn-regalis-outline {
    justify-content: center;
    width: 100%;
  }
  .hero-stats-strip {
    flex-direction: column;
    align-items: center;
    gap: 12px !important;
    text-align: center;
  }
  .hero-stat-item[style] {
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-left: 0 !important;
    padding-top: 12px;
    width: 100%;
  }

  /* Sections */
  .section-padding {
    padding: 55px 0 !important;
  }
  .section-header-center {
    margin-bottom: 40px !important;
  }

  /* Practice cards - single column */
  .spec-cards-track {
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .spec-card {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    height: 320px !important;
  }

  /* Court Cards */
  .court-card {
    padding: 24px 20px !important;
  }
  .court-card-primary .court-badge-headquarters {
    top: 14px;
    right: 14px;
    font-size: 0.65rem;
    padding: 4px 10px;
  }

  /* About */
  .regalis-tabs-header {
    flex-wrap: wrap;
    gap: 6px !important;
  }
  .regalis-tab-btn {
    flex: 1 1 auto;
    padding: 9px 14px !important;
    font-size: 0.82rem !important;
    text-align: center;
  }

  /* Blog Cards */
  .blog-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* Stats - single col */
  .stats-grid,
  .stats-bar,
  .stats-strip {
    grid-template-columns: 1fr !important;
  }

  /* Spec filter bar */
  .spec-filter-bar {
    border-radius: 12px !important;
    padding: 10px !important;
    gap: 6px !important;
  }
  .spec-filter-pill {
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
  }

  /* Category banner stacked */
  .spec-category-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 18px 20px !important;
  }
  .spec-banner-actions {
    width: 100%;
    justify-content: space-between;
  }

  /* Footer social */
  .footer-social-bar {
    justify-content: center;
  }
  .footer-links {
    gap: 8px !important;
  }

  /* Scroll to top button position */
  .scroll-to-top-btn {
    right: 16px !important;
    bottom: 16px !important;
  }

  /* Modal */
  .modal-box {
    max-height: 95svh !important;
    border-radius: 18px 18px 0 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
}

/* ── Extra Small Mobile (480px) ── */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.55rem, 8.5vw, 2rem) !important;
  }
  .page-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }
  .section-title {
    font-size: clamp(1.45rem, 6vw, 1.9rem) !important;
  }
  .practice-grid {
    grid-template-columns: 1fr !important;
  }
  .spec-main-title {
    font-size: clamp(1.6rem, 6vw, 2rem) !important;
  }
  .blog-search-box {
    padding: 6px 12px !important;
    flex-wrap: wrap;
  }
  .blog-search-box input {
    min-width: 0;
  }
}

/* ── Tiny Mobile (375px) ── */
@media (max-width: 375px) {
  .container {
    padding: 0 12px;
  }
  .hero-title {
    font-size: 1.6rem !important;
  }
  .nav-wrapper {
    height: 58px !important;
  }
  .btn-regalis-gold,
  .btn-regalis-outline,
  .btn-regalis-whatsapp {
    font-size: 0.78rem !important;
    padding: 10px 16px !important;
  }
}

/* ============================================================
   4. DESKTOP DROPDOWN MENU — Fixed Positioning
   ============================================================ */
@media (min-width: 993px) {
  .nav-item-dropdown {
    position: relative;
  }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(184, 134, 11, 0.18);
    border-top: 2px solid rgba(184, 134, 11, 0.5);
    border-radius: 14px;
    min-width: 260px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(10, 22, 40, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 9999;
    list-style: none;
  }

  .nav-item-dropdown:hover .nav-dropdown-menu,
  .nav-item-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #1a2a3e;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-size: 0.88rem;
    font-weight: 500;
  }

  .nav-dropdown-menu .dropdown-item:hover {
    background: rgba(184, 134, 11, 0.07);
    color: #071321;
  }

  .nav-dropdown-menu .dropdown-item i {
    color: #b8860b;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(184, 134, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
  }

  .nav-dropdown-menu .dropdown-item-text strong {
    display: block;
    font-size: 0.88rem;
    color: #0a1628;
    font-weight: 600;
    line-height: 1.3;
  }

  .nav-dropdown-menu .dropdown-item-text span {
    font-size: 0.76rem;
    color: #4a5e78;
    font-weight: 400;
  }

  /* Remove mobile trigger */
  .nav-dropdown-arrow {
    font-size: 0.7rem;
    vertical-align: middle;
    margin-left: 4px;
  }
}

/* ============================================================
   5. HERO SECTION — RESPONSIVE
   ============================================================ */
@media (min-width: 1025px) {
  .hero-section {
    min-height: 90vh;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    padding: 80px 0 60px;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 44px;
  }
  .hero-image-wrapper {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-buttons {
    justify-content: center;
  }
  .hero-stats-strip {
    justify-content: center;
    flex-wrap: wrap;
  }
  .floating-advocate-badge {
    left: 0;
  }
}

/* ============================================================
   6. ABOUT & MISSION SECTION — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .about-content .section-tag,
  .process-content .section-tag {
    justify-content: center;
  }
  .about-content .section-tag::before,
  .process-content .section-tag::before {
    display: block;
  }
  .about-content .section-title,
  .process-content .section-title {
    text-align: center;
  }
  .about-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
  .about-contact-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   7. PRACTICE AREAS — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .spec-header-row {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .spec-view-all-link {
    display: inline-flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .practice-grid {
    grid-template-columns: 1fr;
  }
  .practice-card {
    padding: 28px 24px 24px;
  }
}

/* ============================================================
   8. COURT SHOWCASE — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .court-network-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .court-showcase-grid {
    grid-template-columns: 1fr;
  }
  .court-showcase-container {
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .court-card {
    padding: 28px 22px;
  }
  .court-card-header {
    gap: 14px;
  }
  .court-card-header h3 {
    font-size: 1.2rem;
  }
  .court-services-tags {
    gap: 6px;
  }
  .court-tag {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
}

/* ============================================================
   9. BLOG SECTION — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .blog-card-meta {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ============================================================
   10. TESTIMONIALS — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   11. STATS BAR — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .stat-value {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
  }
}

/* ============================================================
   12. CONSULTATION / BOOKING SECTION — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .booking-grid,
  .consultation-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .booking-info {
    text-align: center;
  }
}

/* ============================================================
   13. FOOTER — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .site-footer {
    padding: 60px 0 0;
  }
  .footer-bottom {
    padding: 20px 0;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }
  .footer-links li {
    font-size: 0.85rem;
  }
  .footer-bottom .container > div {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

/* ============================================================
   14. PAGE HERO (INNER PAGES) — RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .page-hero-section {
    padding: 50px 0 42px !important;
  }
  .page-hero-title {
    font-size: clamp(1.7rem, 6.5vw, 2.2rem) !important;
  }
  .page-hero-subtitle {
    font-size: 0.95rem !important;
    padding: 0 8px;
  }
  .page-hero-breadcrumbs {
    font-size: 0.78rem;
    padding: 7px 16px;
  }
}

/* ============================================================
   15. CONTACT PAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .contact-info-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .contact-info-col {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 28px 20px !important;
    border-radius: 14px !important;
  }
  .contact-map-wrapper {
    height: 260px !important;
  }
}

/* ============================================================
   16. ABOUT PAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-portrait-card {
    max-width: 400px;
    margin: 0 auto;
  }
  .about-timeline {
    padding-left: 20px !important;
  }
}

@media (max-width: 768px) {
  .chamber-card-header {
    padding: 18px 20px !important;
    gap: 12px !important;
  }
  .chamber-card-header h3 {
    font-size: 1.25rem !important;
  }
  .chamber-card-body {
    padding: 18px 20px !important;
  }
  .chamber-address {
    font-size: 0.88rem !important;
  }
  .about-portrait-badge {
    padding: 10px 14px !important;
    gap: 10px !important;
  }
}

/* ============================================================
   17. PRACTICE AREAS DETAIL PAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .practice-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .practice-sidebar {
    order: -1;
  }
  .practice-sidebar-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .practice-sidebar-inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   18. BLOG DETAIL PAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .blog-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .blog-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .blog-detail-content h2 {
    font-size: 1.5rem !important;
  }
  .blog-detail-content h3 {
    font-size: 1.25rem !important;
  }
  .blog-featured-image {
    border-radius: 10px !important;
    max-height: 240px !important;
    object-fit: cover;
    width: 100%;
  }
  .blog-author-box {
    flex-direction: column !important;
    text-align: center;
    padding: 20px !important;
  }
}

/* ============================================================
   19. COURT DETAIL PAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .court-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
}

/* ============================================================
   20. REVIEWS PAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   21. MODAL — FULLY RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal-box {
    border-radius: 20px 20px 0 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: 92svh !important;
    margin: 0 !important;
  }
  .modal-header {
    padding: 18px 20px !important;
  }
  .modal-body {
    padding: 16px 20px 24px !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ============================================================
   22. BUTTONS — RESPONSIVE TOUCH SIZES
   ============================================================ */
@media (max-width: 768px) {
  .btn-regalis-gold,
  .btn-regalis-outline,
  .btn-regalis-whatsapp {
    min-height: 44px; /* iOS touch target */
    padding: 12px 20px;
  }
}

/* ============================================================
   23. SCROLL TO TOP BTN — RESPONSIVE
   ============================================================ */
.scroll-to-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(7, 19, 33, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(4, 13, 24, 0.4), 0 0 0 1px rgba(201, 152, 42, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  padding: 0;
  outline: none;
}

.scroll-to-top-btn.is-visible,
.scroll-to-top-btn.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

.scroll-to-top-btn:hover {
  transform: translateY(-3px) scale(1.06);
  background: rgba(12, 30, 51, 0.98);
  box-shadow: 0 12px 30px rgba(4, 13, 24, 0.45), 0 0 20px rgba(201, 152, 42, 0.35);
}

.floating-whatsapp-btn {
  display: none !important;
}

@media (max-width: 576px) {
  .scroll-to-top-btn {
    right: 16px !important;
    bottom: 18px !important;
    width: 44px !important;
    height: 44px !important;
  }
}

/* ============================================================
   24. NAVIGATION DROPDOWN — SMOOTH MOBILE ACCORDION
   ============================================================ */
@media (max-width: 992px) {
  .dropdown-toggle .nav-dropdown-arrow {
    transition: transform 0.25s ease;
  }
  .nav-item-dropdown.dropdown-open .nav-dropdown-arrow {
    transform: rotate(180deg);
  }
  .nav-dropdown-menu {
    animation: accordionOpen 0.25s ease forwards;
  }
  @keyframes accordionOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Mobile WhatsApp CTA inside menu */
  .main-menu .mobile-menu-whatsapp-cta {
    display: flex;
    margin-top: 16px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
  }

  .main-menu .mobile-menu-phone-cta {
    display: flex;
    background: rgba(184, 134, 11, 0.1);
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: #071321;
    padding: 14px 20px;
    border-radius: 12px;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: 10px;
  }
}

/* ============================================================
   25. IMAGES — RESPONSIVE OPTIMIZATION
   ============================================================ */
.about-main-image,
.blog-card-thumb img,
.court-visual-img,
.advocate-cutout-image {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .about-main-image {
    height: 300px;
    object-fit: cover;
    object-position: top center;
  }
  .blog-card-thumb {
    height: 200px;
  }
}

/* ============================================================
   26. SECTION TAGS & DECORATORS — RESPONSIVE
   ============================================================ */
@media (max-width: 576px) {
  .section-tag {
    font-size: 0.68rem !important;
    letter-spacing: 0.14em !important;
  }
  .section-tag::before,
  .section-tag::after {
    width: 20px !important;
  }
  .section-header-center {
    padding: 0 4px;
    margin-bottom: 36px !important;
  }
  .section-header-center p {
    font-size: 0.92rem !important;
  }
}

/* ============================================================
   27. FAQ SECTION — RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .faq-item {
    padding: 16px 18px !important;
  }
  .faq-question {
    font-size: 0.95rem !important;
  }
}

/* ============================================================
   28. ANIMATIONS — REDUCED MOTION ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .floating-advocate-badge {
    animation: none !important;
  }
}

/* ============================================================
   29. PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .scroll-to-top-btn,
  .modal-overlay,
  .mobile-menu-toggle,
  .top-bar {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  .hero-section {
    background: #fff !important;
    color: #000 !important;
    min-height: auto !important;
    padding: 20pt 0 !important;
  }
  .hero-title, .section-title {
    color: #000 !important;
  }
}

/* ============================================================
   30. ACCESSIBILITY — FOCUS STATES
   ============================================================ */
:focus-visible {
  outline: 2px solid rgba(184, 134, 11, 0.8);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #b8860b;
  outline-offset: 3px;
}

/* ============================================================
   31. UTILITY RESPONSIVE CLASSES
   ============================================================ */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
@media (max-width: 576px) {
  .hide-xs { display: none !important; }
}

.text-center-mobile {
  text-align: inherit;
}
@media (max-width: 768px) {
  .text-center-mobile {
    text-align: center;
  }
}

/* ============================================================
   32. TOP BAR MOBILE
   ============================================================ */
@media (max-width: 992px) {
  .top-bar-info {
    display: none !important;
  }
  .top-bar .container {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }
}

/* ============================================================
   33. FLOATING WHATSAPP BUTTON (mobile fixed)
   ============================================================ */
@media (max-width: 768px) {
  .floating-whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 998;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
  }

  @keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); }
    50%       { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.65); }
  }
}

/* ============================================================
   34. CARD GRID SYSTEM — RESPONSIVE
   ============================================================ */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .cards-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  .cards-grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================================
   35. SPEC CARDS — MOBILE SCROLL FIX
   ============================================================ */
@media (max-width: 768px) {
  .spec-cards-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    margin: 0 -16px;
    padding-left: 16px;
  }
  .spec-cards-track {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    padding-right: 16px;
  }
  .spec-card {
    flex: 0 0 80vw;
    max-width: 80vw;
    height: 360px;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .spec-card {
    flex: 0 0 88vw;
    max-width: 88vw;
  }
}

/* ============================================================
   36. HERO IMAGE WRAPPER — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .advocate-cutout-image {
    max-width: 420px;
    max-height: 520px;
  }
}

@media (max-width: 768px) {
  .advocate-cutout-image {
    max-width: 360px;
    max-height: 460px;
  }
  .advocate-cutout-container {
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .advocate-cutout-image {
    max-width: 100%;
    max-height: 420px;
  }
  .advocate-cutout-container {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ============================================================
   37. REGALIS TABS — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .regalis-tabs-header {
    flex-direction: column;
    gap: 8px;
  }
  .regalis-tab-btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   38. BLOG PILLS BAR — RESPONSIVE
   ============================================================ */
@media (max-width: 576px) {
  .blog-pills-bar {
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .blog-pill {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  .blog-search-box {
    border-radius: 10px;
  }
}

/* ============================================================
   39. PRACTICE AREAS INDEX — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .practice-areas-index-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .practice-areas-index-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   40. FORMS — MOBILE OPTIMIZED
   ============================================================ */
.form-control {
  min-height: 44px;
  font-size: 16px; /* Prevent iOS zoom */
  padding: 10px 14px;
  border-radius: 8px;
  width: 100%;
  border: 1px solid var(--border-light, #e8e2d8);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: rgba(184, 134, 11, 0.6);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5e78' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ============================================================
   41. PERFORMANCE — GPU COMPOSITING
   ============================================================ */
.site-header,
.main-menu,
.modal-overlay,
.scroll-to-top-btn {
  will-change: transform;
}

/* ============================================================
   42. SAFE AREA — iPhone Notch / Home Bar
   ============================================================ */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-header {
    padding-top: env(safe-area-inset-top);
  }
  .modal-box {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .main-menu {
    padding-bottom: calc(env(safe-area-inset-bottom) + 20px) !important;
  }
}

/* ============================================================
   43. FOOTER  COMPREHENSIVE RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr !important;
    gap: 32px !important;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
  }
  .footer-brand {
    grid-column: 1 / -1 !important;
  }
  .site-footer {
    padding-top: 56px;
  }
  .footer-bottom .container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .footer-brand {
    grid-column: auto !important;
  }
}

/* Footer Social Buttons */
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.footer-social-btn:hover {
  background: linear-gradient(135deg, #b8860b, #d4aa3e, #c9982a);
  border-color: transparent;
  color: #071321;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.35);
}

/* ============================================================
   44. HERO IMAGE PORTRAIT  RESPONSIVE
   ============================================================ */
@media (max-width: 576px) {
  .hero-image-wrapper {
    max-width: 360px !important;
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }
  .advocate-cutout-image {
    max-width: 100% !important;
    max-height: 440px !important;
  }
  .advocate-cutout-container {
    max-width: 100% !important;
  }
  .advocate-halo-glow {
    width: 300px !important;
    height: 300px !important;
  }
  .hero-bottom-feature-strip {
    margin-top: 24px !important;
    padding-bottom: 20px !important;
  }
  .hero-feature-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ============================================================
   45. DEFENSIVE  Prevent Horizontal Overflow
   ============================================================ */
main, section, footer {
  overflow-x: hidden;
  max-width: 100%;
}

p, li, a, span {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ============================================================
   46. MOBILE TOUCH SCROLL  Smooth horizontal cards
   ============================================================ */
@media (max-width: 768px) {
  .spec-cards-container {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-left: 16px;
    margin-left: -16px;
  }
  .spec-card {
    scroll-snap-align: start;
    flex: 0 0 80vw;
    max-width: 80vw;
    min-width: auto;
  }
}

/* ============================================================
   47. COURT SHOWCASE  RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .court-showcase-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .court-panel-visual .court-visual-img {
    height: 220px;
    object-fit: cover;
  }
  .court-panel-list {
    max-height: 300px !important;
  }
}

/* ============================================================
   48. SCROLL TO TOP  Responsive
   ============================================================ */
.progress-ring__background {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
}
.progress-ring__progress {
  fill: none;
  stroke: #c9982a;
  stroke-width: 2;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.scroll-icon-wrapper {
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
}

/* ============================================================
   49. BANGLA TYPOGRAPHY & FONT ACCENTS
   ============================================================ */
.spec-card-bn,
.font-bangla,
[lang="bn"] {
  font-family: 'Hind Siliguri', 'Inter', -apple-system, sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #f5e6b8 !important;
  line-height: 1.5 !important;
  margin-top: 4px !important;
  margin-bottom: 8px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.01em;
}

/* ============================================================
   50. SENIOR MOBILE HEADER & TOPBAR (Phone, WhatsApp Icon, Menu Toggle)
   ============================================================ */
.mobile-nav-phone-btn {
  display: none;
  align-items: center;
  gap: 7px;
  background: rgba(184, 134, 11, 0.14);
  border: 1px solid rgba(201, 152, 42, 0.45);
  color: #ffffff;
  padding: 8px 13px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mobile-nav-phone-btn i {
  color: #d4af37;
  font-size: 0.85rem;
}

.mobile-nav-phone-btn:hover {
  background: rgba(184, 134, 11, 0.28);
  border-color: #d4af37;
  color: #ffffff;
}

@media (max-width: 991px) {
  .nav-phone-box {
    display: none !important;
  }

  .nav-cta-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mobile-nav-phone-btn {
    display: inline-flex !important;
  }

  .btn-regalis-whatsapp {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #25D366 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    min-width: 38px !important;
    font-size: 1.15rem !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35) !important;
    border: none !important;
  }

  .btn-regalis-whatsapp .whatsapp-btn-text {
    display: none !important;
  }

  .btn-regalis-whatsapp i {
    margin: 0 !important;
    font-size: 1.25rem !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
  }

  .mobile-menu-toggle:hover {
    background: rgba(184, 134, 11, 0.2) !important;
    border-color: #c9982a !important;
    color: #f5e6b8 !important;
  }
}

@media (max-width: 480px) {
  .mobile-phone-num {
    font-size: 0.78rem !important;
  }

  .mobile-nav-phone-btn {
    padding: 7px 10px !important;
  }

  .brand-logo img {
    height: 34px !important;
    width: auto !important;
  }
}

/* ============================================================
   51. DHAKA BAR ASSOCIATION BADGE (Footer & About)
   ============================================================ */
.dhaka-bar-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(184, 134, 11, 0.12);
  border: 1px solid rgba(201, 152, 42, 0.4);
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.25s ease;
  max-width: 100%;
}

.dhaka-bar-link-badge i.fa-scale-balanced {
  color: #d4af37;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.dhaka-bar-link-badge .dhaka-bar-text strong {
  display: block;
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 700;
}

.dhaka-bar-link-badge .dhaka-bar-text span {
  display: block;
  font-size: 0.75rem;
  color: #f5e6b8;
}

.dhaka-bar-link-badge:hover {
  background: rgba(184, 134, 11, 0.24);
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   52. SERVICE & PRACTICE AREA CARDS (Crystal-Clear Image + Multi-Card on Mobile)
   ============================================================ */
.spec-card {
  position: relative;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Optimized Card Gradient: Keeps the top 50% image clear & vivid */
.spec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 18, 34, 0.15) 0%,
    rgba(7, 18, 34, 0.35) 40%,
    rgba(7, 18, 34, 0.85) 75%,
    rgba(7, 18, 34, 0.98) 100%
  ) !important;
  z-index: 1;
  pointer-events: none;
}

.spec-card-content {
  position: relative;
  z-index: 2;
}

.spec-card-top-tag {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .spec-cards-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px !important;
    margin: 0 -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .spec-cards-track {
    display: flex !important;
    gap: 16px !important;
    width: max-content !important;
  }

  /* Show cards nicely sized with peek for min 3 cards */
  .spec-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    height: 440px !important;
    scroll-snap-align: start;
    border-radius: 16px !important;
  }

  .spec-card-title {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
  }

  .spec-card-desc {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .spec-card {
    flex: 0 0 260px !important;
    width: 260px !important;
    min-width: 260px !important;
    height: 420px !important;
  }
}

/* ============================================================
   53. LUXURY SMOOTH TRANSITIONS (Review Slider & Tab Motion)
   ============================================================ */
@keyframes reviewSlideMotion {
  0% {
    opacity: 0;
    transform: translateX(32px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.review-slide {
  display: none;
}

.review-slide.active {
  display: block !important;
  animation: reviewSlideMotion 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabPaneFade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.regalis-tab-pane {
  display: none;
}

.regalis-tab-pane.active {
  display: block !important;
  animation: tabPaneFade 0.35s ease forwards;
}

/* ============================================================
   54. PDF DOCUMENT VIEWER RESPONSIVE STYLING
   ============================================================ */
.blog-pdf-document-box {
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .blog-pdf-document-box {
    padding: 18px !important;
  }

  .pdf-viewer-frame-container iframe {
    height: 450px !important;
  }
}

@media (max-width: 480px) {
  .pdf-viewer-frame-container iframe {
    height: 380px !important;
  }
}

/* ============================================================
   55. DETAIL PAGES RESPONSIVE LAYOUT (Practice Area & Court Detail)
   ============================================================ */
.practice-detail-layout,
.court-detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 991px) {
  .practice-detail-layout,
  .court-detail-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }

  .practice-detail-main-content,
  .court-detail-main-content {
    order: 1 !important;
    width: 100% !important;
  }

  .practice-detail-sidebar,
  .court-detail-sidebar {
    order: 2 !important;
    width: 100% !important;
    position: static !important;
    top: auto !important;
  }

  .practice-detail-sidebar aside,
  .court-detail-sidebar aside {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 576px) {
  .practice-detail-layout,
  .court-detail-layout {
    gap: 20px !important;
  }

  .practice-detail-main-content > div,
  .court-detail-main-content > div {
    padding: 24px 16px !important;
  }
}

/* ============================================================
   56. SENIOR DESIGNER REFINEMENTS (Mobile Header, About Photo, Service Slider, Court Visual, Chamber Badges)
   ============================================================ */

/* 1. Mobile Header: High Contrast Phone Button, WhatsApp Icon, Menu Toggle */
.site-header {
  background: rgba(7, 18, 34, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.mobile-nav-phone-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: #071222 !important;
  border: 1.5px solid rgba(201, 152, 42, 0.65) !important;
  color: #f5e6b8 !important;
  padding: 7px 12px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.mobile-nav-phone-btn i {
  color: #d4af37 !important;
  font-size: 0.85rem !important;
}

.mobile-nav-phone-btn:hover {
  background: #0d223f !important;
  border-color: #d4af37 !important;
  color: #ffffff !important;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: #071222 !important;
  border: 1.5px solid rgba(201, 152, 42, 0.5) !important;
  color: #d4af37 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  font-size: 1.15rem !important;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.25s ease;
}

.mobile-menu-toggle:hover {
  background: #0d223f !important;
  color: #ffffff !important;
  border-color: #d4af37 !important;
}

@media (max-width: 991px) {
  .nav-phone-box {
    display: none !important;
  }

  .nav-cta-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mobile-nav-phone-btn {
    display: inline-flex !important;
  }

  .site-header .btn-regalis-whatsapp {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #25D366 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    font-size: 1.25rem !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35) !important;
    transition: transform 0.25s ease;
  }

  .site-header .btn-regalis-whatsapp .whatsapp-btn-text {
    display: none !important;
  }

  .site-header .btn-regalis-whatsapp i {
    font-size: 1.25rem !important;
    color: #ffffff !important;
    margin: 0 !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
  }
}

@media (max-width: 480px) {
  .mobile-nav-phone-btn {
    padding: 6px 9px !important;
    font-size: 0.74rem !important;
    gap: 4px !important;
  }

  .site-header .btn-regalis-whatsapp,
  .mobile-menu-toggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 1rem !important;
  }
}

/* 2. About Section Photo: Full Advocate Visibility */
.about-main-image {
  width: 100% !important;
  height: 460px !important;
  object-fit: cover !important;
  object-position: center 85% !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 768px) {
  .about-main-image {
    height: 380px !important;
    object-position: center 85% !important;
  }
}

@media (max-width: 480px) {
  .about-main-image {
    height: 320px !important;
    object-position: center 85% !important;
  }
}

/* 3. Practice Areas / Services Horizontal Card Slider */
.spec-cards-container {
  display: block !important;
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x mandatory !important;
  padding-bottom: 24px !important;
  scrollbar-width: none !important;
}

.spec-cards-container::-webkit-scrollbar {
  display: none !important;
}

.spec-cards-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  width: max-content !important;
  min-width: 100% !important;
}

.spec-card {
  flex: 0 0 285px !important;
  width: 285px !important;
  min-width: 285px !important;
  height: 440px !important;
  scroll-snap-align: start !important;
  border-radius: 16px !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

@media (max-width: 576px) {
  .spec-cards-container {
    margin: 0 -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .spec-card {
    flex: 0 0 265px !important;
    width: 265px !important;
    min-width: 265px !important;
    height: 420px !important;
  }
}

.spec-filter-bar {
  display: flex !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: 8px !important;
  padding: 8px 12px !important;
}

.spec-filter-bar::-webkit-scrollbar {
  display: none !important;
}

/* 4. Court Network Showcase Visual Image on Tablet & Mobile */
.court-showcase-container {
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #040d18 !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
}

@media (max-width: 1024px) {
  .court-showcase-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  .court-panel-visual {
    display: block !important;
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
    position: relative !important;
    border-right: none !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3) !important;
    order: 1 !important;
  }

  .court-visual-img-wrap {
    width: 100% !important;
    height: 250px !important;
    position: relative !important;
  }

  .court-visual-img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    display: block !important;
  }

  .court-panel-list {
    order: 2 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    max-height: 210px !important;
    overflow-y: auto !important;
  }

  .court-panel-details {
    order: 3 !important;
    padding: 26px 20px !important;
  }
}

@media (max-width: 576px) {
  .court-panel-visual {
    height: 210px !important;
    min-height: 210px !important;
  }

  .court-visual-img-wrap {
    height: 210px !important;
  }

  .court-visual-img {
    height: 210px !important;
  }

  .court-visual-vertical-tag {
    display: none !important;
  }

  .court-visual-badge {
    right: 12px !important;
    bottom: 12px !important;
    padding: 6px 12px !important;
    font-size: 0.72rem !important;
  }
}

/* 5. Chamber Contact Desk Badges & Icons High Contrast */
.desk-info-icon {
  background: #071222 !important;
  border: 1.5px solid rgba(212, 175, 55, 0.5) !important;
  color: #d4af37 !important;
  border-radius: 12px !important;
  width: 46px !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.desk-info-icon i {
  color: #d4af37 !important;
}

.desk-info-icon .fa-whatsapp {
  color: #25D366 !important;
}

.chamber-card-icon {
  background: #071222 !important;
  border: 1.5px solid rgba(212, 175, 55, 0.5) !important;
  color: #d4af37 !important;
}

.desk-info-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.desk-info-row:hover {
  transform: translateX(4px);
  border-color: rgba(212, 175, 55, 0.4);
}

/* ============================================================
   REGALIS DARK GLASSMORPHISM HEADER & ULTRA-RESPONSIVE MOBILE SYSTEM
   ============================================================ */
.site-header {
  background: rgba(7, 18, 34, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35) !important;
}

.main-menu .nav-link {
  color: #f1f5f9 !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.main-menu .nav-link:hover,
.main-menu .nav-link.active {
  color: #d4af37 !important;
}

.main-menu .nav-link.active::after {
  background: #d4af37 !important;
}

.regalis-phone-box {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  color: #ffffff !important;
  margin-right: 4px !important;
}

.regalis-phone-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(201, 152, 42, 0.15) !important;
  border: 1px solid rgba(201, 152, 42, 0.45) !important;
  color: #d4af37 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
}

.regalis-phone-text small {
  display: block !important;
  font-size: 0.7rem !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

.regalis-phone-text strong {
  font-size: 0.92rem !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

@media (max-width: 991px) {
  .regalis-phone-box {
    display: none !important;
  }
  .site-header {
    height: 60px !important;
    padding: 0 12px !important;
  }
  .nav-wrapper {
    height: 60px !important;
  }
  .brand-logo img {
    height: 42px !important;
    max-width: 210px !important;
    width: auto !important;
  }
  .mobile-nav-phone-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(201, 152, 42, 0.15) !important;
    border: 1px solid rgba(201, 152, 42, 0.5) !important;
    color: #f5e6b8 !important;
    padding: 6px 10px !important;
    border-radius: 18px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
  }
  .nav-whatsapp-icon-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 1.15rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    background: rgba(201, 152, 42, 0.15) !important;
    border: 1px solid rgba(201, 152, 42, 0.5) !important;
    color: #d4af37 !important;
    border-radius: 6px !important;
  }
  .main-menu {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: calc(100dvh - 60px) !important;
    background: #071222 !important;
    z-index: 9999999 !important;
    overflow-y: auto !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 24px 20px 60px !important;
    gap: 8px !important;
    margin: 0 !important;
    border-top: 2px solid #b8860b !important;
  }
  .main-menu.mobile-open {
    display: flex !important;
  }
  .main-menu .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 13px 16px !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    color: #f1f5f9 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
  }
  .main-menu .nav-link:hover,
  .main-menu .nav-link.active {
    background: rgba(184, 134, 11, 0.15) !important;
    color: #d4af37 !important;
  }
}

/* ============================================================
   MOBILE HERO PORTRAIT & BADGE POSITIONING REFINEMENT
   ============================================================ */
@media (max-width: 991px) {
  .hero-section {
    padding: 16px 0 40px !important;
    min-height: auto !important;
  }
  .hero-grid {
    gap: 24px !important;
  }
  .hero-image-wrapper {
    order: -1 !important;
    max-width: 440px !important;
    width: 100% !important;
    margin: 0 auto 20px !important;
  }
  .advocate-cutout-container {
    max-width: 420px !important;
    width: 100% !important;
    margin: 0 auto !important;
    position: relative !important;
  }
  .advocate-cutout-image {
    max-width: 100% !important;
    max-height: 520px !important;
    width: auto !important;
    transform: scale(1.08) !important;
    transform-origin: top center !important;
  }
  .advocate-halo-glow {
    top: 5% !important;
    width: 360px !important;
    height: 360px !important;
  }
  .floating-advocate-badge {
    position: absolute !important;
    bottom: -18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 24px) !important;
    max-width: 320px !important;
    padding: 10px 14px !important;
    z-index: 10 !important;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 12px 0 35px !important;
  }
  .hero-image-wrapper {
    max-width: 380px !important;
    margin-bottom: 24px !important;
  }
  .advocate-cutout-container {
    max-width: 360px !important;
  }
  .advocate-cutout-image {
    max-height: 480px !important;
    transform: scale(1.1) !important;
    transform-origin: top center !important;
  }
  .floating-advocate-badge {
    bottom: -20px !important;
    max-width: 300px !important;
    padding: 8px 12px !important;
  }
  .floating-advocate-badge .badge-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }
  .floating-advocate-badge h5 {
    font-size: 0.92rem !important;
  }
  .floating-advocate-badge p {
    font-size: 0.68rem !important;
  }
}

/* ============================================================
   MOBILE HERO EXACT ENLARGEMENT & LOWER BADGE POSITIONING
   ============================================================ */
@media (max-width: 991px) {
  .hero-section {
    padding: 8px 0 45px !important;
    background: radial-gradient(circle at 50% 28%, #38567c 0%, #263b54 42%, #1b2d42 75%, #142131 100%) !important;
  }
  .hero-grid {
    gap: 36px !important;
  }
  .hero-image-wrapper {
    order: -1 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto 36px !important;
    overflow: visible !important;
  }
  .advocate-cutout-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    position: relative !important;
    overflow: visible !important;
    display: flex !important;
    justify-content: center !important;
  }
  .advocate-cutout-image {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 580px !important;
    transform: scale(1.24) !important;
    transform-origin: top center !important;
    object-fit: contain !important;
  }
  .advocate-halo-glow {
    top: 5% !important;
    width: 380px !important;
    height: 380px !important;
    background: radial-gradient(circle, rgba(75, 125, 185, 0.55) 0%, rgba(38, 59, 84, 0.35) 50%, transparent 75%) !important;
  }
  .floating-advocate-badge {
    position: absolute !important;
    bottom: -32px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 24px) !important;
    max-width: 340px !important;
    padding: 11px 16px !important;
    z-index: 10 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 6px 0 45px !important;
  }
  .hero-image-wrapper {
    margin-bottom: 40px !important;
  }
  .advocate-cutout-image {
    max-height: 520px !important;
    transform: scale(1.30) !important;
    transform-origin: top center !important;
  }
  .floating-advocate-badge {
    bottom: -36px !important;
    max-width: 320px !important;
    padding: 9px 14px !important;
  }
}

/* High-Legibility Mobile Logo & Blog FAQ Color Enforcements */
@media (max-width: 991px) {
  .brand-logo {
    min-width: 160px !important;
    max-width: 220px !important;
  }
  .brand-logo img,
  .site-logo-img {
    height: 42px !important;
    max-width: 210px !important;
    width: auto !important;
    object-fit: contain !important;
  }
}

.blog-faq-section-box {
  background: #09172a !important;
  color: #ffffff !important;
}

.faq-question-text {
  color: #ffffff !important;
}

.faq-accordion-item.active .faq-question-text {
  color: #fde68a !important;
}

.faq-accordion-content,
.faq-accordion-content p {
  color: #f1f5f9 !important;
}
