/* =========================================================
   Dar Al-Widad — Brand Stylesheet
   Palette: Jet Black / Pure White / Signal Red
========================================================= */

:root{
  --black:      #0d0d0d;
  --black-2:    #181818;
  --black-3:    #242424;
  --white:      #ffffff;
  --off-white:  #f5f3f0;
  --red:        #e8412e;
  --red-deep:   #c1301f;
  --red-light:  #ff7a64;
  --ink:        #181818;
  --muted-on-light: #6e6a66;
  --muted-on-dark:  #b6b0ab;

  --font-ar-display: 'Tajawal', sans-serif;
  --font-ar-body:    'Tajawal', sans-serif;
  --font-en-display: 'Anton', sans-serif;
  --font-en-body:    'Inter', sans-serif;

  --container: 1200px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-ar-body);
  line-height: 1.9;
  overflow-x: hidden;
}

html[dir="rtl"] body{ font-family: var(--font-ar-body); }
html[dir="ltr"] body{ font-family: var(--font-en-body); }

html[dir="rtl"] .lang-en{ display:none !important; }
html[dir="ltr"] .lang-ar{ display:none !important; }

h1,h2,h3,h4{
  font-family: var(--font-ar-display);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0;
}
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4{
  font-family: var(--font-en-display);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

section.dark h1, section.dark h2, section.dark h3, section.dark h4,
footer h1, footer h2, footer h3, footer h4{ color: var(--white); }

a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
.container{ width: 92%; max-width: var(--container); margin: 0 auto; }
section{ position: relative; }
section.dark{ background: var(--black); color: var(--muted-on-dark); }
section.light{ background: var(--off-white); color: var(--ink); }
section.light-2{ background: var(--white); color: var(--ink); }

/* ---------- Signature: curved wave seam ---------- */
.seam{ position:relative; height: 90px; z-index:5; line-height:0; }
.seam svg{ width:100%; height:100%; display:block; }

/* ---------- Eyebrow / heading helpers ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:12px;
  color: var(--red);
  font-family: var(--font-en-display);
  font-size: .85rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before{
  content:""; display:block; width: 34px; height: 4px; background: var(--red); border-radius: 2px;
}
html[dir="rtl"] .eyebrow{ font-family: var(--font-ar-body); font-weight:800; letter-spacing:2px; }

.section-head{ max-width: 760px; margin: 0 0 54px; }
.section-head.center{ margin-inline: auto; text-align: center; }
.section-head h2{ font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 16px; line-height:1.12; }
.section-head p{ color: var(--muted-on-light); font-size: 1.04rem; max-width: 640px; }
section.dark .section-head p{ color: var(--muted-on-dark); }
.section-head.center p{ margin-inline:auto; }

/* =========================================================
   HEADER / NAV
========================================================= */
header{
  position: fixed; top:0; left:0; right:0; z-index: 1000;
  background: rgba(13,13,13,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: var(--transition);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 0;
}
.brand{ display:flex; align-items:center; gap:14px; }
.brand .logo-badge{
  width: 54px; height:54px; border-radius:50%;
  background: var(--white);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; flex-shrink:0;
}
.brand .logo-badge img{ width: 78%; height:78%; object-fit:contain; }
.brand .brand-text{ display:flex; flex-direction:column; line-height:1.25; }
.brand .brand-text .name-ar{ font-family: var(--font-ar-display); font-weight:900; color: var(--white); font-size:1.2rem; }
.brand .brand-text .name-en{ font-family: var(--font-en-display); color: var(--red); font-size:.7rem; letter-spacing:4px; text-transform:uppercase; }

.nav-links{ display:flex; align-items:center; gap: 30px; }
.nav-links a{
  font-size: .92rem; color: var(--white); position:relative; padding: 6px 2px;
  font-family: var(--font-en-display); letter-spacing: 1px; text-transform: uppercase; font-weight:400;
  transition: color var(--transition);
}
html[dir="rtl"] .nav-links a{ font-family: var(--font-ar-body); font-weight:700; letter-spacing:0; text-transform:none; }
.nav-links a::after{
  content:""; position:absolute; bottom:-4px; left:0; right:100%;
  height:3px; background: var(--red); transition: right var(--transition);
}
.nav-links a:hover{ color: var(--red); }
.nav-links a:hover::after{ right:0; }

.lang-toggle{
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  padding: 9px 22px;
  font-size: .78rem;
  cursor: pointer;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: var(--transition);
  font-family: var(--font-en-display);
}
.lang-toggle:hover{ background: var(--red); color: var(--white); border-color: var(--red); }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none;
}
.nav-toggle span{ width:26px; height:2px; background: var(--white); display:block; }

/* =========================================================
   HERO / SLIDESHOW
========================================================= */
.hero{
  position: relative; height: 100vh; min-height: 660px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; background: var(--black);
}
.slideshow{ position:absolute; inset:0; }
.slide{
  position:absolute; inset:0;
  background-size: cover; background-position: center;
  opacity:0; transform: scale(1.08);
  transition: opacity 1.6s ease, transform 7s ease;
  filter: grayscale(.5) brightness(.5) contrast(1.05);
}
.slide.active{ opacity:1; transform: scale(1); }
.hero::before{
  content:""; position:absolute; inset:0; z-index:2;
  background: radial-gradient(ellipse at center, rgba(13,13,13,.4) 0%, rgba(13,13,13,.88) 78%);
}
.hero-content{
  position:relative; z-index:3; text-align:center;
  max-width: 880px; padding: 0 18px;
}
.hero-logo-badge{
  width: 110px; height:110px; border-radius:50%;
  background: var(--white);
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 28px; overflow:hidden;
  box-shadow: 0 0 0 4px var(--red), 0 20px 50px rgba(0,0,0,.4);
}
.hero-logo-badge img{ width:78%; height:78%; object-fit:contain; }
.hero-content .eyebrow{ justify-content:center; color: var(--red); }
.hero-content .eyebrow::before{ display:none; }
.hero-content h1{
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  margin-bottom: 24px;
  color: var(--white);
  line-height: 1.05;
}
.hero-content h1 span{ color: var(--red); }
.hero-content .tagline{
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--muted-on-dark);
  max-width: 660px; margin: 0 auto 38px;
  font-weight:300;
}
.hero-buttons{ display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }

