/* ==========================================
   RESPONSIVE — Octopus AI Website
   Mobile-first breakpoints
========================================== */

/* ── Large Tablets (max 1200px) ── */
@media (max-width: 1200px) {
  :root {
    --section-px: clamp(1.5rem, 5vw, 7rem);
  }

  .hero-content {
    width: min(940px, 90%);
  }

  .brand-logos { width: 75%; }

  .slider-nav {
    right: 20px;
  }
}

/* ── Tablets (max 992px) ── */
@media (max-width: 992px) {
  :root {
    --section-px: 2.5rem;
    --section-py: 3.5rem;
  }

  /* Hide desktop nav */
  .nav { display: none; }
  .cta-btn { display: none; }

  /* Show hamburger */
  .menu-toggle { display: block; }

  /* Hero */
  .hero {
    height: 100vh;
    min-height: 640px;
  }

  .hero-content {
    padding-top: clamp(50px, 5vh, 80px);
    padding-bottom: clamp(16px, 3vh, 40px);
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-content h1 {
    font-size: clamp(26px, 4.5vw, 44px);
  }

  /* Prompt box */
  .prompt-box {
    max-width: 92%;
  }

  /* Brand logos */
  .brand-logos { width: 86%; }

  /* Cards */
  .col-7,
  .col-5,
  .col-3,
  .col-4,
  .col-6,
  .col-9 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .col-7 + .col-5,
  .col-5 + .col-7 {
    margin-top: 16px;
  }

  /* Slider */
  .slider-section  { height: auto; }

  .slider-wrapper  {
    position: relative;
    top: 0;
    flex-direction: column;
    gap: 2rem;
  }

  .slider-nav {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    text-align: left;
    width: 100%;
  }

  .slider-item {
    display: inline-block;
    margin-right: 16px;
    padding-right: 0;
  }

  .slider-item::after { display: none; }

  /* Tabs badges */
  .tab-badges {
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
  }

  .badge {
    width: 100%;
  }

  /* Accordion */
  .accordion-item .accordion-header h3 {
    font-size: clamp(15px, 2vw, 18px);
  }

  /* Footer */
  .col-3 {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
    margin-bottom: 24px;
  }

  .logo-wrapper { display: none; }
}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {
  :root {
    --section-px: 1.25rem;
    --section-py: 2.5rem;
  }

  /* Hero */
  .hero {
    height: 100vh;
    min-height: 600px;
  }

  .hero-content {
    padding-top: clamp(48px, 5vh, 70px);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-content h1 {
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.15;
  }

  .hero-content .abstract-regular {
    font-size: 15px;
  }

  .hero-content .d-flex {
    flex-direction: column;
    align-items: center;
    gap: 14px !important;
  }

  /* Prompt box */
  .prompt-box { max-width: 100%; }

  .options span { padding: 0 8px; font-size: 11px; }

  /* Brand logos */
  .brand-logos { width: 92%; }

  .marquee-content { gap: 28px; }

  .marquee-content img { height: 18px; }

  /* Typography */
  h2 { font-size: clamp(22px, 6vw, 30px); }
  h3 { font-size: clamp(16px, 4.5vw, 22px); }

  .abstract-regular {
    font-size: 14px;
    line-height: 1.65;
  }

  /* Section paragraph */
  .center { padding: 0; max-width: 100%; }

  /* Cards full-width */
  .card { padding: 20px; }

  /* Fullstack / agentic cards */
  .fullstack-card::before { background-size: 200px; }
  .agentic-card::before  { background-size: 140px; }

  /* Tabs */
  .tab-badges {
    grid-template-columns: repeat(2, 1fr);
  }

  .badge { height: 36px; font-size: 11px; }

  /* Accordion */
  .accordion-header { padding: 14px 0; }

  /* FAQ */
  .faq-accordion .faq-header { padding: 14px 16px; }

  .faq-accordion h4 { font-size: 13px; }

  /* Comparison table */
  .table-row { grid-template-columns: 1fr; }

  .table-row > div { border-right: none; }

  /* Slider section */
  .slider-section { height: auto; }

  .slide {
    position: relative;
    opacity: 1 !important;
    margin-bottom: 14px;
  }

  .slide-img {
    display: block !important;
    margin-bottom: 10px;
  }

  /* Footer */
  .col-3 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .footer ul.d-flex {
    gap: 12px !important;
    flex-wrap: wrap;
  }

  /* hide giant footer logo */
  .logo-wrapper { display: none; }

  /* Navbar hamburger */
  .menu-toggle { font-size: 20px; }

  .sidebar { width: 240px; }

  /* Sections */
  .row + .row { margin-top: 16px; }

  /* CTA section */
  .btn { width: 100%; max-width: 280px; }
}

/* ── Small Mobile (max 480px) ── */
@media (max-width: 480px) {
  :root {
    --section-px: 1rem;
    --section-py: 2rem;
  }

  .hero-content h1 { font-size: clamp(22px, 8vw, 30px); }

  .tab-badges { grid-template-columns: 1fr 1fr; }

  .badge { padding: 0 10px; font-size: 10px; height: 32px; }

  .prompt-box { border-radius: 10px; }

  .options span:not(:first-child) { display: none; } /* keep only Attach on tiny screens */

  h2 { font-size: clamp(20px, 7vw, 26px); }

  .sub-heading { font-size: 11px; }
}
