/**
 * VEYORA STUDIO - Responsive Stylesheet
 * Mobile navigation drawer, responsive breakpoints, mobile bottom bar, and touch optimization.
 */

/* Mobile Nav Toggle & Drawer (Hidden on desktop) */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-primary);
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(11, 19, 43, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.is-active {
  display: block;
  opacity: 1;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: #FFFFFF;
  z-index: 2001;
  padding: 24px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.is-active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.mobile-nav-link:hover {
  color: var(--color-secondary);
}

.mobile-sub-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding-left: 14px;
  margin-top: 8px;
  border-left: 2px solid var(--color-border);
}

.mobile-nav-item.is-open .mobile-sub-menu {
  display: flex;
}

.mobile-sub-link {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* Mobile Fixed Bottom CTA Bar */
.mobile-bottom-bar {
  display: none; /* hidden by default on desktop */
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    gap: 10px;
  }

  .mobile-bottom-bar .btn {
    flex: 1;
    padding: 11px 14px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  body {
    padding-bottom: 74px; /* offset for bottom bar */
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-headline {
    font-size: 2.75rem;
  }

  .section-title {
    font-size: 2.1rem;
  }

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

  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .header-actions .btn-fiverr {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .hero-section {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-subtext {
    font-size: 1.05rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-title {
    font-size: 2.1rem;
  }

  .cta-banner-section {
    padding: 40px 24px;
  }

  .cta-banner-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 600px) {
  .brand-logo {
    gap: 8px;
  }
  .brand-logo img {
    height: 40px;
    width: 40px;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-tagline {
    font-size: 0.54rem;
    letter-spacing: 0.12em;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero-headline {
    font-size: 1.95rem;
  }

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

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-trust-bar {
    gap: 16px;
    justify-content: flex-start;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}

/* Adsterra Container Safeguards */
.veyora-ad-slot {
  max-width: 100%;
  overflow-x: hidden;
}

.veyora-ad-slot iframe {
  max-width: 100% !important;
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