.btn{
  display:inline-block; padding: 17px 42px;
  font-size: .85rem; letter-spacing: 3px; text-transform:uppercase; cursor:pointer;
  transition: var(--transition); border:2px solid var(--white);
  font-family: var(--font-en-display);
}
html[dir="rtl"] .btn{ font-family: var(--font-ar-body); font-weight:800; letter-spacing:0; text-transform:none; }
.btn-primary{ background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover{ background: var(--red-deep); transform: translateY(-3px); }
.btn-outline{ background: transparent; color: var(--white); }
.btn-outline:hover{ background: var(--white); color: var(--black); transform: translateY(-3px); }

.slide-dots{
  position:absolute; bottom: 100px; left:0; right:0; z-index:3;
  display:flex; justify-content:center; gap:12px;
}
.slide-dots span{
  width:38px; height:4px; background: rgba(255,255,255,.22);
  cursor:pointer; transition: var(--transition);
}
.slide-dots span.active{ background: var(--red); }

/* =========================================================
   ABOUT
========================================================= */
.about{ padding: 130px 0 110px; }
.about-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items:center;
}
.about-media{ position:relative; }
.about-media .frame{
  position:relative; overflow:hidden; border-radius: 50% / 8%;
  border-radius: 0 0 50% 50% / 0 0 12% 12%;
}
.about-media img{ width:100%; height: 500px; object-fit:cover; filter: grayscale(.25); }
.about-media .tag{
  position:absolute; top: -18px; inset-inline-end: -18px;
  background: var(--red); color: var(--white);
  width: 110px; height:110px; border-radius:50%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.about-media .tag .num{ font-family: var(--font-en-display); font-size: 1.7rem; line-height:1; }
.about-media .tag .lbl{ font-size: .6rem; letter-spacing:2px; text-transform:uppercase; margin-top:4px; }
html[dir="rtl"] .about-media .tag .lbl{ font-family: var(--font-ar-body); letter-spacing:0; font-weight:700; }

.about-text p{ color: var(--muted-on-light); font-size: 1.04rem; margin-bottom: 18px; }
.about-stats{ display:flex; gap: 40px; margin-top: 34px; flex-wrap:wrap; }
.stat .num{ font-family: var(--font-en-display); font-size: 2.6rem; color: var(--red); line-height:1; }
.stat .label{ font-size: .8rem; color: var(--muted-on-light); letter-spacing:1px; margin-top:8px; }

/* =========================================================
   VISION / MISSION / VALUES
========================================================= */
.vmg{ padding: 110px 0 130px; }
.vmg-cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 10px; }
.vmg-card{
  background: var(--black-2);
  padding: 44px 36px;
  border-top: 4px solid var(--red);
  transition: var(--transition);
}
.vmg-card:hover{ background: var(--black-3); transform: translateY(-6px); }
.vmg-card .icon{
  width: 58px; height:58px; border-radius:50%;
  border: 2px solid var(--red); color: var(--red);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 24px;
}
.vmg-card .icon svg{ width:26px; height:26px; }
.vmg-card h3{ font-size: 1.55rem; margin-bottom: 16px; }
.vmg-card p{ color: var(--muted-on-dark); font-size: .98rem; }

