/* ============================================================
   AASHRAYA PROPERTIES — responsive.css
   Breakpoints: 1200px | 992px | 768px | 576px | 360px
   ============================================================ */

/* ---------- 1200px ---------- */
@media (max-width: 1200px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-grid { gap: 20px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
}

/* ---------- 992px ---------- */
@media (max-width: 992px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--blue-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 4px;
    transition: right .4s cubic-bezier(.4,0,.2,1);
    box-shadow: -10px 0 40px rgba(0,0,0,.3);
    z-index: 999;
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-menu a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 10px;
    color: #ffffff;
  }
  .nav-menu a::after { bottom: 8px; }
  .nav-cta { margin-top: 12px; width: 100%; text-align: center; justify-content: center; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 998;
    display: none;
  }
  .nav-overlay.show { display: block; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-main { height: 320px; }
  .about-badge { bottom: -16px; right: 16px; }

  /* Founder */
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-photo { aspect-ratio: 16/9; max-height: 320px; }

  /* Vision Mission */
  .vm-grid { grid-template-columns: 1fr; }

  /* Projects */
  .projects-grid { grid-template-columns: repeat(2, 1fr); }

  /* Gallery */
  .gallery-grid { columns: 2; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }

  /* Achievements */
  .achievements-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .achievement-item:nth-child(2)::after { display: none; }

  /* Values */
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
  .section-title { font-size: 1.7rem; }
  .section-header { margin-bottom: 40px; }

  /* Hero: use svh (small viewport height) on mobile to avoid
     address bar / bottom bar overlap. Removes the max-height cap. */
  #hero {
    height: 100svh;
    max-height: none;
    min-height: 500px;
  }

  /* On portrait mobile: contain shows the full image without any cropping.
     A dark background fills the empty space above/below. */
  .hero-img {
    background-position: left center;
    background-size: contain;
    background-color: #0F2345; /* matches --blue-dark so letterbox bars look intentional */
  }

  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: .95rem; }
  .hero-actions { gap: 12px; }
  .btn { padding: 12px 26px; font-size: .875rem; }

  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .why-grid { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }

  .achievements-grid { grid-template-columns: repeat(2, 1fr); }

  .projects-grid { grid-template-columns: 1fr; }

  .gallery-grid { columns: 1; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 32px 24px; }
  .contact-info-card { padding: 36px 24px; }

  #cta-banner h2 { font-size: 1.6rem; }
  #cta-banner .cta-actions { flex-direction: column; align-items: center; }

  .vm-card { padding: 36px 28px; }

  .page-hero { padding: 120px 0 60px; }
  .page-hero h1 { font-size: 1.8rem; }

  .floating-buttons { bottom: 20px; right: 16px; }
  .float-btn { width: 46px; height: 46px; font-size: 1rem; }
  #scroll-top { bottom: 86px; right: 16px; width: 40px; height: 40px; font-size: .9rem; }
}

/* ---------- 576px ---------- */
@media (max-width: 576px) {
  .container { padding: 0 20px; }
  .nav-container { padding: 0 20px; }

  .hero-badge { font-size: .72rem; padding: 6px 16px; }
  .hero-title { font-size: 1.7rem; }
  .hero-actions .btn-outline { display: none; }

  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stat:last-child { grid-column: 1 / -1; text-align: center; }

  .achievements-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .achievement-item::after { display: none !important; }
  .achievement-number { font-size: 2.2rem; }

  .testimonial-card { padding: 24px 20px; }

  .why-card { padding: 24px 20px; }
  .service-card { padding: 28px 24px; }

  .values-grid { grid-template-columns: 1fr 1fr; }

  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 18px; font-size: .8rem; }
}

/* ---------- 360px ---------- */
@media (max-width: 360px) {
  .hero-title { font-size: 1.4rem; }
  .btn { padding: 10px 20px; font-size: .82rem; }

  .achievements-grid { grid-template-columns: 1fr; }
  .achievement-item::after { display: none !important; }

  .nav-logo img { height: 44px; }

  .about-stats { grid-template-columns: 1fr; }
  .about-stat:last-child { grid-column: unset; text-align: left; }

  .values-grid { grid-template-columns: 1fr; }

  .footer-social { gap: 8px; }
  .social-link { width: 34px; height: 34px; }
}

/* ---------- Print ---------- */
@media print {
  #navbar, .floating-buttons, #scroll-top, #scroll-progress { display: none !important; }
  body { font-size: 12pt; }
  a { color: var(--blue); text-decoration: underline; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
