/* ============================================================
   HADAYA AL DAR — RESPONSIVE
   css/responsive.css
   ============================================================ */

@media (max-width: 1100px) {
  #navbar { padding: 16px 32px; }
  #navbar.scrolled { padding: 10px 32px; }
  .nav-links { gap: 22px; }
  .hero-inner { padding: 120px 32px 80px; }
  .trust-grid { gap: 24px; }
  .why-inner { gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-actions .lang-toggle,
  .nav-actions .audio-btn { display: flex; }

  .hero-inner {
    padding: 110px 24px 60px;
    text-align: center;
  }
  body.rtl .hero-inner { text-align: right; }
  .hero-content { max-width: 100%; }
  .hero-rule { margin: 0 auto 28px; }
  body.rtl .hero-rule { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
  .hero-sub { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-bg { background-position: 60% center; }
  .hero-overlay {
    background: rgba(30,18,8,0.58);
  }

  #trust { padding: 48px 24px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  #collections, #why, #testimonials,
  #how-to-order, #customize, #cta { padding: 72px 24px; }
  #footer { padding: 48px 24px 24px; }

  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-img-accent { display: none; }
  .why-img-main { width: 100%; height: 320px; }

  .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

  .steps-row { grid-template-columns: 1fr 1fr; gap: 28px; }
  .steps-row::before { display: none; }

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

@media (max-width: 600px) {
  #navbar { padding: 14px 18px; }
  #navbar.scrolled { padding: 10px 18px; }

  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .trust-item { align-items: center; }

  .collection-slide { height: 330px; }

  .steps-row { grid-template-columns: 1fr; gap: 24px; }

  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  body.rtl .footer-bottom { flex-direction: column; }

  .hero-buttons { flex-direction: column; align-items: center; }
  body.rtl .hero-buttons {
    flex-direction: column;
    align-items: flex-end;
  }
  .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ============================================================
   MOBILE-FIRST POLISH — added for real phone usage
   ============================================================ */
@media (hover: none) {
  .btn:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  html, body { width: 100%; overflow-x: hidden; }

  #navbar {
    min-height: 64px;
    padding: 12px 18px;
    gap: 12px;
  }

  #navbar.scrolled { padding: 10px 18px; }

  .nav-logo-hd { font-size: 1.35rem; }
  .nav-logo-en { font-size: 0.52rem; letter-spacing: 0.16em; }
  .nav-logo-ar { font-size: 0.68rem; }

  .nav-actions { gap: 8px; }
  .lang-toggle { min-height: 40px; padding: 8px 11px; }
  .audio-btn,
  .hamburger {
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
    align-items: center;
  }

  .hamburger { padding: 9px; }
  .hamburger span { width: 24px; height: 2px; }

  .mobile-menu {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 92px 24px 36px;
    gap: 18px;
    justify-content: flex-start;
    overflow-y: auto;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .mobile-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-close {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--sand);
    background: var(--ivory);
    color: var(--brown);
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu a:not(.btn) {
    width: 100%;
    max-width: 360px;
    padding: 12px 0;
    border-bottom: 1px solid var(--beige);
    font-size: clamp(1.35rem, 8vw, 2rem);
    text-align: center;
  }

  .mobile-menu-actions {
    width: 100%;
    max-width: 360px;
    margin-top: 10px;
  }

  .mobile-menu-actions .btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
  }

  #hero {
    min-height: auto;
    align-items: stretch;
  }

  .hero-bg {
    background-position: center top;
    opacity: 0.36;
    transform: none;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(30,18,8,0.88), rgba(30,18,8,0.72));
  }

  body.rtl .hero-overlay {
    background: linear-gradient(180deg, rgba(30,18,8,0.88), rgba(30,18,8,0.72));
  }

  .hero-inner {
    min-height: 100svh;
    padding: 96px 22px 70px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  body.rtl .hero-content {
    margin: 0 auto;
    text-align: right;
  }

  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
  }

  body.rtl .hero-eyebrow { letter-spacing: 0.04em; }

  .hero-title-wrap {
    min-height: clamp(3.4rem, 19vw, 5.5rem);
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: clamp(2.45rem, 14vw, 4.4rem);
    line-height: 1.14;
    width: 100%;
  }

  .hero-hadith { font-size: clamp(1.15rem, 6vw, 1.6rem); }
  .hero-rule { margin: 0 auto 24px; }
  body.rtl .hero-rule { margin-left: auto; margin-right: auto; }

  .hero-sub {
    max-width: 100%;
    margin: 0 auto 30px;
    font-size: 0.95rem;
    line-height: 1.85;
  }

  .hero-buttons {
    width: 100%;
    gap: 12px;
  }

  .hero-buttons .btn {
    min-height: 52px;
    width: min(100%, 360px);
    font-size: 0.78rem;
  }

  .section-header { margin-bottom: 34px; }
  .section-title { font-size: clamp(1.65rem, 8vw, 2.25rem); }
  .section-sub { font-size: 0.92rem; }
}

@media (max-width: 600px) {
  #trust,
  #collections,
  #why,
  #testimonials,
  #how-to-order,
  #customize,
  #cta,
  #footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  #trust { padding-top: 40px; padding-bottom: 40px; }
  #collections,
  #why,
  #testimonials,
  #how-to-order,
  #customize,
  #cta { padding-top: 58px; padding-bottom: 58px; }
  #footer { padding-top: 44px; padding-bottom: 24px; }

  .trust-item {
    padding: 18px;
    border: 1px solid var(--champagne);
    border-radius: var(--radius);
    background: rgba(255,253,249,0.55);
    text-align: center;
    flex-direction: column;
  }

  body.rtl .trust-item { flex-direction: column; text-align: center; }

  .collections-carousel {
    width: calc(100% + 36px);
    margin-inline: -18px;
  }
  .collection-slide { height: clamp(300px, 92vw, 390px); }
  .collection-slide-caption { right: 18px; bottom: 18px; left: 18px; }

  .why-img-main { height: 260px; }

  .testimonials-grid {
    width: 100%;
    max-width: 430px;
  }

  .testi-card { padding: 26px 22px; }

  .steps-row { max-width: 430px; }
  .step-card {
    padding: 22px 18px;
    border: 1px solid var(--champagne);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
  }

  .cta-heading { font-size: clamp(1.75rem, 9vw, 2.45rem); }
  .cta-sub { margin-bottom: 28px; }
  .cta-buttons .btn {
    width: 100%;
    max-width: 360px;
    min-height: 52px;
    justify-content: center;
  }

  .footer-top { text-align: center; }
  body.rtl .footer-col,
  .footer-col { text-align: center; }
  .footer-social,
  .footer-contact-item,
  body.rtl .footer-social,
  body.rtl .footer-contact-item {
    justify-content: center;
    flex-direction: row;
  }
}

@media (max-width: 390px) {
  #navbar { padding-left: 12px; padding-right: 12px; }
  .nav-actions { gap: 6px; }
  .lang-toggle .lang-label { font-size: 0.68rem; }
  .nav-logo-hd { font-size: 1.15rem; }
  .nav-logo-en { display: none; }
  .hero-inner { padding-left: 16px; padding-right: 16px; }
  .hero-buttons .btn { width: 100%; }
}


/* Extra mobile layout fixes */
@media (max-width: 900px) {
  .hero-title { font-size: clamp(2.45rem, 13vw, 4.2rem); line-height: 1.12; letter-spacing: 0; }
  body.rtl .hero-title, body.rtl .hero-eyebrow, body.rtl .hero-hadith { letter-spacing: 0 !important; }
  .hero-title-wrap { min-height: auto; overflow: visible; }
}
@media (max-width: 520px) {
  #navbar { padding: 10px 14px; }
  .nav-logo-en { letter-spacing: 0.06em; }
  .hero-inner { padding: 88px 18px 56px; min-height: 100svh; }
  .hero-title { font-size: clamp(2.25rem, 15vw, 3.55rem); }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .section-title, .section-header h2 { font-size: clamp(1.65rem, 9vw, 2.25rem); }
  .trust-grid, .steps-row, .footer-top { grid-template-columns: 1fr !important; }
}

/* Phone-only hero presentation */
@media (max-width: 600px) {
  .hero-bg {
    background-position: 72% center !important;
    opacity: 1;
  }

  html[lang="ar"] .hero-bg {
    background-position: 28% center !important;
  }

  .hero-overlay,
  body.rtl .hero-overlay {
    background: rgba(30,18,8,0.52);
  }

  .hero-buttons,
  body.rtl .hero-buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-buttons .btn {
    width: auto;
    min-width: 200px;
    max-width: 240px;
    min-height: 44px;
    padding: 10px 20px;
    font-size: 0.7rem;
    justify-content: center;
  }
}