/* =========================================================
   GOALS
========================================================= */
.goals{ padding: 120px 0; }
.goals-grid{ display:grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 10px; }
.goal-item{
  background: var(--white);
  padding: 32px 22px;
  border-radius: 4px;
  text-align:center;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  transition: var(--transition);
}
.goal-item:hover{ box-shadow: 0 16px 40px rgba(232,65,46,.18); transform: translateY(-6px); }
.goal-item .gnum{
  font-family: var(--font-en-display); color: var(--red);
  font-size: 2.4rem; margin-bottom: 14px; line-height:1;
}
.goal-item h4{ font-size: 1.05rem; margin-bottom: 12px; }
.goal-item p{ font-size: .86rem; color: var(--muted-on-light); }

/* =========================================================
   SERVICES
========================================================= */
.services{ padding: 120px 0; }
.services-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 10px; }
.service-card{
  position:relative; overflow:hidden; border-radius: 4px;
  height: 390px; isolation:isolate;
}
.service-card img{ width:100%; height:100%; object-fit:cover; transition: transform 1.2s ease, filter 1.2s ease; filter: grayscale(.5) brightness(.8); }
.service-card:hover img{ transform: scale(1.08); filter: grayscale(0) brightness(.65); }
.service-card::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(13,13,13,.05) 30%, rgba(13,13,13,.96) 95%);
}
.service-card::before{
  content:""; position:absolute; top:0; inset-inline-start:0; z-index:2;
  width: 6px; height: 60px; background: var(--red);
}
.service-num{
  position:absolute; top:22px; inset-inline-end: 24px; z-index:2;
  font-family: var(--font-en-display); color: var(--white);
  font-size: 2.4rem; opacity:.5;
}
.service-content{
  position:absolute; inset-inline:0; bottom:0; padding: 28px; z-index:2;
}
.service-content h3{ font-size: 1.4rem; margin-bottom: 12px; color: var(--white); }
.service-content p{ font-size: .92rem; color: var(--muted-on-dark); }

/* =========================================================
   GALLERY
========================================================= */
.gallery{ padding: 120px 0; }
.gallery-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; margin-top: 10px;
}
.gallery-grid .g-item{ overflow:hidden; position:relative; border-radius:4px; }
.gallery-grid .g-item img{ width:100%; height:100%; object-fit:cover; transition: transform .6s ease, filter .6s ease; filter: grayscale(.45); }
.gallery-grid .g-item:hover img{ transform: scale(1.07); filter: grayscale(0); }
.gallery-grid .g-item.tall{ grid-row: span 2; }
.gallery-grid .g-item.wide{ grid-column: span 2; }
.gallery-grid .g-item::after{
  content:""; position:absolute; inset:0;
  box-shadow: inset 0 0 0 0px var(--red); transition: var(--transition);
}
.gallery-grid .g-item:hover::after{ box-shadow: inset 0 0 0 4px var(--red); }

