/* ==========================================================================
   RESPONSIVE BREAKPOINTS (v5.0 — Premium Institutional Mobile & Desktop)
   WebTonic Architecture with Spacious Margins, Compact Text & 1-Row Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   LARGE DESKTOP (Above 1200px)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .hero-headline {
    font-size: 4.25rem;
  }
}

/* --------------------------------------------------------------------------
   MEDIUM SCREENS / TABLETS (768px - 1023px)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-status-pill {
    display: none;
  }

  .methodology-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .service-row-card {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .bento-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .bento-card-funnel {
    grid-row: auto;
  }

  .reviews-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .cases-grid,
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .presence-card {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .footer-brand-info {
    grid-column: span 2;
  }
}

/* --------------------------------------------------------------------------
   MOBILE SCREENS (Below 768px)
   Spacious Edge Margins, High-Density Compact Text, Pure Blue-Green Hero, 1-Row Footer
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Native Touch Scrolling & Strict Viewport Overflow Containment */
  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body {
    background-attachment: scroll !important; /* Prevents mobile touch freeze */
  }

  main,
  section,
  .hero-section,
  .container {
    touch-action: pan-y !important;
    max-width: 100% !important;
  }

  /* Mobile Content Guaranteed Visibility: Zero Scrolling Delay or Blank Cards */
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Ambient Glow Orbs Containment */
  .ambient-glow-orbs {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .glow-orb {
    max-width: 300px !important;
    max-height: 300px !important;
    opacity: 0.16 !important;
  }

  /* ------------------------------------------------------------------------
     1. RESTORE ORIGINAL SPACIOUS MARGINS & BREATHING ROOM
     Keeps content comfortably away from screen edges
     ------------------------------------------------------------------------ */
  :root {
    --space-5xl: 56px;
    --space-4xl: 40px;
    --space-3xl: 32px;
    --space-2xl: 24px;
    --space-xl: 20px;
    --space-lg: 16px;
  }

  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Section Spacing: Generous Breathing Room between Modules */
  .section,
  .methodology-section,
  .services-section,
  .bento-grid-section,
  .reviews-section,
  .cases-section,
  .insights-section,
  .consultation-section,
  .bottom-cta-wrap {
    padding: 56px 0 !important;
  }

  .section-header {
    margin-bottom: 24px !important;
  }

  /* Header — Clean Mobile Navigation Without Overcrowding */
  .site-header {
    height: 68px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .brand-logo-img {
    height: 28px;
  }

  /* Hide header button on mobile since drawer menu has primary CTA */
  #headerCtaBtn {
    display: none !important;
  }

  .header-actions {
    gap: 0 !important;
  }

  /* ------------------------------------------------------------------------
     2. HERO SECTION — PURE BLUE-GREEN ATMOSPHERE (NO RED DOMINANCE)
     ------------------------------------------------------------------------ */
  .hero-section {
    padding-top: calc(68px + 28px) !important;
    padding-bottom: var(--space-3xl) !important;
    min-height: auto;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .hero-headline {
    font-size: 2.25rem;
    line-height: 1.15;
  }

  .hero-subhead {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  /* Pure Blue-Green Hero Aurora Glow (Contained within mobile bounds) */
  .hero-rainbow-glow {
    width: 280px !important;
    height: 280px !important;
    max-width: 80vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 5% !important;
    opacity: 0.45 !important;
    filter: blur(65px) !important;
    background: radial-gradient(circle, rgba(44, 173, 117, 0.48) 0%, rgba(6, 182, 212, 0.38) 42%, rgba(59, 130, 246, 0.22) 72%, transparent 100%) !important;
  }

  .hero-matrix-bg-img {
    opacity: 0.36 !important;
    filter: contrast(1.15) brightness(0.85) saturate(1.15) !important;
  }

  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .hero-consult-card {
    flex-direction: column;
    text-align: center;
    border-radius: var(--radius-md);
    width: 100%;
    padding: 14px 18px;
  }

  .hero-hud-badges,
  .hero-stage-badge {
    display: none;
  }

  /* ------------------------------------------------------------------------
     3. TIGHTENED TYPOGRAPHY & LINE-HEIGHTS ACROSS NON-HERO MODULES
     (Reduced text sizes & tighter line spacing, with spacious card & page margins)
     ------------------------------------------------------------------------ */
  .section-eyebrow {
    font-size: 0.6875rem !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.1em !important;
  }

  .section-eyebrow::before {
    height: 12px;
    width: 2.5px;
  }

  .section-title {
    font-size: 1.625rem !important;
    line-height: 1.18 !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.01em !important;
  }

  .section-subtitle {
    font-size: 0.875rem !important;
    line-height: 1.38 !important;
    margin-bottom: 16px !important;
  }

  /* Partners Marquee */
  .marquee-section {
    padding: 20px 0 24px !important;
  }

  .marquee-label {
    font-size: 0.6875rem !important;
    margin-bottom: 12px !important;
  }

  .marquee-group {
    gap: var(--space-2xl);
  }

  .logo-item {
    height: 38px;
    padding: 3px 8px;
  }

  .logo-item img {
    height: 26px;
    max-width: 130px;
  }

  /* Methodology Steps */
  .methodology-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .methodology-card {
    padding: 22px 20px !important;
    border-radius: var(--radius-lg) !important;
  }

  .methodology-step-badge {
    font-size: 0.6875rem;
    padding: 3px 8px;
    margin-bottom: 10px;
  }

  .methodology-step-title {
    font-size: 1.15rem !important;
    line-height: 1.22 !important;
    margin-bottom: 6px !important;
  }

  .methodology-step-desc {
    font-size: 0.8125rem !important;
    line-height: 1.38 !important;
    margin-bottom: 12px !important;
  }

  .methodology-features {
    font-size: 0.78rem !important;
    gap: 5px;
  }

  /* Services Rows */
  .service-row-card {
    padding: 22px 20px !important;
    border-radius: var(--radius-lg) !important;
    gap: 16px;
    margin-bottom: 16px;
  }

  .service-index {
    font-size: 1.2rem;
  }

  .service-heading {
    font-size: 1.15rem !important;
    line-height: 1.22 !important;
  }

  .service-pills {
    gap: 5px;
    margin-bottom: 10px;
  }

  .service-pill {
    font-size: 0.6875rem;
    padding: 2px 8px;
  }

  .service-desc-text {
    font-size: 0.8125rem !important;
    line-height: 1.38 !important;
    margin-bottom: 12px !important;
  }

  .service-preview-box {
    max-height: 180px;
    overflow: hidden;
  }

  /* Bento Grid (Why Work With Us) */
  .bento-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-card-funnel,
  .bento-card-chat,
  .bento-card-kpi,
  .bento-card-transition {
    padding: 22px 20px !important;
    border-radius: var(--radius-lg) !important;
  }

  .bento-card-funnel h3 {
    font-size: 1.25rem !important;
    line-height: 1.22 !important;
    margin-bottom: 8px !important;
  }

  .bento-card-funnel p {
    font-size: 0.8125rem !important;
    line-height: 1.38 !important;
    margin-bottom: 12px !important;
  }

  .acquisition-radar-box {
    min-height: 180px;
    max-height: 240px;
    margin: 12px 0;
  }

  .acquisition-radar-img {
    max-height: 230px;
  }

  .chat-window {
    gap: 8px;
    margin-top: 10px;
  }

  .chat-bubble {
    padding: 10px 14px;
    font-size: 0.8125rem !important;
    line-height: 1.38 !important;
  }

  .bento-card-kpi h4 {
    font-size: 1.05rem !important;
  }

  .bento-card-kpi p {
    font-size: 0.8125rem !important;
    line-height: 1.38 !important;
    margin-bottom: 12px !important;
  }

  .bento-card-transition {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .bento-card-transition p {
    font-size: 0.8125rem !important;
    line-height: 1.38 !important;
  }

  .bento-card-transition .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Social Proof (Reviews) */
  .reviews-masonry {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .review-card {
    padding: 20px 20px !important;
    border-radius: var(--radius-lg) !important;
  }

  .review-card-header {
    margin-bottom: 10px;
  }

  .review-quote {
    font-size: 0.8125rem !important;
    line-height: 1.38 !important;
    margin-bottom: 14px !important;
  }

  .review-author-wrap {
    padding-top: 10px;
    gap: 10px;
  }

  .review-author-avatar {
    width: 36px;
    height: 36px;
  }

  .review-author-name {
    font-size: 0.8125rem;
  }

  .review-author-role {
    font-size: 0.72rem;
  }

  /* Ticker Tape */
  .ticker-section {
    padding: 12px 0;
  }

  .ticker-item {
    font-size: 1rem;
    margin-right: var(--space-2xl);
  }

  /* ------------------------------------------------------------------------
     4. CASE STUDIES & INSIGHTS (Full-Width Responsive Grids)
     ------------------------------------------------------------------------ */
  .case-filter-tabs {
    margin-bottom: 18px !important;
    gap: 8px !important;
  }

  .filter-tab-btn {
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
  }

  .cases-grid,
  .insights-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .case-card,
  .insight-card {
    border-radius: var(--radius-lg) !important;
    width: 100% !important;
  }

  .case-card-img-wrap,
  .insight-card-img-wrap {
    height: 160px !important;
    width: 100% !important;
  }

  .case-card-body,
  .insight-card-body {
    padding: 20px 20px !important;
  }

  .case-title {
    font-size: 1.125rem !important;
    line-height: 1.22 !important;
    margin-bottom: 10px !important;
  }

  .case-metrics-list {
    font-size: 0.8125rem !important;
    gap: 5px !important;
    margin-bottom: 12px !important;
  }

  .insight-title {
    font-size: 1.0625rem !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }

  /* Global Presence */
  .presence-card {
    grid-template-columns: 1fr;
    padding: 22px 20px !important;
    border-radius: var(--radius-lg);
    gap: 18px;
  }

  .presence-hubs-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .hub-city {
    padding: 10px 12px;
  }

  .hub-city-name {
    font-size: 0.85rem;
  }

  .hub-city-reg {
    font-size: 0.65rem;
  }

  /* CTA & Booking Form */
  .cta-banner-box {
    padding: 28px 20px !important;
    border-radius: var(--radius-xl);
  }

  .booking-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-group-full,
  .form-submit-btn {
    grid-column: span 1;
  }

  .form-label {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 10px 14px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .custom-select-trigger {
    height: 44px;
    padding: 0 14px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .custom-select-dropdown {
    border-radius: 12px;
    max-height: 230px;
  }

  .custom-select-option {
    padding: 9px 12px;
    font-size: 0.8125rem;
  }

  .form-submit-btn .btn {
    padding: 14px 20px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .modal-container {
    padding: 24px 20px;
    width: 92%;
    border-radius: var(--radius-lg);
  }

  .hero-rating-badge {
    max-width: 90% !important;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    font-size: 0.625rem !important;
    padding: 4px 10px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }

  /* ------------------------------------------------------------------------
     5. FOOTER: 4 COLUMNS ON A SINGLE ROW (Capabilities, Sectors, Resources, Governance)
     ------------------------------------------------------------------------ */
  .site-footer {
    padding: 40px 0 20px;
  }

  .footer-top-grid {
    display: grid !important;
    /* 4 columns strictly on 1 single row */
    grid-template-columns: repeat(4, 1fr) !important;
    column-gap: 8px !important;
    row-gap: 18px !important;
  }

  .footer-brand-info {
    grid-column: 1 / -1 !important;
    padding-bottom: 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .footer-brand-desc {
    font-size: 0.8125rem;
    line-height: 1.42;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .footer-contact-pill {
    font-size: 0.72rem;
    padding: 5px 12px;
    background: rgba(44, 173, 117, 0.08);
    border-radius: var(--radius-full);
    border: 1px solid rgba(44, 173, 117, 0.2);
  }

  /* The 4 Column Titles: Small, Crisp, Single-Row */
  .footer-column-title {
    font-size: 0.625rem !important; /* 10px */
    letter-spacing: 0.02em !important;
    margin-bottom: 6px !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .footer-column-title::before {
    width: 3px;
    height: 3px;
  }

  .footer-link-list {
    gap: 5px !important;
  }

  .footer-link {
    font-size: 0.625rem !important; /* 10px */
    line-height: 1.25 !important;
    color: var(--text-secondary);
    word-break: break-word;
  }

  .footer-hubs-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    margin-bottom: 16px;
    gap: 8px;
  }

  .footer-hubs-label {
    font-size: 0.65rem;
    width: 100%;
  }

  .footer-hubs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  .footer-hub-pill {
    padding: 4px 8px;
    font-size: 0.625rem;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-compliance-disclaimer {
    flex-direction: row;
    padding: 14px 16px;
    margin-bottom: 16px;
    gap: 12px;
    border-radius: var(--radius-sm);
  }

  .compliance-icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  .footer-compliance-disclaimer div div {
    font-size: 0.6875rem !important;
    margin-bottom: 4px !important;
  }

  .footer-compliance-disclaimer p {
    font-size: 0.72rem !important;
    line-height: 1.42 !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 0.72rem;
    padding-top: 12px;
  }

  .footer-bottom div:last-child {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 0.6875rem;
  }

  /* Monumental Watermark: Hidden on mobile to avoid infinite blank drag */
  .footer-watermark {
    display: none !important;
  }
}
