/* ═══════════════════════════════════════════════════════════
   OZMO ELEVATE — Comprehensive Responsive System
   responsive.css
═══════════════════════════════════════════════════════════ */

/* Global Anti-Overflow Safety Locks */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ── Large Desktop & Ultra-wide (1440px+) ── */
@media (min-width: 1440px) {
  .hero-headline {
    font-size: 7.5rem;
  }
}

/* ── Desktop Standard (1200px - 1439px) ── */
@media (max-width: 1399px) {
  .hero-headline {
    font-size: clamp(4.5rem, 7vw, 6.5rem);
  }

  .academy-grid {
    gap: 1.5rem;
  }

  .cta-grid-new {
    gap: 4rem;
  }
}

/* ── Tablet / Small Laptop (1024px and below) ── */
@media (max-width: 1024px) {
  /* Navigation */
  .nav-links,
  .nav-cta {
    display: none !important;
  }

  .nav-inner {
    position: relative;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.5rem 1.5rem !important;
    text-align: center !important;
  }

  .nav-logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .nav-logo .logo-icon {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 80px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  .hamburger {
    display: flex !important;
    position: absolute !important;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 901;
  }

  /* Hero */
  .hero {
    padding-top: 10.5rem;
    padding-bottom: 3.5rem;
    min-height: auto;
    width: 100%;
    overflow: hidden;
  }

  .hero-container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }

  .hero-headline {
    font-size: clamp(2.75rem, 7.5vw, 4.5rem);
  }

  /* Marquee */
  .marquee-section {
    margin-top: 60px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .marquee-content span {
    font-size: 1.75rem;
  }

  /* Grids & Layouts */
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .vision-visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .academy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .impact-split {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .impact-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .cta-grid-new {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .glass-form-card {
    padding: 2.5rem;
  }

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

/* ── Mobile Landscape / Tablet Small (768px and below) ── */
@media (max-width: 768px) {
  section {
    padding: 4rem 0;
    width: 100%;
    overflow: hidden;
  }

  .section-container {
    padding: 0 1.25rem;
    width: 100%;
    max-width: 100%;
  }

  .hero {
    padding-top: 8rem;
    padding-bottom: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
  }

  .btn-group {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .btn-group .btn-premium {
    width: 100%;
    max-width: 320px;
  }

  .hero-social-proof.glass-pill {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 320px;
  }

  .hero-avatars {
    justify-content: center;
  }

  .proof-content {
    align-items: center;
    text-align: center;
  }

  .marquee-section {
    margin-top: 40px;
    padding: 1rem 0;
  }

  .marquee-content span {
    font-size: 1.35rem;
  }

  .visual-img {
    aspect-ratio: 16/10;
    max-height: 280px;
  }

  .deco-ring {
    display: none;
  }

  .academy-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .academy-card {
    padding: 1.75rem 1.25rem;
  }

  .stat-card {
    padding: 1.75rem 1.25rem;
  }

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

  .glass-form-card {
    padding: 1.75rem 1.25rem;
  }

  .mentor-track {
    gap: 1rem;
  }

  .mentor-card {
    width: 250px;
    padding: 0.75rem;
  }

  .mentor-img {
    height: 240px;
  }

  .sec-title {
    font-size: clamp(1.85rem, 6.5vw, 2.75rem) !important;
  }

  .cta {
    padding: 4rem 0;
  }
}

/* ── Mobile Portrait & Narrow Viewports (480px and below) ── */
@media (max-width: 480px) {
  .section-container {
    padding: 0 1rem;
  }

  .nav-inner {
    padding: 0 1rem;
  }

  .nav-logo .logo-icon {
    max-height: 44px;
  }

  .hero {
    padding-top: 10.5rem;
    padding-bottom: 2rem;
  }

  .hero-headline {
    font-size: clamp(1.6rem, 7vw, 2.25rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-headline .line {
    display: block;
    overflow: visible;
  }

  .hero-sub {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.55;
    padding: 0 0.25rem;
  }

  .btn-group .btn-premium {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    justify-content: center;
  }

  .btn-premium .btn-text {
    white-space: normal;
    text-align: center;
  }

  .hero-social-proof.glass-pill {
    width: 100%;
    max-width: 290px;
    padding: 0.65rem 0.75rem;
    border-radius: 16px;
    margin: 0 auto;
  }

  .avatar-count {
    font-size: 0.75rem;
    white-space: normal;
    text-align: center;
  }

  .hero-avatars img {
    width: 36px;
    height: 36px;
    margin-left: -14px;
  }

  .sec-title {
    font-size: clamp(1.5rem, 7vw, 2.1rem) !important;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .sec-sub {
    font-size: 0.875rem;
    margin-bottom: 2rem;
  }

  .academy-card {
    padding: 1.5rem 1rem;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .impact-grid-new {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .impact-grid-new .stat-card:nth-child(even) {
    transform: none;
  }

  .impact-grid-new .stat-card:nth-child(even):hover {
    transform: translateY(-4px);
  }

  .stat-val {
    font-size: 2.25rem;
  }

  .glass-form-card {
    padding: 1.5rem 1rem;
  }

  .c-method-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    width: 100%;
  }

  .c-link {
    font-size: 0.9375rem;
    word-break: break-all;
  }

  .footer {
    padding: 3.5rem 0 2rem;
  }

  .footer-massive-text {
    font-size: clamp(2.75rem, 14vw, 6rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand .nav-logo {
    justify-content: center;
  }

  .footer-desc {
    margin: 0.75rem auto 0 auto;
    text-align: center;
    font-size: 0.875rem;
  }

  .footer-links {
    text-align: center;
  }

  .footer-links ul {
    align-items: center;
  }

  .footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  /* Form font-size fix for Mobile Safari auto-zoom */
  .input-modern input,
  .custom-select,
  .custom-option {
    font-size: 16px;
  }
}

/* ── Ultra Narrow Devices (320px - 360px) ── */
@media (max-width: 360px) {
  .nav-inner {
    padding: 0 0.75rem;
  }

  .nav-logo .logo-icon {
    max-height: 38px;
  }

  .hero-headline {
    font-size: 1.5rem;
  }

  .sec-title {
    font-size: 1.4rem !important;
  }

  .stat-val {
    font-size: 1.85rem;
  }

  .mentor-card {
    width: 220px;
  }

  .mentor-img {
    height: 210px;
  }

  .glass-form-card {
    padding: 1.25rem 0.75rem;
  }

  .academy-card {
    padding: 1.25rem 0.875rem;
  }
}

/* ── Touch Devices & Reduced Motion ── */
@media (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  .magnetic,
  [data-tilt] {
    transition: none !important;
    transform: none !important;
  }

  .academy-card:hover {
    transform: none;
    border-color: var(--border-subtle);
  }

  .mentor-card:hover {
    transform: none;
  }

  .mentor-img img {
    filter: grayscale(0%);
  }
}
