@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

/* ===== Vars & Base ===== */
.graphics-page{
  --bg:#121212;
  --bg2:#1a1a1a;
  --card:#171717;
  --text:#f2f2f2;
  --muted:#bdbdbd;
  --accent:#fdd835;
  --border:#232323;
  font-family:'Montserrat',system-ui,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
.ast-container{max-width:1200px;margin-inline:auto;padding-inline:16px;}
.narrow-container{max-width:880px;}
.gl-section{padding:72px 0;}
.gl-title{font-size:clamp(24px,3vw,34px);font-weight:800;margin:0 0 26px;text-align:center;}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;border-radius:12px;font-weight:800;text-decoration:none;transition:.2s ease;border:0;}
.btn--primary{background:var(--accent);color:#111;box-shadow:0 10px 30px rgba(253,216,53,.25);}
.btn--primary:hover{transform:translateY(-1px);}
.btn--ghost{background:transparent;color:var(--accent);border:1px solid var(--accent);}
.btn--ghost:hover{background:rgba(253,216,53,.08);}


/* ===== HERO (fixed, compat) ===== */
.gl-hero{
  position:relative;
  /* fallback ثم الحدّيث */
  min-height:92vh;
  min-height:92dvh;
  display:grid;
  /* fallback قديم للفاليديتور ثم القيمة الحديثة */
  align-items:flex-end;
  align-items:end;
  isolation:isolate;
  overflow:hidden;
  background:linear-gradient(180deg,#121212 0%, #1a1a1a 100%); /* fallback */
}
.gl-hero-slider{
  position:absolute;
  top:0; right:0; bottom:0; left:0; /* بدل inset */
  z-index:0;
}
.gl-slide{
  position:absolute;
  top:0; right:0; bottom:0; left:0; /* بدل inset */
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  filter:saturate(110%);
  opacity:0;
  transition:opacity .8s ease;
}
.gl-slide.is-active{opacity:1;}
.gl-hero::after{
  content:"";
  position:absolute;
  top:0; right:0; bottom:0; left:0; /* بدل inset */
  z-index:1;
  background:linear-gradient(0deg, rgba(18,18,18,.55), rgba(18,18,18,.15));
  pointer-events:none;
}
.gl-hero .gl-hero-content{
  position:relative; z-index:2;
  text-align:center; margin:0 auto 80px; max-width:900px;
}
.gl-hero h1{
  color:#fff; margin:0 0 18px;
  font-size:clamp(28px,4.4vw,54px); font-weight:800;
  text-shadow:0 2px 28px rgba(0,0,0,.4);
}
.gl-hero .btn{min-width:230px;}

/* ===== SERVICES ===== */
.gl-services{background:linear-gradient(180deg,var(--bg) 0%,var(--bg2) 100%);}
.gl-services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:14px;}
.gl-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:24px;box-shadow:0 8px 24px rgba(0,0,0,.18);}
.gl-card h3{margin:10px 0 8px;font-weight:800;}
.gl-ico{width:56px;height:56px;border-radius:14px;background:#1e1e1e;color:var(--accent);display:grid;place-items:center;}
.gl-ico i{font-size:24px;}
.gl-list{margin:8px 0 0;padding:0;list-style:none;}
.gl-list li{position:relative;padding-inline-start:22px;margin:10px 0;color:#dcdcdc;}
.gl-list li::before{content:'✓';position:absolute;inset-inline-start:0;color:var(--accent);font-weight:900;}

/* ===== PORTFOLIO ===== */
.gl-portfolio{background:var(--bg);}
.gl-filters{display:flex;gap:10px;justify-content:center;margin:8px 0 18px;}
.gl-filter{padding:10px 16px;border-radius:999px;border:1px solid var(--border);background:#171717;color:#ddd;cursor:pointer;}
.gl-filter.is-active,.gl-filter:hover{border-color:var(--accent);color:#111;background:var(--accent);}
.gl-gallery{column-count:3;column-gap:16px;}
.gl-item{break-inside:avoid;margin:0 0 16px;border-radius:14px;overflow:hidden;border:1px solid var(--border);background:#0f0f0f;}
.gl-item img{display:block;width:100%;height:auto;}
.gl-item figcaption{padding:10px 12px;color:#eaeaea;font-weight:600;}

/* ===== PROCESS ===== */
.gl-process{background:var(--bg2);}
.gl-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-items:start;margin:8px 0;}
.gl-steps li{list-style:none;text-align:center;}
.gl-step-ico{width:64px;height:64px;border-radius:18px;border:1px solid var(--border);display:grid;place-items:center;margin:0 auto 8px;background:#161616;color:var(--accent);}
.gl-step-ico i{font-size:24px;}
.gl-steps span{display:block;color:#e6e6e6;font-weight:700;}

/* ===== PRICING ===== */
.gl-pricing{background:var(--bg);}
.gl-pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.gl-price{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:24px;display:grid;gap:10px;text-align:center;}
.gl-price h3{margin:0;font-weight:800;}
.gl-price-tag{font-size:28px;font-weight:800;color:var(--accent);margin:2px 0 8px;}
.gl-price ul{list-style:none;margin:0;padding:0;color:#d0d0d0;}
.gl-price ul li{margin:8px 0;}
.gl-price--featured{outline:2px solid var(--accent);box-shadow:0 14px 36px rgba(253,216,53,.18);}

/* ===== CONTACT ===== */
.gl-contact{background:var(--bg2);}
.gl-form{background:#151515;border:1px solid var(--border);border-radius:16px;padding:24px;}
.gl-simple-form .gl-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.gl-simple-form input,.gl-simple-form textarea{
  width:100%;background:#101010;border:1px solid #262626;border-radius:12px;color:#fff;padding:12px 14px;
}
.gl-simple-form textarea{resize:vertical;}

/* ===== RTL adjustments ===== */
.graphics-page--ar .gl-list li{padding-inline-start:0;padding-inline-end:22px;}
.graphics-page--ar .gl-list li::before{inset-inline-start:auto;inset-inline-end:0;}
.graphics-page--ar .gl-steps{direction:rtl;}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .gl-services-grid,.gl-pricing-grid{grid-template-columns:1fr 1fr;}
  .gl-gallery{column-count:2;}
}
@media (max-width: 640px){
  .gl-section{padding:56px 0;}
  .gl-services-grid,.gl-pricing-grid{grid-template-columns:1fr;}
  .gl-gallery{column-count:1;}
  .gl-simple-form .gl-row{grid-template-columns:1fr;}
  .gl-hero{min-height:82dvh;}
}

/* ===== Force dark + reset Astra buttons on our UI ===== */
.graphics-page{background:#121212;color:#f2f2f2;}
.gl-section{background:transparent;}
.gl-portfolio,.gl-services,.gl-process,.gl-pricing,.gl-contact{background:transparent;}

/* (مهم) إلغاء ستايل أزرار Astra عن فلاترنا */
.gl-filter,
.cs-accordion-header,
button.gl-filter{
  all:unset;
  display:inline-block;
  cursor:pointer;
  padding:10px 16px;
  border-radius:999px;
  background:#171717;
  color:#ddd;
  border:1px solid #232323;
}
.gl-filter.is-active,
.gl-filter:hover{
  border-color:#fdd835;
  background:#fdd835;
  color:#111;
}

/* Gallery image fallback sizing */
.gl-item img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio: 3 / 2;     /* يحجز مساحة قبل التحميل */
  object-fit: cover;
  background:#0f0f0f;      /* خلفية احتياطية */
}
