
/* ==========================================================================
   ARCHITECTURAL MASTER RESPONSIVE SYSTEM (v2.3.0)
   Mobile-First Architecture Covering:
   - Ultra-compact Smartphones (320px - 360px)
   - Standard Smartphones (360px - 480px)
   - Phablets & Large Mobiles (480px - 768px)
   - Tablets Portrait & Landscape (768px - 1024px)
   - Laptops & Small Desktops (1024px - 1440px)
   - Ultra-wide Enterprise Screens (1440px+)
   ========================================================================== */

/* Global Strict Boundary Lock & Fluid Core */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Fluid Case Study & Lead CTA Buttons Base */
.case-study-cta-btn,
#modal-cta-btn,
#quote-submit-btn {
  white-space: normal !important;
  text-wrap: balance !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-align: center !important;
  justify-content: center !important;
  line-height: 1.35 !important;
  box-sizing: border-box !important;
  border-radius: 9999px !important;
}

.case-study-cta-btn span,
#modal-cta-btn span,
#quote-submit-btn span {
  display: inline-block !important;
  white-space: normal !important;
  text-wrap: balance !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-align: center !important;
  line-height: 1.35 !important;
  max-width: 100% !important;
}

/* --------------------------------------------------------------------------
   1. LAPTOPS & INTERMEDIATE DESKTOPS (<= 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --container-px: 20px;
  }

  .primary-nav {
    gap: 20px;
  }

  .nav-link {
    font-size: 0.88rem;
  }

  .results-pillars-grid.grid-4-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   2. TABLETS (PORTRAIT & LANDSCAPE: 769px - 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --container-px: 20px;
  }

  /* Header Transformation: Show Hamburger, Hide Dense Desktop Nav */
  .primary-nav,
  .header-phone-box {
    display: none !important;
  }

  .hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Grids: Reorganize 3/4 Columns into Clean 2-Column Matrices */
  .results-grid,
  .results-pillars-grid,
  .services-tiers-grid,
  .pricing-grid,
  .testimonials-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .landing-overview-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .audit-card {
    grid-template-columns: 1fr;
    padding: 44px 36px;
  }

  .section-hero {
    padding: 130px 0 60px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  }

  .single-article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-sticky-sidebar {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   3. LARGE SMARTPHONES & TABLET PORTRAIT (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --container-px: 18px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Header Mobile Polish */
  .site-header {
    padding: 12px 0 !important;
  }

  .site-header .theme-logo-img,
  .site-header .header-logo {
    max-height: 42px !important;
    height: 42px !important;
    width: auto !important;
  }

  .header-actions .btn-primary {
    display: none !important;
  }

  /* Typography Scales */
  .hero-title,
  .landing-title {
    font-size: clamp(1.95rem, 6.5vw, 2.6rem) !important;
    line-height: 1.25 !important;
  }

  .section-title {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
  }

  .section-subtitle,
  .landing-subtitle {
    font-size: 0.96rem !important;
    line-height: 1.65 !important;
    margin-bottom: 24px !important;
  }

  /* Grids: Collapse to 1 Column for Natural Scrolling */
  .results-grid,
  .results-pillars-grid,
  .results-pillars-grid.grid-4-cols,
  .services-tiers-grid,
  .pricing-grid,
  .testimonials-grid,
  .portfolio-grid,
  .deliverables-grid,
  .process-grid,
  .blog-posts-grid,
  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .stat-card {
    padding: 24px 16px !important;
  }

  .stat-number {
    font-size: clamp(2rem, 7vw, 2.8rem) !important;
  }

  .stat-label {
    font-size: 0.85rem !important;
  }

  /* Interactive Elements & Touch Targets */
  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .hero-cta-group .btn,
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary,
  .hero-cta-group .btn-outline {
    width: 100% !important;
    min-height: 48px !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 0.92rem !important;
  }

  /* Audit Card */
  .audit-card {
    padding: 32px 20px !important;
    border-radius: 18px !important;
  }

  .audit-form-row {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .audit-form-row .audit-input {
    width: 100% !important;
    height: 48px !important;
    font-size: 16px !important;
  }

  .audit-form-row .btn-primary {
    width: 100% !important;
    min-height: 48px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 14px !important;
    align-items: center !important;
  }

  .footer-bottom div[style*="display: flex"] {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 14px !important;
  }

  /* Filter Buttons in Portfolio */
  .portfolio-filters {
    gap: 8px !important;
    margin-bottom: 30px !important;
  }

  .filter-btn {
    padding: 9px 16px !important;
    font-size: 0.85rem !important;
    min-height: 42px !important;
  }

  /* Case Study Modal */
  .case-study-modal-content {
    padding: 24px 18px !important;
    max-height: 90vh !important;
  }

  .case-study-modal-title {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }

  .case-study-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .case-study-modal-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .case-study-cta-btn,
  #modal-cta-btn,
  #quote-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-wrap: balance !important;
    padding: 12px 18px !important;
    font-size: clamp(0.78rem, 3.4vw, 0.88rem) !important;
    letter-spacing: 0.02em !important;
    line-height: 1.35 !important;
    min-height: 48px !important;
    border-radius: 9999px !important;
  }

  .case-study-cta-btn span,
  #modal-cta-btn span,
  #quote-submit-btn span {
    display: inline !important;
    white-space: normal !important;
    text-wrap: balance !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.35 !important;
  }

  /* Service Selector Pill Labels */
  .service-selector-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .service-pill-custom {
    padding: 12px 14px !important;
    font-size: 0.88rem !important;
    min-height: 46px !important;
  }

  /* Legal Paper Cards */
  .legal-paper-card {
    padding: 26px 18px !important;
    border-radius: 16px !important;
  }
}

