/* =====================================================
   VANBA Responsive System v1.0
   Covers: Mobile (≤480px), Tablet (481-1024px), Desktop (1025px+)
   Includes: CSS-only hamburger menu for all pages
   ===================================================== */

/* =============================================
   HAMBURGER MENU (CSS-Only, works everywhere)
   ============================================= */

/* Hide the checkbox */
#nav-toggle {
  display: none;
}

/* Hamburger icon - hidden on desktop */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  z-index: 1100;
  position: relative;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* =============================================
   MOBILE & TABLET: Show hamburger, hide nav
   ============================================= */
@media (max-width: 1024px) {

  /* Show hamburger button */
  .hamburger {
    display: flex;
  }

  /* Hide nav links by default on mobile/tablet */
  .nav-links {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 2rem !important;
    z-index: 1050;
    padding: 80px 20px 40px;
  }

  /* Show nav links when checkbox is checked */
  #nav-toggle:checked ~ .nav-links,
  #nav-toggle:checked + .hamburger + .nav-links,
  #nav-toggle:checked + label + .nav-links {
    display: flex !important;
  }

  /* Animate hamburger to X */
  #nav-toggle:checked ~ .hamburger span:nth-child(1),
  #nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  #nav-toggle:checked ~ .hamburger span:nth-child(2),
  #nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  #nav-toggle:checked ~ .hamburger span:nth-child(3),
  #nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Make hamburger spans white for visibility */
  .hamburger span {
    background: currentColor;
  }

  /* Nav links styling in mobile menu */
  .nav-links li {
    list-style: none;
  }

  .nav-links a, .nav-links li a {
    font-size: 1.2rem !important;
    color: #fff !important;
    padding: 12px 30px !important;
    display: block;
    text-align: center;
    border-radius: 12px;
    transition: background 0.3s;
  }

  .nav-links a:hover, .nav-links li a:hover {
    background: rgba(99, 102, 241, 0.2);
  }

  /* For light-themed pages (contact, features) */
  body .navbar .nav-links a,
  body .navbar .nav-links li a {
    color: #fff !important;
  }
}

/* =============================================
   MOBILE-FIRST: ≤ 480px (Small phones)
   ============================================= */
@media (max-width: 480px) {

  /* Navbar */
  .navbar {
    padding: 0 4% !important;
    height: 65px !important;
  }

  .company-name {
    font-size: 1.2rem !important;
  }

  .logo {
    height: 32px !important;
    width: auto !important;
  }

  /* Hero sections */
  .hero, .about-hero, .services-hero, .help-hero, .policy-hero {
    height: auto !important;
    min-height: 40vh !important;
    padding: 80px 5% 40px !important;
  }

  .hero h1, .about-hero h1, .services-hero h1, .help-hero h1, .policy-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
  }

  .hero h2, .hero-subtitle, .hero p {
    font-size: 0.95rem !important;
  }

  .hero-tag {
    font-size: 0.7rem !important;
    letter-spacing: 2px !important;
  }

  /* Content sections */
  .section-container {
    padding: 3rem 5% !important;
  }

  /* All grids → single column */
  .cards-section,
  .services-grid,
  .app-grid,
  .values-grid,
  .team-grid,
  .founders-grid,
  .help-categories,
  .feature-cards {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
  }

  /* Content grid (about page) */
  .content-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    margin-bottom: 3rem !important;
  }

  .content-grid.reverse {
    direction: ltr !important;
  }

  /* Cards */
  .info-card, .value-card, .service-card, .member-card, .founder-card, .category-card, .app-card {
    padding: 25px !important;
    border-radius: 16px !important;
  }

  .service-card h3 {
    font-size: 1.3rem !important;
  }

  /* Text */
  .text-box h2 {
    font-size: 1.8rem !important;
  }

  .text-box p {
    font-size: 1rem !important;
  }

  /* Founders/Team */
  .member-img, .founder-img {
    width: 100px !important;
    height: 100px !important;
  }

  /* Footer */
  .footer {
    padding: 3rem 5% 2rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  /* Policy pages */
  .policy-content {
    padding: 2rem 4% !important;
  }

  .policy-section {
    padding: 1.5rem !important;
    border-radius: 16px !important;
  }

  .policy-section h2 {
    font-size: 1.3rem !important;
    flex-wrap: wrap;
  }

  /* Help page */
  .search-box {
    padding: 0 4% !important;
  }

  .search-input {
    font-size: 0.95rem !important;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem !important;
  }

  .section-heading {
    font-size: 1.4rem !important;
  }

  /* Contact support */
  .contact-support {
    padding: 2.5rem 1.5rem !important;
    border-radius: 20px !important;
  }

  .contact-support h2 {
    font-size: 1.8rem !important;
  }

  /* CTA section (services) */
  .cta-box {
    padding: 3rem 1.5rem !important;
    border-radius: 24px !important;
  }

  .cta-box h2 {
    font-size: 1.8rem !important;
  }

  .btn-gold {
    padding: 14px 28px !important;
    font-size: 0.95rem !important;
  }

  /* Contact page */
  .contact-section {
    padding: 0 4% !important;
    margin: 30px auto !important;
    gap: 20px !important;
  }

  .contact-form, .contact-info {
    padding: 25px !important;
    min-width: 100% !important;
  }

  .contact-form h2, .contact-info h2 {
    font-size: 1.5rem !important;
  }

  /* Download page */
  .download-header {
    padding: 90px 0 30px !important;
  }

  .download-header h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
  }

  /* Details overlay */
  .details-content {
    padding: 25px !important;
    border-radius: 20px !important;
  }

  /* Scroll to top */
  .scroll-top {
    width: 42px !important;
    height: 42px !important;
    bottom: 20px !important;
    right: 20px !important;
  }

  /* FAQ */
  .faq-question {
    font-size: 0.9rem !important;
  }

  .faq-answer {
    font-size: 0.85rem !important;
  }

  /* Features page (premium CSS) */
  .features-section {
    padding: 2rem 5% !important;
  }

  .feature-card {
    padding: 1.5rem !important;
  }

  .roadmap-section {
    padding: 2rem 5% !important;
  }
}

