/* =============================================
   ENSUSTAIN - Responsive Styles
   ============================================= */

/* ---------- Tablet (max-width: 1024px) ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }

  .section { padding: 70px 0; }

  .hero-content h1 { font-size: 3rem; }

  .why-choose {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .about-story {
    gap: 40px;
  }

  .service-detail-inner {
    gap: 30px;
  }

  .founder-section {
    grid-template-columns: 250px 1fr;
    gap: 30px;
  }

  .founder-photo {
    width: 250px;
    height: 300px;
  }
}

/* ---------- Tablet Portrait (max-width: 768px) ---------- */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }

  /* Navigation */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right 0.4s ease;
    padding: 40px;
  }

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

  .nav-links a {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.1rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 12px;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.05rem; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stat-item h3 { font-size: 2rem; }

  /* Promise Badges */
  .promise-section { padding: 50px 0; }
  .promise-grid { gap: 40px; }
  .promise-icon { width: 76px; height: 76px; }
  .promise-icon i { font-size: 1.8rem; }
  .promise-item h3 { font-size: 1.15rem; }

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

  /* Why Choose */
  .why-choose {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .why-choose-image img {
    height: 300px;
  }

  /* About */
  .about-story {
    grid-template-columns: 1fr;
  }

  .about-story-image {
    order: -1;
  }

  .about-story-image img {
    height: 300px;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  /* Founder */
  .founder-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .founder-photo {
    width: 200px;
    height: 240px;
    margin: 0 auto;
  }

  .founder-credentials {
    justify-content: center;
  }

  /* Process Steps */
  .process-steps {
    flex-direction: column;
    gap: 24px;
  }

  .process-steps::before {
    top: 0;
    bottom: 0;
    left: 35px;
    right: auto;
    width: 3px;
    height: 100%;
  }

  .process-step {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }

  .process-step .step-number {
    margin: 0;
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.1rem;
  }

  .process-step p {
    max-width: none;
  }

  /* Branches */
  .branches-grid {
    grid-template-columns: 1fr;
  }

  /* Service Detail */
  .service-detail-inner {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) .service-detail-inner {
    direction: ltr;
  }

  .service-detail-image {
    order: -1;
  }

  .service-benefits {
    grid-template-columns: 1fr;
  }

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

  /* Timeline */
  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 55px;
    padding-right: 0;
  }

  .timeline-dot {
    left: 20px;
  }

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

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

  /* Page Hero */
  .page-hero {
    padding: 140px 0 60px;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  /* CTA */
  .cta-banner h2 { font-size: 1.8rem; }
}

/* ---------- Mobile (max-width: 480px) ---------- */
@media (max-width: 480px) {
  html { font-size: 15px; }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }

  .container { padding: 0 16px; }
  .section { padding: 50px 0; }

  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 0.95rem; }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-item h3 { font-size: 1.6rem; }

  /* Promise Badges */
  .promise-section { padding: 40px 0; }
  .promise-grid { gap: 30px; }
  .promise-icon { width: 68px; height: 68px; }
  .promise-icon i { font-size: 1.6rem; }
  .promise-item h3 { font-size: 1.1rem; }
  .promise-item p { font-size: 0.85rem; }

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

  .service-card {
    padding: 30px 20px;
  }

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

  .filter-tabs {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .contact-form {
    padding: 24px;
  }

  .cta-banner {
    padding: 60px 0;
  }

  .cta-banner h2 { font-size: 1.5rem; }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
  }

  .back-to-top {
    right: 80px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-image {
    height: 220px;
  }

  .lightbox-info {
    padding: 20px;
  }

  .page-hero {
    padding: 120px 0 50px;
  }

  .testimonial-slide blockquote {
    font-size: 1rem;
  }
}
