/* =========================================================
   TRWAGA - GLOBAL THEME (Red / White / Black)
   ✅ استبدل الملف بالكامل بهذا
========================================================= */

/* =============== Reset + Base =============== */
* { box-sizing: border-box; }
html, body { height: auto; } /* ✅ لا تخليها 100% عشان ما تقفل السكرول */
body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(255,0,0,.16), transparent 55%),
              radial-gradient(1000px 700px at 80% 20%, rgba(255,255,255,.05), transparent 50%),
              #070707;
  color: #fff;
  overflow-x: hidden;  /* ✅ يمنع يمين/يسار */
  overflow-y: auto;    /* ✅ يضمن السكرول */
}

/* =============== Variables =============== */
:root{
  --red: #c10d0d;
  --red2:#ff1f1f;
  --black:#070707;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.10);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;

  /* =======================================================
   
     طول سكشن الخبز + مكان الصور
  ======================================================= */
  --bread-min-h: 920px; /* ✅ زوّد/قلّل: هذا هو "مطّ الصفحة تحت" للسكشن */
  --bread-top: 1px;    /* ✅ نزّل الخبز لتحت */
  --bread-side: -10px;  /* ✅ قرب الخبز من طرف الصفحة (قيمة سالبة = يقرب) */
  --bread-w: 420px;     /* ✅ حجم صورة الخبز */
}

/* =============== Helpers =============== */
.container{
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.small{ font-size: 14px; color: var(--muted2); line-height: 1.8; }
.sub{ color: var(--muted); line-height: 1.9; max-width: 760px; }
a{ color: inherit; text-decoration: none; }

/* =============== Buttons =============== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  user-select: none;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.btn.red{
  background: linear-gradient(135deg, var(--red2), var(--red));
  border-color: rgba(255,0,0,.30);
  box-shadow: 0 10px 30px rgba(255,0,0,.20);
}
.btn.red:hover{ background: linear-gradient(135deg, #ff3333, #b10a0a); }

.icon-btn{ width: 46px; padding: 0; border-radius: 14px; }
.hamburger{ display:none; }

/* =============== Topbar / Nav =============== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.logo{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.logo img{ width: 100%; height: 100%; object-fit: cover; }

.brand .t{ display:flex; flex-direction: column; line-height: 1.1; }
.brand .t b{ letter-spacing:.6px; }
.brand .t span{ font-size: 13px; color: var(--muted2); margin-top: 4px; }

.navlinks{
  display:flex;
  align-items:center;
  gap: 18px;
  opacity: .95;
}
.navlinks a{
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,.86);
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}
.navlinks a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}

.nav-cta{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Mobile menu */
.mobile{
  display:none;
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.55);
}
.mobile a{
  display:block;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.04);
  margin-bottom: 10px;
}


/* ===================== (FIX) MOBILE NAV ===================== */

/* خلي المينيو يفتح لما JS يضيف open */
.mobile.open{
  display: block;
}

/* موبايل/تابلت: اخفي navlinks واظهر الهامبرجر */
@media (max-width: 820px){
  .navlinks{ display: none; }     /* اخفاء الروابط اللي فوق */
  .hamburger{ display: inline-flex; } /* اظهار زر الثلاث خطوط */

  .brand{ min-width: 0; }         /* يمنع تزاحم */
  .brand .t span{ display: none; } /* اختياري: اخفاء السطر الصغير بالجوال */
}








/* =============== Cards =============== */
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  padding: 18px;
  

   backdrop-filter: blur(14px);        /* ✅ البلور */
  -webkit-backdrop-filter: blur(14px);/* ✅ دعم سفاري */
}
.card.soft{
  background: radial-gradient(1200px 800px at 0% 0%, rgba(255,0,0,.20), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,0,0,.25);
  background: rgba(255,0,0,.10);
  color: rgba(255,255,255,.92);
  font-size: 13px;
}

/* =============== HERO (أول الصفحة) =============== */
.hero{
  padding: 44px 0 40px;
}
.hero--full{
  /* ✅ هذا هو اللي يخلي أول الصفحة "كامل الشاشة" بدون ما يقفل السكرول */
  min-height: calc(100vh - 78px); /* 78px تقريبًا ارتفاع الناف sticky */
  display: flex;
  align-items: center;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: center;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  margin-bottom: 12px;
  font-size: 13px;
}

.hero-title{
  font-size: clamp(34px, 4vw, 54px);
  margin: 0 0 10px;
  letter-spacing: .2px;
}
.hero-sub{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 560px;
}
.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-phone-title{ margin: 10px 0 6px; }