/* =============================================
   TABLET: 481px – 768px
   ============================================= */
@media (min-width: 481px) and (max-width: 768px) {

  /* Navbar */
  .navbar {
    padding: 0 5% !important;
  }

  /* Hero */
  .hero, .about-hero, .services-hero, .help-hero, .policy-hero {
    height: auto !important;
    min-height: 45vh !important;
    padding: 100px 6% 50px !important;
  }

  /* Grids → 2 columns */
  .cards-section,
  .values-grid,
  .team-grid,
  .founders-grid,
  .help-categories {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  /* Services grid → single column (cards are wide) */
  .services-grid {
    grid-template-columns: 1fr !important;
    padding: 4rem 5% !important;
  }

  /* App grid → 2 columns */
  .app-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Content grid (about page) */
  .content-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .content-grid.reverse {
    direction: ltr !important;
  }

  /* Footer → 2 columns */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
  }

  /* Contact section */
  .contact-section {
    flex-direction: column !important;
    padding: 0 5% !important;
  }

  .contact-form, .contact-info {
    min-width: 100% !important;
    width: 100% !important;
  }
}

/* =============================================
   LARGE TABLET: 769px – 1024px
   ============================================= */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Grids → 2 columns */
  .cards-section,
  .values-grid,
  .help-categories {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 5rem 5% !important;
  }

  .team-grid, .founders-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Content grid */
  .content-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }

  /* Footer → 2 columns */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* =============================================
   DESKTOP: 1025px+ (nav-links shown, hamburger hidden)
   ============================================= */
@media (min-width: 1025px) {
  .hamburger {
    display: none !important;
  }

  #nav-toggle {
    display: none !important;
  }
}

/* =============================================
   EXTRA LARGE: 1440px+ (max-width containers)
   ============================================= */
@media (min-width: 1440px) {
  .section-container, .help-content, .policy-content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =============================================
   UNIVERSAL FIXES
   ============================================= */

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Make all images responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent text overflow */
h1, h2, h3, h4, p, li, span, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Touch-friendly tap targets */
@media (max-width: 1024px) {
  a, button, .btn, .btn-contact, .btn-gold, .btn-dl, .btn-read {
    min-height: 44px;
    min-width: 44px;
  }
}