/* --------------------------------------------------------------------------
   4. STANDARD SMARTPHONES (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --container-px: 16px;
  }

  /* Hero & Landing Polish */
  .hero-section,
  .landing-hero {
    padding-top: 105px !important;
    padding-bottom: 36px !important;
    min-height: auto !important;
  }

  .hero-badge,
  .landing-badge {
    padding: 5px 12px !important;
    font-size: 0.72rem !important;
    max-width: 100% !important;
  }

  .landing-metrics-pills {
    gap: 8px !important;
    justify-content: center !important;
  }

  .metric-pill,
  .landing-pill {
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
  }

  .metric-pill .metric-val {
    font-size: 1rem !important;
  }

  /* Cards & Sections Compact Spacing */
  .section-results,
  .section-services,
  .section-portfolio,
  .section-pricing,
  .section-testimonials,
  .section-faq,
  .section-contact,
  .section-about-story,
  .section-about-pillars,
  .section-landing-overview,
  .section-landing-deliverables,
  .section-landing-process {
    padding: 44px 0 !important;
  }

  .section-tag {
    font-size: 0.75rem !important;
    padding: 5px 12px !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 12px !important;
  }

  .section-heading-wrap {
    margin-bottom: 36px !important;
  }

  .tier-box,
  .pricing-card,
  .testimonial-card,
  .pillar-card,
  .contact-info-card,
  .contact-form-box {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }

  .pricing-price-wrap {
    margin: 18px 0 !important;
  }

  .pricing-price {
    font-size: 2.2rem !important;
  }

  /* Quote Calculator Mobile Fitting */
  .pragmatic-calculator-wrap {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }

  .calc-service-tabs {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .calc-tab-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 11px 14px !important;
    font-size: 0.86rem !important;
    min-height: 46px !important;
  }

  .calc-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .calc-option-card {
    padding: 16px 14px !important;
    border-radius: 12px !important;
  }

  .calc-nav-bar {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .calc-nav-btn {
    width: 100% !important;
    min-height: 48px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .calc-live-pill {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Map Container */
  .contact-map-wrapper {
    margin-top: 28px !important;
    border-radius: 14px !important;
  }

  .contact-map-wrapper iframe {
    height: 240px !important;
  }

  /* Mobile Drawer Polish */
  .mobile-drawer {
    width: 90% !important;
    padding: 20px 16px 28px !important;
  }

  .mobile-nav-link {
    font-size: 0.98rem !important;
    padding: 11px 12px !important;
  }

  .mobile-accordion-toggle {
    font-size: 0.98rem !important;
    padding: 11px 12px !important;
  }
}

/* --------------------------------------------------------------------------
   5. ULTRA-COMPACT SMARTPHONES (<= 360px: iPhone SE 1st gen, older Galaxy)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  :root {
    --container-px: 12px;
  }

  .hero-title,
  .landing-title {
    font-size: 1.7rem !important;
    line-height: 1.25 !important;
  }

  .section-title {
    font-size: 1.35rem !important;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .stat-card {
    padding: 18px 12px !important;
  }

  .stat-number {
    font-size: 2.2rem !important;
  }

  .filter-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .mobile-bottom-bar,
  .mobile-fixed-bottom-bar,
  #mobileBottomBar {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px !important;
  }

  .mobile-bottom-bar-inner {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    max-width: 520px !important;
    margin: 0 auto !important;
  }

  .mobile-bar-btn {
    height: 46px !important;
    min-height: 46px !important;
    padding: 3px 4px !important;
  }

  .mobile-bar-btn .bar-btn-text {
    font-size: 0.65rem !important;
    letter-spacing: 0 !important;
  }

  .mobile-bar-btn .bar-btn-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .quote-pulse-bolt {
    font-size: 0.92rem !important;
  }
}

/* ==========================================================================
   PRAGMATIC REACH v2.4.0 — UAE LOCATIONS & MAJOR INDUSTRIES ARCHITECTURE
   ========================================================================== */

/* 1. Territory Directory & Industries Cards Grid */
.locations-cards-grid,
.industries-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 28px;
}

.location-card-hub,
.industry-card-hub {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.location-card-hub:hover,
.industry-card-hub:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 42, 59, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.is-hq-card {
  border-color: rgba(255, 42, 59, 0.45);
  background: linear-gradient(180deg, rgba(255, 42, 59, 0.05) 0%, var(--bg-secondary) 100%);
  box-shadow: 0 10px 30px rgba(255, 42, 59, 0.08);
}

.loc-card-badge,
.ind-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(255, 42, 59, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.loc-card-title,
.ind-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.loc-card-title a,
.ind-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.loc-card-title a:hover,
.ind-card-title a:hover {
  color: var(--accent);
}

.loc-card-headline,
.ind-card-headline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 18px 0;
}

/* Fast Stats Pills */
.loc-stats-wrap,
.ind-metrics-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.loc-stat-pill,
.ind-metric-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.ind-metric-pill {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.05);
}

/* Meta Labels & Tags */
.loc-meta-section,
.loc-services-preview,
.ind-pillars-preview,
.ind-active-territories {
  margin-bottom: 18px;
}

.loc-meta-label,
.ind-meta-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.loc-tags-flex,
.ind-territory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loc-tag,
.ind-territory-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.loc-tag:hover,
.ind-territory-tag:hover {
  border-color: var(--accent);
  color: #ffffff;
  background: rgba(255, 42, 59, 0.08);
}

/* Service / Pillar lists */
.loc-services-list,
.ind-pillars-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loc-services-list li,
.ind-pillars-list li {
  font-size: 0.86rem;
  color: #cbd5e1;
  position: relative;
  padding-left: 14px;
  line-height: 1.5;
}

.loc-services-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}