/* =========================================================
   CONTACT
========================================================= */
.contact{ padding: 120px 0; }
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 10px; }
.contact-info{
  background: var(--black-2);
  padding: 50px;
  border-radius: 4px;
}
.contact-info h3{ font-size: 1.7rem; margin-bottom: 30px; }
.contact-row{
  display:flex; gap: 18px; align-items:flex-start; margin-bottom: 26px;
}
.contact-row .ic{
  width: 48px; height: 48px; border-radius:50%;
  border:2px solid var(--red); color: var(--red);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-row .ic svg{ width:20px; height:20px; }
.contact-row .txt strong{
  display:block; color: var(--red); margin-bottom: 6px; font-size: .8rem;
  letter-spacing: 3px; text-transform:uppercase; font-family: var(--font-en-display);
}
html[dir="rtl"] .contact-row .txt strong{ font-family: var(--font-ar-body); letter-spacing:1px; }
.contact-row .txt p, .contact-row .txt a{ color: var(--muted-on-dark); font-size: .98rem; }

.social-row{ display:flex; gap: 14px; margin-top: 34px; }
.social-row a{
  width: 46px; height:46px; border-radius:50%; border:2px solid var(--red);
  display:flex; align-items:center; justify-content:center; color: var(--red);
  transition: var(--transition);
}
.social-row a svg{ width:18px; height:18px; }
.social-row a:hover{ background: var(--red); color: var(--white); }

.map-frame{
  overflow:hidden; min-height: 100%; border-radius:4px; filter: grayscale(.3);
}
.map-frame iframe{ width:100%; height:100%; min-height: 420px; border:0; }

/* =========================================================
   FOOTER
========================================================= */
footer{
  background: var(--black); color: var(--muted-on-dark);
  padding: 70px 0 26px;
  border-top: 5px solid var(--red);
}
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-brand{ display:flex; gap:14px; align-items:center; margin-bottom: 20px; }
.footer-brand .logo-badge{
  width: 58px; height:58px; border-radius:50%; background: var(--white);
  display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0;
}
.footer-brand .logo-badge img{ width:78%; height:78%; object-fit:contain; }
.footer-brand .name-ar{ font-family: var(--font-ar-display); font-weight:900; color: var(--white); font-size:1.3rem; }
.footer-brand .name-en{ font-family: var(--font-en-display); color: var(--red); font-size:.72rem; letter-spacing:4px; text-transform:uppercase; }
.footer-col h4{
  color: var(--red); font-size: .85rem; margin-bottom: 22px;
  letter-spacing:3px; text-transform:uppercase; font-family: var(--font-en-display); font-weight:400;
}
html[dir="rtl"] .footer-col h4{ font-family: var(--font-ar-body); font-weight:800; letter-spacing:1px; }
.footer-col p, .footer-col a{ color: var(--muted-on-dark); font-size: .92rem; display:block; margin-bottom: 12px; transition: var(--transition); }
.footer-col a:hover{ color: var(--red); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  color: var(--muted-on-dark); font-size: .85rem;
}
.footer-bottom .red{ color: var(--red); font-family: var(--font-en-display); letter-spacing:2px; }
html[dir="rtl"] .footer-bottom .red{ font-family: var(--font-ar-body); letter-spacing:0; font-weight:700; }

/* =========================================================
   REVEAL ANIMATIONS
========================================================= */
.reveal{ opacity:0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.show{ opacity:1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px){
  .about-grid{ grid-template-columns: 1fr; gap: 50px; }
  .about-media img{ height: 400px; }
  .vmg-cards{ grid-template-columns: 1fr; }
  .goals-grid{ grid-template-columns: repeat(2,1fr); }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px){
  .nav-links{
    position:absolute; top:100%; inset-inline:0;
    background: var(--black); flex-direction:column; align-items:flex-start;
    padding: 20px 24px; gap: 18px; border-bottom: 3px solid var(--red);
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-toggle{ display:flex; }
  .lang-toggle{ order:3; }
  .services-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows: 160px; }
  .gallery-grid .g-item.wide{ grid-column: span 2; }
  .goals-grid{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr; text-align:center; }
  .footer-brand{ justify-content:center; }
  .about-media .tag{ width:88px; height:88px; top:-12px; inset-inline-end:-12px; }
  .hero-buttons{ flex-direction:column; align-items:center; }
}
