/* ==========================================================================
   RESPONSIVE SYSTEM -- Pixel-perfect match to acquisition.com breakpoints
   Breakpoints: 480px, 640px, 767px, 850px, 995px, 1024px, 1800px
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL -- Prevent horizontal scroll on all devices
   -------------------------------------------------------------------------- */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   NAV DROPDOWN -- Ensure Courses dropdown is fully hidden until hover
   -------------------------------------------------------------------------- */
.nav-dd.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   HERO SECTION -- Acquisition.com-style responsive behavior
   Desktop: 3-column flex (left image 19%, center 62%, right 18%)
   Mobile: Stacked single column with images visible
   -------------------------------------------------------------------------- */

/* Fix white line between hero and next section */
.hero-section {
  margin-bottom: -1px;
}

/* Base: hide mobile hero images by default, show desktop images */
.hero-section .hero-img-mobile {
  display: none;
}

.hero-section .hero-img-left,
.hero-section .hero-img-right {
  display: block;
}

/* Desktop hero layout (acquisition.com 3-col flex) */
@media (min-width: 1025px) {
  .hero-section {
    position: relative;
    overflow: hidden;
  }

  .hero-section .hero-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    max-width: 1440px;
    margin: 0 auto;
  }

  .hero-section .hero-img-left {
    width: 620px;
    display: flex;
    align-items: flex-end;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 10;
  }

  .hero-section .hero-img-right {
    width: 840px;
    display: flex;
    align-items: flex-end;
    position: absolute;
    right: -200px;
    bottom: 0;
    z-index: 10;
  }

  .hero-section .hero-img-left img,
  .hero-section .hero-img-right img {
    width: 100%;
    height: auto;
    display: block;
  }

  .hero-section .hero-content {
    width: 62%;
    margin: 0 auto;
    text-align: center;
    align-self: center;
    z-index: 20;
  }

  .hero-section .hero-img-mobile {
    display: none;
  }
}

/* Large desktop scaling (1800px+) -- match acquisition.com */
@media (min-width: 1800px) {
  .hero-section .hero-inner {
    max-width: 1600px;
  }

  .hero-section .hero-img-left {
    width: 700px;
    left: 0;
  }

  .hero-section .hero-img-right {
    width: 950px;
    right: -240px;
  }

  .hero-section .hero-content h2 {
    font-size: 66px !important;
    line-height: 72px !important;
  }

  .hero-section .hero-content p {
    font-size: 28px !important;
    line-height: 38px !important;
  }

  .hero-section .hero-content .hero-cta {
    font-size: 22px !important;
    padding: 22px 64px !important;
  }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-section .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding: 0;
    position: relative;
    overflow: hidden;
  }

  .hero-section .hero-img-left,
  .hero-section .hero-img-right {
    display: none;
  }

  .hero-section .hero-img-mobile {
    display: flex !important;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    margin: 0;
  }

  .hero-section .hero-img-mobile img {
    width: 45%;
    height: auto;
    object-fit: contain;
    object-position: bottom;
  }

  .hero-section .hero-img-mobile img:first-child {
    align-self: flex-end;
    width: 50%;
    margin-left: 0;
  }

  .hero-section .hero-img-mobile img:last-child {
    align-self: flex-end;
    width: 62%;
    margin-right: -14%;
  }

  .hero-section .hero-content {
    width: 100%;
    max-width: 760px;
    text-align: center;
    padding: 48px 24px 0;
    z-index: 20;
  }

  .hero-section .hero-content h2 {
    font-size: 40px !important;
    line-height: 46px !important;
  }

  .hero-section .hero-content p {
    font-size: 18px !important;
    line-height: 28px !important;
  }
}

