/* ==========================================================
   ORBUS - RESPONSIVE OVERRIDES
   All @media rules live here. Load AFTER styles.css.
   Sections mirror the headings in styles.css.
========================================================== */

/* ==========================
   CTA + FOOTER (tablet up)
==========================*/
@media (min-width: 640px) {
  .cta {
    padding: 5.5rem 4rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

/* ==========================
   LAYOUT (tablet up)
==========================*/
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ==========================
   DESKTOP (900px up)
==========================*/
@media (min-width: 900px) {

  /* Navbar */
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }

  /* Product carousel */
  .carousel-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* CEO */
  .ceo {
    grid-template-columns: minmax(0, 1fr) 1.4fr;
  }

  /* Two-column / contact */
  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
  }

  /* Hero - decorative media split */
  .product-hero .two-col,
  .ai-automation .two-col {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }

  /* Hero - product carousel */
  .hero-inner.hero-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    text-align: left;
    min-height: 92vh;
    padding: 4rem 1rem;
  }

  .hero-inner.hero-split .hero-cta,
  .hero-inner.hero-split .hero-badges {
    justify-content: flex-start;
  }

  .hero-carousel {
    height: 600px;
    min-height: 600px;
  }

  .hero-slide-intro {
    display: none;
  }
}

/* ==========================
   BELOW 900px
==========================*/
@media (max-width: 899px) {

  /* Hide the desktop text column on mobile — the intro slide
     inside the carousel takes over that job instead */
  .hero-content {
    display: none;
  }

  .hero-carousel {
    flex: 1;
    /* fills the mobile hero's height since it's the only visible child */
    min-height: 600px;
  }

  /* Drop decorative extras below the two-col breakpoint so
     mobile/tablet stay exactly as they were */
  .floating-card {
    display: none;
  }

  .hero-media::before,
  .hero-media::after,
  .ai-media::before,
  .ai-media::after {
    display: none;
  }
}

/* ==========================
   LEGAL (900px down)
==========================*/
@media (max-width: 900px) {
  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-toc {
    position: relative;
    top: auto;
    width: 100%;
    margin: 0;
    padding: 1rem;
  }

  .legal-body {
    max-width: 100%;
  }
}

/* ==========================
   MOBILE (768px down)
==========================*/
@media (max-width: 768px) {

  /* Base */
  body {
    font-size: 15px;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1rem;
  }

  p,
  li,
  .small,
  label,
  input,
  textarea,
  select {
    font-size: 0.9rem;
  }

  /* Layout */
  .container {
    padding: 1rem 1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  /* Typography */
  .display {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .display-sm {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .lead {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  /* Buttons */
  .btn {
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
  }

  /* Section head */
  .section-head {
    margin-bottom: 1.75rem;
  }

  /* Hero */
  .hero {
    min-height: 75vh;
  }

  .hero-inner {
    min-height: 75vh;
    justify-content: center;
    padding: 2.5rem 1.25rem 2rem;
  }

  .pill {
    margin-top: 0.3rem;
    font-size: 0.68rem;
    padding: 0.3rem 0.7rem;
  }

  .hero .display {
    font-size: clamp(2rem, 5vw, 2.6rem);
    line-height: 1.08;
    margin: 0.9rem 0;
    max-width: 100%;
  }

  .hero .lead {
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 100%;
  }

  .hero-badges {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-badges span {
    padding: 6px 12px;
    font-size: 0.72rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
    margin-top: 24px;
  }

  .hero-stats strong {
    font-size: 1.35rem;
  }

  .hero-stats span {
    font-size: 0.72rem;
    margin-top: 4px;
  }

  .hero-cta {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
  }

  .hero-cta .btn {
    width: 100%;
    flex: 1;
    justify-content: center;
    padding: 0.72rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .scroll-hint {
    display: none;
  }

  /* Cards & forms (shared padding / type-scale) */
  .pcard-body,
  .feature,
  .spec,
  .form,
  .why-card,
  .module-card,
  .outcome-item,
  .ai-item {
    padding: 1rem;
  }

  .pcard h3,
  .feature h3,
  .why-card h3,
  .module-card h3,
  .outcome-item h3,
  .ai-item h3 {
    font-size: 1rem;
  }

  .pcard p,
  .feature p,
  .why-card p,
  .module-card p,
  .outcome-item p,
  .ai-item p {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .features,
  .why-grid,
  .module-grid,
  .outcomes-grid,
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

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

  .gallery {
    grid-template-columns: 1fr;
  }

  .feature-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .industry-card {
    padding: 0.9rem;
    font-size: 0.85rem;
  }

  .spec dt {
    font-size: 0.65rem;
  }

  .spec dd {
    font-size: 0.9rem;
  }

  /* CTA */
  .cta {
    padding: 2.5rem 1.25rem;
  }

  .cta p {
    font-size: 0.9rem;
  }

  /* ==========================================================
   FORMS - MOBILE
========================================================== */

.form {
  gap: 0.8rem;
}

.form input,
.form textarea,
.form select {
  padding: 0.65rem 0.75rem;
}


/* Phone */

.form .phone-group {
  flex-direction: column;
}

.form .phone-group select {
  width: 100%;
}


/* Products */

.product-options {
  gap: 0.6rem;
}

  /* Footer */
  .footer {
    padding: 3rem 0 1.25rem;
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer h3 {
    font-size: 0.78rem;
  }

  .footer p,
  .footer li,
  .footer a {
    font-size: 0.88rem;
  }

  /* Legal */
  .legal-hero {
    padding: 2rem 0 1rem;
  }

  .legal-body {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .legal-body h2 {
    font-size: 1.15rem;
  }

  .legal-toc {
    padding: 0.9rem;
  }

  .legal-toc a {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
  }

  .legal-table {
    font-size: 0.8rem;
  }

  .legal-callout {
    font-size: 0.82rem;
  }

  /* ==========================================================
   LEAD POPUP
========================================================== */

  .lead-dialog {
    padding: 1.35rem;
    margin: 3vh auto;
  }

  .phone-group {
    flex-direction: column;
  }

  .phone-group select {
    width: 100%;
  }
}

/* ==========================
   SMALL MOBILE (480px down)
==========================*/
@media (max-width: 480px) {

  .features,
  .why-grid,
  .module-grid,
  .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-badges span {
    font-size: 0.68rem;
  }

  .btn {
    font-size: 0.78rem;
  }
}

/* ==========================
   PRINT
==========================*/
@media print {

  .navbar,
  .legal-toc,
  .footer {
    display: none;
  }
}

/* ==========================
   REDUCED MOTION
==========================*/
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto;
  }
}