/* Responsive — Mobile First Optimized */

/* ===== Tablets & smaller desktops ===== */
@media (max-width: 1100px) {
  .nav-links{display:none}
  .nav-mobile{display:flex}
  .topbar{display:none}
  :root{--container-pad:24px}
}

/* ===== Tablets ===== */
@media (max-width: 980px) {
  :root{--container-pad:20px}
  .hero{padding:48px 0 60px;min-height:auto}
  .hero-grid{grid-template-columns:1fr;gap:48px}
  .hero h1{font-size:clamp(36px,8vw,56px)}
  .hero-desc{font-size:17px}
  .hero-image{max-width:480px;margin:0 auto}
  section{padding:72px 0}
  .section-title{font-size:clamp(28px,6vw,44px)}
  .section-lead{font-size:16px;margin-bottom:48px}
  .section-header{flex-direction:column;align-items:flex-start;margin-bottom:48px}
  .about-split{grid-template-columns:1fr;gap:48px}
  .about-text .features{grid-template-columns:1fr}
  .ai-grid{grid-template-columns:1fr;gap:16px}
  .ai-card{padding:32px}
  .services-grid{grid-template-columns:1fr 1fr;gap:16px}
  .svc-card{padding:28px 24px;min-height:auto}
  .stats-grid{grid-template-columns:1fr 1fr;gap:32px}
  .stat-big{border-right:none;padding:0}
  .stat-big .num{font-size:48px}
  .footer-top{grid-template-columns:1fr 1fr;gap:40px}
  .footer-bottom{flex-direction:column;text-align:center}
  .footer-bottom-links{flex-wrap:wrap;justify-content:center}
  .cta{padding:100px 0}
  .cta h2{font-size:clamp(36px,7vw,56px)}
}

