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

/* --------------------------------------------------------------------------
   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;
  overflow: hidden;
}

/* Base hero-inner layout */
.hero-section .hero-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
}

/* 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;
}

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

.hero-section .hero-content {
  text-align: center;
  padding: 80px 32px;
}

/* Desktop hero layout (acquisition.com 3-col flex) */
@media (min-width: 1025px) {
  .hero-section .hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    min-height: 600px;
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
  }

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

  .hero-section .hero-img-right {
    width: 700px;
    display: flex;
    align-items: flex-end;
    position: absolute;
    right: -224px;
    bottom: -120px;
    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: 480px;
    left: -20px;
  }

  .hero-section .hero-img-right {
    width: 780px;
    right: -180px;
  }

  .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;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

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

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

  .hero-section .hero-img-mobile {
    display: flex;
    justify-content: center;
    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-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 {
    width: 45%;
    max-width: 170px;
  }

  .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 -- Responsive sizing for all pages
   -------------------------------------------------------------------------- */

/* Desktop nav: tighten spacing so all items fit */
@media (min-width: 1025px) {
  nav .lg\:flex {
    gap: 2px !important;
  }
  nav .lg\:flex a {
    font-size: 15px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  /* Dropdown items */
  nav .nav-dd a {
    font-size: 14px !important;
    padding: 10px 20px !important;
  }
  nav .nav-dd > div {
    border-radius: 12px !important;
    min-width: 240px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

/* Even tighter on smaller desktops */
@media (min-width: 1025px) and (max-width: 1200px) {
  nav .lg\:flex a {
    font-size: 14px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

@media (max-width: 1024px) {
  /* Full-screen mobile menu overlay -- matches Acquisition.com */
  #mobile-menu:not(.hidden) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #131628;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  #mobile-menu:not(.hidden) > div {
    padding: 0 !important;
    gap: 0 !important;
    flex: 1;
  }

  #mobile-menu:not(.hidden) a {
    display: block;
    width: 100%;
    padding: 18px 24px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    background: #6f00ff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 0;
    border-radius: 0;
  }

  #mobile-menu:not(.hidden) a:first-child {
    margin-top: 60px;
  }
}

/* --------------------------------------------------------------------------
   COURSE CARDS GRID -- 3-col desktop, 2-col tablet/mobile
   acquisition.com keeps 2-col even at 325px mobile
   -------------------------------------------------------------------------- */
@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)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 480px) {
  .course-grid,
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"] {
    gap: 12px !important;
    max-width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   4-COLUMN GRIDS -- homepage cards (acquisition.com stays 2-col on mobile)
   -------------------------------------------------------------------------- */
@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)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 480px) {
  .cards-grid,
  [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: 12px !important;
  }
}

/* --------------------------------------------------------------------------
   2-COLUMN GRIDS -- resources page
   -------------------------------------------------------------------------- */
@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;
  }
}

/* --------------------------------------------------------------------------
   TRAINING PAGE 3-COLUMN LAYOUT (sidebar + content + form)
   acquisition.com: sidebar becomes collapsible "Course Modules" on mobile
   -------------------------------------------------------------------------- */

/* Toggle button hidden on desktop by default */
.course-modules-toggle {
  display: none;
}
@media (max-width: 1024px) {
  .training-layout {
    flex-direction: column !important;
  }

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

  /* Training page heading -- 56px is too big on mobile */
  [style*="font-size:56px"] {
    font-size: clamp(28px, 7vw, 42px) !important;
    line-height: 1.15 !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: block !important;
  }

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

/* --------------------------------------------------------------------------
   COURSE CARD CIRCLES -- Scale for 2-col 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;
  }
}

/* --------------------------------------------------------------------------
   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
   -------------------------------------------------------------------------- */

/* Force stack on tablet and below */
@media (max-width: 900px) {
  .flex-col.md\:flex-row {
    flex-direction: column !important;
  }

  .flex-col.md\:flex-row > .flex-shrink-0 {
    width: 100% !important;
  }

  .flex-col.md\:flex-row > .flex-shrink-0 img {
    max-width: 100%;
    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;
  }
}

/* --------------------------------------------------------------------------
   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;
  }
}

/* --------------------------------------------------------------------------
   FOOTER -- Purple bg text adjustments
   -------------------------------------------------------------------------- */
footer.bg-acq-purple .text-acq-lavender {
  color: #fff !important;
  font-weight: 700 !important;
}
footer.bg-acq-purple a:hover {
  color: #fff !important;
}

/* Footer nav links -- tighter gap so they fit on one line */
footer .flex-wrap {
  gap: 16px !important;
}
footer .flex-wrap a {
  font-size: 13px !important;
}

/* --------------------------------------------------------------------------
   FOOTER -- Responsive
   -------------------------------------------------------------------------- */

/* Tablet: keep links on one line */
@media (min-width: 768px) and (max-width: 1024px) {
  footer .flex-wrap {
    gap: 12px !important;
  }
  footer .flex-wrap a {
    font-size: 12px !important;
  }
}

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

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

  footer a {
    font-size: 12px !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;
  }
}

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

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

/* --------------------------------------------------------------------------
   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;
  }
}

/* --------------------------------------------------------------------------
   IMAGES -- Prevent overflow on all devices
   -------------------------------------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
}

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

/* --------------------------------------------------------------------------
   INLINE GRID OVERRIDES -- Force inline 3-col grids to stack on mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  [style*="grid-template-columns:repeat(3"] ,
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

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

/* --------------------------------------------------------------------------
   TRAINING PAGE HEADINGS -- Scale down inline 56px headings on mobile
   -------------------------------------------------------------------------- */
@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;
  }
}

/* --------------------------------------------------------------------------
   PREVENT HORIZONTAL SCROLL
   -------------------------------------------------------------------------- */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
