@import url('variables.css');

/* Media Queries for Premium Responsive Layouts */

/* Extra Large Screens */
@media (min-width: 1200px) {
  .container-premium {
    padding: 0 15px;
  }
}

/* Large Devices (Desktops, 992px to 1199px) */
@media (max-width: 1199px) {
  :root {
    --font-size-hero-title: 3rem;
    --font-size-section-title: 2rem;
  }

  .hero-content {
    padding-right: 20px;
  }

  .hero-image-container {
    width: 320px;
    height: 320px;
  }

  .floating-card-1 {
    left: -20px;
  }

  .floating-card-2 {
    right: -20px;
  }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (max-width: 991px) {
  :root {
    --font-size-hero-title: 2.5rem;
    --font-size-section-title: 1.75rem;
    --font-size-hero-subtitle: 1.15rem;
  }

  section {
    padding: 60px 0;
  }

  /* Sticky Navigation drawer on mobile */
  .mobile-nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 40px 30px;
    gap: 20px;
    transition: var(--transition-bounce);
    z-index: 1050;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link-custom {
    color: var(--gray-dark) !important;
    font-size: 1rem;
    width: 100%;
    justify-content: space-between;
  }

  .nav-link-custom::after {
    display: none;
  }

  .main-header:not(.scrolled) .nav-link-custom {
    color: var(--gray-dark) !important;
  }

  /* Loans dropdown adjustment on mobile */
  .loans-dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 2px solid var(--primary);
    padding: 5px 0 5px 15px;
    opacity: 1;
    visibility: visible;
    display: none;
    /* Toggle via JS on mobile */
    transform: none;
    transition: none;
    background-color: transparent;
    min-width: auto;
  }

  .nav-item-has-dropdown:hover .loans-dropdown {
    transform: none;
  }

  .mega-menu-inner {
    padding: 0;
  }

  .mega-column-title {
    font-size: var(--font-size-xs);
    margin-bottom: 12px;
    margin-top: 12px;
  }

  .header-actions {
    margin-right: 15px;
  }

  /* Hero Banner Columns */
  .hero-section {
    padding-top: 40px;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 50px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-media-wrapper {
    height: 420px;
  }

  .hero-image-container {
    width: 300px;
    height: 300px;
  }

  /* Timeline (How it works) responsive connectors */
  .timeline-connector {
    display: none !important;
  }

  .timeline-step {
    margin-bottom: 30px;
  }

  /* Eligibility Column Ordering */
  .eligibility-container {
    padding: 30px;
  }

  .eligibility-image-col {
    margin-bottom: 30px;
  }
}

/* Small Devices (Landscape Phones, 576px to 767px) */
@media (max-width: 767px) {
  :root {
    --font-size-hero-title: 2.25rem;
    --font-size-section-title: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .floating-card-3 {
    display: none;
  }

  .newsletter-wrapper {
    padding: 30px 20px;
  }

  .newsletter-form-container {
    flex-direction: column;
    border-radius: var(--radius-md);
    background-color: transparent;
    box-shadow: none;
    gap: 12px;
    padding: 0;
  }

  .newsletter-input {
    width: 100%;
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 20px;
  }

  .newsletter-btn {
    width: 100%;
    padding: 14px;
    justify-content: center;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 15px;
  }

  .copyright-text {
    text-align: center;
  }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575px) {
  :root {
    --font-size-hero-title: 1.85rem;
    --font-size-hero-subtitle: 1rem;
  }

  section {
    padding: 50px 0;
  }

  .hero-media-wrapper {
    height: 350px;
  }

  .hero-image-container {
    width: 240px;
    height: 240px;
  }

  .floating-card {
    padding: 8px 12px;
  }

  .floating-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .floating-info h4 {
    font-size: 0.9rem;
  }

  .floating-card-1 {
    top: 5%;
    left: -15px;
  }

  .floating-card-2 {
    bottom: 5%;
    right: -15px;
  }

  /* EMI pie chart adjustments */
  .emi-chart-container {
    margin-top: 30px;
    transform: scale(0.9);
  }

  .header-logo-img {
    max-height: 32px;
    max-width: 135px;
  }

  .footer-logo-img {
    max-height: 38px;
    max-width: 150px;
  }
}