/* Mobile (max-width: 767px) -- acquisition.com major layout shift */
@media (max-width: 767px) {
  .hero-section .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding: 0;
  }

  .hero-section .hero-img-left,
  .hero-section .hero-img-right {
    display: none !important;
  }

  .hero-section .hero-img-mobile {
    display: flex !important;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    order: 2;
  }

  .hero-section .hero-img-mobile img {
    width: 42%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    object-position: bottom;
  }

  .hero-section .hero-img-mobile img:first-child {
    align-self: flex-end;
    width: 48%;
    max-width: none;
    margin-left: 0;
  }

  .hero-section .hero-img-mobile img:last-child {
    align-self: flex-end;
    width: 58%;
    max-width: none;
    margin-right: -14%;
  }

  .hero-section .hero-content {
    width: 100%;
    text-align: center;
    padding: 40px 20px 0;
    order: 1;
    z-index: 20;
  }

  .hero-section .hero-content h2 {
    font-size: clamp(28px, 7vw, 42px) !important;
    line-height: 1.15 !important;
  }

  .hero-section .hero-content p {
    font-size: clamp(14px, 4vw, 18px) !important;
    line-height: 1.6 !important;
  }

  .hero-section .hero-content .hero-cta {
    font-size: clamp(14px, 3.5vw, 18px) !important;
    padding: 14px 32px !important;
  }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
  .hero-section .hero-img-mobile img:first-child {
    width: 48%;
    max-width: none;
    margin-left: 0;
  }

  .hero-section .hero-img-mobile img:last-child {
    width: 58%;
    max-width: none;
    margin-right: -14%;
  }

  .hero-section .hero-content {
    padding: 32px 16px 0;
  }

  .hero-section .hero-content h2 {
    font-size: 28px !important;
    line-height: 34px !important;
  }

  .hero-section .hero-content p {
    font-size: 14px !important;
    line-height: 22px !important;
    margin-bottom: 24px !important;
  }
}

/* --------------------------------------------------------------------------
   STICKY BANNER -- Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .bg-acq-purple .text-\[14px\],
  .bg-acq-purple .sm\:text-\[17px\] {
    font-size: 13px !important;
  }
}

/* --------------------------------------------------------------------------
   NAVIGATION -- Mobile improvements
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  #mobile-menu {
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* --------------------------------------------------------------------------
   INLINE GRID OVERRIDES -- Force ALL inline grids to stack on mobile
   These use attribute selectors + !important to override inline styles
   -------------------------------------------------------------------------- */