.loc-card-footer,
.ind-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

/* 2. Quick Emirates / Industry Switcher */
.emirates-quick-switcher {
  scrollbar-width: none;
}

.emirates-quick-switcher::-webkit-scrollbar {
  display: none;
}

.switcher-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

.switcher-pill:hover,
.switcher-pill.active-pill {
  background: rgba(255, 42, 59, 0.15);
  border-color: var(--accent);
  color: #ffffff;
}

.switcher-hq-tag {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
}

/* 3. Challenges & Obstacles Grid */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.challenge-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.challenge-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(255, 42, 59, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
  align-self: flex-start;
}

.challenge-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
}

.challenge-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* 4. Tailored Services Grid */
.tailored-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}

.tailored-srv-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tailored-srv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 42, 59, 0.4);
}

.tailored-srv-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  font-family: monospace;
}

.tailored-srv-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.tailored-srv-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tailored-srv-title a:hover {
  color: var(--accent);
}

.tailored-srv-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.srv-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: 8px;
}

/* 5. Location Industries Grid */
.location-industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.loc-ind-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.loc-ind-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(255, 42, 59, 0.04);
}

.loc-ind-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.loc-ind-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.loc-ind-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

.loc-ind-arrow {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
}

/* 6. Methodology Pillars Grid */
.methodology-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}

.method-pillar-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.method-pillar-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  font-family: monospace;
  line-height: 1;
}

.method-pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.method-pillar-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* 7. Deliverables Grid */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.deliverable-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px;
}

