/* ============================================
   کافی نت آنلاین محله - استایل ریسپانسیو
   ============================================ */

/* === دسکتاپ بزرگ (max 1280px) === */
@media (max-width: 1280px) {
  :root {
    --container-width: 1080px;
  }
}

/* === تلبت بزرگ (max 1024px) === */
@media (max-width: 1024px) {
  :root {
    --container-width: 920px;
  }

  section {
    padding: 4.5rem 0;
  }

  /* هیرو */
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-badge,
  .hero-trust {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 270px;
    height: 560px;
  }

  /* امکانات */
  .features-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .features-visual {
    order: -1;
  }

  .features-visual .phone-mockup {
    transform: scale(0.95);
  }

  /* خدمات */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* نحوه کار */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .steps-grid::before {
    display: none;
  }

  /* چرا ما */
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* نظرات */
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  /* فوتر */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* === تلبت کوچک (max 900px) === */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === موبایل / تلبت کوچک (max 768px) === */
@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
    --container-padding: 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.98rem;
  }

  /* نوبار */
  .nav-links {
    display: none;
  }

  .nav-download {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .navbar .container {
    gap: 1rem;
    justify-content: space-between;
  }

  .logo {
    font-size: 1rem;
    gap: 0.7rem;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .logo-icon svg {
    width: 20px;
    height: 20px;
  }

  .logo-text {
    line-height: 1.3;
  }

  /* فاصله بیشتر بین دکمه‌های هدر در موبایل */
  .nav-actions {
    gap: 0.5rem;
    align-items: center;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .logo-text small {
    display: none;
  }

  /* هیرو */
  .hero {
    padding-top: calc(var(--navbar-height) + 1.5rem);
    text-align: center;
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
    line-height: 1.3;
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.85;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    gap: 0.7rem;
  }

  .trust-item {
    font-size: 0.85rem;
  }

  .phone-mockup {
    width: 250px;
    height: 520px;
  }

  /* کاهش اندازه متن‌های داخل موکاپ گوشی در موبایل */
  .app-statusbar {
    padding: 12px 18px 6px;
    padding-top: 40px;
    font-size: 0.65rem;
  }

  .app-statusbar .icons span {
    width: 12px;
    height: 7px;
  }

  .app-header {
    padding: 6px 14px 10px;
  }

  .app-header .greeting {
    font-size: 0.62rem;
  }

  .app-header .name {
    font-size: 0.85rem;
  }

  .app-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }

  .app-search {
    margin: 0 14px 10px;
    padding: 7px 11px;
    font-size: 0.68rem;
  }

  .app-search svg {
    width: 13px;
    height: 13px;
  }

  .app-banner {
    margin: 0 14px 10px;
    padding: 12px;
  }

  .app-banner-title {
    font-size: 0.78rem;
  }

  .app-banner-desc {
    font-size: 0.6rem;
  }

  .app-services-grid {
    padding: 0 14px 10px;
    gap: 6px;
  }

  .app-service-mini .icon-box {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .app-service-mini .icon-box svg {
    width: 15px;
    height: 15px;
  }

  .app-service-mini span {
    font-size: 0.55rem;
  }

  .app-chat-preview {
    margin: auto 14px 14px;
    padding: 10px;
  }

  .chat-bubble {
    padding: 6px 9px;
    font-size: 0.62rem;
  }

  .chat-avatar {
    width: 20px;
    height: 20px;
    font-size: 0.55rem;
  }

  .floating-card {
    padding: 0.6rem 0.85rem;
    font-size: 0.72rem;
  }

  .floating-card .fc-icon {
    width: 30px;
    height: 30px;
  }

  .fc-1 { right: 0; top: 5%; }
  .fc-2 { left: 0; bottom: 15%; }
  .fc-3 { display: none; }

  /* آمار */
  .stats {
    padding: 2.5rem 0;
  }

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

  .stat-item::after {
    display: none !important;
  }

  .stat-number {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .stat-label {
    font-size: 0.85rem;
  }

  /* خدمات */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .service-card {
    padding: 1.3rem 1.1rem;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }

  .service-icon svg { width: 24px; height: 24px; }

  .service-card h3 {
    font-size: 1.05rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  .services-more-badge {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* نحوه کار */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .step-number {
    width: 64px;
    height: 64px;
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .step-card h3 {
    font-size: 1.05rem;
  }

  .step-card p {
    font-size: 0.88rem;
  }

  /* امکانات */
  .features-wrap {
    gap: 2rem;
  }

  .feature-item {
    padding: 1.1rem;
    flex-direction: row;
    text-align: right;
    align-items: flex-start;
    gap: 1rem;
  }

  .feature-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
  }

  .feature-icon svg { width: 22px; height: 22px; }

  .feature-content h3 {
    font-size: 1rem;
  }

  .feature-content p {
    font-size: 0.88rem;
  }

  /* چرا ما */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .why-card {
    padding: 1.5rem;
  }

  .why-icon {
    width: 60px;
    height: 60px;
  }

  .why-icon svg { width: 28px; height: 28px; }

  .why-card h3 {
    font-size: 1.1rem;
  }

  .why-card p {
    font-size: 0.9rem;
  }

  /* نظرات */
  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-text {
    font-size: 0.92rem;
  }

  /* سوالات متداول */
  .faq-question {
    font-size: 0.92rem;
    padding: 1.1rem 1.2rem;
    gap: 0.8rem;
  }

  .faq-answer {
    padding: 0 1.2rem;
    font-size: 0.9rem;
  }

  .faq-item.open .faq-answer {
    padding: 0 1.2rem 1.2rem;
  }

  .faq-icon {
    width: 28px;
    height: 28px;
  }

  /* CTA */
  .download-cta {
    padding: 2.5rem 0;
  }

  .cta-box {
    padding: 2.5rem 1.5rem;
  }

  .cta-box h2 {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
  }

  .cta-box p {
    font-size: 0.98rem;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .cta-meta {
    font-size: 0.78rem;
    gap: 0.3rem;
  }

  /* فوتر */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-about {
    font-size: 0.88rem;
  }

  .footer-trust {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.2rem;
  }

  .enamad-badge img {
    height: 70px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* دکمه بازگشت */
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 1rem;
    left: 1rem;
  }

  /* منوی موبایل */
  .mobile-menu {
    width: 280px;
    padding: 1.2rem;
  }
}

/* === موبایل کوچک (max 480px) === */
@media (max-width: 480px) {
  :root {
    --container-padding: 0.85rem;
  }

  section {
    padding: 2.5rem 0;
  }

  /* هیرو */
  .hero {
    padding-top: calc(var(--navbar-height) + 1rem);
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-desc {
    font-size: 0.92rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 0.4rem 0.9rem;
  }

  .phone-mockup {
    width: 225px;
    height: 470px;
    padding: 10px;
    border-radius: 40px;
  }

  .phone-notch {
    width: 95px;
    height: 22px;
    top: 14px;
  }

  .phone-screen {
    border-radius: 30px;
  }

  .floating-card {
    display: none;
  }

  /* کاهش بیشتر متن‌های موکاپ در موبایل کوچک */
  .app-statusbar {
    padding: 10px 14px 4px;
    padding-top: 34px;
    font-size: 0.58rem;
  }

  .app-statusbar .icons span {
    width: 10px;
    height: 6px;
  }

  .app-header {
    padding: 4px 12px 8px;
  }

  .app-header .greeting {
    font-size: 0.55rem;
  }

  .app-header .name {
    font-size: 0.78rem;
  }

  .app-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }

  .app-search {
    margin: 0 12px 8px;
    padding: 6px 10px;
    font-size: 0.6rem;
  }

  .app-search svg {
    width: 12px;
    height: 12px;
  }

  .app-banner {
    margin: 0 12px 8px;
    padding: 10px;
  }

  .app-banner-title {
    font-size: 0.7rem;
  }

  .app-banner-desc {
    font-size: 0.54rem;
  }

  .app-services-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 12px 8px;
    gap: 5px;
  }

  .app-service-mini .icon-box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .app-service-mini .icon-box svg {
    width: 13px;
    height: 13px;
  }

  .app-service-mini span {
    font-size: 0.5rem;
  }

  .app-chat-preview {
    margin: auto 12px 12px;
    padding: 8px;
  }

  .chat-bubble {
    padding: 5px 8px;
    font-size: 0.55rem;
  }

  .chat-avatar {
    width: 18px;
    height: 18px;
    font-size: 0.5rem;
  }

  .chat-msg {
    gap: 6px;
    margin-bottom: 6px;
  }

  /* خدمات */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* آمار */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  /* دکمه‌ها */
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.92rem;
  }

  .btn-lg {
    padding: 0.95rem 1.8rem;
    font-size: 1rem;
  }

  /* سکشن‌ها */
  .section-title {
    font-size: 1.45rem;
  }

  .section-badge {
    font-size: 0.78rem;
    padding: 0.4rem 0.9rem;
  }

  /* امکانات */
  .feature-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.7rem;
    padding: 1.2rem;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
  }

  /* CTA */
  .cta-box {
    padding: 2rem 1.2rem;
  }

  /* فوتر */
  .enamad-badge img {
    height: 60px;
  }

  /* منوی موبایل */
  .mobile-menu {
    width: 100%;
    max-width: 100vw;
  }
}

/* === موبایل بسیار کوچک (max 360px) === */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .phone-mockup {
    width: 200px;
    height: 420px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }
}

/* === چاپ === */
@media print {
  .navbar,
  .back-to-top,
  .floating-card,
  .hero-blob,
  .mobile-menu,
  .mobile-menu-overlay,
  .theme-toggle {
    display: none !important;
  }
}

/* === حرکت کمتر برای کاربرانی که ترجیح می‌دهند === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
