/*
 * Al Hafiz Online Quran Academy - Responsive Stylesheet
 * Ensures perfect scaling on all devices (mobile-first layout updates)
 */

@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.25rem;
  }
  .section-title {
    font-size: 2.35rem;
  }
}

@media (max-width: 991px) {
  .navbar {
    background: var(--primary-blue-dark) !important;
    padding: 15px 0;
  }
  
  .navbar-brand img {
    height: 48px;
  }
  
  .navbar-brand span {
    color: var(--white) !important;
  }
  
  .navbar-toggler {
    border-color: rgba(197, 160, 89, 0.4) !important;
    padding: 8px 10px;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c5a059' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }
  
  .navbar-collapse {
    background: var(--primary-blue-dark);
    padding: 20px;
    border-radius: var(--border-radius-md);
    margin-top: 15px;
    border: 1px solid rgba(197, 160, 89, 0.15);
  }
  
  .nav-link {
    color: var(--white) !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-link:hover, .nav-link.active {
    background: rgba(197, 160, 89, 0.1);
    border-radius: var(--border-radius-sm);
  }
  
  .nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-container::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }
  
  .left::after, .right::after {
    left: 21px;
  }
  
  .right {
    left: 0%;
  }
  
  .process-step::after {
    display: none;
  }
  
  .process-step {
    margin-bottom: 40px;
  }
  
  .section-padding {
    padding: 70px 0;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-desc {
    font-size: 1.05rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .pricing-card.popular {
    transform: scale(1);
    margin: 20px 0;
  }
  
  .map-container {
    height: 350px;
  }
  
  .whatsapp-float {
    bottom: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .back-to-top {
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .luxury-form {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }
  
  .navbar-brand span {
    font-size: 1rem;
  }
  
  .brand-sub {
    font-size: 0.7rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .stat-num {
    font-size: 2.8rem;
  }
}