/* 3-column grids -> 2-col at 995px */
@media (max-width: 995px) {
  .course-grid,
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* 3-column grids -> 1-col at 767px */
@media (max-width: 767px) {
  .course-grid,
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* 3-column grids -> 2-col at tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

/* 4-column grids -> 2-col at 995px */
@media (max-width: 995px) {
  .cards-grid,
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* 4-column grids -> 1-col at 480px */
@media (max-width: 480px) {
  .cards-grid,
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* 2-column grids -> 1-col at 767px */
@media (max-width: 767px) {
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns: repeat(2,1fr)"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* --------------------------------------------------------------------------
   STATS GRIDS -- 3-col to stacked
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* --------------------------------------------------------------------------
   COURSE CARD CIRCLES -- Scale for mobile (acquisition.com style)
   -------------------------------------------------------------------------- */
@media (max-width: 995px) {
  .tc .tc-circle {
    width: 140px !important;
    height: 140px !important;
  }

  .tc .tc-circle-bg {
    width: 140px !important;
    height: 140px !important;
  }

  .tc .tc-circle-img {
    width: 100px !important;
  }

  .tc .tc-title {
    font-size: 14px !important;
    min-height: 36px !important;
    margin-bottom: 12px !important;
  }

  .tc .tc-btn {
    font-size: 13px !important;
    padding: 10px 0 !important;
  }

  .tc .tc-badge {
    font-size: 9px !important;
    padding: 3px 10px !important;
    margin-bottom: 8px !important;
  }
}

@media (max-width: 480px) {
  .tc .tc-circle {
    width: 110px !important;
    height: 110px !important;
  }

  .tc .tc-circle-bg {
    width: 110px !important;
    height: 110px !important;
  }

  .tc .tc-circle-img {
    width: 80px !important;
  }

  .tc .tc-title {
    font-size: 12px !important;
    min-height: 32px !important;
  }

  .tc .tc-btn {
    font-size: 11px !important;
    padding: 8px 0 !important;
  }
}

/* --------------------------------------------------------------------------
   TRAINING PAGE 3-COLUMN LAYOUT (sidebar + content + form)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .training-layout {
    flex-direction: column !important;
  }

  .training-layout > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Sidebar dark box -- make it collapsible on mobile */
  aside .bg-acq-dark.rounded-2xl {
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
  }

  /* Show the toggle button on mobile */
  .course-modules-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  aside .bg-acq-dark.rounded-2xl .flex.flex-col.gap-3 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 16px;
  }

  aside .bg-acq-dark.rounded-2xl.modules-open .flex.flex-col.gap-3 {
    max-height: 2000px;
    padding: 0 16px 16px;
  }
}

/* --------------------------------------------------------------------------
   TRAINING PAGE HEADINGS -- Scale down inline 56px headings
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  [style*="font-size:56px"],
  [style*="font-size: 56px"] {
    font-size: 32px !important;
    line-height: 38px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  [style*="font-size:56px"],
  [style*="font-size: 56px"] {
    font-size: 44px !important;
    line-height: 52px !important;
  }
}

/* --------------------------------------------------------------------------
   TRAINING PAGE -- Form section on mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  aside .bg-acq-dark.rounded-2xl {
    border-radius: 12px !important;
  }

  /* Form inputs full-width */
  .flex.gap-3 input {
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   SECTION HEADINGS -- Fluid typography (acquisition.com pattern)
   -------------------------------------------------------------------------- */
@media (max-width: 850px) {
  .section-heading,
  section h1,
  section h2 {
    font-size: clamp(22px, 5vw, 36px);
    line-height: 1.2;
  }
}

/* --------------------------------------------------------------------------
   FAQ SECTION -- Responsive text sizing
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .faq-border button span {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  .faq-border button span {
    font-size: 16px !important;
  }

  .faq-border button {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
}

/* --------------------------------------------------------------------------
   FOUNDERS SECTION -- Image + text layout
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .founders-section .flex-col.md\:flex-row {
    gap: 24px !important;
  }

  .founders-section img {
    border-radius: 8px;
  }
}

/* --------------------------------------------------------------------------
   SCORECARD CTA -- Stack on mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .scorecard-cta .flex-col.md\:flex-row {
    text-align: center;
  }

  .scorecard-cta h2 {
    font-size: clamp(24px, 6vw, 32px) !important;
    line-height: 1.2 !important;
  }
}

/* --------------------------------------------------------------------------
   CIRCULAR FOUNDER IMAGES -- the-architect page
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  [style*="width:220px"][style*="height:220px"] {
    width: min(220px, 60vw) !important;
    height: min(220px, 60vw) !important;
  }
}

/* --------------------------------------------------------------------------
   TESTIMONIAL CARDS -- proof page
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .testimonial-grid {
    grid-template-columns: 1fr !important;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   MODULE CARDS -- Training pages (copy, funnels, trust)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .module-card {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 20px !important;
  }

  .module-card .module-number {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
}

/* --------------------------------------------------------------------------
   QUIZ / FORM PAGES -- Responsive (work-with-us, rebuild-preview)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .quiz-wrapper,
  .quiz-container {
    padding: 24px 16px !important;
    max-width: 100% !important;
  }

  .quiz-hero h1,
  .quiz-hero h2 {
    font-size: clamp(24px, 6vw, 40px) !important;
    line-height: 1.2 !important;
  }
}

/* Quiz scroll items -- prevent overflow on mobile */
@media (max-width: 640px) {
  .sa-item {
    width: 300px !important;
  }
}

@media (max-width: 380px) {
  .sa-item {
    width: 260px !important;
  }
}

/* Quiz option grids -- stack on mobile */
@media (max-width: 640px) {
  .quiz-options-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .quiz-options-grid[style*="repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 380px) {
  .quiz-options-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Big step number in quiz pages */
@media (max-width: 480px) {
  .big-step-number {
    font-size: 100px !important;
  }
}

@media (max-width: 380px) {
  .big-step-number {
    font-size: 80px !important;
  }
}

/* --------------------------------------------------------------------------
   VALUE ITEMS -- Strategy call page
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .value-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
}

/* --------------------------------------------------------------------------
   FOOTER -- Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  footer .flex-col.md\:flex-row {
    text-align: center;
  }

  footer .flex-wrap {
    justify-content: center;
    gap: 12px !important;
  }

  footer a {
    font-size: 13px !important;
  }

  footer p {
    font-size: 11px !important;
    line-height: 18px !important;
  }
}

/* --------------------------------------------------------------------------
   GENERAL CONTAINER -- Responsive padding
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .max-w-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  section {
    padding-left: 0;
    padding-right: 0;
  }
}

/* --------------------------------------------------------------------------
   BUTTONS -- Touch-friendly sizing on mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  a[class*="rounded-full"],
  button[class*="rounded-full"] {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   GENERAL FLEX ROW -> COLUMN ON MOBILE
   Catch Tailwind flex-row patterns that should stack
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Any flex container with md:flex-row should stack on mobile */
  .flex.flex-col.md\:flex-row {
    flex-direction: column !important;
  }

  /* Flex containers with inline flex-direction:row */
  [style*="flex-direction:row"],
  [style*="flex-direction: row"] {
    flex-direction: column !important;
  }
}

/* --------------------------------------------------------------------------
   GENERAL LARGE TEXT -- Scale down any inline large text
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  [style*="font-size:48px"],
  [style*="font-size: 48px"] {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  [style*="font-size:42px"],
  [style*="font-size: 42px"] {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }

  [style*="font-size:36px"],
  [style*="font-size: 36px"] {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  [style*="font-size:32px"],
  [style*="font-size: 32px"] {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
}

/* --------------------------------------------------------------------------
   GENERAL MAX-WIDTH CONTAINERS -- Prevent overflow
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  [style*="max-width:960px"],
  [style*="max-width: 960px"],
  [style*="max-width:1100px"],
  [style*="max-width: 1100px"],
  [style*="max-width:1200px"],
  [style*="max-width: 1200px"] {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
}

/* --------------------------------------------------------------------------
   TABLE OVERFLOW -- Ensure tables scroll horizontally
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 340px !important;
    font-size: 12px !important;
  }

  th {
    font-size: 10px !important;
    padding: 8px !important;
    white-space: normal !important;
  }

  td {
    padding: 8px !important;
    font-size: 12px !important;
  }
}

/* --------------------------------------------------------------------------
   FIXED-WIDTH ELEMENTS -- Prevent common overflow patterns
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  [style*="width:600px"],
  [style*="width: 600px"],
  [style*="width:700px"],
  [style*="width: 700px"],
  [style*="width:800px"],
  [style*="width: 800px"],
  [style*="width:900px"],
  [style*="width: 900px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  [style*="min-width:500px"],
  [style*="min-width: 500px"],
  [style*="min-width:600px"],
  [style*="min-width: 600px"] {
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   GAP AND PADDING -- Tighten on small screens
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  [style*="gap:32px"],
  [style*="gap: 32px"] {
    gap: 16px !important;
  }

  [style*="gap:28px"],
  [style*="gap: 28px"] {
    gap: 14px !important;
  }

  [style*="gap:24px"],
  [style*="gap: 24px"] {
    gap: 12px !important;
  }

  [style*="padding:48px"],
  [style*="padding: 48px"] {
    padding: 24px 16px !important;
  }
}

/* --------------------------------------------------------------------------
   INLINE FLEX GAP FIX -- Prevent flex items from overflowing
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  [style*="display:flex"][style*="gap"] {
    flex-wrap: wrap !important;
  }
}

/* --------------------------------------------------------------------------
   REBUILD-PREVIEW-THANKS -- Bonus cards responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .sc-bonus {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .sc-bonus-cover {
    width: 100% !important;
    max-width: 240px !important;
  }

  .sc-hero h1 {
    font-size: 22px !important;
  }

  .sc-cta {
    font-size: 18px !important;
    padding: 14px 16px !important;
  }

  .sc-video-outer {
    padding: 0 16px !important;
  }
}

/* --------------------------------------------------------------------------
   UI AUDIT FIXES -- Aug 2026 (announcement bar copy, tap targets,
   founders tablet layout, footer disclaimer contrast)
   -------------------------------------------------------------------------- */

/* Announcement bar: short CTA on phones instead of a dangling colon */
.ab-short { display: none; }
@media (max-width: 639px) {
  .ab-short { display: inline; }
}

/* Footer links: 44px+ tap targets without changing the visual rhythm */
footer .flex-wrap a {
  padding-top: 12px;
  padding-bottom: 12px;
}
footer .flex-wrap {
  row-gap: 0;
}

/* Footer disclaimer: readable on the purple background, all pages */
footer p {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 14px !important;
  line-height: 22px !important;
}

/* Founders section: stay stacked on tablet, columns only from 1024px up */
@media (min-width: 768px) and (max-width: 1023px) {
  .founders-row {
    flex-direction: column !important;
    align-items: center !important;
  }
  .founders-img {
    width: 100% !important;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* Acquisition-parity heading tokens (rolled out 2026-08-05) */
.acq-h2 { font-size: 40px !important; line-height: 46px !important; }
@media (max-width: 767px) { .acq-h2 { font-size: 28px !important; line-height: 34px !important; } }
.acq-accent { width: 64px; height: 4px; background: #6f00ff; margin: 14px auto 48px; }
.section-title::after { content: ''; display: block; width: 64px; height: 4px; background: #6f00ff; margin: 14px auto 0; }
