/* ==========================================================================
   HOUSE OF BOOKKEEPERS - RESPONSIVE STYLESHEET
   Source of Truth: Mobile Frame (855:1384, 360px) & Tablet Adaptations
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TABLET BREAKPOINT (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .section-heading {
    font-size: 42px;
  }

  .main-nav .nav-list {
    gap: 20px;
  }

  .mega-menu-inner {
    padding: 24px 28px;
  }

  .mega-tabbed-container {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }

  .mega-preview-card {
    padding: 32px 36px;
  }

  .mega-industries-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-wrapper {
    display: flex;
    justify-content: center;
  }

  .hero-social-proof {
    justify-content: center;
  }

  /* Services Hub Layout on Tablet: Preserve 2D Diagram with Proportional Scale */
  .services-hub-layout {
    width: 1026px !important;
    height: 950px !important;
    position: relative !important;
    left: 50% !important;
    --scale-factor: calc((100vw - 32px) / 1026px);
    transform: translateX(-50%) scale(var(--scale-factor)) !important;
    transform-origin: top center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: calc(950px * (var(--scale-factor) - 1)) !important;
  }

  .hub-connector-svg {
    display: block !important;
    position: absolute !important;
  }

  .hub-center-badge {
    display: flex !important;
    position: absolute !important;
    top: 476px !important;
    left: 513px !important;
    transform: translate(-50%, -50%) !important;
  }

  .services-cards-container {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .service-card {
    position: absolute !important;
    width: 295px !important;
    height: 294px !important;
  }

  .card-quickbooks {
    top: 0 !important;
    left: 513px !important;
    transform: translateX(-50%) !important;
  }

  .card-monthly {
    top: 139px !important;
    left: 0 !important;
  }

  .card-catchup {
    top: 139px !important;
    right: 0 !important;
  }

  .card-zoho {
    top: 517px !important;
    left: 0 !important;
  }

  .card-wave {
    bottom: 0 !important;
    left: 513px !important;
    transform: translateX(-50%) !important;
  }

  .card-xero {
    top: 517px !important;
    right: 0 !important;
  }

  /* Metrics Banner */
  .metrics-card-banner {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 24px;
  }

  /* Bento Grid */
  .bento-grid {
    grid-template-columns: 1fr !important;
  }

  .bento-card,
  .bento-card:nth-child(1),
  .bento-card:nth-child(2),
  .bento-card:nth-child(3),
  .bento-card:nth-child(4),
  .bento-card:nth-child(5),
  .bento-card:nth-child(6) {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: auto !important;
    height: auto !important;
  }

  .bento-card-tall {
    grid-row: auto !important;
    min-height: auto !important;
    height: auto !important;
  }

  .bento-ribbon-banner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 32px 24px;
  }

  .ribbon-left {
    flex-direction: column;
    gap: 16px;
  }

  .ribbon-divider {
    display: none;
  }

  /* Industries */
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Team */
  .team-layout {
    grid-template-columns: 1fr;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .specialist-image-wrap {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Audit Form */
  .audit-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  /* Footer */
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-col-contact {
    grid-column: span 2;
  }
}

/* --------------------------------------------------------------------------
   2. MOBILE BREAKPOINT (max-width: 768px - 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Announcement Bar */
  .announcement-bar {
    height: auto;
    min-height: 44px;
    padding: 8px 16px;
    font-size: 13px;
    line-height: 18px;
  }

  .announcement-content {
    flex-wrap: wrap;
    gap: 8px;
  }

  .announcement-badges {
    gap: 8px 14px;
  }

  .announcement-badge-item,
  .announcement-text,
  .announcement-rating {
    font-size: 13px;
  }

  .badge-icon {
    width: 15px;
    height: 15px;
  }

  .star-icon {
    width: 14px;
    height: 14px;
  }

  /* Header on Mobile (Matching Figma) */
  .site-header {
    height: 64px;
  }

  .main-nav {
    display: none;
  }

  .btn-header {
    display: inline-flex !important;
    background: #00C288 !important;
    color: #ffffff !important;
    padding: 7px 16px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    border-radius: 99px !important;
    box-shadow: 0 2px 8px rgba(0, 194, 136, 0.3) !important;
    border: none !important;
  }

  .hamburger-btn {
    display: none !important;
  }

  /* Mobile Drawer Overlay */
  .mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--color-white);
    z-index: 100;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .mobile-drawer.open {
    transform: translateX(0);
  }

  .drawer-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
  }

  .drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
  }

  .drawer-close-btn {
    padding: 4px;
  }

  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
  }

  .mobile-nav-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark-main);
  }

  .mobile-drawer-actions {
    margin-bottom: 32px;
  }

  .mobile-cta-btn {
    text-align: center;
    padding: 14px;
  }

  .mobile-drawer-contact {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: var(--color-dark-body);
  }

  .mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Typography & General Sizing */
  .container {
    padding: 0 16px;
  }

  .section-heading {
    font-size: 32px;
    line-height: 1.15;
  }

  .section-subheading {
    font-size: 15px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }

  .hero-content {
    text-align: left;
  }

  .trust-badge {
    padding: 4px 10px 4px 4px;
    margin-bottom: 16px;
    max-width: 100%;
    display: inline-flex;
  }

  .trust-badge-text {
    font-size: 11.5px;
    letter-spacing: -0.01em;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 16px;
    text-align: left;
    word-break: normal;
  }

  .highlight-box {
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 24px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-cta-wrapper {
    display: block;
    width: 100%;
    margin-bottom: 28px;
  }

  .btn-hero {
    width: 100%;
    justify-content: space-between;
    padding: 6px 6px 6px 18px;
  }

  .hero-social-proof {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
  }

  .badge-aicpa {
    width: 90px;
    height: 90px;
    top: 10px;
    right: -10px;
  }

  .badge-aicpa img {
    width: 70px;
    height: 70px;
  }

  .badge-video {
    width: 130px;
    bottom: 10px;
    left: -10px;
  }

  /* Partners Carousel */
  .partners-section {
    padding: 32px 0;
  }

  .carousel-fade-left,
  .carousel-fade-right {
    width: 60px;
  }

  .partners-track {
    gap: 40px;
    animation: marqueePartners 20s linear infinite;
  }

  .partner-logo-item img {
    max-height: 30px;
  }

  /* Problems We Solve on Mobile: 100% Proportional Scale matching Desktop */
  .problems-section {
    padding: 40px 0 20px;
    overflow: hidden;
  }

  .services-hub-layout {
    width: 1026px !important;
    height: 950px !important;
    position: relative !important;
    left: 50% !important;
    --scale-factor: calc((100vw - 32px) / 1026px);
    transform: translateX(-50%) scale(var(--scale-factor)) !important;
    transform-origin: top center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: calc(950px * (var(--scale-factor) - 1)) !important;
  }

  .hub-connector-svg {
    display: block !important;
    position: absolute !important;
    width: 1026px !important;
    height: 950px !important;
  }

  .hub-center-badge {
    display: flex !important;
    position: absolute !important;
    top: 476px !important;
    left: 513px !important;
    transform: translate(-50%, -50%) !important;
  }

  .services-cards-container {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .service-card {
    position: absolute !important;
    width: 295px !important;
    height: 294px !important;
    padding: 28px !important;
    border-radius: 32px !important;
  }

  .card-quickbooks {
    top: 0 !important;
    left: 513px !important;
    transform: translateX(-50%) !important;
  }

  .card-monthly {
    top: 139px !important;
    left: 0 !important;
  }

  .card-catchup {
    top: 139px !important;
    right: 0 !important;
  }

  .card-zoho {
    top: 517px !important;
    left: 0 !important;
  }

  .card-wave {
    bottom: 0 !important;
    left: 513px !important;
    transform: translateX(-50%) !important;
  }

  .card-xero {
    top: 517px !important;
    right: 0 !important;
  }

  .service-card-title {
    font-size: 18px;
  }

  .service-card-desc {
    font-size: 13.5px;
  }

  /* Metrics Banner */
  .metrics-section {
    padding: 20px 0 40px;
  }

  .metrics-card-banner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px;
  }

  .metric-number {
    font-size: 44px;
  }

  .metric-label {
    font-size: 16px;
  }

  /* How It Works on Mobile */
  .how-it-works-section {
    padding: 48px 0;
  }

  .how-it-works-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-progress-track {
    display: none;
  }

  .how-image-wrapper {
    width: 100%;
    max-width: 463px;
    height: 360px;
    margin: 0 auto;
  }

  .steps-list {
    gap: 24px;
  }

  .step-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .step-title {
    font-size: 16px;
  }

  .step-desc {
    font-size: 13.5px;
  }

  .how-cta-center {
    margin-top: 32px;
  }

  .btn-how-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  /* Bento Grid */
  .why-choose-us-section {
    padding: 60px 0 40px;
  }

  .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .bento-card,
  .bento-card:nth-child(1),
  .bento-card:nth-child(2),
  .bento-card:nth-child(3),
  .bento-card:nth-child(4),
  .bento-card:nth-child(5),
  .bento-card:nth-child(6) {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: auto !important;
    height: auto !important;
    padding: 24px 20px !important;
    border-radius: 20px !important;
  }

  .bento-title {
    font-size: 20px !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }

  .bento-desc {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: #4B5563 !important;
  }

  /* Spacing Between Image and Text Across All Bento Cards on Mobile */
  .bento-card:nth-child(1) .bento-widget-img-wrap {
    margin-bottom: 24px !important;
  }

  .bento-card:nth-child(2) .bento-text {
    margin-bottom: 20px !important;
  }

  .bento-card:nth-child(3) .bento-widget-img-wrap {
    margin-bottom: 20px !important;
  }

  .bento-card:nth-child(4) .bento-text {
    margin-bottom: 20px !important;
  }

  /* Card 5: Industry Expertise - Horizontal Row on Mobile (Text Left, Table Right) */
  .bento-card:nth-child(5),
  .bento-card.bento-card-flex-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 24px 20px !important;
  }

  .bento-card:nth-child(5) .bento-text,
  .bento-card.bento-card-flex-row .bento-text {
    flex: 1.1 !important;
    margin-bottom: 0 !important;
  }

  .bento-card:nth-child(5) .bento-widget-img-wrap,
  .bento-card.bento-card-flex-row .bento-widget-img-wrap {
    flex: 0.9 !important;
    width: auto !important;
    margin-bottom: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
  }

  .bento-card:nth-child(5) .bento-widget-img,
  .bento-card.bento-card-flex-row .bento-widget-img {
    width: 100% !important;
    max-width: 170px !important;
    height: auto !important;
  }

  /* Card 6: Scalable Services - Vertical Stack on Mobile */
  .bento-card:nth-child(6) {
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 20px !important;
  }

  .bento-card:nth-child(6) .bento-text {
    margin-bottom: 16px !important;
  }

  .bento-card:nth-child(6) .bento-widget-img-wrap {
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .bento-card:nth-child(6) .bento-widget-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Industries */
  .industries-section {
    padding: 60px 0;
  }

  .industries-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flipbox-item,
  .industry-card.card-featured {
    height: 400px;
  }

  /* Achievements */
  .achievements-section {
    padding: 40px 0;
  }

  .achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    justify-items: center;
  }

  .cert-item {
    width: 80px;
    height: 80px;
  }

  /* Testimonials */
  .testimonials-section {
    padding: 60px 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Team */
  .team-section {
    padding: 60px 0;
  }

  .team-ceo-card {
    flex-direction: column;
    padding: 20px;
  }

  .ceo-photo-wrap {
    width: 100%;
    height: 240px;
  }

  .team-members-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .member-photo-wrap {
    height: 240px;
  }

  /* Blog */
  .blog-section {
    padding: 60px 0;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ Section Mobile (1:1 Figma Match, Full Width, Visible Arrows) */
  .faq-section {
    padding: 44px 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  .faq-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 20px !important;
    margin: 0 auto 36px !important;
  }

  .faq-specialist-col {
    width: 100% !important;
    max-width: 100% !important;
  }

  .specialist-image-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 240px !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  }

  .specialist-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  .faq-accordion-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .accordion {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .accordion-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    margin-bottom: 0 !important;
    border: 1px solid #E5E7EB !important;
    background: #FFFFFF !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  }

  .accordion-header {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    background: #FFFFFF !important;
    border: none !important;
    cursor: pointer !important;
  }

  .accordion-title {
    font-family: var(--font-inter) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .accordion-icon-circle {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    flex: 0 0 24px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    background: #F3F4F6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
  }

  .accordion-icon-circle svg {
    width: 11px !important;
    height: 11px !important;
  }

  .accordion-body {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 16px 16px !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    color: #4B5563 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .faq-contact-card {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
    padding: 24px 18px !important;
    border-radius: 18px !important;
  }

  .faq-contact-title {
    font-size: 20px !important;
  }

  /* Audit Form Mobile Perfection (1:1 Figma Match) */
  .audit-section {
    margin-bottom: 40px !important;
  }

  .audit-card {
    padding: 28px 16px !important;
    border-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    background: #FFFFFF !important;
  }

  .audit-title {
    font-size: clamp(22px, 6vw, 26px) !important;
    line-height: 1.25 !important;
    margin-bottom: 18px !important;
    font-weight: 800 !important;
  }

  .audit-checklist {
    gap: 12px !important;
    margin-bottom: 24px !important;
  }

  .audit-checklist-item {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .audit-ceo-card {
    max-width: 180px !important;
    margin-bottom: 0 !important;
  }

  .audit-ceo-photo {
    width: 160px !important;
    height: 160px !important;
    border-radius: 16px !important;
  }

  .audit-ceo-name {
    font-size: 16px !important;
    margin-top: 8px !important;
  }

  .audit-ceo-role {
    font-size: 12px !important;
  }

  .audit-form-col {
    background-color: #F8F9FA !important;
    border: 1px solid #EDEDED !important;
    border-radius: 20px !important;
    padding: 24px 18px !important;
  }

  .audit-form {
    gap: 16px !important;
  }

  .form-group {
    gap: 6px !important;
  }

  .form-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    margin-bottom: 2px !important;
  }

  .form-control {
    height: 44px !important;
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    color: #111111 !important;
    box-sizing: border-box !important;
  }

  .phone-input-wrap {
    display: flex !important;
    align-items: center !important;
    height: 44px !important;
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 0 10px !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .country-picker-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    padding: 0 4px !important;
    cursor: pointer !important;
  }

  .phone-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    flex: 1 !important;
    height: 100% !important;
    padding: 0 6px !important;
    box-shadow: none !important;
    width: auto !important;
    min-width: 0 !important;
    font-size: 13px !important;
    color: #111111 !important;
  }

  .project-types-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .tag-label {
    display: inline-flex !important;
    cursor: pointer !important;
    width: auto !important;
  }

  .tag-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 12px !important;
    background: #FFFFFF !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
  }

  .tag-label input:checked+.tag-btn {
    background-color: #FFFFFF !important;
    border-color: #7563F6 !important;
    color: #7563F6 !important;
    box-shadow: 0 0 0 1px #7563F6 !important;
  }

  .audit-form textarea.form-control {
    height: 85px !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
    resize: none !important;
  }

  .btn-form-submit,
  .audit-form button.btn-form-submit,
  button.btn-form-submit {
    width: auto !important;
    min-width: 165px !important;
    height: 48px !important;
    padding: 0 24px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .btn-form-submit span,
  .audit-form button.btn-form-submit span {
    white-space: nowrap !important;
    display: inline-block !important;
  }

  /* Footer Awards Mobile Layout (Centered + Seamless Infinite Horizontal Marquee Ticker) */
  .footer-awards-row {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .footer-awards-label {
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .footer-awards-label .chip-dark {
    align-self: center !important;
    margin: 0 auto !important;
    font-size: 13px !important;
    padding: 6px 18px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .footer-awards-heading {
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  .footer-awards-heading br {
    display: none !important;
  }

  .footer-awards-carousel-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 6px 0 !important;
    margin-top: 4px !important;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%) !important;
  }

  .footer-awards-badges {
    display: flex !important;
    width: max-content !important;
    overflow: visible !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    user-select: none !important;
  }

  .footer-awards-track {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-shrink: 0 !important;
    padding-right: 20px !important;
    animation: marqueeFooterAwards 18s linear infinite !important;
    will-change: transform !important;
  }

  .footer-awards-track-clone {
    display: flex !important;
  }

  .footer-awards-badges:hover .footer-awards-track,
  .footer-awards-badges:active .footer-awards-track {
    animation-play-state: paused !important;
  }

  .footer-badge-item img,
  .footer-awards-badges img {
    height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }

  .footer-divider {
    margin: 30px 0 36px !important;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-col-contact {
    grid-column: auto;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
}


/* ==========================================================================
   MOBILE HERO PERFECTION (MAX-WIDTH: 768px & 480px)
   ========================================================================== */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 20px !important;
    padding-bottom: 30px !important;
  }

  .hero-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    text-align: center !important;
  }

  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .trust-badge {
    padding: 5px 14px 5px 5px !important;
    margin: 0 auto 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .trust-badge-icon {
    width: 26px !important;
    height: 26px !important;
  }

  .trust-badge-icon img {
    width: 16px !important;
    height: 16px !important;
  }

  .trust-badge-text {
    font-size: 12px !important;
    letter-spacing: -0.01em !important;
  }

  .hero-title {
    font-size: clamp(28px, 7.5vw, 36px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
    text-align: center !important;
  }

  .hero-title .hero-line-1,
  .hero-title .hero-line-2 {
    white-space: nowrap !important;
    display: inline-block !important;
    text-align: center !important;
  }

  .highlight-box {
    padding: 0 8px !important;
    border-radius: 8px !important;
    display: inline-block !important;
    line-height: 1.22 !important;
    vertical-align: baseline !important;
    white-space: nowrap !important;
  }

  .hero-subtitle {
    font-size: 14.5px !important;
    line-height: 1.5 !important;
    margin: 0 auto 20px !important;
    text-align: center !important;
    max-width: 420px !important;
    padding: 0 8px !important;
  }

  /* All Section Headings on Mobile */
  .section-heading,
  .industries-section .section-heading,
  .how-it-works-section .section-heading,
  .why-choose-us-section .section-heading,
  .testimonials-section .section-heading,
  .team-section .section-heading,
  .faq-section .section-heading {
    font-size: clamp(24px, 6.5vw, 30px) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 12px !important;
    text-align: center !important;
  }

  .section-subheading,
  .industries-section .section-subheading {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    max-width: 92% !important;
    margin: 0 auto 24px !important;
    text-align: center !important;
  }

  .hero-cta-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto 20px !important;
  }

  .btn-hero {
    width: auto !important;
    max-width: 320px !important;
    padding: 6px 6px 6px 20px !important;
    font-size: 15px !important;
    gap: 14px !important;
  }

  .btn-icon-box {
    width: 38px !important;
    height: 38px !important;
  }

  .hero-social-proof {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    margin: 0 auto 10px !important;
    text-align: left !important;
  }

  .hero-visual {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 8px !important;
  }

  .hero-visual-inner {
    max-width: 360px !important;
    margin: 0 auto !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
  }

  .hero-main-img {
    width: 100% !important;
    max-width: 310px !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .badge-aicpa {
    width: 84px !important;
    height: 84px !important;
    top: 25px !important;
    right: 5px !important;
    padding: 6px !important;
  }

  .badge-aicpa img {
    width: 72px !important;
    height: 72px !important;
  }

  .badge-video {
    width: 125px !important;
    padding: 6px !important;
    bottom: 35px !important;
    left: 0px !important;
    border-radius: 12px !important;
  }

  .video-badge-thumb {
    height: 60px !important;
  }

  .video-badge-title {
    font-size: 11px !important;
    margin-top: 4px !important;
  }
}




/* Full width container protection against horizontal overflow */
body,
html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}


/* ==========================================================================
   SERVICES HUB & SPOKE (PROBLEMS WE SOLVE): 100% PERFECT RESPONSIVE SCALING
   ========================================================================== */
@media (max-width: 1060px) {
  .problems-section {
    overflow: hidden !important;
    padding: 50px 0 30px !important;
  }

  .problems-section .container {
    overflow: visible !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
    position: relative !important;
  }

  .services-hub-layout {
    width: 1026px !important;
    height: 950px !important;
    position: relative !important;
    left: 50% !important;
    --scale-factor: calc((100vw - 32px) / 1026px);
    transform: translateX(-50%) scale(var(--scale-factor)) !important;
    transform-origin: top center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 20px !important;
    margin-bottom: calc(950px * (var(--scale-factor) - 1)) !important;
    pointer-events: auto;
  }

  .hub-connector-svg {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 1026px !important;
    height: 950px !important;
  }

  .hub-center-badge {
    display: flex !important;
    position: absolute !important;
    top: 476px !important;
    left: 513px !important;
    transform: translate(-50%, -50%) !important;
  }

  .services-cards-container {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .service-card {
    position: absolute !important;
    width: 295px !important;
    height: 294px !important;
    padding: 28px !important;
    border-radius: 32px !important;
  }

  .card-quickbooks {
    top: 0 !important;
    left: 513px !important;
    transform: translateX(-50%) !important;
  }

  .card-monthly {
    top: 139px !important;
    left: 0 !important;
    right: auto !important;
  }

  .card-catchup {
    top: 139px !important;
    right: 0 !important;
    left: auto !important;
  }

  .card-zoho {
    top: 517px !important;
    left: 0 !important;
    right: auto !important;
  }

  .card-wave {
    bottom: 0 !important;
    left: 513px !important;
    top: auto !important;
    transform: translateX(-50%) !important;
  }

  .card-xero {
    top: 517px !important;
    right: 0 !important;
    left: auto !important;
  }
}


/* ==========================================================================
   HERO SECTION: 100% CLEAN VERTICAL COLUMN LAYOUT ON TABLET & MOBILE
   ========================================================================== */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 30px !important;
    padding-bottom: 40px !important;
    overflow: hidden !important;
  }

  .hero-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 32px !important;
    width: 100% !important;
  }

  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
  }

  .trust-badge {
    margin: 0 auto 16px !important;
    display: inline-flex !important;
  }

  .hero-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-subtitle {
    text-align: center !important;
    margin: 0 auto 24px !important;
    max-width: 480px !important;
  }

  .hero-cta-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 24px !important;
  }

  .hero-social-proof {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .hero-visual {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 12px auto 0 !important;
    position: relative !important;
  }

  .hero-visual-inner {
    position: relative !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
  }

  .hero-main-img {
    width: 100% !important;
    max-width: 290px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .badge-aicpa {
    position: absolute !important;
    width: 78px !important;
    height: 78px !important;
    top: 20px !important;
    right: 5px !important;
    left: auto !important;
    bottom: auto !important;
    padding: 5px !important;
  }

  .badge-aicpa img {
    width: 68px !important;
    height: 68px !important;
  }

  .badge-video {
    position: absolute !important;
    width: 125px !important;
    bottom: 40px !important;
    left: 0px !important;
    right: auto !important;
    top: auto !important;
    padding: 8px !important;
  }
}


/* ==========================================================================
   KEY METRICS BANNER: KEEP IN 1 SINGLE ROW ACROSS ALL DEVICES (NO BREAKING)
   ========================================================================== */
.metrics-card-banner {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: center !important;
}

@media (max-width: 1024px) {
  .metrics-card-banner {
    padding: 36px 20px !important;
    gap: 12px !important;
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .metric-number {
    font-size: 32px !important;
  }

  .metric-label {
    font-size: 13px !important;
  }
}

@media (max-width: 767px) {
  .metrics-section {
    padding: 30px 0 !important;
  }

  .metrics-card-banner {
    padding: 24px 12px !important;
    gap: 8px !important;
    border-radius: 20px !important;
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .metric-number {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
  }

  .metric-label {
    font-size: 10px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    opacity: 0.9 !important;
  }
}

@media (max-width: 420px) {
  .metrics-card-banner {
    padding: 20px 8px !important;
    gap: 4px !important;
    border-radius: 16px !important;
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .metric-number {
    font-size: 17px !important;
    font-weight: 800 !important;
  }

  .metric-label {
    font-size: 8.5px !important;
    line-height: 1.2 !important;
  }
}


/* ==========================================================================
   REFINED METRICS BANNER (MOBILE: SLIM, COMPACT & SMALL LABELS)
   ========================================================================== */
@media (max-width: 767px) {
  .metrics-section {
    padding: 24px 0 !important;
  }

  .metrics-card-banner {
    padding: 18px 10px !important;
    gap: 4px !important;
    border-radius: 16px !important;
    grid-template-columns: repeat(4, 1fr) !important;
    box-shadow: inset 0 4px 14px rgba(255, 255, 255, 0.15) !important;
  }

  .metric-item {
    padding: 0 2px !important;
    gap: 3px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .metric-number {
    font-size: clamp(14px, 4.2vw, 19px) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
  }

  .metric-label {
    font-size: clamp(7px, 2.1vw, 9px) !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    opacity: 0.85 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
  }
}

@media (max-width: 400px) {
  .metrics-card-banner {
    padding: 15px 6px !important;
    gap: 2px !important;
    border-radius: 14px !important;
  }

  .metric-number {
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  .metric-label {
    font-size: 7.2px !important;
    line-height: 1.15 !important;
  }
}


/* ==========================================================================
   FEATURED IN: MARQUEE CAROUSEL (EXACTLY LIKE OUR PARTNER)
   ========================================================================== */
.featured-in-section {
  padding: 40px 0 46px !important;
  background-color: #F0FFF8 !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

.featured-carousel-wrapper {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  padding: 6px 0 !important;
}

.featured-marquee {
  display: flex !important;
  width: 100% !important;
  overflow: hidden !important;
  user-select: none !important;
}

.featured-track {
  display: flex !important;
  align-items: center !important;
  gap: 56px !important;
  animation: marqueeFeatured 26s linear infinite !important;
  will-change: transform !important;
}

.featured-marquee:hover .featured-track {
  animation-play-state: paused !important;
}

.featured-logo-item {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  opacity: 0.9 !important;
}

.featured-logo-item img {
  max-height: 36px !important;
  max-width: 150px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 767px) {
  .featured-in-section {
    padding: 30px 0 34px !important;
  }

  .featured-title {
    font-size: 14px !important;
    margin-bottom: 16px !important;
  }

  .featured-carousel-wrapper .carousel-fade-left,
  .featured-carousel-wrapper .carousel-fade-right {
    width: 44px !important;
  }

  .featured-track {
    gap: 36px !important;
    animation-duration: 20s !important;
  }

  .featured-logo-item {
    height: 32px !important;
  }

  .featured-logo-item img {
    max-height: 28px !important;
    max-width: 120px !important;
  }
}


/* ==========================================================================
   OUR ACHIEVEMENTS: CAROUSEL & RESPONSIVE TICKER
   ========================================================================== */
.achievements-section {
  padding: 44px 0 !important;
  overflow: hidden !important;
}

.achievements-track {
  display: flex !important;
  align-items: center !important;
  gap: 56px !important;
  width: max-content !important;
  flex-wrap: nowrap !important;
  animation: marqueeAchievements 28s linear infinite !important;
  will-change: transform;
}

.achievements-track .cert-item {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 80px !important;
  max-width: 110px !important;
  height: 80px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.achievements-track .cert-item img {
  max-width: 100% !important;
  max-height: 80px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 991px) {
  .achievements-section {
    padding: 32px 0 !important;
  }

  .achievements-track {
    gap: 40px !important;
  }

  .achievements-track .cert-item {
    min-width: 65px !important;
    max-width: 90px !important;
    height: 68px !important;
  }

  .achievements-track .cert-item img {
    max-height: 65px !important;
  }

  .achievements-carousel-wrapper .carousel-fade-left,
  .achievements-carousel-wrapper .carousel-fade-right {
    width: 60px !important;
  }
}

@media (max-width: 767px) {
  .achievements-section {
    padding: 24px 0 !important;
  }

  .achievements-title {
    font-size: 13px !important;
    margin-bottom: 16px !important;
  }

  .achievements-track {
    gap: 28px !important;
    animation-duration: 22s !important;
  }

  .achievements-track .cert-item {
    min-width: 50px !important;
    max-width: 75px !important;
    height: 55px !important;
  }

  .achievements-track .cert-item img {
    max-height: 50px !important;
  }

  .achievements-carousel-wrapper .carousel-fade-left,
  .achievements-carousel-wrapper .carousel-fade-right {
    width: 40px !important;
  }
}

@media (max-width: 400px) {
  .achievements-track {
    gap: 20px !important;
    animation-duration: 18s !important;
  }

  .achievements-track .cert-item {
    min-width: 42px !important;
    max-width: 65px !important;
    height: 48px !important;
  }

  .achievements-track .cert-item img {
    max-height: 44px !important;
  }
}


/* ==========================================================================
   TESTIMONIALS: 2-COLUMN GRID ON MOBILE & TABLET (1:1 FIGMA MATCH)
   ========================================================================== */
@media (max-width: 991px) {
  .testimonials-section {
    padding: 60px 0 !important;
  }

  .testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .testimonial-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
}

@media (max-width: 767px) {
  .testimonials-section {
    padding: 44px 0 !important;
  }

  .testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .testimonial-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .testimonials-grid .testimonial-col:nth-child(5) {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Text Card on Mobile */
  .testimonial-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    min-height: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .testimonial-avatar-wrap {
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 10px !important;
  }

  .testimonial-quote {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
    color: #4B5563 !important;
  }

  .testimonial-author {
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  .star-icon {
    font-size: 11px !important;
  }

  .testimonial-meta {
    padding-top: 8px !important;
  }

  /* Video Card on Mobile */
  .testimonial-video-card {
    padding: 8px !important;
    min-height: auto !important;
    height: auto !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  .testimonial-video-preview {
    height: 180px !important;
    border-radius: 12px !important;
    margin-bottom: 8px !important;
  }

  .video-play-btn.large {
    width: 38px !important;
    height: 38px !important;
  }

  .video-play-btn.large svg {
    width: 14px !important;
    height: 14px !important;
  }
}

@media (max-width: 380px) {
  .testimonials-grid {
    gap: 8px !important;
  }

  .testimonial-col {
    gap: 8px !important;
  }

  .testimonial-card {
    padding: 12px 10px !important;
  }

  .testimonial-video-preview {
    height: 140px !important;
  }

  .testimonial-quote {
    font-size: 10.5px !important;
  }
}


/* ==========================================================================
   TEAM SECTION: MOBILE 1:1 FIGMA DESIGN MATCH
   ========================================================================== */
@media (max-width: 991px) {
  .team-grid-unified {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  /* CEO Card: Full Width, Internal Horizontal 2-Column */
  .team-card-ceo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 220px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  }

  .team-ceo-photo {
    width: 44% !important;
    min-width: 120px !important;
    max-width: 180px !important;
    height: auto !important;
    flex-shrink: 0 !important;
  }

  .team-ceo-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .team-ceo-content {
    padding: 16px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 !important;
    box-sizing: border-box !important;
  }

  .team-ceo-header {
    margin-bottom: 8px !important;
  }

  .team-ceo-name {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
  }

  .team-ceo-role {
    font-size: 11.5px !important;
    color: #6B7280 !important;
  }

  .team-ceo-quote {
    font-size: 11px !important;
    line-height: 1.45 !important;
    color: #4B5563 !important;
    margin-top: auto !important;
  }

  /* 3 Team Members: 3 Equal Columns Side-by-Side in 1 Row */
  .team-card-member {
    flex: 1 1 0 !important;
    width: calc((100% - 20px) / 3) !important;
    min-width: 0 !important;
    max-width: 33.333% !important;
    height: auto !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .team-member-photo {
    width: 100% !important;
    height: 130px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #F3F4F6 !important;
  }

  .team-member-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .team-member-info {
    padding: 8px 0 0 !important;
  }

  .team-member-name {
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .team-member-role {
    font-size: 10px !important;
    color: #6B7280 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .team-action {
    margin-top: 24px !important;
  }
}

@media (max-width: 420px) {
  .team-grid-unified {
    gap: 8px !important;
  }

  .team-ceo-photo {
    width: 42% !important;
    min-width: 105px !important;
  }

  .team-ceo-content {
    padding: 12px 10px !important;
  }

  .team-ceo-name {
    font-size: 15px !important;
  }

  .team-ceo-quote {
    font-size: 10px !important;
    line-height: 1.4 !important;
  }

  .team-member-photo {
    height: 110px !important;
  }

  .team-member-name {
    font-size: 11px !important;
  }

  .team-member-role {
    font-size: 9px !important;
  }
}

/* ==========================================================================
   FIGMA EXACT 1:1 MOBILE BOTTOM FLOATING NAVIGATION DOCK & POPUP MENUS
   ========================================================================== */

/* Hide on Desktop & Tablets (> 992px) */
@media (min-width: 993px) {

  .mobile-bottom-dock,
  .mobile-dock-popups-wrapper,
  .mobile-dock-overlay {
    display: none !important;
  }
}

/* Mobile & Small Screens (<= 992px) */
@media (max-width: 992px) {
  body {
    padding-bottom: 0 !important;
  }

  .site-footer {
    padding-bottom: 110px !important;
  }

  /* 1. Mobile Dock Overlay Backdrop */
  .mobile-dock-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-dock-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  /* 2. Floating Bottom Navigation Dock Container (Exact Figma Gradient) */
  .mobile-bottom-dock {
    position: fixed;
    bottom: 16px;
    left: 14px;
    right: 14px;
    max-width: 440px;
    margin: 0 auto;
    z-index: 999;
    background: linear-gradient(180deg, #4F64F9 0%, #6046F4 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    box-shadow: 0 16px 40px rgba(83, 70, 244, 0.38), 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
  }

  /* Individual Tab Button */
  .dock-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    border-radius: 14px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
  }

  .dock-btn:active {
    transform: scale(0.96);
  }

  .dock-icon {
    width: 22px;
    height: 22px;
    color: #ffffff;
    fill: currentColor;
    opacity: 0.95;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .dock-label {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.1px;
    opacity: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
    transition: all 0.2s ease;
  }

  /* Active Pill State (ONLY for the currently opened Popup Menu - Figma Exact 1:1) */
  .dock-btn.is-active {
    background: #ffffff !important;
    color: #4F64F9 !important;
    padding: 8px 8px !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
  }

  .dock-btn.is-active .dock-icon {
    color: #4F64F9 !important;
    fill: #4F64F9 !important;
    opacity: 1 !important;
    transform: translateY(-1px);
  }

  .dock-btn.is-active .dock-label {
    color: #4F64F9 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
  }

  /* 3. Floating Popup Menus (Above the Dock) */
  .mobile-dock-popups-wrapper {
    position: relative;
    z-index: 995;
  }

  .dock-popup {
    position: fixed;
    bottom: 86px;
    left: 14px;
    right: 14px;
    max-width: 440px;
    margin: 0 auto;
    z-index: 998;
    background: #ffffff;
    border-radius: 22px;
    padding: 22px 20px;
    box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: none;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
  }

  .dock-popup.is-open {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: dockPopupSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes dockPopupSlideUp {
    0% {
      opacity: 0;
      transform: translateY(18px) scale(0.98);
    }

    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Popup Internal Scroll Area */
  .dock-popup-scroll {
    max-height: 52vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
  }

  /* Custom Slim Scrollbar for Popups (Figma Exact) */
  .dock-popup-scroll::-webkit-scrollbar {
    width: 4px;
  }

  .dock-popup-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 99px;
  }

  .dock-popup-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
  }

  .dock-popup-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }

  /* Popup Group & Heading */
  .dock-popup-group {
    margin-bottom: 20px;
  }

  .dock-popup-group:last-child {
    margin-bottom: 4px;
  }

  .dock-popup-heading {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
  }

  /* Popup Links List */
  .dock-popup-links {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .dock-popup-links li {
    margin-bottom: 2px;
  }

  .dock-popup-links li a {
    display: block;
    font-size: 13.5px;
    color: #475569;
    padding: 7px 0;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    font-weight: 500;
    transition: all 0.15s ease;
  }

  .dock-popup-links li:last-child a {
    border-bottom: none;
  }

  .dock-popup-links li a:hover,
  .dock-popup-links li a:active {
    color: #4f46e5;
    padding-left: 5px;
    font-weight: 700;
  }
}

/* ==========================================================================
   GLOBAL MOBILE RECURRING FIXES (PDF Items 06, 10, 11, 12, 13, 14, 15, 16, 18, 21, 23, 24, 25, 27, 28, 29)
   ========================================================================== */
@media (max-width: 767px) {
  /* Recurring Card Alignment: Center cards full-width */
  .service-audience {
    height: auto !important;
    min-height: auto !important;
    padding: 40px 16px 24px !important;
  }
  .service-audience-heading {
    height: auto !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
  }
  .service-audience-scroll {
    margin-top: 20px !important;
    padding: 0 !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .service-audience-cards {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0 auto !important;
  }
  .service-audience-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 110px !important;
    flex: 1 1 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
    padding: 16px !important;
  }
  .service-audience-card img {
    width: 28px !important;
    height: 28px !important;
  }
  .service-audience-card h3 {
    font-size: 17px !important;
    line-height: 22px !important;
    margin: 0 0 8px !important;
  }
  .service-audience-card p {
    font-size: 12px !important;
    line-height: 16px !important;
  }

  /* Global Team Cards (Items 10 & 12) */
  .global-team-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 10px 16px 24px !important;
    gap: 16px !important;
    overflow: visible !important;
  }
  .global-team-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* Comparison Table Fit Width (Item 18) */
  .service-compare {
    height: auto !important;
    min-height: auto !important;
    padding: 40px 16px !important;
  }
  .service-compare-heading {
    height: auto !important;
  }
  .service-compare-viewport {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 24px auto 0 !important;
    overflow-x: auto !important;
  }
  .service-compare-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 320px !important;
    height: auto !important;
    grid-template-columns: minmax(130px, 1.4fr) minmax(85px, 1fr) minmax(85px, 1fr) !important;
    gap: 6px !important;
    margin: 0 auto !important;
  }

  /* The Difference Spacing Gap (Item 14) */
  .ecom-difference {
    height: auto !important;
    min-height: auto !important;
    padding: 44px 16px 36px !important;
  }

  /* 4-Step Circular Graphic Centering (Items 23 & 28) */
  .qb-center-4step {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 280px !important;
    height: 250px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    order: 1 !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .qb-main-svg-4step {
    position: absolute !important;
    left: calc(50% - 270px) !important;
    top: calc(50% - 242px) !important;
    width: 540px !important;
    height: 400px !important;
    transform: scale(0.78) !important;
    transform-origin: 270px 242px !important;
    display: block !important;
  }
  .qb-emblem-4step {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(0.78) !important;
  }
}