/* =================================================================
   STAR MEDIA AGENCY — RESPONSIVE STYLESHEET
   ================================================================= */

/* ---------- Tablets & below (≤ 991px) ---------- */
@media (max-width: 991.98px){

  .navbar-toggler{ display: flex; }

  .nav-collapse{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: rgba(7,11,22,0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 34px;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    z-index: 999;
  }
  .nav-collapse.open{ transform: translateX(0); }

  .nav-links{
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
  }
  .nav-link{ width: 100%; padding: 14px 16px; font-size: 1rem; }
  .nav-link::after{ display: none; }

  .btn-cta.d-lg-none{ width: 100%; justify-content: center; }

  .hero{ padding-top: 130px; text-align: left; }
  .hero-btns{ justify-content: flex-start; }

  .stats-grid{ margin-top: 40px; }

  .portfolio-grid{ columns: 2 240px; }

  .process-timeline::before{ display: none; }
  .process-timeline{ justify-content: center; }
  .process-step{ min-width: 45%; margin-bottom: 26px; }
}

/* ---------- Small tablets / large phones (≤ 767px) ---------- */
@media (max-width: 767.98px){

  .section{ padding: 84px 0; }

  .hero{ min-height: auto; padding-top: 120px; padding-bottom: 80px; }
  .hero-logo{ height: 52px; }
  .hero-title{ font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .hero-desc{ font-size: .95rem; }
  .hero-btns{ flex-direction: column; }
  .hero-btns a{ width: 100%; text-align: center; }

  .stats-grid{ grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-card{ padding: 24px 14px; }
  .stat-card h3, .stat-card > span{ font-size: 2rem; }

  .portfolio-grid{ columns: 1 100%; }

  .process-step{ min-width: 100%; }

  .contact-form{ padding: 26px; }

  .map-placeholder{ margin-top: 40px; min-height: 200px; }

  #backToTop{ width: 44px; height: 44px; bottom: 20px; right: 20px; }

  .footer{ text-align: center; }
  .footer p{ margin-left: auto; margin-right: auto; }
  .footer .col-lg-3, .footer .col-lg-2{ margin-top: 10px; }
}

/* ---------- Small phones (≤ 480px) ---------- */
@media (max-width: 480px){
  .brand-logo{ height: 38px; }
  .hero-eyebrow{ font-size: .72rem; }
  .btn-primary-glow, .btn-outline-glow{ padding: 14px 24px; font-size: .88rem; }
  .section-title{ font-size: 1.7rem; }
  .service-card, .feature-card{ padding: 26px 20px; }
  .testimonial-card{ padding: 26px 22px; }
}


/* =========================
   AD ACCOUNT MOBILE FIX
========================= */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden !important;
    }

    * {
        box-sizing: border-box;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .container,
    .section,
    .section-container,
    .ad-account-container,
    .ad-container,
    .content-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .ad-account,
    .ad-account-section,
    .ad-account-page {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .cards,
    .pricing-grid,
    .services-grid,
    .account-grid {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .card,
    .pricing-card,
    .service-card,
    .account-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    h1 {
        font-size: clamp(32px, 9vw, 52px);
        line-height: 1.1;
    }

    h2 {
        font-size: clamp(26px, 7vw, 40px);
    }

    p {
        max-width: 100%;
        word-wrap: break-word;
    }

    .btn,
    button,
    a {
        max-width: 100%;
    }
}

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    .container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Ad Account cards */
    .pricing-grid,
    .services-grid,
    .cards {
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    .pricing-card,
    .service-card,
    .card {
        width: 100%;
        max-width: 100%;
    }
}



/* =========================================
   AD ACCOUNT MOBILE NAVBAR
========================================= */

@media (max-width: 991.98px) {

    .navbar.fixed-top {
        width: 100%;
        background: #0b0918 !important;
        padding: 15px 20px !important;
        z-index: 9999;
    }

    .navbar.fixed-top .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    /* Logo */
    .navbar.fixed-top .navbar-brand img {
        width: 45px;
        height: auto;
    }

    /* Hamburger */
    .navbar.fixed-top .mobile-toggle {
        display: flex !important;
        width: 48px;
        height: 48px;
        align-items: center;
        justify-content: center;

        border: 1px solid rgba(255,255,255,.15);
        border-radius: 14px;

        background: #171522;
        margin-left: auto;
    }

    .navbar.fixed-top .navbar-toggler-icon {
        filter: invert(1);
    }

    /* Mobile menu */
    .navbar.fixed-top .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;

        width: 80%;
        max-width: 330px;
        height: 100vh;

        padding: 100px 30px 40px;

        background: #0c0a18;

        display: flex !important;
        flex-direction: column;

        transition: right .35s ease;

        z-index: 9998;
    }

    /* لما القائمة تفتح */
    .navbar.fixed-top .navbar-collapse.show {
        right: 0;
    }

    .navbar.fixed-top .navbar-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .navbar.fixed-top .nav-link {
        width: 100%;
        padding: 14px 10px !important;

        color: #fff !important;
        font-size: 16px;

        text-align: center;
    }

    .navbar.fixed-top .navbar-cta {
        width: 100%;
        margin-top: 20px;
    }

    .navbar.fixed-top .talk-btn {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}








