/* ============================================
   📱 Responsive & Layout Fixes (Clean)
   RESPONSIVE ONLY — no base component overrides
   ============================================ */

/* Spacing tokens */
:root {
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 0;
}

main {
  min-height: calc(100vh - 80px);
  padding-bottom: var(--space-3xl);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* Header responsive layout ONLY (do not restyle) */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .nav {
    display: none;
  }
}

/* Hero responsive */
.hero {
  padding: var(--space-3xl) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
@media (max-width: 900px) {
  .hero {
    padding: var(--space-2xl) 0;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-logo {
    width: 200px;
  }
  .hero-cta {
    justify-content: center;
  }
}

/* Sections spacing */
.section {
  padding: var(--space-2xl) 0;
}
@media (max-width: 600px) {
  .section {
    padding: var(--space-xl) 0;
  }
}

/* Grid breakpoints ONLY (base grid in components.css) */
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Stats responsive only */
@media (max-width: 600px) {
  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 26px;
  }
  .stat-label {
    font-size: 13px;
  }
}

/* Team responsive only */
@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-avatar {
    width: 64px;
    height: 64px;
  }
}
@media (max-width: 420px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonials responsive only */
@media (max-width: 900px) {
  .testimonials-grid,
  .testimonials-slider {
    grid-template-columns: 1fr;
  }
}

/* Designs responsive only */
@media (max-width: 600px) {
  .slider-track {
    grid-auto-columns: minmax(220px, 1fr);
  }
  .design-thumb {
    height: 150px;
  }
}

/* Footer responsive only */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
