/* Aurum Overseas - Comprehensive Responsive Enhancements v2.0 */
/* Covers 320px to desktop, all sections */

/* Append to end of custom.css or link in HTML head */

/* 1. Global Images & Box-sizing */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent iOS zoom on input focus */
input, select, textarea {
  font-size: 16px;
}


/* Product grid responsive (already good, enhance) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 3. Hero Slider (Step 3) - Enhanced */
@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
  }
  
  .slide-title {
    font-size: clamp(28px, 9vw, 42px) !important;
    line-height: 1.1;
  }
  
  .slide-body {
    font-size: 14px;
    max-width: 90%;
  }
  
  .btn-primary-gold, .btn-outline-gold {
    padding: 12px 24px;
    font-size: 13px;
    min-width: 140px;
  }
}

@media (max-width: 320px) {
  .slide-title {
    font-size: clamp(24px, 8vw, 36px) !important;
  }
  
  .slide-content {
    padding: 0 4vw !important;
  }
  
  /* Touch hint */
  .hero::after {
    content: "👆 Swipe or Tap Arrows";
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0.8;
    animation: fadeInOut 3s infinite;
  }
  
  @keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.8; }
  }
}


/* White box already has media query, enhance */
@media (max-width: 767px) {
  .white-box {
    width: 100% !important;
    padding: 15px !important;
  }
}

/* Benefit sections flex */
.benefit .container {
  flex-wrap: wrap !important;
}

@media (max-width: 768px) {
  .benefit .container {
    flex-direction: column !important;
  }
  
  .premium-card {
    margin-top: 20px !important;
    order: 2;
  }
  
  .content {
    order: 1;
  }
}

/* Circle images responsive */
.circle-images {
  justify-content: center !important;
}

@media (max-width: 768px) {
  .circle-images img {
    width: 80px !important;
    height: 80px !important;
  }
}

/* Tables responsive wrapper */
.table-responsive {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* 2. Navbar Mobile (Step 2) */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255,255,255,0.98);
    padding: 20px 15px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 12px 0;
    font-size: 1.05rem;
  }
  
  /* Hamburger animation */
  .navbar-toggler:focus {
    outline: none;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23677a8a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
}

/* Tiny screens navbar */
@media (max-width: 360px) {
  .navbar-brand img {
    max-height: 35px;
  }
}


/* 5. Buttons & Global (Step 5) */
.btn {
  padding: 12px 28px;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 576px) {
  .btn {
    padding: 14px 24px;
    font-size: 15px;
    width: 100%;
    margin-bottom: 12px;
  }
  
  /* Tiny screens */
  @media (max-width: 360px) {
    .btn {
      padding: 12px 20px;
      font-size: 14px;
    }
  }
}


/* Clients section */
.img-clients img {
  width: 100% !important;
  height: auto !important;
}

/* 4. Footer (Step 4) */
@media (max-width: 768px) {
  .main-footer .col-sm-2, .main-footer .col-sm-4 {
    text-align: center !important;
    margin-bottom: 24px;
  }
  
  .main-footer h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }
  
  .main-footer ul li {
    padding: 6px 0;
  }
  
  .main-footer .lead {
    font-size: 0.95rem;
  }
}

/* Product Grid Enhancement (already good) */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}


/* General mobile fixes */
@media (max-width: 576px) {
  .container,
  .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  h1, h2, h3 {
    font-size: 1.4rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
}

/* Ensure no fixed widths overflow */
* {
  box-sizing: border-box;
}

/* Print styles */
@media print {
  .no-print { display: none !important; }
}
