/* =========================================================
   Responsive — All Breakpoints
   1200px | 1024px | 860px | 768px | 640px | 480px | 380px
   ========================================================= */

/* =========================================================
   NAVBAR
   ========================================================= */

/* Desktop nav */
@media (min-width: 1080px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

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

  .nav-actions .btn-secondary {
    display: inline-flex;
  }
}

/* Tablet nav */
@media (max-width: 1079px) {
  .nav {
    min-height: 64px;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .nav-actions .btn-primary {
    display: none;
  }
}

/* Mobile — show Book Demo in nav-actions */
@media (max-width: 640px) {
  .nav-actions .btn-secondary {
    display: inline-flex;
  }
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav {
    width: calc(100% - 24px);
    min-height: 60px;
  }

  .brand img {
    width: 120px !important;
    height: auto !important;
  }

  .nav-menu {
    inset: 68px 8px auto;
    padding: 10px;
    border-radius: 16px;
  }

  .nav-link {
    font-size: 0.9rem;
    min-height: 44px;
    padding: 0 12px;
  }

  .btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.88rem;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 100px !important;
  }

  .nav-actions .btn-primary {
    padding: 0 12px;
    font-size: 0.82rem;
  }
}

/* =========================================================
   INDEX — Hero
   ========================================================= */
@media (max-width: 860px) {
  .hero {
    padding: 60px 0 0;
  }

  .hero-content {
    gap: 20px;
  }

  h1 {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 0;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
    line-height: 1.15;
  }

  .lead {
    font-size: 0.97rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 0;
  }

  h1 {
    font-size: clamp(1.75rem, 10vw, 2.2rem);
  }
}

/* =========================================================
   INDEX — Laptop showcase
   ========================================================= */
@media (max-width: 1024px) {
  .dashboard-wrap .laptop-showcase {
    width: min(100%, 800px);
  }

  .dash-laptop-stage {
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .dashboard-wrap .laptop-showcase {
    width: 100%;
  }

  .dash-laptop-stage {
    max-width: 560px;
  }

  .dashboard-wrap {
    padding-inline: 12px;
  }
}

@media (max-width: 480px) {
  .dashboard-wrap {
    padding-inline: 0;
  }

  .dash-laptop-stage {
    max-width: 100%;
  }

  .laptop-showcase::before {
    display: none;
  }
}

/* =========================================================
   INDEX — Product / screenshot grid
   ========================================================= */
@media (max-width: 860px) {
  .screenshot-grid {
    grid-template-columns: 1fr !important;
  }

  .sc-laptop-wrap {
    max-width: 480px;
    margin-inline: auto;
  }

  .sc-mobile-wrap {
    width: 160px;
  }
}

@media (max-width: 480px) {
  .sc-laptop-wrap {
    max-width: 100%;
  }

  .sc-mobile-wrap {
    width: 130px;
  }
}

/* =========================================================
   INDEX — Why grid
   ========================================================= */
@media (max-width: 860px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

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

/* =========================================================
   INDEX — Stats strip
   ========================================================= */
@media (max-width: 640px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

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

/* =========================================================
   INDEX — Success story
   ========================================================= */
@media (max-width: 860px) {
  .success-story {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   INDEX — Integration grid
   ========================================================= */
@media (max-width: 640px) {
  .integration-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* =========================================================
   INDEX — Split sections (FAQ, Integrations)
   ========================================================= */
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   ALL PAGES — Section spacing
   ========================================================= */
@media (max-width: 860px) {
  .section {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 44px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .section-head p {
    font-size: 0.93rem;
  }
}

/* =========================================================
   ALL PAGES — Page hero
   ========================================================= */
@media (max-width: 860px) {
  .page-hero {
    padding: 60px 0 40px;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 44px 0 28px;
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }
}

/* =========================================================
   FEATURES PAGE — Module cards grid
   ========================================================= */
@media (max-width: 860px) {
  .container .grid.grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   PRODUCT TOUR — Tour tabs
   ========================================================= */
@media (max-width: 768px) {
  .tour-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .tab-btn {
    font-size: 0.82rem;
    padding: 8px 12px;
    min-height: 36px;
  }
}

@media (max-width: 480px) {
  .tab-btn {
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  .tour-dash-images {
    padding: 10px 10px 0;
  }
}

/* =========================================================
   PRICING PAGE
   ========================================================= */
@media (max-width: 860px) {
  .grid.grid-3 {
    grid-template-columns: 1fr !important;
    max-width: 440px;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .price {
    font-size: 2.2rem;
  }

  .pricing-toggle {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .comparison {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .comparison th,
  .comparison td {
    padding: 10px 8px;
  }
}

/* =========================================================
   INDUSTRIES PAGE
   ========================================================= */
@media (max-width: 860px) {
  .container .grid.grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container .grid.grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
@media (max-width: 860px) {
  .team-card img {
    height: 220px;
    object-fit: cover;
    object-position: top;
  }

  .split .dashboard {
    border-radius: 18px;
  }

  .split .tour-dash-images img {
    height: auto;
    max-height: 280px;
    object-fit: cover;
    object-position: top;
  }
}

@media (max-width: 480px) {
  .team-card img {
    height: 180px;
  }

  .timeline-item {
    padding-left: 12px;
  }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr !important;
  }

  .office-card {
    order: -1;
  }
}

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

/* =========================================================
   FAQ PAGE
   ========================================================= */
@media (max-width: 640px) {
  .faq-tabs {
    gap: 6px;
  }

  .faq-tab {
    font-size: 0.8rem;
    padding: 0 12px;
    min-height: 36px;
  }

  .faq-search-input {
    font-size: 0.9rem;
    padding: 13px 44px;
  }
}

/* =========================================================
   ALL PAGES — Footer
   ========================================================= */
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px 20px;
  }

  .footer-brand-col,
  .footer-column:last-child {
    flex: 0 0 100%;
  }

  .footer-grid .footer-column:not(.footer-brand-col):not(:last-child) {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-address-text {
    min-width: unset;
  }
}

/* =========================================================
   ALL PAGES — CTA panel
   ========================================================= */
@media (max-width: 640px) {
  .cta-panel {
    padding: 36px 20px;
    border-radius: 20px;
  }

  .cta-panel h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
}

/* =========================================================
   ALL PAGES — Buttons
   ========================================================= */
@media (max-width: 480px) {
  .card-actions {
    flex-direction: column;
    width: 100%;
  }

  .card-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   GENERAL
   ========================================================= */
img {
  max-width: 100%;
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }
}

/* =========================================================
   INDEX — Screenshot card image (mobile only)
   ========================================================= */
@media (max-width: 768px) {
  .screenshot-card .tour-dash-images {
    height: auto;
    overflow: visible;
    display: flex;
    justify-content: center;
  }

  .screenshot-card .tour-dash-images img {
    width: 80%;
    height: auto;
    object-fit: contain;
    display: block;
  }
}
