:root{
  --maroon:#7A1230;
  --maroonDark:#5A0D23;

  --text:#111;
  --muted:#666;
  --border:#E8E8EE;
  --radius: 22px;

  /* ✅ medium width centered (ريح العين) */
  --container: 980px;

  --shadow: 0 18px 50px rgba(0,0,0,.10);
  --shadowSoft: 0 14px 30px rgba(0,0,0,.08);

  /* ✅ darker gray background (2 steps) */
  --bgTop: #E5E7EB;
  --bgBottom: #D1D5DB;
  --bgGlow: #F3F4F6;

  --headerH: 76px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:#fff;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

/* ✅ extra breathing room on large screens */
@media (min-width: 1200px){
  .container{ padding-left: 40px; padding-right: 40px; }
}

section{ scroll-margin-top: calc(var(--headerH) + 14px); }
#about{ scroll-margin-top: calc(var(--headerH) + 14px); }

/* =========================
  HEADER
========================= */
.main-header{
  padding: 16px 0;
  background: linear-gradient(135deg, #7A1230 0%, #5A0D23 100%);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.header-row-v3{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
}
.brand-logo{ height: 36px; width: auto; display:block; }
.brand-text{
  color:#fff;
  font-weight: 900;
  letter-spacing: .2px;
  white-space: nowrap;
}

.header-nav{
  display:flex;
  justify-content:center;
  gap:10px;
  align-items:center;
}

.nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 38px;
  padding: 0 14px;
  border-radius: 14px;

  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);

  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.nav-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.12);
  color:#fff;
}
.nav-link-active{
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.14);
  color:#fff;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.icon-btn{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
  color: rgba(255,255,255,.92);
}
.icon-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.14);
  color: #fff;
}
.icon{ width: 18px; height: 18px; display:block; }

/* =========================
  PAGE BG
========================= */
.page-bg{
  background:
    radial-gradient(900px 420px at 20% 10%, var(--bgGlow) 0%, transparent 60%),
    linear-gradient(180deg, var(--bgTop) 0%, var(--bgBottom) 100%);
  color: var(--maroonDark);
}

.page-bg .hero-about,
.page-bg .services__subtitle,
.page-bg .why-sub,
.page-bg .hint{
  color: rgba(90, 13, 35, .78);
}

/* =========================
  HERO
========================= */
.hero{
  padding: 86px 0 64px;
  position:relative;
  overflow:hidden;
  background: transparent;
}

.hero-inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items:center;
}

.hero-title{
  margin: 0 0 10px;
  font-size: 52px;
  letter-spacing: -1px;
  line-height: 1.05;
}

.hero-about{
  margin: 0;
  max-width: 64ch;
  line-height: 1.85;
  font-size: 16px;
}

/* stage just centers the logo (no forced huge height) */
.hero-logo-stage{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height: 0;
}

/* ✅ FINAL HERO LOGO CARD (tight glass premium) */
.hero-logo-wrap{
  width: fit-content;
  height: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    rgba(122, 18, 48, 0.06),
    rgba(0, 0, 0, 0.03)
  );
  border: 1px solid rgba(0,0,0,.08);

  border-radius: 16px;
  padding: 10px;

  box-shadow: 0 10px 22px rgba(0,0,0,.08);

  position: relative;
  overflow: hidden;

  animation: heroFloat 4.6s ease-in-out infinite;
}

.hero-logo-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(180px 140px at 30% 30%, rgba(255,255,255,.42), transparent 65%),
    radial-gradient(200px 160px at 70% 70%, rgba(255,255,255,.22), transparent 70%);
  mix-blend-mode: overlay;
  opacity:.70;
  pointer-events:none;
}

.hero-logo-wrap::after{
  content:"";
  position:absolute;
  left: 50%;
  bottom: -10px;
  width: 70%;
  height: 28%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0,0,0,.18), transparent 70%);
  filter: blur(10px);
  opacity:.18;
  animation: shadowPulse 4.6s ease-in-out infinite;
  pointer-events:none;
}

.hero-logo-tilt{
  width:100%;
  height:100%;
  transform-style:preserve-3d;
}

.hero-logo{
  width: 220px;
  height: auto;
  display:block;
  object-fit: contain;
  transform: translateZ(16px);
}

