/* --------------------------------------------------------------------------
   1. Large Laptops & Tablets (max-width: 1100px)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-heading {
    font-size: 2.05rem;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pricing-grid {
    gap: 20px;
  }

  .pricing-card {
    padding: 34px 24px;
  }

  .plan-price {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .feature-item {
    padding: 36px 26px;
  }

  /* FAQ Split */
  .faq-split-image {
    flex: 0 0 38%;
  }

  .faq-split-content {
    padding: 56px 40px;
  }
}

/* --------------------------------------------------------------------------
   2. Medium Tablets (max-width: 900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hotel-tabs {
    min-width: 900px;
  }

  .hotel-tab {
    min-width: 100px;
    padding: 14px 10px;
    font-size: 0.74rem;
  }

  .hotel-tab .tab-icon {
    width: 28px;
    height: 28px;
  }

  .hotel-tab .tab-icon svg {
    width: 24px;
    height: 24px;
  }

  :root {
    --nav-height: 72px;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-drawer {
    display: flex;
    flex-direction: column;
  }

  /* Compact Navbar Actions */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-actions .btn-primary {
    display: none; /* Accessible inside mobile drawer */
  }

  .nav-actions .btn-phone {
    padding: 9px 16px;
    font-size: 0.85rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: calc(var(--nav-height) + 36px);
    padding-bottom: 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

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

  .section-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-heading {
    font-size: 1.9rem;
    text-align: center;
  }

  .hero-subheading {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center;
    width: 100%;
  }

  .hero-stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 24px;
    margin: 0 auto;
  }

  .stat-item {
    justify-content: center;
  }

  .hero-visual {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  .hv-guest-card,
  .hv-pms-pill,
  .hv-scan-card {
    display: none;
  }

  /* Steps Section */
  .steps-grid,
  .steps-grid-3d {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .step-card,
  .step-card-3d {
    width: 100%;
    max-width: 480px;
  }

  .step-neon-pipeline {
    transform: rotate(90deg);
    margin: 10px 0;
  }

  .step-live-flow-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    padding: 10px 14px;
  }

  /* OCR Showcase Section */
  .ocr-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ocr-main-heading {
    font-size: 1.9rem;
  }

  .ocr-screen-card {
    max-width: 480px;
  }

  /* Old Showcase Section */
  .showcase-card {
    padding: 36px 28px;
  }

  .guest-verified-card {
    max-width: 100%;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
    gap: 18px;
  }

  .feature-item {
    padding: 36px 26px;
  }

  /* Pricing Grid */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
    gap: 36px;
    padding-top: 16px;
  }

  .pricing-card.featured-card {
    overflow: visible !important;
    margin-top: 12px;
  }

  .plan-description {
    min-height: auto;
  }

  /* CTA Banner — stack vertically on tablet */
  .cta-banner-inner {
    grid-template-columns: 1fr;
  }

  .cta-banner-image {
    display: none;
  }

  .cta-banner-content {
    padding: 56px 28px;
  }

  .cta-banner-content h2 {
    font-size: 2.1rem;
  }

  /* Modern Footer Responsive */
  .footer-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 30px 0;
  }

  .footer-columns-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 0 34px 0;
  }

  .footer-col-brand {
    grid-column: span 2;
    padding-right: 0;
  }

  .footer-col-cta {
    grid-column: span 2;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding-top: 24px;
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------------------------------
   3. Small Tablets & Standard Mobiles (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  /* Prevent horizontal animations from shifting layout or causing overflow on mobile */
  [data-animate="fade-left"],
  [data-animate="fade-right"] {
    transform: translateY(20px) !important;
  }

  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  /* Navbar: Switch to Circular Phone Icon Button on mobile to prevent any cutoff */
  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn-phone {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .nav-actions .btn-phone span {
    display: none; /* Text is prominently shown in the mobile drawer */
  }

  .nav-actions .btn-phone svg {
    width: 16px;
    height: 16px;
    margin: 0;
  }

  .mobile-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
    flex-shrink: 0;
  }

  .logo-img {
    height: 38px;
  }

  .footer-logo-img {
    height: 42px;
  }

  .logo-avatar {
    width: 38px;
    height: 38px;
  }

  .logo-name {
    font-size: 1.32rem;
  }

  /* Hero adjustments */
  .hero-section {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 48px;
  }

  .hero-heading {
    font-size: 1.6rem;
    line-height: 1.28;
    margin-bottom: 14px;
  }

  .hero-subheading {
    font-size: 0.94rem;
    line-height: 1.62;
    margin-bottom: 22px;
    padding: 0 4px;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.95rem;
  }

  /* 3-Stat Compact Grid on Mobile */
  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 440px;
    margin: 20px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(22, 47, 81, 0.1);
    box-sizing: border-box;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    padding: 10px 4px;
    background: rgba(247, 143, 31, 0.05);
    border: 1px solid rgba(247, 143, 31, 0.12);
    border-radius: 14px;
    box-sizing: border-box;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(247, 143, 31, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    flex-shrink: 0;
  }

  .stat-text {
    font-size: 0.72rem;
    line-height: 1.25;
    color: var(--color-text-muted);
  }

  .stat-text strong {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--color-brand-dark);
    display: block;
    white-space: nowrap;
    line-height: 1.2;
  }

  .stat-text span {
    font-size: 0.68rem;
    display: block;
    line-height: 1.2;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* OCR Showcase (768px) */
  .ocr-showcase-section {
    padding: 64px 0;
  }

  .ocr-main-heading {
    font-size: 1.65rem;
  }

  .ocr-card-body {
    flex-direction: column;
    align-items: center;
  }

  .ocr-card-photo {
    width: 72px;
    height: 90px;
  }

  /* Simulator */
  .showcase-card {
    padding: 24px 16px;
  }

  .showcase-info h2 {
    font-size: 1.6rem;
  }

  .scanner-sim-box {
    padding: 16px 12px;
  }

  .sim-field-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Pricing */
  .pricing-card {
    padding: 34px 20px 28px;
    position: relative;
  }

  .pricing-card.featured-card {
    overflow: visible !important;
    margin-top: 16px;
  }

  .featured-badge {
    top: -13px;
    font-size: 0.72rem;
    padding: 5px 16px;
    letter-spacing: 1.2px;
    white-space: nowrap;
    z-index: 10;
  }

  .plan-price {
    font-size: 2.35rem;
  }

  /* FAQ Split Layout */
  .faq-split {
    flex-direction: column;
  }

  .faq-split-image {
    flex: none;
    height: 260px;
  }

  .faq-split-content {
    padding: 48px 24px;
  }

  .faq-title {
    font-size: 1.75rem;
  }

  .faq-question-btn {
    padding: 16px 16px;
    font-size: 0.92rem;
  }

  .faq-answer {
    padding: 0 16px;
    font-size: 0.88rem;
  }

  /* CTA Banner */
  .cta-banner-content {
    padding: 48px 16px;
  }

  .cta-banner-content h2 {
    font-size: 1.7rem;
    line-height: 1.25;
  }

  .cta-banner-content p {
    font-size: 0.95rem;
  }

  .cta-banner-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .cta-banner-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Modal */
  .modal-overlay {
    padding: 12px;
  }

  .modal-card {
    padding: 24px 18px;
    max-width: 100%;
    border-radius: var(--radius-lg);
  }

  .form-row {
    flex-direction: column;
    gap: 14px;
  }

  .hero-floating-badge {
    bottom: 10px;
    left: 10px;
    padding: 6px 12px;
    font-size: 0.74rem;
  }

  .hero-floating-badge .badge-icon {
    width: 20px;
    height: 20px;
  }

  .hero-bell-badge {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 0.74rem;
  }

  .hero-bell-badge .bell-icon {
    width: 20px;
    height: 20px;
  }
}

/* --------------------------------------------------------------------------
   4. Extra Small Phones (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --nav-height: 64px;
  }

  .logo-name {
    font-size: 1.22rem;
  }

  .logo-img {
    height: 34px;
  }

  .footer-logo-img {
    height: 38px;
  }

  .logo-avatar {
    width: 34px;
    height: 34px;
  }

  .section-badge {
    font-size: 0.74rem;
    padding: 5px 12px;
    letter-spacing: 1px;
  }

  .hero-heading {
    font-size: 1.48rem;
    line-height: 1.26;
  }

  .hero-subheading {
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .hero-stats-row {
    gap: 6px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .stat-text strong {
    font-size: 0.78rem;
  }

  .stat-text span {
    font-size: 0.68rem;
  }

  .step-card {
    padding: 26px 16px;
  }

  .step-number {
    font-size: 1.8rem;
  }

  .feature-item {
    padding: 24px 16px;
  }

  .pricing-card.featured-card {
    margin-top: 18px;
  }

  .featured-badge {
    top: -12px;
    font-size: 0.68rem;
    padding: 4px 14px;
    letter-spacing: 1px;
  }

  .feature-icon-wrapper {
    width: 48px;
    height: 48px;
  }

  .footer-nav .footer-links {
    flex-direction: column;
    gap: 14px;
  }

  .hero-bell-badge {
    display: none;
  }

  .hv-guest-card,
  .hv-pms-pill,
  .hv-scan-card {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   5. Compact & Narrow Phones (max-width: 440px)
   -------------------------------------------------------------------------- */
@media (max-width: 440px) {
  .logo-name {
    font-size: 1.15rem;
  }

  .hero-heading {
    font-size: 1.38rem;
  }

  /* Centered, balanced trust cards on compact mobile screens */
  .hero-stats-row {
    grid-template-columns: 1fr;
    max-width: 290px;
    margin: 18px auto 0;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(22, 47, 81, 0.1);
  }

  .stat-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 14px;
    gap: 12px;
    text-align: left;
    background: rgba(247, 143, 31, 0.06);
    border: 1px solid rgba(247, 143, 31, 0.15);
    border-radius: 12px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 0.92rem;
    margin: 0;
    flex-shrink: 0;
  }

  .stat-text {
    font-size: 0.74rem;
    line-height: 1.3;
    text-align: left;
  }

  .stat-text strong {
    font-size: 0.82rem;
    color: var(--color-brand-dark);
    display: block;
    line-height: 1.2;
  }
}

