/* ═══════════════════════════════════════════════════
   SGS PRO — Responsive Stylesheet v5.0 (Smarter & Tighter)
   ═══════════════════════════════════════════════════ */

/* ── Large Desktop (1440px+) ─────────────────────── */
@media (min-width:1440px) {
  .wrap { max-width:1360px }
  .hero-h1 { font-size:82px } /* slightly reduced from 88px for balance */
  .stat-num { font-size:56px }
}

/* ── Desktop & Tablet Landscape (1200px-) ──────────────────── */
@media (max-width:1200px) {
  .services-grid { grid-template-columns:repeat(2,1fr) }
  .footer-grid   { grid-template-columns:1fr 1fr; gap:32px }
  .about-badge   { right:-8px }
  .lang-ar .about-badge { left:-8px; right:auto }
  
  /* Smarter Title Sizing - Desktop to Tablet transition */
  .hero-h1 { font-size:68px; line-height:1.2; }
  h1:not(.hero-h1) { font-size:46px; }
  h2, .section-title, .about-title, .services-title, 
  .testimonials-title, .contact-title, .why-title, 
  .values-title, .process-title, .faq-title, .cta-title {
    font-size:34px;
    letter-spacing:-0.01em;
  }
  h3, .subsection-title, .card-title { font-size:26px; }
}

