/* تترا — الصفحة الرئيسية v2
   ألوان: أحمر تترا #E11D30 · جمر الفرن #7A0E1A · ذهبي الجبن #FBBF24 · لون العجينة #FFF7EC · فحم #1C1917
   الفكرة: الفيديو هو البطل. العروض "ستيكرات" مايلة كأنها ملزوقة على علبة بيتزا. */
:root{--th-red:var(--accent-red,#E11D30);--th-ember:#7A0E1A;--th-gold:var(--accent-gold,#FBBF24);--th-dough:#FFF7EC;--th-ink:#1C1917;--th-muted:#57534E}

/* ---------- HERO ---------- */
.th-hero{max-width:1280px;margin:0 auto;padding:118px 24px 36px;position:relative}
.th-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:48px;align-items:center}
.th-copy{text-align:right}
.th-logo{width:118px;height:auto;display:block;margin:0 0 18px}
.th-title{font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.22;font-weight:800;color:var(--th-ink);margin:0 0 14px;letter-spacing:-.01em}
.th-title span{color:inherit}
.th-sub{font-size:1.15rem;line-height:1.8;color:var(--th-muted);margin:0 0 18px;max-width:34em}
.th-points{list-style:none;margin:0 0 26px;padding:0;display:grid;gap:8px}
.th-points li{position:relative;padding-inline-start:26px;font-weight:600;color:var(--th-ink);line-height:1.7}
.th-points li:before{content:"";position:absolute;inset-inline-start:0;top:.62em;width:12px;height:12px;border-radius:50%;background:var(--th-gold);box-shadow:inset 0 0 0 3px #fff,0 0 0 1px var(--th-gold)}
.th-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:18px}
.th-btn{font-family:inherit;font-size:1.05rem;font-weight:800;border-radius:999px;padding:14px 28px;cursor:pointer;border:2px solid transparent;transition:transform .15s ease,box-shadow .15s ease,background .15s ease;text-decoration:none;display:inline-flex;align-items:center;gap:10px}
.th-btn:focus-visible,.th-menu-toggle:focus-visible,.th-invest:focus-visible{outline:3px solid var(--th-gold);outline-offset:3px}
.th-btn-main{background:var(--th-red);color:#fff;box-shadow:0 10px 24px rgba(225,29,48,.28)}
.th-btn-main:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(225,29,48,.34)}
.th-btn-ghost{background:#fff;color:var(--th-ink);border-color:#E7E5E4}
.th-btn-ghost:hover{border-color:var(--th-ink)}
.th-invest{color:var(--th-ember);font-weight:700;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1.5px}

/* الفيديو: البطل */
.th-media{position:relative}
.th-media-card{position:relative;height:min(76vh,640px);min-height:380px;border-radius:30px;overflow:hidden;background:radial-gradient(120% 90% at 30% 20%,#FFE9C7 0%,#FFD3B0 45%,#F9A58A 100%);box-shadow:0 0 0 6px #fff,0 0 0 8px rgba(225,29,48,.18),0 28px 60px rgba(122,14,26,.22)}
.th-media-card .tetra-hero-video--card,.th-media-card .tetra-hero-video{position:absolute;inset:0;width:100%!important;height:100%!important;border-radius:0!important;box-shadow:none!important;margin:0!important;aspect-ratio:auto!important}
.th-media-card video{width:100%;height:100%;object-fit:cover;display:block}
.th-media-card iframe{position:absolute;top:50%;left:50%;width:max(100%,177.78vh);height:max(100%,56.25vw);transform:translate(-50%,-50%);border:0;pointer-events:none}
.th-media-card:after{content:"";position:absolute;inset:auto 0 0 0;height:30%;background:linear-gradient(transparent,rgba(28,25,23,.28));pointer-events:none}
.th-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}

/* العروض = ستيكرات */
.th-sticker{position:absolute;z-index:2;margin:0;font-weight:800;line-height:1.45;font-size:1.02rem;padding:12px 18px;border-radius:18px;max-width:min(260px,62%);box-shadow:0 10px 22px rgba(28,25,23,.18);text-align:center}
.th-sticker:empty{display:none}
.th-sticker--a{top:22px;inset-inline-end:22px;background:#fff;color:var(--th-ember);transform:rotate(-4deg);border:2px dashed rgba(225,29,48,.45)}
.th-sticker--b{bottom:24px;inset-inline-start:22px;background:var(--th-gold);color:#5B1A00;transform:rotate(3deg)}

@media (prefers-reduced-motion:no-preference){
  .th-sticker--a{animation:th-pop .5s .25s both}
  .th-sticker--b{animation:th-pop .5s .45s both}
  @keyframes th-pop{from{opacity:0;transform:scale(.6) rotate(0)}}
}

/* ---------- المنيو (قابل للفتح) ---------- */
#menu.th-menu{max-width:1280px;margin:28px auto 0;padding:0 24px}
#menu.th-menu .section-frame{padding:0;background:none;box-shadow:none;border:0}
.th-menu-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;background:linear-gradient(115deg,var(--th-ember) 0%,var(--th-red) 100%);color:#fff;border-radius:26px;padding:28px 32px;position:relative;overflow:hidden}
.th-menu-head:after{content:"";position:absolute;inset-inline-start:-60px;top:-60px;width:200px;height:200px;border-radius:50%;border:26px solid rgba(251,191,36,.18);pointer-events:none}
.th-menu-head h2{margin:0 0 6px;font-size:clamp(1.5rem,2.6vw,2.1rem);font-weight:800;color:#fff;line-height:1.3}
.th-menu-head p{margin:0;color:rgba(255,255,255,.85);font-size:1.02rem;max-width:36em}
.th-menu-toggle{position:relative;z-index:1;font-family:inherit;font-size:1.1rem;font-weight:800;background:var(--th-gold);color:#3B1200;border:0;border-radius:999px;padding:15px 30px;cursor:pointer;display:inline-flex;align-items:center;gap:12px;box-shadow:0 10px 22px rgba(0,0,0,.18);transition:transform .15s ease}
.th-menu-toggle:hover{transform:translateY(-2px)}
.th-menu-toggle .th-chev{display:inline-block;width:10px;height:10px;border-right:3px solid currentColor;border-bottom:3px solid currentColor;transform:translateY(-3px) rotate(45deg);transition:transform .25s ease}
.th-menu-toggle .th-txt-close{display:none}
#menu.is-open .th-menu-toggle .th-txt-open{display:none}
#menu.is-open .th-menu-toggle .th-txt-close{display:inline}
#menu.is-open .th-menu-toggle .th-chev{transform:translateY(3px) rotate(-135deg)}
#menu .th-menu-body{display:none;padding:22px 0 8px}
#menu.is-open .th-menu-body{display:block}
@media (prefers-reduced-motion:no-preference){#menu.is-open .th-menu-body{animation:th-open .35s ease both}@keyframes th-open{from{opacity:0;transform:translateY(-8px)}}}

/* ---------- موبايل ---------- */
@media (max-width:900px){
  .th-hero{padding:88px 16px 24px}
  .th-grid{grid-template-columns:1fr;gap:26px}
  .th-media{order:-1}
  .th-media-card{height:62vh;min-height:320px;border-radius:24px}
  .th-logo{width:92px;margin-bottom:12px}
  .th-sticker{font-size:.92rem;padding:10px 14px}
  .th-actions .th-btn{flex:1;justify-content:center}
  #menu.th-menu{padding:0 16px}
  .th-menu-head{padding:22px 20px;border-radius:22px}
  .th-menu-toggle{width:100%;justify-content:center}
}

/* ---------- v2.1: الفيديو مستطيل بعرض الصفحة والمحتوى تحته ---------- */
.th-grid{grid-template-columns:1fr;gap:34px}
.th-media{order:-1}
.th-media-card{height:auto;min-height:0;aspect-ratio:16/7;max-height:72vh}
.th-copy{max-width:920px;margin:0 auto;width:100%;display:grid;grid-template-columns:auto 1fr;column-gap:40px;align-items:start}
.th-copy .th-logo{grid-row:span 2;margin:6px 0 0}
.th-copy .th-title,.th-copy .th-sub,.th-copy .th-points,.th-copy .th-actions,.th-copy .th-invest{grid-column:2}
/* طبقة الإضاءة: أفتح / أغمق */
.th-media-card:before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:var(--th-ov,transparent);opacity:var(--th-ov-o,0);transition:opacity .2s ease}
.th-media-card .th-sticker{z-index:3}
@media (max-width:900px){
  .th-media-card{aspect-ratio:4/3;max-height:none}
  .th-copy{display:block}
  .th-copy .th-logo{margin:0 0 12px}
}