/* ===== Mobile (< 600px) ===== */
@media (max-width: 600px) {
  :root{--container-pad:16px}

  /* Nav */
  .nav{padding:12px 0}
  .brand{font-size:16px}
  .brand-mark{width:28px;height:28px}
  .brand-mark svg{width:16px;height:16px}
  .brand span{font-size:12px}
  .nav-cta{padding:9px 14px;font-size:12px}
  .nav-cta .arr{display:none}
  .nav-mobile{width:38px;height:38px}

  /* Hero */
  .hero{padding:32px 0 40px}
  .hero-grid{gap:32px}
  .hero h1{font-size:clamp(32px,9vw,44px);line-height:1.2;margin-bottom:24px}
  .hero-eyebrow{font-size:12px;padding:5px 12px;margin-bottom:20px}
  .hero-desc{font-size:15px;margin-bottom:28px;line-height:1.7}
  .hero-actions{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:32px}
  .btn-primary{justify-content:center;padding:14px 24px;font-size:14px}
  .btn-secondary{justify-content:center;padding:12px 4px;font-size:14px}
  .hero-trust{padding-top:24px;flex-direction:column;align-items:flex-start;gap:12px}
  .hero-trust-text{font-size:12px}
  .hero-image{max-width:100%;border-radius:20px}
  .hero-image img{border-radius:20px}

  /* Sections */
  section{padding:56px 0}
  .section-title{font-size:clamp(26px,7vw,36px);line-height:1.25}
  .section-eyebrow{font-size:12px;margin-bottom:18px}
  .section-eyebrow::before{width:18px}
  .section-lead{font-size:15px;margin-bottom:36px;line-height:1.75}
  .section-header{margin-bottom:36px;gap:20px}
  .section-link{font-size:13px;padding:10px 18px}

  /* Clients */
  .clients-bar{padding:40px 0}
  .clients-label{font-size:12px;margin-bottom:24px}
  .client-logo{font-size:18px}
  .client-logo .mark{width:24px;height:24px}
  .clients-track{gap:48px}

  /* About */
  .about-split{gap:36px}
  .about-text p{font-size:15px;line-height:1.85}
  .about-text .features{gap:14px;margin-top:24px}
  .about-text .features li{font-size:13px}
  .about-text .features .check{width:22px;height:22px;font-size:11px}
  .about-visual{padding:24px;border-radius:18px}
  .av-stats{grid-template-columns:1fr 1fr;gap:10px}
  .av-stat{padding:14px}
  .av-stat-num{font-size:24px}
  .av-stat-label{font-size:11px}
  .av-bar-label{min-width:80px;font-size:12px}

  /* Stats Bar */
  .stats-bar{padding:56px 0}
  .stats-grid{grid-template-columns:1fr;gap:24px}
  .stat-big{padding-bottom:24px;border-bottom:1px solid rgba(255,255,255,0.1)}
  .stat-big:last-child{border-bottom:none;padding-bottom:0}
  .stat-big .num{font-size:42px}
  .stat-big .num sup{font-size:20px}
  .stat-big .label{font-size:13px}

  /* AI */
  .ai-card{padding:28px 24px;border-radius:18px}
  .ai-icon{width:80px;height:80px;margin-bottom:24px}
  .ai-icon svg{width:38px;height:38px}
  .ai-card h3{font-size:22px;margin-bottom:12px}
  .ai-card p{font-size:14px;line-height:1.75;margin-bottom:20px}
  .ai-features li{font-size:11px;padding:5px 11px}
  .ai-card-label{margin-bottom:24px;font-size:12px}

  /* Services */
  .services-grid{grid-template-columns:1fr;gap:14px}
  .svc-card{padding:24px 22px;min-height:auto;border-radius:18px}
  .svc-icon{width:56px;height:56px;margin-bottom:20px}
  .svc-title{font-size:18px;margin-bottom:8px}
  .svc-desc{font-size:13px;line-height:1.7;margin-bottom:18px}
  .svc-num{font-size:11px;margin-bottom:16px}
  .svc-cta{font-size:12px}
  .svc-cta-arr{width:22px;height:22px;font-size:10px}

  /* CTA */
  .cta{padding:72px 0}
  .cta h2{font-size:clamp(32px,8vw,48px)}
  .cta p{font-size:15px;margin-bottom:32px}
  .cta-buttons{flex-direction:column;align-items:stretch;gap:12px}
  .cta-buttons .btn-primary,
  .cta-buttons .cta-outline{justify-content:center;font-size:14px;padding:16px 24px}

  /* Footer */
  footer{padding:56px 0 24px}
  .footer-top{grid-template-columns:1fr;gap:36px;padding-bottom:36px;margin-bottom:32px}
  .footer-brand-section .footer-brand{font-size:20px}
  .footer-tagline{font-size:14px;max-width:100%}
  .footer-contact li{font-size:13px}
  .footer-col h4{margin-bottom:18px}
  .footer-col ul{gap:10px}
  .footer-col a{font-size:13px}
  .footer-news p{font-size:13px;margin-bottom:16px}
  .news-form{padding:5px 5px 5px 14px}
  .news-form input{font-size:13px}
  .news-form button{padding:9px 14px;font-size:12px}
  .footer-bottom{padding-top:24px}
  .footer-bottom-left,.footer-bottom-links a{font-size:12px}
  .footer-bottom-links{gap:16px}
}

/* ===== Small phones (< 380px) ===== */
@media (max-width: 380px) {
  :root{--container-pad:14px}
  .hero h1{font-size:28px}
  .section-title{font-size:24px}
  .stat-big .num{font-size:36px}
  .cta h2{font-size:30px}
}

/* ===== Landscape phones - مهم جداً ===== */
@media (max-width: 980px) and (orientation: landscape) and (max-height: 500px) {
  .hero{padding:24px 0 40px;min-height:auto}
  .mobile-menu{height:100vh;height:100dvh}
  .mobile-nav-list{padding:8px 16px}
  .mobile-nav-list>li>a,
  .mobile-nav-list>li>button{padding:10px 16px;font-size:14px}
}