@keyframes heroFloat{
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(10px); }
}
@keyframes shadowPulse{
  0%, 100% { opacity: .14; transform: translateX(-50%) scale(0.96); }
  50%      { opacity: .20; transform: translateX(-50%) scale(1.02); }
}

/* =========================
  SERVICES
========================= */
.services{ padding: 64px 0 90px; background: transparent; }

.services__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom: 18px;
}

.services__title{ margin:0; font-size: 34px; letter-spacing: -0.6px; }
.services__subtitle{
  margin: 6px 0 0;
  line-height: 1.7;
  max-width: 62ch;
  font-size: 16px;
}

.dots{
  display:flex;
  align-items:center;
  gap:10px;
  padding-bottom: 6px;
  user-select:none;
}
.dot{
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(122,18,48,.15);
  border: 1px solid rgba(122,18,48,.12);
  cursor:pointer;
  transition: transform .2s ease, background .25s ease;
}
.dot:hover{ transform: translateY(-1px); }
.dot.active{ background: var(--maroon); }

/* services card = header gradient */
.slider{
  position:relative;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #7A1230 0%, #5A0D23 100%) !important;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.slide{
  display:grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 26px;
  align-items:center;
  padding: 26px;
  min-height: 420px;
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  transform: translateX(30px);
  transition: opacity .45s ease, transform .7s cubic-bezier(.2,.8,.2,1);
  background: transparent;
}

.slide.active{
  opacity:1;
  pointer-events:auto;
  transform: translateX(0);
  position:relative;
}

.slide.enter-from-right{ transform: translateX(42px); }
.slide.enter-from-left{ transform: translateX(-42px); }
.slide.active.enter-from-right,
.slide.active.enter-from-left{ transform: translateX(0); }

.content h3{ margin:0; font-size: 28px; letter-spacing: -0.5px; color:#fff; }
.content p{
  margin: 10px 0 14px;
  line-height: 1.75;
  font-size: 16px;
  color: rgba(255,255,255,.86);
}

/* entry */
.slide .content h3,
.slide .content p{
  opacity:0;
  transform: translateY(10px);
}
.slide.active .content h3{
  animation: textInUp .42s cubic-bezier(.2,.8,.2,1) forwards;
}
.slide.active .content p{
  animation: textInUp .42s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: .08s;
}
@keyframes textInUp{ to { opacity:1; transform: translateY(0); } }

/* tags */
.tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 10px;
  opacity:0;
  transform: translateY(8px);
  pointer-events:none;
  transition: opacity .22s ease, transform .22s ease;
}
.slide.active:hover .tags{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}

.tag{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 13px;
  transition: transform .18s ease, box-shadow .18s ease;

  opacity:0;
  transform: translateY(8px) scale(.98);
}
.slide.active:hover .tag{
  animation: tagPop .28s cubic-bezier(.2,.8,.2,1) forwards;
}
.slide.active:hover .tag:nth-child(1){ animation-delay: .02s; }
.slide.active:hover .tag:nth-child(2){ animation-delay: .07s; }
.slide.active:hover .tag:nth-child(3){ animation-delay: .12s; }
.slide.active:hover .tag:nth-child(4){ animation-delay: .17s; }
@keyframes tagPop{ to { opacity:1; transform: translateY(0) scale(1); } }

.tag:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

/* image (unchanged) */
.visual{
  height: 100%;
  border-radius: calc(var(--radius) - 6px);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.18);
  position:relative;
  background:#fff;
}
.visual img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
  filter: saturate(1.02);
}
.slide.active:hover .visual img{ transform: scale(1.06); }

.visual::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(420px 260px at 30% 35%, rgba(255,255,255,.30), transparent 70%),
    linear-gradient(135deg, rgba(122,18,48,.10), rgba(0,0,0,.06));
  mix-blend-mode: overlay;
  opacity:.7;
  pointer-events:none;
}

.controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top: 14px;
  gap: 12px;
  user-select:none;
}
.hint{ font-size: 13px; }
.btns{ display:flex; gap:10px; align-items:center; }

.btn{
  border: 1px solid var(--border);
  background:#fff;
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,0,0,.10);
  border-color: rgba(122,18,48,.28);
}

