/**
 * SunCatcher Power Private Limited - Responsive Styles
 * Mobile-first responsive design
 */

/* ===== LARGE DESKTOP (1400px+) ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero h1 {
    font-size: 72px;
  }
  
  .section-title {
    font-size: 48px;
  }
}

/* ===== DESKTOP (992px - 1199px) ===== */
@media (max-width: 1199px) {
  .services-grid,
  .projects-grid,
  .subsidy-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .about-grid {
    gap: 60px;
  }
}

/* ===== TABLET (768px - 991px) ===== */
@media (max-width: 991px) {
  .navbar-collapse {
    display: none;
  }
  
  .navbar-toggler {
    display: block;
  }
  
  .hero-ticker {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  .about-grid,
  .gescom-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .services-grid,
  .projects-grid,
  .subsidy-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .creds-strip {
    gap: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .footer-regulatory {
    margin-top: 24px;
  }
  
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  section {
    padding: 80px 0;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .page-header {
    padding: 140px 0 60px;
  }
  
  /* Gallery Responsive for Tablet */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .gallery-item {
    height: 280px;
  }
  
  .gallery-filters {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  /* Navbar Logo Responsive for Tablet */
  .navbar-brand img {
    height: 70px !important;
    width: 85px !important;
  }
  
  .nav-logo-text span {
    font-size: 15px !important;
  }
}

/* ===== MOBILE (576px - 767px) ===== */
@media (max-width: 767px) {
  .hero h1 {
    font-size: 42px;
  }
  
  .hero-sub {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-body {
    font-size: 16px;
  }
  
  .about-stat-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .about-panel {
    padding: 32px;
  }
  
  .about-feature {
    flex-direction: column;
    gap: 16px;
  }
  
  .about-feature-icon {
    width: 48px;
    height: 48px;
  }
  
  .service-card {
    padding: 28px;
  }
  
  .why-cell {
    padding: 32px;
  }
  
  .why-cell-num {
    font-size: 48px;
  }
  
  .project-card {
    border-radius: 16px;
  }
  
  .project-img {
    height: 160px;
  }
  
  .project-body {
    padding: 24px;
  }
  
  .gescom-panel {
    padding: 32px;
  }
  
  .subsidy-card {
    padding: 28px;
  }
  
  .subsidy-amount {
    font-size: 36px;
  }
  
  .testimonial-card {
    padding: 28px;
  }
  
  .contact-form-panel {
    padding: 32px;
  }
  
  .contact-inner {
    gap: 60px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .whatsapp-float {
    width: 54px;
    height: 54px;
    font-size: 26px;
    bottom: 20px;
    right: 20px;
  }
  
  .back-to-top {
    width: 46px;
    height: 46px;
    bottom: 20px;
    left: 20px;
    font-size: 18px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding: 80px 0 40px;
    min-height: auto;
  }
  
  .page-header {
    padding: 120px 0 40px;
  }
  
  .page-header h1 {
    font-size: 36px;
  }
  
  /* Gallery Responsive Styles */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gallery-item {
    height: 250px;
  }
  
  .gallery-filters {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .filter-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .gallery-kwp-badge {
    font-size: 16px;
    padding: 6px 12px;
  }
  
  .gallery-title {
    font-size: 16px;
  }
  
  .gallery-category {
    font-size: 12px;
  }
  
  /* Mobile Menu Styles */
  .mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--slate);
    z-index: 9999;
    padding: 80px 24px 24px;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  
  .mobile-nav.open {
    display: block;
    left: 0;
  }
  
  .mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--amber);
    border: none;
    border-radius: 50%;
    color: var(--slate);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .mobile-nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .mobile-nav-link:hover {
    color: var(--amber);
  }
  
  .mobile-nav-cta {
    margin-top: 32px;
  }
  
  .mobile-nav-cta .btn-primary {
    width: 100%;
    text-align: center;
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
  
  /* Navbar Logo Responsive */
  .navbar-brand img {
    height: 60px !important;
    width: 75px !important;
  }
  
  .nav-logo-text span {
    font-size: 14px !important;
  }
}

/* ===== SMALL MOBILE (480px and below) ===== */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
  }
  
  .hero-sub {
    font-size: 15px;
  }
  
  .btn-primary,
  .btn-outline {
    padding: 14px 24px;
    font-size: 15px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-eyebrow {
    font-size: 11px;
  }
  
  .about-panel-title {
    font-size: 20px;
  }
  
  .about-stat-num {
    font-size: 36px;
  }
  
  .service-card h3 {
    font-size: 18px;
  }
  
  .why-cell h4 {
    font-size: 16px;
  }
  
  .project-kwp-badge {
    font-size: 24px;
    padding: 10px 16px;
  }
  
  .gescom-panel-title {
    font-size: 18px;
  }
  
  .process-step-num {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .contact-form-panel h3 {
    font-size: 20px;
  }
  
  .creds-strip {
    gap: 16px;
  }
  
  .cred-item {
    font-size: 13px;
  }
  
  .ticker-value {
    font-size: 28px;
  }
  
  .subsidy-amount {
    font-size: 32px;
  }
  
  /* Additional Gallery Responsive for Small Mobile */
  .gallery-item {
    height: 200px;
  }
  
  .gallery-filters {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .gallery-kwp-badge {
    font-size: 14px;
    padding: 4px 8px;
  }
  
  .gallery-title {
    font-size: 14px;
  }
  
  .gallery-category {
    font-size: 11px;
  }
  
  /* Navbar Logo Responsive for Small Mobile */
  .navbar-brand img {
    height: 50px !important;
    width: 65px !important;
  }
  
  .nav-logo-text span {
    font-size: 12px !important;
  }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    padding: 60px 0 40px;
  }
  
  section {
    padding: 40px 0;
  }
  
  .page-header {
    padding: 80px 0 40px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .mobile-nav,
  .whatsapp-float,
  .back-to-top,
  .footer,
  .contact-form-panel,
  .hero-actions {
    display: none !important;
  }
  
  .hero {
    background: white;
    color: black;
  }
  
  .hero h1,
  .hero-sub {
    color: black;
  }
  
  section {
    padding: 40px 0;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-rays {
    animation: none;
  }
  
  .hero-badge-dot,
  .ticker-live {
    animation: none;
  }
  
  .whatsapp-float {
    animation: none;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --border: #000000;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  
  .navbar {
    background: var(--white);
    border-bottom: 2px solid var(--border);
  }
  
  .service-card,
  .project-card,
  .testimonial-card {
    border: 2px solid var(--border);
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  /* Add dark mode overrides if needed in future */
}

/* ===== FOCUS VISIBLE FOR ACCESSIBILITY ===== */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .project-card:hover,
  .testimonial-card:hover,
  .subsidy-card:hover {
    transform: none;
  }
  
  .nav-link:hover {
    background: transparent;
  }
  
  .whatsapp-float:hover {
    transform: none;
  }
  
  .back-to-top:hover {
    transform: none;
  }
}