/* --------------------------------------------------------------------------
   6. Fullscreen Video Hero & 3D Studio Responsiveness (max-width: 600px)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .fullscreen-hero-section {
    min-height: 480px;
  }

  .fsh-audio-toggle {
    bottom: 14px;
    right: 14px;
    padding: 6px 12px;
    font-size: 0.74rem;
  }

  .fsh-scroll-indicator {
    bottom: 12px;
    width: 38px;
    height: 38px;
  }

  /* 3D Studio Responsiveness */
  .h3d-floating-badge {
    display: none;
  }

  .h3d-studio-card {
    padding: 12px 10px;
    border-radius: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .h3d-tabs-nav {
    display: flex;
    gap: 4px;
    padding: 3px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .h3d-tab-btn {
    padding: 6px 6px;
    font-size: 0.7rem;
    gap: 4px;
    white-space: nowrap;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }

  .h3d-tab-btn span {
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .h3d-view-panel {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
  }

  /* ── View 1: 3D Holographic Scanner Stage Mobile Tuning ── */
  .h3d-card-3d {
    padding: 12px 10px;
    transform: scale(0.96);
    transform-origin: center top;
  }

  .h3d-doc-body {
    gap: 10px;
  }

  .h3d-photo-frame {
    width: 64px;
    height: 80px;
  }

  .h3d-guest-name {
    font-size: 0.85rem;
  }

  .h3d-field-row span {
    font-size: 0.72rem;
  }

  .h3d-footer-action {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .h3d-status-text {
    justify-content: center;
    font-size: 0.7rem;
  }

  .h3d-scan-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .h3d-room-keycard {
    padding: 12px;
  }

  .h3d-keycard-room {
    font-size: 1.5rem;
  }

  .h3d-keycard-full {
    padding: 10px;
  }

  .h3d-keycard-room-num {
    font-size: 1.35rem;
  }

  /* ── View 2: Live Feed Dashboard Mobile Zero-Overflow Optimization ── */
  .hvd-wrap {
    height: 100%;
    gap: 6px;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .hvd-header {
    padding-bottom: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .hvd-live-label {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .hvd-header-right {
    flex-shrink: 0;
  }

  .hvd-today-label {
    font-size: 0.52rem;
  }

  .hvd-date {
    font-size: 0.62rem;
  }

  .hvd-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
  }

  .hvd-stat-box {
    padding: 6px 4px;
    border-radius: 8px;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    align-items: center;
  }

  .hvd-stat-num {
    font-size: 1.15rem;
    line-height: 1;
  }

  .hvd-stat-num small {
    font-size: 0.82rem;
  }

  .hvd-stat-name {
    font-size: 0.54rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .hvd-stat-trend {
    font-size: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .hvd-feed {
    gap: 4px;
    flex: 1;
    min-height: 0;
  }

  .hvd-feed-title {
    font-size: 0.58rem;
  }

  .hvd-feed-list {
    gap: 4px;
  }

  .hvd-feed-item {
    padding: 5px 8px;
    gap: 6px;
    border-radius: 7px;
  }

  .hvd-item-body strong {
    font-size: 0.68rem;
  }

  .hvd-item-body span {
    font-size: 0.56rem;
  }

  .hvd-badge {
    font-size: 0.52rem;
    padding: 1px 5px;
  }

  .hvd-time {
    font-size: 0.52rem;
  }

  /* PMS Bar: 2x2 Grid on Mobile to Prevent Horizontal/Vertical Overflow */
  .hvd-pms-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 8px;
    padding: 6px 8px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
  }

  .hvd-pms-divider {
    display: none;
  }

  .hvd-pms-item {
    font-size: 0.6rem;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
  }

  .hvd-pms-item svg {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 600px) {
  .footer-trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-col-brand,
  .footer-col-cta {
    grid-column: span 1;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 8px;
  }
}