/* ── Tablet (900px-) ─────────────────────────────── */
@media (max-width:900px) {
  .pad     { padding:72px 0 }
  .pad-lg  { padding:96px 0 }
  .wrap    { padding:0 20px }

  /* Nav */
  .nav-menu { display:none; position:fixed; inset:0; top:72px; background:var(--navy-2); flex-direction:column; align-items:flex-start; padding:24px 20px; gap:4px; overflow-y:auto; z-index:100 }
  .nav-menu.open { display:flex }
  .nav-menu li { width:100%; text-align:center !important; }
body.rtl .nav-menu li { width:100%; text-align:center !important; }
  .nav-menu li a { padding:14px 16px; font-size:15px; border-radius:10px; width:100%; display:block; color:#fff !important; }
  .nav-menu li a:hover, .nav-menu li a.active { background:rgba(255,255,255,0.1); color:var(--gold-2) !important; }
  .nav-cta .btn { display:none }
  .nav-toggle { display:flex }
  .lang-drop-mobile { display:block }

  /* Topbar */
  .topbar-left .topbar-addr { display:none }
  .topbar-left a:not(:first-child) { display:none }

  /* Hero */
  .hero-content { padding:80px 0 60px }
  .hero-features { display:none }

  /* Grids → 1 col */
  .about-grid    { grid-template-columns:1fr; gap:40px }
  .about-img-wrap { max-width:480px; margin:0 auto }
  .about-badge   { right:0 }
  .lang-ar .about-badge { left:0 }
  .about-img-sm  { display:none }

  .values-grid   { grid-template-columns:1fr; gap:40px }
  .process-grid  { grid-template-columns:1fr; gap:40px }
  .contact-grid  { grid-template-columns:1fr; gap:36px }
  .faq-grid      { grid-template-columns:1fr }

  .sectors-grid  { grid-template-columns:repeat(2,1fr) }
  .why-grid      { grid-template-columns:1fr 1fr }
  .testi-grid    { grid-template-columns:1fr }
  .stats-grid    { grid-template-columns:repeat(2,1fr) }
  .stat-item     { border-bottom:1px solid rgba(255,255,255,0.06) }

  /* Footer */
  .footer-grid   { grid-template-columns:1fr }
  .footer-bottom { flex-direction:column; text-align:center }
  .form-row      { grid-template-columns:1fr }

  /* Services */
  .services-grid { grid-template-columns:1fr }

  /* Testimonial slider tablet */
  .testi-slider-track .testi-card { padding:36px 32px; }
  .testi-btn { display:none; }
  
  /* SMARTER TITLE SIZING - TABLET (Much smaller) */
  .hero-h1 { font-size:52px; line-height:1.2; margin-bottom:16px; }
  h1:not(.hero-h1) { font-size:38px; }
  h2, .section-title, .about-title, .services-title, 
  .testimonials-title, .contact-title, .why-title, 
  .values-title, .process-title, .faq-title, .cta-title {
    font-size:30px;
    letter-spacing:-0.01em;
    margin-bottom:0.75rem;
  }
  h3, .subsection-title, .card-title { font-size:22px; }
  .stat-num { font-size:44px; }
}

/* ── Mobile (640px-) ─────────────────────────────── */
@media (max-width:640px) {
  html { font-size:15px }
  .pad { padding:56px 0 }

  /* ✅ Mobile 10px left/right padding on all pages */
  .wrap { padding:0 10px !important; }

  .hero-btns     { flex-direction:column; align-items:stretch; }
  .hero-btns .btn { width:100%; justify-content:center }

  .sectors-grid  { grid-template-columns:repeat(2,1fr); gap:10px }
  .sector-pill   { padding:18px 10px }
  .sector-icon   { width:40px; height:40px; font-size:17px }

  .why-grid      { grid-template-columns:1fr }
  .values-list   { grid-template-columns:1fr }
  .stats-grid    { grid-template-columns:1fr 1fr }

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

  .footer-grid   { grid-template-columns:1fr }
  .contact-form  { padding:20px 14px }
  .contact-strip-inner { flex-direction:column; align-items:flex-start }

  .page-hero     { padding:72px 0 56px }

  .topbar        { display:none }
  .wa-float      { width:50px; height:50px; font-size:20px; bottom:20px; right:20px }
  .lang-ar .wa-float { left:20px; right:auto }

  /* Testimonial slider mobile */
  .testi-slider-track .testi-card { padding:28px 20px; }
  .testi-text { font-size:15px; }
  .testi-btn { display:none; }

  /* Button mobile tweaks */
  .btn { padding:12px 22px; font-size:13px; }
  .btn-lg { padding:14px 28px; font-size:14px; }

  /* New sections mobile */
  .newsletter-form { flex-direction:column; gap:10px; }
  .newsletter-form input { border-radius:50px !important; }
  .newsletter-form .btn { width:100%; justify-content:center; }

  .trust-badges { grid-template-columns:1fr 1fr; gap:12px; }

  /* Admin fix */
  .stat-cards { grid-template-columns:1fr 1fr; }
  
  /* ===== SMARTER TITLE SIZING - MOBILE (Significantly smaller) ===== */
  .hero-h1 { 
    font-size: clamp(30px, 7vw, 44px) !important; 
    line-height: 1.2; 
    letter-spacing: -0.02em;
    margin-bottom: 14px;
  }
  h1:not(.hero-h1) { font-size: 26px; line-height: 1.25; }
  h2, .section-title, .about-title, .services-title, 
  .testimonials-title, .contact-title, .why-title, 
  .values-title, .process-title, .faq-title, .cta-title {
    font-size: 22px !important;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
  }
  h3, .subsection-title, .card-title { font-size: 20px; line-height: 1.35; }
  .stat-num { font-size: 36px; }
  .hero-tagline { font-size: 13px; letter-spacing: 0.5px; }
}

/* ── Very Small (400px-) ─────────────────────────── */
@media (max-width:400px) {
  .wrap { padding:0 8px !important; }
  .hero-tagline  { font-size: 10px; }
  .stat-num      { font-size: 30px; }
  .partners-logos{ gap:16px 22px }
  .partner-logo  { font-size:14px }
  .sectors-grid  { grid-template-columns:repeat(2,1fr); gap:8px; }
  
  /* Ultra small titles */
  .hero-h1 { font-size: clamp(28px, 6.5vw, 38px) !important; }
  h1:not(.hero-h1) { font-size: 22px; }
  h2, .section-title, .about-title, .services-title, 
  .testimonials-title, .contact-title, .why-title, 
  .values-title, .process-title, .faq-title, .cta-title {
    font-size: 22px !important;
  }
  h3, .subsection-title, .card-title { font-size: 19px; }
}

/* ═══════════════════════════════════════════════════════════
   SGS PRO — Footer Mobile & Tablet Responsive CSS
   Mobile: max-width 768px | Tablet: max-width 992px
   সব content, লেখা, image, link, icon → center aligned
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 992px) ───────────────────────────────────── */
@media (max-width: 992px) {

  /* Footer grid: 2 column layout */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    text-align: center;
  }

  /* Brand column full width */
  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Logo center */
  .footer-brand .nav-logo {
    display: inline-block;
    margin: 0 auto 20px;
  }

  /* Logo golden line → center */
  .footer-brand .nav-logo::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-brand .nav-logo:hover::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
  }

  /* Tagline center */
  .footer-tagline {
    text-align: center;
    max-width: 480px;
    margin: 0 auto 24px;
  }

  /* Social icons center */
  .footer-socials {
    justify-content: center;
  }

  /* Column title center */
  .footer-col-title {
    text-align: center;
  }

  /* Links center */
  .footer-links {
    align-items: center;
  }

  .footer-links a {
    justify-content: center;
  }
  .footer-links a:hover {
    padding-left: 0;
  }

  /* Contact items center */
  .footer-contact-item {
    justify-content: center;
    text-align: center;
  }

  .footer-contact-icon {
    flex-shrink: 0;
  }

  /* Footer bottom center */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  /* RTL: same center fix */
  .lang-ar .footer-brand {
    align-items: center;
    text-align: center;
  }
  .lang-ar .footer-brand .nav-logo::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .lang-ar .footer-links a:hover {
    padding-right: 0;
  }
}


