/* Armaghan v0.5 responsive system */
@media (max-width: 1199.98px){
  :root{--armaghan-gutter:var(--armaghan-gutter-tablet)}
  .header__inner-v5{grid-template-columns:auto 1fr auto!important;gap:16px}
  .header__nav-list{gap:14px}
  .header__nav-list>li>a{font-size:13px}
  .search-shell{width:240px}
  .header__cta{min-width:150px}
  .home-hero--fullbleed .hero__copy{padding-right:44px!important;padding-left:44px!important}
}

@media (max-width: 991.98px){
  :root{--armaghan-gutter:var(--armaghan-gutter-tablet)}
  .announcement .inner{grid-template-columns:190px 1fr 32px!important}
  .header__inner-v5{display:grid!important;direction:ltr!important;grid-template-columns:auto 1fr!important;grid-template-areas:"mobile brand"!important;min-height:74px}
  .header__nav--desktop,.header__actions--desktop{display:none!important}
  .header__brand{grid-area:brand!important;justify-self:end!important;direction:rtl!important;order:initial!important}
  .header__mobile-actions{grid-area:mobile;display:flex;align-items:center;gap:8px;justify-self:start!important;direction:rtl!important;order:initial!important}
  .header__mobile-search,.mobile-toggle{display:grid!important;place-items:center;width:42px;height:42px;border-radius:12px;border:1px solid var(--armaghan-border);background:#fff;color:var(--armaghan-primary)}
  .header__mobile-icon{width:20px;height:20px}
  .brand-name{font-size:15px!important}
  .header__brand .custom-logo-link,.header__brand .logo-slot,.header__brand .custom-logo{width:50px;height:50px;flex-basis:50px}

  .hero.home-hero--fullbleed{grid-template-columns:1fr!important;grid-template-areas:"media" "copy"!important;min-height:0}
  .home-hero--fullbleed .hero__media{height:48vw!important;min-height:340px;max-height:520px}
  .home-hero--fullbleed .hero__copy{padding:34px var(--armaghan-gutter) 38px!important}
  .home-hero--fullbleed .hero__copy h1{font-size:clamp(38px,6vw,54px)!important}

  .calendar .inner{grid-template-columns:1fr!important;grid-template-areas:"copy" "timeline"!important}
  .calendar__copy{border-left:0!important;border-bottom:1px solid var(--armaghan-border)!important}
  .calendar__timeline{padding:28px 22px!important}
  .details .inner{grid-template-columns:1fr 1.2fr!important;grid-template-areas:"copy media" "side media"!important}
  .details__side{padding:20px!important}
  .vip .inner{grid-template-columns:1fr 1.2fr!important}
  .vip__copy{padding:28px!important}
  .footer-cta .inner{grid-template-columns:180px 1fr 210px!important}
  .footer .inner{grid-template-columns:repeat(3,1fr)!important;gap:20px}
}

@media (max-width: 767.98px){
  :root{--armaghan-gutter:var(--armaghan-gutter-mobile)}
  .inner,.armaghan-section-shell,.armaghan-page-shell{margin-right:var(--armaghan-gutter)!important;margin-left:var(--armaghan-gutter)!important}
  .announcement{min-height:68px!important;height:auto!important;padding:8px 0}
  .announcement .inner{height:auto!important;grid-template-columns:1fr 32px!important;gap:6px 10px}
  .announcement__catalog{grid-column:1;grid-row:1;width:100%;height:34px!important}
  .announcement__close{grid-column:2;grid-row:1}
  .announcement__text{grid-column:1/-1;grid-row:2;font-size:11px!important;padding-bottom:2px}

  .header.header--v5{min-height:66px}
  .header__inner-v5{min-height:66px}
  .brand-name{font-size:13px!important}
  .header__brand .custom-logo-link,.header__brand .logo-slot,.header__brand .custom-logo{width:44px;height:44px;flex-basis:44px}

  .home-hero--fullbleed .hero__media{height:62vw!important;min-height:250px;max-height:360px}
  .home-hero--fullbleed .hero__caption{left:18px;bottom:16px;font-size:13px}
  .home-hero--fullbleed .hero__copy{padding:26px var(--armaghan-gutter) 30px!important}
  .home-hero--fullbleed .hero__copy h1{font-size:34px!important;line-height:1.35!important}
  .home-hero--fullbleed .hero__copy p{font-size:13px!important;line-height:1.9!important}
  .home-hero--fullbleed .hero__buttons{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:9px}
  .home-hero--fullbleed .hero__buttons .btn{width:100%;padding:0 10px;font-size:12px}

  .features,.calendar,.products,.details,.vip,.faq,.blog{padding:18px 0!important}
  .features__swiper,.calendar__swiper,.products__swiper,.blog__swiper{overflow:hidden!important;margin-left:calc(var(--armaghan-gutter) * -1);padding-left:var(--armaghan-gutter)}
  .features__grid,.calendar__items,.products__grid,.blog__grid{display:flex!important;grid-template-columns:none!important;grid-template-rows:none!important;gap:0!important;width:100%!important;transform:translate3d(0,0,0)}
  .feature{flex-shrink:0!important}
  .calendar__item,.product-card,.blog-card{width:auto!important;flex-shrink:0!important}
  .feature{border:1px solid var(--armaghan-border)!important;border-radius:18px!important;padding:20px 16px!important;box-shadow:0 8px 22px rgba(61,44,48,.05)}
  .feature__icon{width:46px!important;height:46px!important}

  .calendar .inner{border-radius:20px!important}
  .calendar__copy{padding:24px 18px!important}
  .calendar__copy h2{font-size:29px!important}
  .calendar__copy p{font-size:12px!important}
  .calendar__timeline{padding:18px 14px!important;display:block}
  .calendar__line{display:none}
  .calendar__swiper{margin:0!important;padding:0 0 2px!important}
  .calendar__item{background:#fff;border:1px solid var(--armaghan-border);border-radius:16px;padding:15px 10px;min-height:170px;box-shadow:0 8px 22px rgba(61,44,48,.05)}
  .calendar__circle{margin:0 auto 10px!important}

  .products__head{flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:12px}
  .products__copy h2{font-size:29px!important}
  .products__copy p{font-size:12px!important}
  .products__chips{margin-left:calc(var(--armaghan-gutter) * -1);padding-left:var(--armaghan-gutter)}
  .products__swiper{margin-left:calc(var(--armaghan-gutter) * -1);padding-left:var(--armaghan-gutter)}
  .products__grid{height:auto!important;direction:rtl!important}
  .product-card,.product-card-large{height:330px!important;min-height:330px;grid-column:auto!important;grid-row:auto!important;border-radius:20px!important}
  .product-card__meta{right:16px;left:52px;bottom:15px}

  .details .inner{display:flex!important;flex-direction:column;border-radius:20px!important}
  .details__copy{order:2;padding:22px!important}
  .details__copy h2{font-size:30px!important}
  .details__media{order:1;height:250px;padding:0!important}
  .details__image{object-fit:cover}
  .details__side{order:3;text-align:center;align-items:center!important;padding:16px!important}

  .vip .inner{display:flex!important;flex-direction:column;border-radius:20px!important}
  .vip__media{height:260px;min-height:260px}
  .vip__copy{padding:22px!important}
  .vip__copy h2{font-size:29px!important}
  .vip__copy p{font-size:12px!important}
  .vip__benefits{grid-template-columns:1fr!important}
  .vip__benefit:not(:last-child){border-left:0!important;border-bottom:1px solid var(--armaghan-border)}

  .faq .inner{padding-right:0;padding-left:0;margin-right:var(--armaghan-gutter)!important;margin-left:var(--armaghan-gutter)!important}
  .faq h2,.blog h2{font-size:30px!important}
  .faq__ornament{display:none}
  .faq__item{font-size:12px!important;min-height:48px}

  .blog__swiper{margin-left:calc(var(--armaghan-gutter) * -1);padding-left:var(--armaghan-gutter);max-width:none}
  .blog-card .media-slot{height:210px!important}

  .footer-cta .inner{display:flex!important;flex-direction:column;gap:10px;padding:16px 0;text-align:center}
  .footer-cta__contact{width:100%;height:44px}
  .footer-cta__copy strong{font-size:14px!important}
  .footer-cta__copy span,.footer-cta__side{font-size:11px!important}
  .footer .inner{display:grid!important;grid-template-columns:1fr 1fr!important;gap:22px;padding:10px 0}
  .footer__brand{grid-column:1/-1;text-align:center}
  .footer__brand-row,.footer__socials{justify-content:center}
  .footer__col{padding:0!important;text-align:center}
  .footer__col::after{display:none}
}

@media (max-width: 430px){
  .brand-name{display:none}
  .home-hero--fullbleed .hero__buttons{grid-template-columns:1fr}
  .footer .inner{grid-template-columns:1fr!important}
  .footer__brand{grid-column:auto}
}

/* v0.6 hero overlay responsive corrections */
@media (max-width: 991.98px){
  .hero.home-hero--fullbleed{display:block!important}
  .home-hero--fullbleed .hero__stage{aspect-ratio:auto!important;height:620px!important;min-height:0!important;max-height:none!important}
  .home-hero--fullbleed .hero__image{object-position:37% center!important}
  .home-hero--fullbleed .hero__stage::after{background:linear-gradient(180deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.72) 56%,rgba(255,255,255,.98) 100%)!important}
  .home-hero--fullbleed .hero__copy{position:absolute!important;top:auto!important;right:var(--armaghan-gutter)!important;left:var(--armaghan-gutter)!important;bottom:24px!important;width:auto!important;transform:none!important;padding:0!important}
  .home-hero--fullbleed .hero__copy h1{font-size:clamp(34px,6vw,48px)!important;line-height:1.38!important;max-width:650px}
  .home-hero--fullbleed .hero__copy p{max-width:650px;font-size:13px!important;line-height:1.9!important}
  .home-hero--fullbleed .hero__caption{top:20px!important;bottom:auto!important;left:18px!important;font-size:13px!important}
}
@media (max-width: 575.98px){
  .home-hero--fullbleed .hero__stage{height:590px!important}
  .home-hero--fullbleed .hero__image{object-position:31% center!important}
  .home-hero--fullbleed .hero__stage::after{background:linear-gradient(180deg,rgba(255,255,255,.03) 0%,rgba(255,255,255,.45) 42%,rgba(255,255,255,.98) 68%,#fff 100%)!important}
  .home-hero--fullbleed .hero__copy{bottom:20px!important}
  .home-hero--fullbleed .hero__copy h1{font-size:32px!important;line-height:1.42!important}
  .home-hero--fullbleed .hero__pager{margin:13px 0 4px!important}
  .home-hero--fullbleed .hero__copy p{margin-top:10px!important}
  .home-hero--fullbleed .hero__buttons{margin-top:13px!important}
  .home-hero--fullbleed .hero__tag{display:none}
}


/* ===== Armaghan v0.7 responsive targeted fixes ===== */
@media (max-width: 767.98px){
  .products__chips-track{overflow:hidden!important;margin-left:calc(var(--armaghan-gutter) * -1);padding-left:var(--armaghan-gutter)}
  .products__chips--carousel{display:flex!important;flex-wrap:nowrap!important;gap:0!important;width:100%!important}
  .products__chips--carousel .chip{flex-shrink:0!important}
  .products__swiper,.blog__swiper{overflow:hidden!important;margin-left:calc(var(--armaghan-gutter) * -1);padding-left:var(--armaghan-gutter)}
  .products__grid,.blog__grid{display:flex!important;flex-wrap:nowrap!important;gap:0!important;width:100%!important}
  .products__grid .product-card,.blog__grid .blog-card{height:auto!important;min-height:0!important}
  .product-card,.product-card-large{height:255px!important;min-height:255px!important}
  .blog-card{min-height:0!important}
  .blog-card__media{height:150px!important}
  .blog-card__body h3{font-size:13px!important;min-height:44px}
  .armaghan-lightbox [data-lightbox-zoom-in],
  .armaghan-lightbox [data-lightbox-zoom-out],
  .armaghan-lightbox [data-lightbox-reset]{display:none!important}
}
@media (min-width: 768px) and (max-width: 1199.98px){
  .inner,.armaghan-section-shell,.armaghan-page-shell,.header .inner,.footer .inner,.footer-cta .inner{width:min(var(--armaghan-content-width),calc(100% - (var(--armaghan-gutter) * 2)))!important}
}


/* ===== Armaghan v0.8 mobile carousel fixes ===== */
@media (max-width:767.98px){
  .products__swiper.is-armaghan-swiper-active,.blog__swiper.is-armaghan-swiper-active,.products__chips-track.is-armaghan-swiper-active{overflow-x:auto!important;overflow-y:hidden!important}
  .products__swiper .swiper-wrapper,.blog__swiper .swiper-wrapper,.products__chips-track .swiper-wrapper{gap:12px!important}
  .products__chips-track .swiper-wrapper{gap:8px!important}
  .products__chips-track .chip{width:auto!important;max-width:none!important;flex:0 0 auto!important}
  .armaghan-skeleton-card{min-height:230px!important}
  .armaghan-skeleton--media{height:155px}
}

/* v0.9 managed Hero mobile copy state */
@media (max-width:991.98px){
  .home-hero-slider [data-hero-slide] .hero__copy,
  .home-hero-slider [data-hero-slide].is-active .hero__copy{transform:none!important}
}

/* ===== Armaghan v0.9 Features / Calendar mobile carousel repair ===== */
@media (max-width:767.98px){
  .features__swiper.is-armaghan-swiper-active{overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-y pan-x;margin-left:0!important;padding-left:0!important;width:100%!important}
  .calendar__swiper.is-armaghan-swiper-active{overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-y pan-x}
  .features__swiper.is-armaghan-swiper-active::-webkit-scrollbar,.calendar__swiper.is-armaghan-swiper-active::-webkit-scrollbar{display:none}
  .features__swiper.is-armaghan-swiper-active .swiper-wrapper{gap:14px!important}
  .calendar__swiper.is-armaghan-swiper-active .swiper-wrapper{gap:12px!important}
}
@media (max-width:767.98px){
  .features__swiper .swiper-wrapper{gap:14px!important}
  .calendar__swiper .swiper-wrapper{gap:12px!important}
}
