/* Initiatives — mobile + desktop responsive polish */

/* Desktop defaults */
.site-main {
  overflow-x: clip;
}

.navbar .img_logo {
  max-width: 180px;
  height: auto;
}

.navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.65rem;
}

.navbar-toggler:focus-visible,
.navbar-search-form button:focus-visible,
.btn-demo:focus-visible,
.btn-outline:focus-visible {
  outline: 2px solid #9fe3ff;
  outline-offset: 2px;
}

/* Tablet + mobile navigation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0.5rem;
  }

  .navbar-search-form {
    width: 100%;
    max-width: none;
    margin-top: 0.75rem;
  }

  .navbar-brand {
    max-width: calc(100% - 56px);
  }

  .navbar .img_logo {
    max-width: 150px;
  }
}

/* Mobile homepage */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 56px 0 48px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.3rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .features-inline {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .features-inline span {
    margin: 0;
    justify-content: center;
  }

  .hero-section .mt-5 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .hero-section .btn-demo,
  .hero-section .btn-outline {
    display: block;
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .app-preview {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .dashboard-img {
    object-fit: cover;
  }

  .stats-box {
    min-width: 96px;
    padding: 6px 10px;
  }

  .stats-box strong {
    font-size: 13px;
  }

  .stats-box p {
    font-size: 0.75rem;
  }

  .top-right {
    top: 0;
    right: 0;
  }

  .bottom-left {
    bottom: 0;
    left: 0;
  }

  .cta-section .d-flex.flex-column.flex-md-row {
    align-items: stretch;
  }

  .cta-section .btn-primary-custom,
  .cta-section .btn-secondary-outline {
    width: 100%;
  }

  .footer-input {
    max-width: 100% !important;
    width: 100%;
  }

  .footer-menu {
    justify-content: flex-start;
  }

  .blog-hero-title,
  .blog-hero-title--single {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .search-hero-form,
  .error-404-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-hero-form button,
  .error-404-btn {
    justify-content: center;
  }
}

/* Small phones */
@media (max-width: 375px) {
  .navbar .img_logo {
    max-width: 130px;
  }

  .floating-label {
    display: none;
  }
}

/* Desktop enhancements */
@media (min-width: 992px) {
  .navbar-search-form {
    flex: 0 0 auto;
  }

  .navbar-nav {
    gap: 0.25rem;
  }

  .hero-section .container,
  .feature-section .container,
  .benefits-section .container,
  .cta-section .container {
    max-width: 1140px;
  }

  .footer-menu {
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }

  .dashboard-img {
    height: 380px;
  }
}
