/* ============================================================
   RESPONSIVE.CSS — Rubou Taiyba Website
   Breakpoints: 1200px | 992px | 768px | 576px | 400px
   ============================================================ */

/* ── LARGE SCREENS (1200px+) ── */
@media (min-width: 1200px) {
  .wrap { max-width: 1200px; }
}

/* ── TABLET LANDSCAPE (992px–1199px) ── */
@media (max-width: 1199px) {
  .wrap { padding: 0 24px; }
  .srv-cards-new { grid-template-columns: repeat(2, 1fr); padding: 0 24px 60px; }
  .about-grid { gap: 40px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-inner .footer-col:last-child { grid-column: span 3; }
  .hero-h1 { font-size: clamp(30px, 4.5vw, 56px); }
  .ni { padding: 0 20px; }
  .lang-sw { margin-right: 8px; }
  .lang-selected { min-width: 100px; padding: 6px 10px; }
}

/* ── TABLET PORTRAIT (768px–991px) ── */
@media (max-width: 991px) {
  /* NAV */
  .nm { display: none; }
  .lang-sw { margin-right: 0; }
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: rgba(255,255,255,.07);
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.14);
  }
  .mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s;
  }
  .mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
  .mobile-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(11,23,57,.97);
    backdrop-filter: blur(16px);
    padding: 20px 24px 28px;
    z-index: 898;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform .35s cubic-bezier(.22,.68,0,1.1);
    border-bottom: 1px solid rgba(201,165,67,.15);
  }
  .mobile-nav.open { transform: translateY(0); }
  .mobile-nav a {
    color: rgba(255,255,255,.82);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
  }
  .mobile-nav a:hover { background: rgba(201,165,67,.1); color: #E8C96A; }
  .mobile-nav a.cta {
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    margin-top: 8px;
    text-align: center;
  }

  /* HERO */
  .hero-con { justify-content: center; padding: 0 5%; }
  .hero-box { max-width: 100%; text-align: center; }
  .hero-nums { justify-content: center; }
  .hero-btns { justify-content: center; }
  .hero-p { margin: 0 auto 32px; }
  .hero-sup { justify-content: center; }
  .hero-h1 { font-size: clamp(28px, 5vw, 48px); }

  /* ABOUT */
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .ab-imgs { max-width: 500px; margin: 0 auto; }
  .ab-text { text-align: center; }
  .ab-vals { justify-items: start; text-align: right; }

  /* STATS */
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::after { display: none; }

  /* SERVICES */
  .srv-cards-new { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .srv-grid { grid-template-columns: repeat(2, 1fr); }

  /* GALLERY */
  .gal-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gal-grid .gi:nth-child(1) { grid-row: span 1; grid-column: span 2; }

  /* CONTACT STRIP */
  .cs-grid { grid-template-columns: 1fr; gap: 40px; }
  .cs-items { max-width: 480px; }

  /* CONTACT PAGE */
  .con-grid { grid-template-columns: 1fr; }
  .cpage-grid { grid-template-columns: 1fr; }

  /* FOOTER */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-gallery { height: 90px; }
  .footer-gallery-track { height: 90px; }
  .footer-gallery-track img { height: 90px; }

  /* SERVICE DETAIL */
  .svc-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-detail-hero-content { padding: 80px 24px 40px; }
}

/* ── MOBILE (576px–767px) ── */
@media (max-width: 767px) {
  /* HERO */
  .hero { min-height: 100svh; }
  .hero-h1 { font-size: clamp(26px, 7vw, 40px); }
  .hero-p { font-size: 14px; }
  .hero-nums { gap: 0; }
  .hn { padding: 0 16px; }
  .hn-n { font-size: 28px; }
  .hero-btns { flex-direction: column; align-items: center; gap: 10px; }
  .btn-g, .btn-o { width: 100%; max-width: 280px; text-align: center; }

  /* SECTIONS */
  .sec { padding: 60px 0; }
  .wrap { padding: 0 18px; }
  .s-h { font-size: clamp(20px, 5vw, 30px); }

  /* ABOUT */
  .ab-accent { width: 45%; bottom: -16px; right: -12px; }
  .ab-badge { left: -10px; padding: 12px 14px; }
  .ab-badge .bn { font-size: 26px; }
  .ab-vals { grid-template-columns: 1fr; }

  /* STATS */
  .sn { font-size: 34px; }

  /* SERVICES */
  .srv-cards-new { grid-template-columns: 1fr; padding: 0 18px 50px; }
  .srv-grid { grid-template-columns: 1fr; }
  .srv-hdr { padding: 60px 18px 36px; }
  .srv-card-img { height: 200px; }

  /* GALLERY */
  .gal-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 200px);
  }
  .gal-grid .gi:nth-child(1) { grid-column: 1; }
  .gal-btn button { width: 100%; }

  /* CONTACT STRIP */
  .cs-q { font-size: clamp(18px, 4.5vw, 26px); }
  .btn-solid, .btn-g { padding: 12px 24px; font-size: 13.5px; }

  /* CONTACT PAGE */
  .cfgrid { grid-template-columns: 1fr; }
  .cf.sp { grid-column: 1; }
  .cin-panel { padding: 24px; }

  /* FOOTER */
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-gallery { height: 75px; }
  .footer-gallery-track { height: 75px; }
  .footer-gallery-track img { height: 75px; }

  /* GALLERY PAGE */
  .gfull { grid-template-columns: repeat(2, 1fr); }
  .gtabs { gap: 8px; }
  .gt { font-size: 12.5px; padding: 7px 14px; }

  /* SERVICE DETAIL */
  .svc-detail-grid { grid-template-columns: 1fr; }
  .svc-detail-hero-content h1 { font-size: clamp(24px, 7vw, 40px); }
  .svc-detail-hero { min-height: 350px; }
  .svc-detail-hero-content { padding: 70px 18px 36px; }

  /* LANG DROPDOWN */
  .lang-dropdown { right: -30px; }
  .lang-selected .lang-label { display: none; }
  .lang-selected { min-width: unset; padding: 7px 10px; gap: 5px; }

  /* NAV */
  .ni { padding: 0 16px; }
  nav { padding: 14px 0; }

  /* SVC LIST PAGE */
  .svc-hero { padding: 100px 18px 44px; }
  .svc-hero h1 { font-size: clamp(22px, 6vw, 36px); }
}