/* =============== BREAD SECTION (تحت بعد النزول) =============== */
.bread-section{
  position: relative;
  /* ✅ هنا تطوّل السكشن عشان يصير فيه سكرول ومساحة */
  min-height: var(--bread-min-h);
  padding: 46px 0 54px;
  overflow: hidden; /* ✅ يمنع الصور تطلع برّا وتسبب سحب يمين/يسار */
}

/* صور الأطراف */
.bread-img{
  position: absolute;
  top: var(--bread-top);  /* ✅ نزّل الخبز من هنا */
  width: var(--bread-w);
  max-width: 46vw;
  height: auto;
  opacity: .95;
  filter: drop-shadow(0 20px 55px rgba(0,0,0,.55));
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* يسار: طبيعي */
.bread-left{
  left: var(--bread-side); /* ✅ قربه للطرف من هنا */
}

/* يمين: مقلوب */
.bread-right{
  right: var(--bread-side); /* ✅ قربه للطرف من هنا */
  transform: scaleX(-1);
}

/* وسط السكشن */
.bread-center{
  position: relative;
  z-index: 2;
  display:flex;
  justify-content:center;

  /* ✅ هذا هو النزول */
  align-items: flex-start;
  padding-top: 140px; /* عدّل الرقم: 100 / 140 / 180 حسب ما تبي */
}


/* كارد واحد فقط بالنص */
.bread-card{
  width: min(720px, 100%);
  text-align: center;
  padding: 22px;
}
.bread-title{
  margin: 10px 0 6px;
}
.bread-text{
  margin: 0;
}


/* =========================================================
   
   footer
========================================================= */

.tfooter{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 18px 0 22px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  color: rgba(255,255,255,.70);
  display: flex;
}

.footer-row{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.footer-social-block{
  text-align: center;
}

.footer-follow{
  font-size: 0.85rem;
  color: rgba(255,255,255,.65);
  margin: 0 0 8px;
}

.footer-social{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:center;
  align-items:center;
}

.social-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 44px;
  border-radius: 999px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);

  font-size: 1.2rem;
  color: rgba(255,255,255,.75);

  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.social-btn i{ pointer-events:none; }

.social-btn:hover{
  background: linear-gradient(135deg, var(--red2), var(--red));
  border-color: rgba(255,0,0,.28);
  color:#fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255,0,0,.22);
}

@media (max-width: 640px){
  .footer-row{
    justify-content:center;
    text-align:center;
  }
}


/* ===================== (ADD) BRANCHES PAGE ===================== */
/* حط كروت الفروع داخل <div class="branches-grid"> */
.branches-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

/* اختياري: تنسيق عنوان الفرع */
.branch-title{
  margin: 10px 0 6px;
}

/* أزرار داخل كرت الفرع */
.card-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}

@media (max-width: 980px){
  .branches-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .branches-grid{ grid-template-columns: 1fr; }
}


/* ===================== (ADD) MENU PAGE ===================== */
.menu-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}



/* ===================== (ADD) MENU IMAGES ===================== */
.menu-card{ overflow: hidden; }

.menu-media{
  width: 100%;
  aspect-ratio: 16 / 10;   /* تقدر تغيّرها 4/3 أو 1/1 حسب صورك */
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,10);
  background: rgba(255,255,255,04);
}

.menu-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;       /* يخلي الصورة بروفيشنال بدون تمدد */
  display: block;
}

.menu-title{ margin: 10px 0 6px; }




/* شريط الفلاتر والبحث */
.menu-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  margin-bottom: 14px;
}

/* Chips */
.chips{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip{
  appearance: none;
  -webkit-appearance: none;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
  cursor:pointer;
  font-family: inherit;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.chip:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.20);
}
.chip.active{
  border-color: rgba(255,0,0,.35);
  background: rgba(255,0,0,.14);
}

/* البحث */
.search input{
  height: 42px;
  width: min(340px, 80vw);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color:#fff;
  padding: 0 12px;
  outline: none;
  font-family: inherit;
}
.search input::placeholder{ color: rgba(255,255,255,.55); }

@media (max-width: 980px){
  .menu-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .menu-grid{ grid-template-columns: 1fr; }
}



/* ===================== (ADD) CONTACT PAGE ===================== */
.form{
  display:grid;
  gap: 12px;
  margin-top: 14px;
}

.field{ display:grid; gap: 6px; }
.field label{ color: rgba(255,255,255,.85); font-size: 14px; }

