@media (max-width: 768px) {

  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  .scale-wrapper {
    display: block !important;
  }

  .design-root {
    width: 100% !important;
    transform: none !important;
  }

  /* Fix ALL sections that were using fixed width */
  .container,
  .hero .inner,
  .record .inner,
  .measured .inner,
  .footer .inner {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

    .nav {
    width: 100% !important;
    transform: none !important;
    position: relative !important;
    height: auto !important;
    padding: 12px 16px !important;
  }

  /* ===== NAV RIGHT GROUP ===== */

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
 /* ===== NAV MOBILE ===== */

 .nav-menu {
    display: none;
    flex-direction: column;
  }

  .nav-menu.active {
    display: flex;
  }
  
.menu-toggle {
  font-size: 22px;
  color: white;
  cursor: pointer;
  margin-right: 10px;
}

.menu-toggle {
  display: block;
}

/* hide desktop menu */
.nav nav {
  display: none !important;
}

/* keep layout clean */
.nav .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

  .nav .brand img {
    height: 32px !important;
  }

  
  /* ===== NAV BUTTON MOBILE FIX ===== */

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

  /* ===== REMOVE WHITE GAP UNDER NAV ===== */

.nav {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.hero {
  margin-top: -1px !important;
}

.hero {
  display: block !important;
  padding-top: 0 !important;
}

/* 🔥 this is the real fix */
body {
  background: #1d1545; /* or match your hero bg */
}

/* ===== MOBILE MENU ===== */


.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--blue);
  padding: 16px;
  gap: 14px;
   position:fixed;
  top: 43px;
  left: 0;
  width: 100%;
   z-index: 2000;
   /* 🔥 ADD THIS */
  max-height: calc(100vh - 64px);
  overflow-y: auto;
transform: none !important; 
transform-origin: top left;   /* ✅ ADD THIS */
}

.mobile-menu a {
  color: rgb(255, 255, 255);
  font-size: 16px;
}

/* 🔥 CONTACT BUTTON STYLE INSIDE MENU */
.mobile-contact {
  display: block;
  width: 100%;

  background: #d2bd82;
  color: #ffffff;

  padding: 14px;
  border-radius: 30px;

  text-align: center;
  font-weight: 600;
  font-size: 16px;
}

.mobile-menu {
  padding: 24px 16px 20px;
}

.mobile-menu.is-active {
  display: flex !important;
}

 /* ===== HERO PERFECT CENTER ===== */

.hero {
  display: flex !important;
  align-items: center !important;     /* vertical center */
  min-height: 100vh;                  /* full screen height */
}

.hero .inner {
  padding: 0 16px !important;         /* remove top push */
}

  .hero .copy {
    width: 100% !important;
  }

  .hero .title {
    font-size: 24px !important;
  }

  .hero .desc {
    width: 100% !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .hero .cta {
    font-size: 14px !important;
    padding: 12px 16px !important;
  }

    .record {
    padding: 50px 0 !important;
  }

  .record h2 {
    font-size: 22px !important;
  }

  .record p.top,
  .record p.bottom {
    width: 100% !important;
    font-size: 14px !important;
  }

  .stats {
    width: 100% !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .stat {
    border: none !important;
    text-align: center;
  }

    .slider {
    width: 100% !important;
  }

  .t-card {
    flex: 0 0 85% !important;
    height: auto !important;
  }
    .measured h2 {
    font-size: 22px !important;
  }

  .measured p {
    width: 100% !important;
    font-size: 14px !important;
  }

    .awards .row {
    width: 50% !important;
    gap: 8px !important;
  }

  .awards img {
    width: 50% !important;
  }

    .news-grid {
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  .news-card {
    min-height: auto !important;
  }

  .news-card h3 {
    font-size: 18px !important;
  }

    .firm-chooser .inner {
    padding: 0 16px !important;
  }

.firm-chooser .switch {
  display: flex;
  flex-direction: column;   /* 🔥 stack vertically */
  align-items: center;      /* center the cards */
  gap: 16px;

  overflow: visible;        /* 🔥 remove horizontal scroll */
  padding: 0 16px;
}


/* ===== FIX FIRM SELECTOR CUTTING ===== */

.firm-btn {
  width: 100% !important;
  max-width: 420px;         /* 🔥 keeps it nice and centered */

  height: auto !important;
  padding: 20px 16px !important;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  overflow: visible !important;
}

.firm-btn .firm-logo,
.firm-btn .brand img.logo {
  width: 160px !important;
  height: auto !important;
}

.firm-btn .label {
  font-size: 16px !important;
  text-align: center;
}

  .firm-cards {
    grid-template-columns: 1fr !important;
  }
/* ===== CENTER LEGAL CARDS ===== */

.firm-cards,
.news-grid,
.selection-container {
  display: flex !important;
  flex-direction: column;
  align-items: center;   /* 🔥 THIS centers everything */
  gap: 16px;
}

.firm-card,
.news-card,
.selection-card {
  width: 90% !important;     /* gives side spacing */
  max-width: 420px;          /* keeps it clean */
  margin: 0 auto;            /* extra safety centering */
}

.container,
  .section,
  .wrapper {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  h1, h2, h3, p {
    max-width: 100%;
    word-wrap: break-word;
  }

    h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  h2 {
    font-size: 22px;
  }

   /* ===== FIX NEXT STEP SECTION ===== */

.next-step-bg {
  padding: 60px 0 0 !important;
}

/* TITLE */
.next-step-bg .title {
  padding: 0 16px !important;
  font-size: 26px !important;
  line-height: 1.3;
}

/* SUBTITLE (THIS FIXES YOUR VERTICAL TEXT ISSUE) */
.next-step-bg .subtitle {
  margin: 16px 16px 0 !important;   /* 🔥 remove 240px margin */
  padding-bottom: 60px !important;

  max-width: 100% !important;
  font-size: 14px !important;
  line-height: 1.6 !important;

  text-align: left;
}

/* INNER CONTAINER */
.next-step .inner {
  padding: 0 16px !important;
}

/* PARAGRAPH */
.next-step p {
  width: 100% !important;          /* 🔥 remove 840px */
  font-size: 14px !important;
  line-height: 1.6;
}

/* FORM LAYOUT */
.subscribe {
  flex-direction: column !important;
  gap: 10px;
}

/* INPUT */
.subscribe input {
  width: 100% !important;          /* 🔥 remove 580px */
  height: 48px;
  font-size: 14px;
  border-radius: 6px;
}

/* BUTTON */
.subscribe button {
  width: 100% !important;
  height: 48px;
  border-radius: 6px;
}

  .footer .inner {
    flex-direction: column !important;
    gap: 24px !important;
    padding: 30px 16px !important;
  }

  .footer .brand-block,
  .footer .col,
  .footer .col.practice,
  .footer .col.faq {
    width: 100% !important;
    min-width: 0 !important;
  }

  .footer .links.footer-practice-links {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    padding: 16px !important;
    text-align: center;
  }

/* =========================================
TEAM PROFILE – DAN (MOBILE | AUTHORITY)
========================================= */


  /* =====================
  GLOBAL
  ===================== */
  .accounting-team-page .inner{
    max-width: 100% !important;
    padding: 0 16px !important;
  }

  /* =====================
  PROFILE SECTION
  ===================== */
  .team-profile{
    padding: 60px 0 40px !important;
  }

  /* =====================
  BACK LINK
  ===================== */
  .back-link{
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }

  .back-arrow{
    width: 10px;
    height: 10px;
  }

  /* =====================
  GRID → STACK
  ===================== */
  .team-profile__grid{
    display: flex !important;
    flex-direction: column;
    gap: 30px !important;
  }

  /* =====================
  TITLE (STRONGER PRESENCE)
  ===================== */
  .team-profile__title{
    font-size: 22px !important;
    line-height: 1.35;
  }

  .team-profile__rule{
    margin: 16px 0 22px !important;
  }

  /* =====================
  COPY (LONG-FORM OPTIMIZED)
  ===================== */
  .team-profile__copy p{
    font-size: 15px !important;
    line-height: 1.75;
    margin-bottom: 16px;
  }

  /* =====================
  SIDE (EXPERTISE)
  ===================== */
  .team-profile__side{
    padding-top: 10px;
  }

  .team-profile__side h2{
    font-size: 18px !important;
    margin-bottom: 14px !important;
  }

  .team-profile__list{
    gap: 10px !important;
  }

  .team-profile__list li{
    font-size: 14px !important;
    line-height: 1.6;
  }

  /* =====================
  CLARITY SECTION
  ===================== */
  .team-clarity{
    padding: 42px 0 !important;
  }

  .team-clarity h2{
    font-size: 20px !important;
  }

  .team-clarity p{
    width: 100% !important;
    font-size: 14px !important;
    line-height: 1.65;
  }

  /* CTA (PREMIUM BUT CONTROLLED) */
  .team-clarity__cta{
    width: 100%;
    max-width: 300px;

    padding: 14px 20px !important;
    font-size: 15px !important;

    gap: 10px;
  }

  .team-clarity__cta .arrow{
    width: 16px;
    height: 16px;
  }

  /* =====================
  TAGLINE
  ===================== */
  .team-tagline{
    padding: 0 0 40px !important;
  }

  .team-tagline .inner{
    font-size: 16px !important;
  }

  /* =====================
  NEXT STEP
  ===================== */
  .next-step{
    padding: 32px 0 !important;
  }

  .next-step h3{
    font-size: 18px !important;
  }

  .next-step p{
    width: 100% !important;
    font-size: 14px !important;
    line-height: 1.65;
  }

  /* FORM */
  .next-step .subscribe{
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px;
  }

  .next-step .subscribe input{
    width: 100% !important;
    height: 46px !important;
    font-size: 14px;
  }

  .next-step .subscribe button{
    width: 100% !important;
    height: 46px !important;
    font-size: 14px;
  }
/* =====================
FIX CTA (CRITICAL)
===================== */
.team-clarity__cta{
  min-width: unset !important;   /* 🔥 remove desktop constraint */
  width: 100% !important;
  max-width: 280px;

  margin: 0 auto;                /* center */

  padding: 14px 18px !important;
  font-size: 14px !important;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
}
}