/* ── SMALL MOBILE (max 400px) ── */
@media (max-width: 400px) {
  .hero-h1 { font-size: 24px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .sn { font-size: 28px; }
  .gfull { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .footer-inner { gap: 20px; }
  .ab-badge { display: none; }
  .hero-nums { flex-wrap: wrap; justify-content: center; }
  .hn { border: none; padding: 8px 14px; }
}

/* ── LANDSCAPE MOBILE ── */
@media (max-width: 767px) and (orientation: landscape) {
  .hero { min-height: 100vw; }
  .hero-h1 { font-size: 26px; }
  .hero-nums { gap: 0; }
}

/* ── DARK MODE SUPPORT ── */
@media (prefers-color-scheme: dark) {
  .svc-detail-body { background: #f5f4f0; }
}

/* ── HIGH DPI / RETINA ── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-ic { image-rendering: -webkit-optimize-contrast; }
}

/* ── PRINT ── */
@media print {
  nav, .hero-dots, .hero-scroll-indicator, .footer-gallery,
  .lang-sw, .mobile-menu-btn, .mobile-nav { display: none !important; }
  .hero { height: auto; min-height: unset; page-break-after: always; }
  body { color: #000; background: #fff; }
  .s-h, .hero-h1 { color: #000 !important; }
  a { text-decoration: none; color: #000; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .footer-gallery-track { animation: none; }
  .ab-badge { animation: none; }
}