.field input,
.field textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: #fff;
  padding: 12px 12px;
  outline: none;
  font-family: inherit;
}
.field textarea{ min-height: 110px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder{ color: rgba(255,255,255,.55); }

/* ===================== (ADD) FOOTER ALWAYS BOTTOM ===================== */
/* إذا عندك already body flex لا تضيفه. إذا ما عندك ضيف هذولا: */

/* أي <main> في الصفحات (غير الرئيسية) اعطه class="page-main" */
.page-main{ flex: 1; }

/* الفوتر ينزل تحت */
.footer{ margin-top: auto; }



/* =========================================================
   (FIX) Sticky Footer — للمنيو / الفروع / التواصل فقط
   الفكرة: نخلي body Flex + نخلي main يتمدد = الفوتر يثبت تحت
========================================================= */
body.page-layout{
  min-height: 100vh;        /* يخلي الصفحة طولها على الأقل طول الشاشة */
  display: flex;
  flex-direction: column;
}

body.page-layout > main.page-main{
  flex: 1;                  /* هذا اللي يدفع الفوتر لأسفل */
}




/* ===================== (ADD) HOME GALLERY SECTION ===================== */
.gallery-section{
  background: #fff;
  color: #111;
  padding: 56px 0;
}

.gallery-wrap{
  background: #fff;
  border-color: rgba(0,0,0,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.12);
}

.gallery-section .tag{
  border-color: rgba(193,13,13,.25);
  background: rgba(193,13,13,.08);
  color: #111;
}

.gallery-title{
  margin: 12px 0 6px;
  color: #111;
}

.gallery-sub{
  margin: 0;
  color: rgba(0,0,0,.65);
  line-height: 1.9;
  max-width: 760px;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.gallery-item{
  padding: 0;
  overflow: hidden;
  border-color: rgba(0,0,0,.10);
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.gallery-item img{
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

@media (max-width: 980px){
  .gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item img{ height: 240px; }
}
@media (max-width: 520px){
  .gallery-grid{ grid-template-columns: 1fr; }
  .gallery-item img{ height: 260px; }
}



/* Hover Zoom for 3 images */
.gallery-item img{
  transition: transform .25s ease;
  transform: scale(1);
}

.gallery-item:hover img{
  transform: scale(1.06);
}

/* CTA button under images */
.gallery-cta{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.btn-red{
  background: #ffffff;
  color: #c21e1e !important;
  border: 1px solid rgba(0,0,0,.08);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-red:hover{
  transform: translateY(-2px);
  opacity: .95;
}




/* ===== BG Overlay Image (No change to existing background) ===== */
body{ position: relative; }

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;

  background: url("../assets/bg/vv.png") no-repeat center top;
  background-size: cover;

  opacity: .22;
  pointer-events: none;
}

body > *{
  position: relative;
  z-index: 1;
}



/* ===================== ABOUT PAGE (Big split card) ===================== */
.about-hero-card{
  padding: 0;
  overflow: hidden;
}

/* ✅ مهم: هذا كان ناقص عندك */
.about-split{
  display: grid;
  grid-template-columns: 0.95fr 1.05fr; /* يسار صورة / يمين نص */
  gap: 0;
  min-height: 320px;

  direction: ltr; /* ✅ يثبت الصورة باليسار حتى لو الصفحة RTL */
}

/* يسار: صورة */
.about-media{
  position: relative;

  /* ✅ بما أن الصورة يسار: الحد يكون يمين */
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.about-media img{
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  opacity: .95;
}

/* يمين: نص */
.about-content{
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;

  direction: rtl;     /* ✅ عربي */
  text-align: right;
}

/* إذا تحولت الصفحة إنجليزي */
html[dir="ltr"] .about-content{
  direction: ltr;
  text-align: left;
}

.about-title{
  margin: 6px 0 2px;
  font-size: 24px;
}

.about-text{
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  max-width: 650px;
}

.about-points{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.about-long{
  margin-top: 14px;
}

.about-long-text{
  margin: 0;
  line-height: 2;
}

/* Responsive */
@media (max-width: 900px){
  .about-split{
    grid-template-columns: 1fr;
    direction: rtl; /* اختياري: عشان ما يصير غريب بالموبايل */
  }

  .about-media{
    border-right: 0; /* ✅ بدل border-left */
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .about-media img{
    min-height: 240px;
  }
}





@media (max-width: 520px){
  :root{
    --bread-w: 300px;
    --bread-top: -1px;
    --bread-min-h: 980px;
  }

  .bread-center{
    padding-top: 460px;
  }
}
