/* =========================================================
   تيرازيل: مراجعة الجوال، المعرض الاحترافي، القائمة المنسدلة
   تُحمَّل آخر ملف فتتغلب على ما قبلها.
   ========================================================= */

/* ---------- المعرض: بطاقات صغيرة بتاغات ---------- */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px 22px; }
.gcard { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); min-width: 0; }
.gcard:hover { color: var(--ink); }
.gcard__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--ph);
  box-shadow: 0 14px 22px -16px rgba(40,20,10,.6); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.gcard:hover .gcard__media { transform: translateY(-5px); box-shadow: 0 24px 30px -18px rgba(40,20,10,.65); }
.gcard:hover .gcard__media img { transform: scale(1.05); }
.gcard__tags { position: absolute; bottom: 8px; inset-inline: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.gtag { display: inline-block; padding: 2px 9px; border-radius: 30px; font-size: 12px; font-weight: 700; line-height: 1.6; background: rgba(252,248,242,.92); color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.gtag--gold { background: linear-gradient(120deg, #F0D58E, #D6AE5A); color: #2a1d08; }
.gtag--new { background: var(--ink); color: var(--gold-hi); }
.gcard__view { position: absolute; inset-inline: 0; top: 0; padding: 10px; background: linear-gradient(rgba(28,15,22,.7), transparent); text-align: center; font-size: 13px; font-weight: 700; color: #fff;
  opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
.gcard:hover .gcard__view, .gcard:focus-visible .gcard__view { opacity: 1; transform: none; }
.gcard__title { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.4; margin-top: 4px; }
.gcard__sub { font-size: 13px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: none) { .gcard__view { display: none; } }

/* ---------- الجوال والأجهزة اللوحية الصغيرة ---------- */
@media (max-width: 900px) {
  /* ترويسة ثابتة مضغوطة */
  .site-header { position: sticky; top: 0; z-index: 60; }
  .site-header__in { padding-block: 8px; flex-wrap: nowrap; gap: 12px; }
  .brand__logo { height: 46px; }
  .nav-toggle { min-height: 44px; padding: 6px 16px; }

  /* القائمة: لوحة منسدلة صغيرة لا تغطي الشاشة */
  .site-nav, .site-nav.is-open { animation: none; }
  .site-nav { position: absolute; top: calc(100% + 6px); inset-inline-end: 12px; inset-inline-start: auto; width: min(78vw, 300px); max-height: min(70vh, 460px); overflow-y: auto; z-index: 70;
    padding: 8px; gap: 2px; border-radius: 6px; background-color: var(--cream); background-image: var(--grain), var(--weave);
    box-shadow: 0 24px 40px -10px rgba(0,0,0,.55); outline: 2px dashed rgba(162,114,42,.55); outline-offset: -6px; }
  .site-nav__link { display: block; width: 100%; margin: 0; padding: 12px 16px; font-size: 16px; font-weight: 700; border-radius: 3px; background: none; color: var(--ink-soft);
    border-bottom: 1px dashed rgba(162,114,42,.3); transform: none !important; animation: none !important; }
  .site-nav__link:last-of-type { border-bottom: 0; }
  .site-nav__link:hover { background: rgba(226,190,112,.2); margin: 0; }
  .site-nav__link.is-active { background: var(--wine); color: var(--gold-hi); margin: 0; border-bottom: 0; }
  .site-nav .btn { width: 100%; margin: 8px 0 0; min-height: 46px; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(28,15,22,.4); z-index: 55; }
  body.nav-open .site-header { z-index: 65; }
}

@media (max-width: 760px) {
  :root { --section: 44px; --gutter: 18px; }
  body { font-size: 16px; line-height: 1.75; }
  .h-display { font-size: clamp(26px, 7.4vw, 34px); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stack-lg { gap: 22px; }
  .stack-xl { gap: 28px; }

  /* الرئيسية: هيرو أقصر */
  .hero { padding-block: 22px 32px; gap: 26px; }
  .hero__title { font-size: clamp(34px, 10vw, 44px); }
  .hero__text { gap: 16px; }
  .hero__media { flex-basis: 100%; }
  .framed { max-width: 270px; margin-inline: auto; }
  .btn-row .btn { flex: 1 1 100%; }
  .band__group { font-size: 16px; }

  /* العارضة بالرئيسية: صغيرة وبتبويبات أفقية */
  .model { gap: 22px; }
  .model__stage { max-width: 270px; }
  .model__panel { gap: 14px; }
  .model__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .model__tabs::-webkit-scrollbar { display: none; }
  .model__tab { flex: none; padding: 6px 16px; white-space: nowrap; }

  /* الشبكات: عمودان */
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .gcard__title { font-size: 16px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .card__title { font-size: 16px; }
  .card__meta { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 8px; }
  .card__btn { font-size: 12px; padding: 4px 12px; }
  .pillars, .steps { gap: 22px; }
  .pillar h3 { font-size: 24px; }
  .step__n { font-size: 34px; }
  .posts { gap: 22px; }

  /* موضة اليوم: أصغر */
  .today > div { padding: 30px 20px 18px; }
  .today__v { font-size: 22px; }

  /* الطلب والنموذج */
  .order-form { padding: 52px 18px 32px; transform: none; gap: 24px; }
  .chips { gap: 10px; }
  .chip { min-width: 88px; min-height: 78px; padding: 10px 10px; flex: 1 1 28%; font-size: 14px; }
  .chip__icon { width: 26px; height: 26px; }
  .chips--contact .chip { flex: 1 1 28%; flex-direction: column; min-height: 76px; gap: 4px; }
  .order-summary { padding: 12px; }
  .order-summary > img { width: 72px; height: 90px; }

  /* لميس */
  body .lamis-head__title { font-size: clamp(56px, 20vw, 80px); }
  body .lamis-tabs { width: 100%; display: flex; }
  body .lamis-tab { flex: 1; padding: 12px 8px; }
  body .look-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  body .look-card { font-size: 13px; padding: 5px 5px 8px; }
  body .look-soon { min-height: 0; aspect-ratio: 4 / 5; font-size: 12px; }
  body .lamis { gap: 24px; padding-bottom: 40px; }
  body .lamis__stage--photo { max-width: 360px; margin-inline: auto; }
  body .stage__quote { font-size: 13px; padding: 8px 12px; }
  body .lamis__panel { gap: 20px; }
  body .opt legend { font-size: 19px; }

  /* صفحة التصميم */
  .design { gap: 24px; }
  .gallery__main { max-height: 62vh; width: 100%; object-fit: contain; background: var(--ph); }
  .gallery__thumb { width: 64px; }

  /* الفوتر: مضغوط وأوضح */
  .site-footer { padding-bottom: 20px; }
  .seam { margin-top: 24px; }
  .f-story { gap: 28px; padding-block: 12px 30px; }
  .f-story__title { font-size: clamp(30px, 9vw, 40px); }
  .f-story__text { font-size: 16px; line-height: 1.9; }
  .wlabel { width: min(100%, 250px); padding: 26px 18px 22px; margin-top: 44px; }
  .wlabel__brand img { width: 120px; }
  .wlabel__line { font-size: 18px; }
  .wlabel__care { margin-top: 10px; padding-top: 8px; }
  .f-lamis { padding: 18px; margin-block: 0 18px; }
  .f-lamis strong { font-size: 20px; }
  .f-lamis__go { width: 46px; height: 46px; }
  .f-tiles { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 26px; }
  .f-tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .f-tile--wa { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .f-tile svg { width: 28px; height: 28px; }
  .f-tile b { font-size: 15px; }
  .f-social { margin: 0 0 24px; gap: 10px; }
  .f-social a { width: 48px; height: 48px; }
  .f-grid { gap: 22px 28px; padding-top: 22px; }
  .site-footer__brand { max-width: none; }
  .site-footer__brand .brand__logo--lg { height: 84px; }
  .site-footer__cols { gap: 18px 36px; }
  .site-footer__col a { min-height: 44px; }
  .f-care { display: none; }
  .f-mark { font-size: 15vw; margin-top: 18px; }
  .site-footer__bottom { margin-top: 18px; font-size: 13px; }
  .consent { inset-inline: 10px; bottom: 10px; padding: 12px 14px; gap: 8px 12px; }
  .consent p { font-size: 13.5px; line-height: 1.6; }
  .consent__btns { width: 100%; }
  .consent__btns .btn { flex: 1; min-height: 40px; padding: 6px 10px; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================================================
   صفحة المقال: تجربة قراءة
   ========================================================= */
.art { padding-bottom: 20px; }
.art__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: clamp(28px, 5vw, 64px); }
.art__title { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5.2vw, 52px); line-height: 1.35; text-wrap: balance; color: var(--ink); }
.art__lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.9; color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--muted); padding-top: 4px; }
.art__by b { color: var(--ink); }
.art__dot { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.art__cover { margin-block: clamp(22px, 4vw, 40px); }
.art__cover img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 4px; box-shadow: 0 24px 40px -26px rgba(40,20,10,.6); }
.prose--article { font-size: clamp(18px, 1.7vw, 20px); line-height: 2.05; font-weight: 400; color: #2a2024; }
.prose--article > * + * { margin-top: 1.25em; }
.prose--article h2 { display: block; background: none; clip-path: none; padding: 0; margin: 2.2em 0 .5em; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); line-height: 1.4; color: var(--ink); position: relative; padding-inline-start: 22px; }
.prose--article h2::before { content: ''; position: absolute; inset-inline-start: 0; top: .35em; bottom: .35em; width: 6px; border-radius: 6px; background: linear-gradient(180deg, #E2BE70, #A2722A); }
.prose--article h3 { font-family: var(--display); font-size: clamp(20px, 2.2vw, 25px); margin: 1.8em 0 .3em; }
.prose--article blockquote { margin-inline: 0; padding: 18px 26px; border-inline-start: 5px solid var(--gold); background: rgba(226,190,112,.14); border-radius: 0 8px 8px 0; font-family: var(--display); font-size: 1.12em; line-height: 1.9; color: var(--ink); }
.prose--article blockquote p { margin: 0; }
.prose--article strong { color: var(--ink); font-weight: 700; }
.prose--article ul, .prose--article ol { padding-inline-start: 1.4em; }
.prose--article li + li { margin-top: .5em; }
.prose--article a { color: var(--wine); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose--article a:hover { color: var(--gold-lo); }
.prose--article img { width: 100%; height: auto; border-radius: 4px; }
.prose--article hr { border: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); margin-block: 2em; }
.art__share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 2px dashed rgba(162,114,42,.4); font-weight: 700; }
.art__share a, .art__share button { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 18px; border-radius: 30px; border: 0; cursor: pointer; text-decoration: none; background: var(--ink); color: var(--gold-hi); box-shadow: 0 2px 0 var(--gold-lo); transition: transform .2s; }
.art__share a:hover, .art__share button:hover { transform: translateY(-2px); color: #fff; }
.art__author { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 18px; border-radius: 10px; background-color: var(--cream); background-image: var(--grain), var(--weave); outline: 2px dashed rgba(162,114,42,.5); outline-offset: -7px; }
.art__author img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.art__author p { margin: 2px 0 0; font-size: 15px; color: var(--text-2); line-height: 1.8; }
.art-cta { margin-top: 28px; padding: clamp(22px, 4vw, 36px); background: radial-gradient(500px 260px at 90% 0%, rgba(122,44,68,.6), transparent 70%), var(--ink); color: var(--cream); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.art-cta__t { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); color: var(--gold-hi); }
.art-cta p { margin: 0; color: #E3D8C4; }
.art-cta .btn-row { margin-top: 8px; }
.art-cta .btn--ghost { color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--gold-hi); }
.gal--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 760px) { .gal--wide { grid-template-columns: 1fr 1fr; } .art__title { font-size: clamp(28px, 8vw, 38px); } }
