/* ==============================================
   MOBILE ENHANCEMENTS (PURE CSS)
   Focus: mobile-safe hero, trust badges, and form usability
   ============================================== */

:root {
  --header-h: 80px;
  --safe-vh: 1vh;
}

* {
  -webkit-tap-highlight-color: rgba(11, 58, 93, 0.1) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation !important;
}

button,
.btn,
a.btn,
input[type="submit"],
.step-indicator {
  min-height: 44px !important;
  min-width: 44px !important;
}

@media (max-width: 768px) {
  input,
  select,
  textarea,
  .form-input {
    font-size: 16px !important;
  }

  html,
  body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 1rem !important;
    margin: 0 auto !important;
  }

  .section {
    padding: 2rem 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.25 !important;
  }

  p,
  span,
  li {
    line-height: 1.6 !important;
  }

  .header {
    z-index: 1000 !important;
  }

  .nav-wrapper {
    padding: 0.7rem 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
  }

  .logo img {
    height: 42px !important;
    width: auto !important;
  }

  .menu-toggle {
    margin-left: auto !important;
  }

  .nav-menu {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: calc((var(--safe-vh) * 100) - var(--header-h)) !important;
    width: min(86vw, 320px) !important;
    padding: 5.25rem 1rem 1.25rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border-left: 1px solid rgba(11, 58, 102, 0.08) !important;
  }

  @supports (height: 1svh) {
    .nav-menu {
      max-height: calc(100svh - var(--header-h)) !important;
    }
  }

  /* ===== HERO SECTION (MOBILE-SAFE) ===== */
  .hero {
    position: relative !important;
    display: block !important;
    min-height: clamp(520px, calc(var(--safe-vh) * 75), 740px) !important;
    padding-top: var(--header-h) !important;
    padding-bottom: 0 !important;
  }

  @supports (height: 1svh) {
    .hero {
      min-height: clamp(520px, 75svh, 740px) !important;
    }
  }

  @supports (height: 1dvh) {
    .hero {
      min-height: clamp(520px, 75dvh, 740px) !important;
    }
  }

  .hero-slides {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-height: inherit !important;
  }

  .hero-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
  }

  .hero-slide-bg {
    background-size: cover !important;
    background-position: 50% 25% !important;
    background-repeat: no-repeat !important;
  }

  .hero-slide-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)) !important;
  }

  .hero-slide-content {
    position: relative !important;
    z-index: 3 !important;
    min-height: clamp(420px, calc(var(--safe-vh) * 60), 620px) !important;
    padding: 1.25rem 1rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.9rem !important;
    width: 100% !important;
  }

  @supports (height: 1svh) {
    .hero-slide-content {
      min-height: clamp(420px, 60svh, 620px) !important;
    }
  }

  @supports (height: 1dvh) {
    .hero-slide-content {
      min-height: clamp(420px, 60dvh, 620px) !important;
    }
  }

  .hero-badge {
    font-size: 0.75rem !important;
    padding: 0.4rem 1rem !important;
    margin-bottom: 0 !important;
  }

  .hero-title {
    font-size: clamp(28px, 7vw, 44px) !important;
    line-height: 1.1 !important;
    margin-bottom: 0.25rem !important;
    max-width: 12ch !important;
    text-wrap: balance !important;
  }

  .hero-description {
    font-size: clamp(14px, 3.8vw, 16px) !important;
    line-height: 1.55 !important;
    margin-bottom: 0.25rem !important;
    max-width: 34ch !important;
    opacity: 0.95 !important;
  }

  .hero-buttons {
    width: 100% !important;
    max-width: 380px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-top: 0.75rem !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0.9375rem 1.5rem !important;
    font-size: 1rem !important;
    justify-content: center !important;
    font-weight: 600 !important;
  }

  .hero-buttons .btn-primary {
    background: white !important;
    color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }

  .hero-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
  }

  .hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(8px) !important;
  }

  .hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px) !important;
  }

  .hero-arrow {
    display: none !important;
  }

  .hero-arrow-prev {
    display: none !important;
  }

  .hero-arrow-next {
    display: none !important;
  }

  .hero-dots {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 16px !important;
    gap: 6px !important;
    z-index: 10 !important;
    display: flex !important;
  }

  .hero-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    padding: 0 !important;
    min-height: auto !important;
    min-width: auto !important;
  }

  .hero-dot:hover {
    background: rgba(255, 255, 255, 0.65) !important;
  }

  .hero-dot.is-active {
    width: 18px !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
  }

  /* ===== TRUST BADGES (BELOW HERO) ===== */
  .hero-trust-bar {
    position: relative !important;
    background: linear-gradient(135deg, rgba(11, 58, 102, 0.95) 0%, rgba(10, 47, 82, 0.9) 100%) !important;
    padding: 1.5rem 1rem !important;
    z-index: 4 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .hero-trust {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    align-items: center !important;
    max-width: 600px !important;
    margin: 0 auto !important;
  }

  .trust-item {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    border-radius: 12px !important;
    min-height: 52px !important;
    padding: 0.75rem 0.875rem !important;
    gap: 0.55rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .trust-item span {
    font-size: 0.8125rem !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
  }

  .trust-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    stroke: rgba(255, 255, 255, 0.9) !important;
  }

  .hero-trust .trust-item:nth-child(3) {
    grid-column: 1 / -1 !important;
  }

  /* ===== BUTTONS ===== */
  .btn,
  button,
  input[type="submit"],
  input[type="button"] {
    padding: 0.875rem 1.2rem !important;
    font-size: 1rem !important;
    min-height: 48px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* ===== MOBILE NAV LINKS ===== */
  .nav-menu .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0.3rem 0 !important;
    padding: 0.8rem 0.95rem !important;
    border-radius: 10px !important;
    border: 1px solid rgba(11, 58, 102, 0.12) !important;
    background: #ffffff !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
  }

  .nav-menu .nav-link.active {
    background: rgba(11, 58, 102, 0.09) !important;
    border-color: rgba(11, 58, 102, 0.28) !important;
  }

  .nav-menu .nav-link.active::after {
    display: none !important;
  }

  .nav-menu .btn.btn-primary {
    width: 100% !important;
    margin-top: 0.5rem !important;
    border-radius: 10px !important;
  }

  /* ===== SERVICES CAROUSEL DOT FIX (MOBILE) ===== */
  .services-carousel__indicators {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 0.9rem !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 15 !important;
  }

  .services-carousel__dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    display: block !important;
    background: #cbd5e1 !important;
    flex: 0 0 auto !important;
  }

  .services-carousel__dot.active {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    border-radius: 50% !important;
    background: var(--primary) !important;
  }

  .hero-dot.is-active {
    width: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    border-radius: 50% !important;
  }

  .btn-submit,
  .btn-prev,
  .btn-next,
  .form-actions button {
    width: 100% !important;
  }

  /* ===== FORMS ===== */
  .form-wrapper {
    max-width: 100% !important;
    padding: 1.5rem 1rem !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .form-steps {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-bottom: 1.5rem !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
  }

  .step-indicator {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.25rem !important;
    flex: 1 !important;
    min-width: 50px !important;
  }

  .step-number {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .step-label {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  .form-step {
    padding: 0 !important;
    width: 100% !important;
  }

  .form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .form-group.full-width {
    grid-column: 1 / -1 !important;
  }

  .form-input,
  input,
  select,
  textarea,
  .form-select,
  .form-textarea {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    font-size: 16px !important;
    min-height: 48px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  textarea,
  .form-textarea {
    min-height: 120px !important;
  }

  .form-actions {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
  }

  /* ===== LAYOUT BLOCKS ===== */
  .services-grid,
  .services-swiper,
  .about-grid,
  .contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .about-image {
    order: -1 !important;
  }

  .service-card,
  .sp-card,
  .swiper-slide {
    width: 100% !important;
    max-width: unset !important;
    min-width: unset !important;
  }

  .trust-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }

  .faq-item {
    padding: 1rem !important;
  }

  .faq-question {
    font-size: 1rem !important;
    padding: 1rem !important;
  }

  .contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .contact-icon {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
  }

  /* ===== FOOTER ===== */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-grid > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .footer-logo {
    height: 38px !important;
    width: auto !important;
  }

  .footer-links,
  .footer-contact {
    gap: 0.7rem !important;
    margin: 0 !important;
  }

  .footer-links a,
  .footer-contact a {
    font-size: 0.93rem !important;
  }

  .footer-contact svg {
    width: 16px !important;
    height: 16px !important;
  }

  .whatsapp-float {
    width: 56px !important;
    height: 56px !important;
    bottom: 1.25rem !important;
    right: 1rem !important;
  }

  .whatsapp-float svg {
    width: 28px !important;
    height: 28px !important;
  }

  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem !important;
  }

  .section {
    padding: 1.5rem 0 !important;
  }

  .logo img {
    height: 36px !important;
  }

  .hero {
    min-height: clamp(520px, calc(var(--safe-vh) * 80), 700px) !important;
  }

  @supports (height: 1svh) {
    .hero {
      min-height: clamp(520px, 80svh, 700px) !important;
    }
  }

  .hero-slide-content {
    min-height: clamp(400px, calc(var(--safe-vh) * 58), 580px) !important;
    padding: 1rem 0.9rem 1.25rem !important;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 36px) !important;
  }

  .hero-description {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .hero-dots {
    bottom: 16px !important;
  }

  .hero-trust {
    grid-template-columns: 1fr !important;
  }

  .hero-trust .trust-item:last-child {
    grid-column: auto !important;
  }

  .footer-logo {
    height: 32px !important;
  }

  .btn {
    padding: 0.75rem 1rem !important;
    font-size: 0.9375rem !important;
  }

  .form-wrapper {
    padding: 1.25rem 0.875rem !important;
  }

  .form-input,
  input,
  select,
  textarea {
    padding: 0.75rem 0.875rem !important;
  }

  .trust-stats {
    grid-template-columns: 1fr !important;
  }

  .whatsapp-float {
    width: 52px !important;
    height: 52px !important;
    bottom: 1rem !important;
    right: 0.75rem !important;
  }
}

@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
  .section {
    padding: 1rem 0 !important;
  }

  .logo img {
    height: 34px !important;
  }

  .hero {
    min-height: clamp(430px, calc(var(--safe-vh) * 82), 560px) !important;
  }

  @supports (height: 1svh) {
    .hero {
      min-height: clamp(430px, 82svh, 560px) !important;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@supports (padding: env(safe-area-inset-left)) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left)) !important;
    padding-right: max(1rem, env(safe-area-inset-right)) !important;
  }

  .whatsapp-float {
    bottom: max(1rem, env(safe-area-inset-bottom)) !important;
    right: max(1rem, env(safe-area-inset-right)) !important;
  }
}