.deliverable-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.deliverable-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* 8. FAQ Accordion */
.faqs-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-accordion-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-accordion-item[open] {
  border-color: rgba(255, 42, 59, 0.4);
}

.faq-summary {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  user-select: none;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  padding-right: 16px;
  line-height: 1.4;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.25s ease;
  line-height: 1;
  flex-shrink: 0;
}

.faq-accordion-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 22px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}

/* Advantage Pillars */
.advantage-pillars-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.adv-pillar-item {
  display: flex;
  gap: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.adv-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.adv-pillar-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.adv-pillar-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* Mobile Breakpoints (<= 768px) */
@media (max-width: 768px) {
  .locations-cards-grid,
  .industries-cards-grid,
  .challenges-grid,
  .tailored-services-grid,
  .location-industries-grid,
  .methodology-pillars-grid,
  .deliverables-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .location-card-hub,
  .industry-card-hub {
    padding: 22px;
  }

  .faq-summary {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 18px 18px 18px;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   PRAGMATIC REACH v2.4.0 — PROFESSIONAL FOOTER DIRECTORY & H1 CONTAINMENT
   ========================================================================== */

/* 1. Professional Footer Directory Section */
.footer-directory-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-dir-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-dir-tag {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(255, 42, 59, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
}

.footer-dir-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.footer-dir-card {
  background: rgba(15, 19, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.footer-dir-card:hover {
  border-color: rgba(255, 42, 59, 0.25);
  background: rgba(15, 19, 28, 0.85);
}

.footer-dir-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.footer-dir-icon {
  font-size: 1.4rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  flex-shrink: 0;
}

.footer-dir-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.footer-dir-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.footer-dir-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.footer-dir-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 0.82rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-dir-link:hover {
  background: rgba(255, 42, 59, 0.08);
  border-color: rgba(255, 42, 59, 0.25);
  color: #ffffff;
  transform: translateX(2px);
}

.footer-dir-link.is-hq {
  border-color: rgba(255, 42, 59, 0.3);
  font-weight: 600;
}

.footer-dir-link .hq-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--accent);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
}

.footer-dir-link.view-all-link {
  grid-column: span 2;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 42, 59, 0.06);
  border-color: rgba(255, 42, 59, 0.2);
  margin-top: 6px;
  padding: 10px 14px;
}

.footer-dir-link.view-all-link:hover {
  background: rgba(255, 42, 59, 0.15);
  color: #ffffff;
}

@media (max-width: 900px) {
  .footer-directory-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .footer-dir-links-grid {
    grid-template-columns: 1fr;
  }
  .footer-dir-link.view-all-link {
    grid-column: span 1;
  }
  .footer-dir-card {
    padding: 18px;
  }
}

/* ==========================================================================
   2. UNIVERSAL H1 CONTAINMENT & MOBILE RESPONSIVE TYPOGRAPHY ENGINE
   ========================================================================== */

/* Universal Containment for all H1 Headings */
h1,
.hero-title,
.landing-title,
.single-article-title {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  margin-left: auto;
  margin-right: auto;
}

/* Content Container Containment */
.hero-content,
.landing-hero .container,
.hero-section .container,
.single-article-header {
  width: 100%;
  max-width: min(100%, 1020px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: visible;
}

/* Fluid Scalable Hierarchy for Desktop & Large Screens (1025px+) */
@media (min-width: 1025px) {
  .hero-title {
    font-size: clamp(2.8rem, 4.8vw, 4.4rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.015em;
    max-width: 980px;
  }
  .landing-title {
    font-size: clamp(2.4rem, 4.2vw, 3.6rem) !important;
    line-height: 1.15 !important;
    max-width: 920px;
  }
  .single-article-title {
    font-size: clamp(2.2rem, 3.8vw, 3.2rem) !important;
    line-height: 1.2 !important;
    max-width: 860px;
  }
}

/* Tablet Screens (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title {
    font-size: clamp(2.2rem, 4.2vw, 2.9rem) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.01em !important;
    max-width: 760px;
  }
  .landing-title {
    font-size: clamp(2.0rem, 3.8vw, 2.5rem) !important;
    line-height: 1.2 !important;
    max-width: 720px;
  }
  .single-article-title {
    font-size: clamp(1.9rem, 3.5vw, 2.3rem) !important;
    line-height: 1.22 !important;
    max-width: 680px;
  }
}

/* Small Tablets & Phablets (481px - 768px) */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.85rem, 5.5vw, 2.35rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    margin-bottom: 18px !important;
  }
  .landing-title {
    font-size: clamp(1.7rem, 5vw, 2.15rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 16px !important;
  }
  .single-article-title {
    font-size: clamp(1.65rem, 4.8vw, 2.05rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
  }
}

/* Standard Smartphones (376px - 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.6rem, 6.2vw, 1.95rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.015em !important;
    text-transform: none !important;
    padding-left: 4px;
    padding-right: 4px;
  }
  .landing-title {
    font-size: clamp(1.5rem, 5.8vw, 1.85rem) !important;
    line-height: 1.24 !important;
    letter-spacing: -0.015em !important;
    padding-left: 4px;
    padding-right: 4px;
  }
  .single-article-title {
    font-size: clamp(1.45rem, 5.5vw, 1.75rem) !important;
    line-height: 1.26 !important;
    padding-left: 2px;
    padding-right: 2px;
  }
  .landing-hero,
  .hero-section {
    padding-top: 115px !important;
    padding-bottom: 35px !important;
  }
}

/* Ultra-Compact Mobile Screens (320px - 375px) */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.45rem !important;
    line-height: 1.24 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  .landing-title {
    font-size: 1.38rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .single-article-title {
    font-size: 1.32rem !important;
    line-height: 1.28 !important;
  }
  .landing-hero .hero-badge,
  .hero-badge {
    padding: 3px 8px !important;
    font-size: 0.68rem !important;
  }
}

/* Ultra-responsive Case Study & Form CTA Buttons */
@media (max-width: 480px) {
  .case-study-modal-content {
    padding: 20px 14px !important;
  }

  .case-study-cta-btn,
  #modal-cta-btn,
  #quote-submit-btn {
    padding: 11px 12px !important;
    font-size: clamp(0.72rem, 3.5vw, 0.8rem) !important;
    letter-spacing: 0.01em !important;
  }
}

@media (max-width: 360px) {
  .case-study-modal-content {
    padding: 16px 10px !important;
  }

  .case-study-cta-btn,
  #modal-cta-btn,
  #quote-submit-btn {
    padding: 10px 8px !important;
    font-size: 0.70rem !important;
    letter-spacing: 0 !important;
  }
}

/* Strict Mobile Hide for Desktop Floating Actions & Tooltips */
@media (max-width: 768px) {
  .desktop-floating-actions,
  #calTooltipBubble,
  .floating-tooltip,
  #pragmatic-cal-widget,
  .cal-floating-widget,
  #pragmatic-wa-widget,
  .wa-floating-widget {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    z-index: -100 !important;
    overflow: hidden !important;
  }

  .portfolio-carousel-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .carousel-nav-controls {
    align-self: flex-end !important;
  }

  .portfolio-explore-cta .explore-all-btn {
    width: 100% !important;
    font-size: 0.88rem !important;
    padding: 12px 18px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}


/* ==========================================================================
   V2.4.4 FAQ KNOWLEDGE HUB & GLOBAL RESPONSIVE BUTTON WRAPPING
   ========================================================================== */

/* 1. Global Responsive Button Wrapping & Zero Overflow */
.industry-roi-btn,
.location-roi-btn,
.case-study-cta-btn,
#modal-cta-btn,
.calc-submit-btn {
  white-space: normal !important;
  text-wrap: balance !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-align: center !important;
  line-height: 1.35 !important;
  box-sizing: border-box !important;
}

.industry-roi-btn span,
.location-roi-btn span,
.case-study-cta-btn span,
#modal-cta-btn span,
.calc-submit-btn span {
  display: inline-block !important;
  white-space: normal !important;
  text-wrap: balance !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-align: center !important;
  line-height: 1.35 !important;
  max-width: 100% !important;
}

/* 2. FAQ Hub Interactive Component Styling */
.page-faq-hub .faq-search-box input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(255, 42, 59, 0.25), 0 12px 36px rgba(0, 0, 0, 0.6) !important;
}

.faq-filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.faq-filter-btn.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(255, 42, 59, 0.35) !important;
}

.faq-hub-item {
  background: #0f131c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  margin-bottom: 18px !important;
  overflow: hidden !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.faq-hub-item:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.faq-hub-item.active {
  border-color: rgba(255, 42, 59, 0.5) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
}

.faq-hub-item .faq-question {
  width: 100% !important;
  padding: 22px 26px !important;
  background: none !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  text-align: left !important;
}

.faq-hub-item .faq-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, color 0.3s !important;
}

.faq-hub-item.active .faq-icon {
  transform: rotate(45deg) !important;
  background: var(--accent) !important;
  color: #ffffff !important;
}

.faq-hub-item .faq-answer {
  padding: 0 26px 0 26px !important;
  overflow: hidden !important;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease !important;
}

.faq-hub-item.active .faq-answer {
  padding: 0 26px 26px 26px !important;
}

/* 3. Global Mobile Zero-Overflow Rules Across All Pages & Modals */
@media (max-width: 768px) {
  .hero-cta-group,
  .case-study-modal-footer,
  .modal-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .btn-phone,
  a.btn,
  button.btn,
  .hero-cta-group a,
  .hero-cta-group .btn,
  .case-study-cta-btn,
  #modal-cta-btn,
  #quote-submit-btn,
  .calc-submit-btn,
  .industry-roi-btn,
  .location-roi-btn,
  .modal-btn,
  .dialog-btn,
  .btn-meet,
  .btn-whatsapp {
    white-space: normal !important;
    text-wrap: balance !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
    justify-content: center !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.35 !important;
    padding: 12px 18px !important;
    font-size: clamp(0.78rem, 3.4vw, 0.88rem) !important;
    letter-spacing: 0.01em !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .btn span,
  a.btn span,
  button.btn span,
  .hero-cta-group a span,
  .hero-cta-group .btn span,
  .case-study-cta-btn span,
  #modal-cta-btn span,
  #quote-submit-btn span,
  .calc-submit-btn span {
    display: inline !important;
    white-space: normal !important;
    text-wrap: balance !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
  }

  .faq-hub-item .faq-question {
    padding: 16px 18px !important;
  }

  .faq-hub-item .faq-question h4 {
    font-size: 1rem !important;
  }

  .faq-hub-item .faq-answer {
    padding: 0 18px 0 18px !important;
  }

  .faq-hub-item.active .faq-answer {
    padding: 0 18px 20px 18px !important;
  }
}

@media (max-width: 480px) {
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .hero-cta-group .btn,
  .case-study-cta-btn,
  #modal-cta-btn,
  #quote-submit-btn,
  .calc-submit-btn,
  .industry-roi-btn,
  .location-roi-btn {
    padding: 11px 14px !important;
    font-size: clamp(0.72rem, 3.3vw, 0.82rem) !important;
    letter-spacing: 0 !important;
  }

  .case-study-modal-content {
    padding: 18px 14px !important;
  }
}

@media (max-width: 360px) {
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .hero-cta-group .btn,
  .case-study-cta-btn,
  #modal-cta-btn,
  #quote-submit-btn,
  .calc-submit-btn,
  .industry-roi-btn,
  .location-roi-btn {
    padding: 10px 10px !important;
    font-size: 0.70rem !important;
  }
}


/* ==========================================================================
   WORK PAGE: 48 CASE STUDIES MASTER GRID ALIGNMENT
   ========================================================================== */
.portfolio-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  margin-top: 40px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.portfolio-card {
  display: flex !important;
  flex-direction: column !important;
  background: #0f131c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  height: 100% !important;
  box-sizing: border-box !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.portfolio-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(255, 42, 59, 0.45) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55) !important;
}

.portfolio-card .portfolio-image {
  position: relative !important;
  width: 100% !important;
  height: 220px !important;
  overflow: hidden !important;
  background: #141925 !important;
}

.portfolio-card .portfolio-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s ease !important;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05) !important;
}

.portfolio-card .portfolio-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 24px !important;
}

.portfolio-filters {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  margin-bottom: 40px !important;
}

.portfolio-filters .filter-btn {
  padding: 10px 22px !important;
  border-radius: 999px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(15, 19, 28, 0.7) !important;
  color: #94a3b8 !important;
}

.portfolio-filters .filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

.portfolio-filters .filter-btn.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(255, 42, 59, 0.35) !important;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .portfolio-card .portfolio-image {
    height: 200px !important;
  }
  .portfolio-card .portfolio-body {
    padding: 20px 16px !important;
  }
}