/* =========================
  WHY
========================= */
.why{
  padding: 78px 0;
  background: transparent;
  border-top: 1px solid rgba(0,0,0,.04);
}
.why-title{ margin:0; font-size: 30px; letter-spacing: -0.6px; }
.why-sub{ margin: 8px 0 0; line-height: 1.75; max-width: 70ch; }

.why-grid-6{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.card{
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, #7A1230 0%, #5A0D23 100%);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 46px rgba(0,0,0,.16);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color:#fff;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.28);
}
.card h4{ color:#fff; }
.card p{ color: rgba(255,255,255,.86); }

.why-card{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
.why-card.is-visible{ opacity:1; transform: translateY(0); }

.mini-icon{
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  display:grid;
  place-items:center;
  color: #fff;
  margin-bottom: 8px;
}

/* =========================
  CTA
========================= */
.cta-final{
  padding: 86px 0;
  background: transparent;
}

.cta-final-box{
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
  background: linear-gradient(135deg, #7A1230 0%, #5A0D23 100%);
  color: #fff;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.cta-copy p{
  opacity:.92;
  line-height: 1.75;
  max-width: 70ch;
  color: rgba(255,255,255,.88);
}

.cta-trust{
  margin: 10px 0 16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.cta-pill{
  padding: 9px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  font-weight:800;
  font-size:13px;
  color: rgba(255,255,255,.92);
}
.cta-note{
  font-size:12px;
  opacity:.78;
  line-height:1.6;
  color: rgba(255,255,255,.75);
}
.cta-mail{ color:#fff; font-weight: 900; }

.cta-btn{
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color:#fff;
  border-radius:14px;
  padding:12px 16px;
  font-weight:900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cta-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,.20);
  background: rgba(255,255,255,.18);
}

/* =========================
  FOOTER
========================= */
.footer-v2{
  padding:14px 0;
  background:#14060b;
  color: rgba(255,255,255,.72);
  font-size:14px;
}
.footer-row-v2{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer-brand{
  font-weight:900;
  color: rgba(255,255,255,.88);
}
.footer-link{
  color: rgba(255,255,255,.86);
  font-weight:800;
  border-bottom:1px solid rgba(255,255,255,.22);
}

/* =========================
  RESPONSIVE
========================= */
@media (max-width: 920px){
  .hero-inner{ grid-template-columns:1fr; }

  .header-row-v3{
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
  }
  .brand{ grid-area: brand; min-width: 0; }
  .header-actions{ grid-area: actions; }
  .header-nav{
    grid-area: nav;
    justify-content:flex-start;
    padding-top: 10px;
    flex-wrap:wrap;
  }

  .why-grid-6{ grid-template-columns: repeat(2, 1fr); }
  .slide{ min-height: 360px; }

  /* show tags on touch devices */
  .tags{ opacity:1; transform:none; pointer-events:auto; }
  .tag{ opacity:1; transform:none; animation:none !important; }
}

@media (max-width: 560px){
  .why-grid-6{ grid-template-columns:1fr; }

  .nav-link{ height: 36px; padding: 0 12px; }
  .brand-logo{ height: 34px; }

  .slide{
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    min-height: 0;
  }
  .visual{ height: 220px; }
  .controls{ flex-wrap:wrap; }

  /* CTA mobile */
  .cta-final-box{ padding: 18px; gap: 14px; }
  .cta-copy{ width: 100%; }
  .cta-actions{ width: 100%; display:flex; justify-content:flex-start; }
  .cta-btn{ width: 100%; text-align:center; padding: 12px 14px; }
  .cta-trust{ gap: 8px; }
  .cta-pill{ font-size: 12px; padding: 8px 10px; }
  .cta-mail{ font-size: 15px; word-break: break-word; }

  /* ✅ HERO LOGO mobile sizing */
  .hero-logo-wrap{
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,.07);
  }
  .hero-logo{
    width: 170px;
  }
  .hero-logo-wrap::after{
    opacity: .14;
    filter: blur(9px);
  }

  .services__head{
    align-items:flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .dots{
    padding-bottom: 0;
    flex-wrap: wrap;
  }
  .dot{ width: 28px; }
}

/* smaller phones */
@media (max-width: 380px){
  .hero-logo-wrap{
    padding: 7px;
    border-radius: 13px;
  }
  .hero-logo{
    width: 150px;
  }
}

/* keep footer as-is (your rule) */
footer{
  color: rgba(255,255,255,.72);
}
