﻿/* ==========================================================================
   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 32px;
  }

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

  /* 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;
    margin: 0 auto !important;
    --scale-factor: calc((100vw - 48px) / 1026);
    transform: scale(var(--scale-factor)) !important;
    transform-origin: top center !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;
  }

  .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;
    grid-row: auto;
  }

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

  .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 {
    padding: 10px 16px;
    font-size: 13px;
  }

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

  /* Header & Mobile Drawer */
  .site-header {
    height: 64px;
  }

  .main-nav, .btn-header {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  /* 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;
    margin: 0 auto !important;
    --scale-factor: calc((100vw - 28px) / 1026);
    transform: scale(var(--scale-factor)) !important;
    transform-origin: top center !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;
  }

  /* Featured In on Mobile */
  .featured-in-section {
    padding: 44px 0;
  }

  .featured-logos-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 16px;
  }

  .featured-logo-item {
    width: calc(50% - 12px);
    max-width: 130px;
  }

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

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

  .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;
    grid-row: auto;
  }

  .bento-card {
    padding: 24px;
  }

  .bento-title {
    font-size: 20px;
  }

  /* 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 */
  .faq-section {
    padding: 60px 0;
  }

  .faq-contact-card {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 24px 20px;
  }

  .faq-contact-title {
    font-size: 22px;
  }

  /* Audit Form */
  .audit-section {
    margin-bottom: 40px;
  }

  .audit-card {
    padding: 24px 16px;
  }

  .audit-title {
    font-size: 32px;
  }

  .audit-form-col {
    padding: 20px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .project-types-tags {
    gap: 6px;
  }

  .tag-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Footer */
  .footer-awards-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-awards-badges {
    justify-content: flex-start;
  }

  .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(20px, 5.5vw, 30px) !important;
    font-weight: 800 !important;
    line-height: 1.22 !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;
  }

  .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: 12px !important;
    padding-right: 12px !important;
    max-width: 100% !important;
  }

  .services-hub-layout {
    width: 1026px !important;
    height: 950px !important;
    position: relative !important;
    --scale-factor: calc((100vw - 24px) / 1026);
    transform: scale(var(--scale-factor)) !important;
    transform-origin: top center !important;
    margin-left: calc((100% - 1026px) / 2) !important;
    margin-right: calc((100% - 1026px) / 2) !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 LOGOS: KEEP IN 1 SINGLE ROW ON MOBILE (NO VERTICAL STACKING)
   ========================================================================== */
.featured-in-section {
  padding: 48px 0 !important;
  background-color: #F0FFF8 !important;
  overflow: hidden !important;
}

.featured-logos-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.featured-logo-item {
  flex: 1 1 0 !important;
  max-width: 140px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.featured-logo-item img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 991px) {
  .featured-in-section {
    padding: 36px 0 !important;
  }
  .featured-logos-row {
    gap: 12px !important;
    justify-content: space-between !important;
  }
  .featured-logo-item {
    height: 32px !important;
  }
}

@media (max-width: 767px) {
  .featured-in-section {
    padding: 24px 0 !important;
  }
  .featured-title {
    font-size: 13px !important;
    margin-bottom: 16px !important;
  }
  .featured-logos-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .featured-logo-item {
    flex: 1 1 0 !important;
    min-width: 38px !important;
    max-width: 58px !important;
    height: 24px !important;
  }
  .featured-logo-item img {
    max-height: 18px !important;
    width: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 400px) {
  .featured-logos-row {
    gap: 5px !important;
  }
  .featured-logo-item {
    min-width: 32px !important;
    max-width: 50px !important;
    height: 20px !important;
  }
  .featured-logo-item img {
    max-height: 15px !important;
  }
}


/* ==========================================================================
   OUR ACHIEVEMENTS: 1 SINGLE HORIZONTAL ROW ACROSS ALL DEVICES (NO WRAPPING)
   ========================================================================== */
.achievements-section {
  padding: 44px 0 !important;
  background-color: #F0FFF8 !important;
  overflow: hidden !important;
}

.achievements-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.cert-item {
  flex: 1 1 0 !important;
  max-width: 90px !important;
  height: 75px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

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

@media (max-width: 991px) {
  .achievements-section {
    padding: 32px 0 !important;
  }
  .achievements-grid {
    gap: 10px !important;
  }
  .cert-item {
    height: 55px !important;
  }
}

@media (max-width: 767px) {
  .achievements-section {
    padding: 24px 0 !important;
  }
  .achievements-title {
    font-size: 13px !important;
    margin-bottom: 16px !important;
  }
  .achievements-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .cert-item {
    flex: 1 1 0 !important;
    min-width: 28px !important;
    max-width: 42px !important;
    height: 38px !important;
  }
  .cert-item img {
    max-height: 34px !important;
    width: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 400px) {
  .achievements-grid {
    gap: 4px !important;
  }
  .cert-item {
    min-width: 24px !important;
    max-width: 36px !important;
    height: 32px !important;
  }
  .cert-item img {
    max-height: 28px !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;
  }
  
  /* Text Card on Mobile */
  .testimonial-card {
    padding: 14px 12px !important;
    border-radius: 16px !important;
    min-height: unset !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: unset !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  .testimonial-video-preview {
    height: 160px !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;
    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;
  }
}

@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;
  }
}
