/* ============================================
   H&S Computers - Responsive Styles
   Mobile-First Breakpoints up to 8K
   ============================================ */

/* ---------- Mobile Base (< 576px) ---------- */

/* Mobile Navigation */
.nav-toggle {
  display: flex;
}

.nav-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--surface);
  flex-direction: column;
  padding: var(--spacing-lg);
  gap: 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.nav-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-link {
  display: block;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border);
}

.nav-link:last-child {
  border-bottom: none;
}

/* Mobile Hero */
.hero {
  min-height: 400px;
}

.hero-content {
  padding: var(--spacing-lg);
}

/* Mobile Cards */
.card-image {
  height: 180px;
}

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

/* Mobile Footer */
.footer-grid {
  grid-template-columns: 1fr;
  text-align: center;
}

.footer-social {
  justify-content: center;
}

/* ---------- Small Devices (576px+) ---------- */
@media (min-width: 576px) {
  .hero {
    min-height: 450px;
  }

  .hero-content {
    padding: var(--spacing-xl);
  }

  .card-image {
    height: 200px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

/* ---------- Medium Devices / Tablets (768px+) ---------- */
@media (min-width: 768px) {
  :root {
    --header-height: 90px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    padding: 0;
    gap: var(--spacing-md);
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    background-color: transparent;
  }

  .nav-link {
    border-bottom: none;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: var(--spacing-2xl);
  }

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

  .contact-section {
    grid-template-columns: 1fr 1fr;
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .pricing-table th,
  .pricing-table td {
    padding: var(--spacing-lg) var(--spacing-xl);
  }
}

/* ---------- Large Devices / Desktops (1024px+) ---------- */
@media (min-width: 1024px) {
  :root {
    --header-height: 100px;
  }

  .nav-menu {
    gap: var(--spacing-lg);
  }

  .hero {
    min-height: 550px;
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .contact-section {
    grid-template-columns: 1.5fr 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Extra Large Devices (1280px+) ---------- */
@media (min-width: 1280px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    min-height: 600px;
  }

  .card-image {
    height: 220px;
  }

  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- XXL Devices (1536px+) ---------- */
@media (min-width: 1536px) {
  :root {
    --container-max: 1500px;
  }

  .hero {
    min-height: 650px;
  }
}

/* ---------- Full HD / 1080p (1920px+) ---------- */
@media (min-width: 1920px) {
  :root {
    --container-max: 1600px;
    --spacing-xl: 2.5rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
    --spacing-4xl: 7rem;
  }

  .hero {
    min-height: 700px;
  }

  .card-image {
    height: 250px;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-2xl);
  }

  .footer-grid {
    gap: var(--spacing-3xl);
  }
}

/* ---------- 2K / QHD (2560px+) ---------- */
@media (min-width: 2560px) {
  :root {
    --container-max: 1800px;
    --spacing-xl: 3rem;
    --spacing-2xl: 4.5rem;
    --spacing-3xl: 6rem;
    --spacing-4xl: 8rem;
  }

  html {
    font-size: 18px;
  }

  .header {
    --header-height: 110px;
  }

  .logo img {
    height: 60px;
  }

  .hero {
    min-height: 800px;
  }

  .card-image {
    height: 280px;
  }

  .service-icon {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .map-container {
    height: 400px;
  }
}

/* ---------- 4K / UHD (3840px+) ---------- */
@media (min-width: 3840px) {
  :root {
    --container-max: 2400px;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    --spacing-3xl: 8rem;
    --spacing-4xl: 10rem;
    --border-radius: 0.75rem;
    --border-radius-lg: 1.5rem;
  }

  html {
    font-size: 20px;
  }

  .header {
    --header-height: 130px;
  }

  .logo img {
    height: 70px;
  }

  .hero {
    min-height: 1000px;
  }

  .card-image {
    height: 350px;
  }

  .service-icon {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }

  .contact-info-icon {
    width: 60px;
    height: 60px;
  }

  .footer-social a {
    width: 60px;
    height: 60px;
  }

  .map-container {
    height: 500px;
  }

  .grid {
    gap: var(--spacing-2xl);
  }

  .clients-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---------- 5K (5120px+) ---------- */
@media (min-width: 5120px) {
  :root {
    --container-max: 3200px;
    --spacing-xl: 5rem;
    --spacing-2xl: 7rem;
    --spacing-3xl: 10rem;
    --spacing-4xl: 12rem;
  }

  html {
    font-size: 24px;
  }

  .header {
    --header-height: 150px;
  }

  .logo img {
    height: 80px;
  }

  .hero {
    min-height: 1200px;
  }

  .card-image {
    height: 400px;
  }

  .service-icon {
    width: 150px;
    height: 150px;
    font-size: 4rem;
  }

  .map-container {
    height: 600px;
  }

  .clients-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ---------- 6K (5760px+) ---------- */
@media (min-width: 5760px) {
  :root {
    --container-max: 3600px;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;
    --spacing-3xl: 12rem;
    --spacing-4xl: 14rem;
  }

  html {
    font-size: 26px;
  }

  .header {
    --header-height: 160px;
  }

  .logo img {
    height: 90px;
  }

  .hero {
    min-height: 1400px;
  }

  .card-image {
    height: 450px;
  }
}

/* ---------- 8K / 4320p (7680px+) ---------- */
@media (min-width: 7680px) {
  :root {
    --container-max: 4800px;
    --spacing-xl: 8rem;
    --spacing-2xl: 12rem;
    --spacing-3xl: 16rem;
    --spacing-4xl: 20rem;
    --border-radius: 1rem;
    --border-radius-lg: 2rem;
  }

  html {
    font-size: 32px;
  }

  .header {
    --header-height: 200px;
  }

  .logo img {
    height: 120px;
  }

  .hero {
    min-height: 1800px;
  }

  .card-image {
    height: 600px;
  }

  .service-icon {
    width: 200px;
    height: 200px;
    font-size: 5rem;
  }

  .contact-info-icon {
    width: 80px;
    height: 80px;
  }

  .footer-social a {
    width: 80px;
    height: 80px;
  }

  .map-container {
    height: 800px;
  }

  .grid {
    gap: var(--spacing-3xl);
  }

  .clients-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .nav-toggle span {
    width: 40px;
    height: 5px;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .header,
  .footer,
  .nav-toggle,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .hero {
    min-height: auto;
    padding: 1rem 0;
  }

  .section {
    padding: 1rem 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