/* ── Mobile (≤ 768px) ───────────────────────────────────── */
@media (max-width: 768px) {

  /* Footer padding */
  .site-footer {
    padding: 56px 0 0;
  }

  /* Single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 40px;
    text-align: center;
  }

  /* Brand column */
  .footer-brand {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Logo image size */
  .footer-brand .nav-logo img {
    height: 110px;
    margin-right: 0;
    margin-bottom: 16px;
  }

  /* Golden underline → center */
  .footer-brand .nav-logo::after {
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
  }
  .footer-brand .nav-logo:hover::after {
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
  }

  /* Tagline */
  .footer-tagline {
    text-align: center;
    font-size: 13.5px;
    max-width: 100%;
    margin: 0 auto 20px;
  }

  /* Social icons row center */
  .footer-socials {
    justify-content: center;
    gap: 10px;
  }

  .footer-social {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  /* Column title */
  .footer-col-title {
    text-align: center;
    font-size: 12px;
    margin-bottom: 16px;
  }

  /* Links → center aligned */
  .footer-links {
    align-items: center;
    gap: 12px;
  }

  .footer-links a {
    justify-content: center;
    font-size: 14px;
  }

  /* Remove hover indent on mobile */
  .footer-links a:hover {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Contact items → center */
  .footer-contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 18px;
  }

  .footer-contact-icon {
    margin: 0 auto;
  }

  .footer-contact-val {
    text-align: center;
    font-size: 13px;
  }

  /* Footer bottom bar */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 6px;
  }

  .footer-rights,
  .footer-credit {
    font-size: 12px;
    text-align: center;
  }

  /* Contact strip → stack vertically, center */
  .contact-strip-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .contact-strip-left {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .contact-strip-item {
    justify-content: center;
  }

  /* RTL mobile fix */
  .lang-ar .footer-brand {
    align-items: center;
    text-align: center;
  }
  .lang-ar .footer-brand .nav-logo::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .lang-ar .footer-links {
    align-items: center;
  }
  .lang-ar .footer-links a:hover {
    padding-right: 0;
    padding-left: 0;
  }
  .lang-ar .footer-contact-item {
    flex-direction: column;
    align-items: center;
  }
}


/* ── Small Mobile (≤ 480px) ────────────────────────────── */
@media (max-width: 480px) {

  .site-footer {
    padding: 44px 0 0;
  }

  .footer-grid {
    gap: 28px;
    margin-bottom: 32px;
  }

  .footer-brand .nav-logo img {
    height: 90px;
  }

  .footer-social {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .footer-socials {
    gap: 8px;
  }

  .footer-contact-val {
    font-size: 12.5px;
  }

  .footer-bottom {
    padding: 16px 12px;
  }

  .footer-rights,
  .footer-credit {
    font-size: 11.5px;
  }
}

/* ═══════════════════════════════════════════════════════════
   ADDITIONAL SMARTER TOUCH & SPACING IMPROVEMENTS
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Increase tap targets for all interactive elements */
  .btn, 
  .nav-menu li a, 
  .footer-links a,
  .footer-social,
  .sector-pill,
  .accordion-trigger {
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Reduce section spacing for tighter layout */
  section {
    scroll-margin-top: 80px;
  }
  
  /* Better breathing for cards */
  .service-card, 
  .sector-pill, 
  .testi-card,
  .value-card {
    padding: 20px 16px;
  }
  
  /* Adjust golden line for mobile */
  .section-title::after {
    width: 50px;
    height: 3px;
  }
}

/* RTL specific fine-tuning */
.lang-ar @media (max-width: 640px) {
  .hero-h1, h2, .section-title {
    letter-spacing: 0;
  }
}