/* ===== Al Tabaq Al Taqlidi — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@300;400;600;700;900&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root{
  --navy:#00284A;
  --navy-deep:#001A33;
  --navy-soft:#0B3A60;
  --gold:#C09A4E;
  --gold-light:#D9BC7E;
  --gold-deep:#A07E36;
  --olive:#758136;
  --olive-light:#8D9940;
  --orange:#F79030;
  --red:#AB3135;
  --cream:#FAF6EE;
  --cream-deep:#F1E8D6;
  --paper:#FCFAF4;
  --ink:#1A2530;
  --ink-soft:#46566A;

  --shadow-sm:0 2px 12px rgba(0,40,74,.08);
  --shadow-md:0 10px 40px rgba(0,40,74,.12);
  --shadow-lg:0 24px 70px rgba(0,40,74,.18);
  --maxw:1240px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  background:var(--paper);
  color:var(--ink);
  overflow-x:hidden;
  line-height:1.7;
}

/* Language-driven typography */
html[lang="ar"] body{font-family:'Cairo',sans-serif;direction:rtl}
html[lang="en"] body{font-family:'Outfit',sans-serif;direction:ltr}

html[lang="ar"] .display{font-family:'Amiri',serif}
html[lang="en"] .display{font-family:'Cormorant Garamond',serif}

/* ===== Decorative Arabic pattern background ===== */
.zellige-bg{
  position:fixed;inset:0;z-index:-2;
  background:
    radial-gradient(circle at 15% 20%, rgba(192,154,78,.05), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(117,129,54,.05), transparent 40%),
    var(--paper);
}
.zellige-bg::before{
  content:"";position:absolute;inset:0;opacity:.04;
  background-image:url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2300284A' stroke-width='1'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3Cpath d='M40 10 L70 40 L40 70 L10 40 Z'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E");
}

/* ===== Navigation ===== */
.nav{
  position:sticky;top:0;z-index:100;
  background:rgba(252,250,244,.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(192,154,78,.25);
}
.nav-inner{
  max-width:var(--maxw);margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:.7rem 1.5rem;gap:1rem;
}
.nav-brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--navy)}
.nav-brand img{height:52px;width:auto}
.nav-brand .b-text{display:flex;flex-direction:column;line-height:1.1}
.nav-brand .b-ar{font-family:'Amiri',serif;font-weight:700;font-size:1.15rem;color:var(--navy)}
.nav-brand .b-en{font-size:.62rem;letter-spacing:.18em;color:var(--gold-deep);font-weight:600;text-transform:uppercase}

.nav-links{display:flex;align-items:center;gap:.3rem;list-style:none}
.nav-links a{
  text-decoration:none;color:var(--navy);font-weight:600;font-size:.95rem;
  padding:.5rem .9rem;border-radius:8px;transition:.25s;position:relative;
}
.nav-links a:hover{background:rgba(192,154,78,.12);color:var(--gold-deep)}
.nav-links a.active{color:var(--gold-deep)}
.nav-links a.active::after{
  content:"";position:absolute;bottom:-2px;left:50%;transform:translateX(-50%);
  width:6px;height:6px;background:var(--gold);border-radius:50%;
}
.nav-actions{display:flex;align-items:center;gap:.6rem}
.lang-btn{
  background:var(--navy);color:#fff;border:none;cursor:pointer;
  padding:.5rem .9rem;border-radius:30px;font-family:inherit;font-weight:600;
  font-size:.85rem;transition:.25s;display:flex;align-items:center;gap:.4rem;
}
.lang-btn:hover{background:var(--gold-deep);transform:translateY(-1px)}
.menu-toggle{display:none;background:none;border:none;cursor:pointer;flex-direction:column;gap:5px;padding:6px}
.menu-toggle span{width:26px;height:2px;background:var(--navy);transition:.3s;border-radius:2px}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;align-items:center;gap:.6rem;text-decoration:none;
  padding:.85rem 1.8rem;border-radius:40px;font-weight:600;font-size:.98rem;
  transition:.3s;cursor:pointer;border:none;font-family:inherit;
}
.btn-gold{background:var(--gold);color:var(--navy-deep);box-shadow:0 8px 24px rgba(192,154,78,.35)}
.btn-gold:hover{background:var(--gold-light);transform:translateY(-2px);box-shadow:0 12px 32px rgba(192,154,78,.45)}
.btn-outline{background:transparent;color:var(--cream);border:1.5px solid rgba(217,188,126,.55)}
.btn-outline:hover{background:rgba(217,188,126,.15);border-color:var(--gold-light)}
.btn-navy{background:var(--navy);color:#fff}
.btn-navy:hover{background:var(--navy-soft);transform:translateY(-2px)}

/* ===== Layout helpers ===== */
.container{max-width:var(--maxw);margin:0 auto;padding:0 1.5rem}
section{position:relative}
.eyebrow{
  display:inline-flex;align-items:center;gap:.6rem;
  color:var(--gold-deep);font-weight:700;font-size:.82rem;letter-spacing:.22em;
  text-transform:uppercase;margin-bottom:1rem;
}
.eyebrow::before,.eyebrow::after{content:"";width:26px;height:1px;background:var(--gold)}
html[lang="ar"] .eyebrow{letter-spacing:.05em}
.section-title{
  font-size:clamp(2rem,4.5vw,3.2rem);font-weight:700;color:var(--navy);
  line-height:1.2;margin-bottom:1.1rem;
}
.section-sub{font-size:1.08rem;color:var(--ink-soft);max-width:620px;line-height:1.8}

/* Ornament divider */
.ornament{display:flex;align-items:center;justify-content:center;gap:1rem;margin:1.2rem 0}
.ornament .line{height:1px;width:60px;background:linear-gradient(90deg,transparent,var(--gold))}
.ornament .diamond{width:10px;height:10px;background:var(--gold);transform:rotate(45deg)}

/* ===== Hero ===== */
.hero{
  position:relative;min-height:88vh;display:flex;align-items:center;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(11,58,96,.6), transparent 55%),
    linear-gradient(135deg,var(--navy-deep),var(--navy) 55%,var(--navy-soft));
  color:var(--cream);overflow:hidden;
}
.hero::before{
  content:"";position:absolute;inset:0;opacity:.07;
  background-image:url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9BC7E' stroke-width='1'%3E%3Cpath d='M60 5 L75 30 L105 30 L82 50 L92 80 L60 62 L28 80 L38 50 L15 30 L45 30 Z'/%3E%3Ccircle cx='60' cy='60' r='40'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-arc{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:760px;height:760px;border:1.5px solid rgba(217,188,126,.18);border-radius:50%;
  pointer-events:none;
}
.hero-arc.two{width:560px;height:560px;border-color:rgba(217,188,126,.12)}
.hero-inner{position:relative;z-index:2;max-width:var(--maxw);margin:0 auto;padding:5rem 1.5rem;width:100%}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center}
.hero h1{
  font-size:clamp(2.6rem,6vw,4.6rem);line-height:1.12;font-weight:700;
  color:#fff;margin-bottom:1.4rem;
}
.hero h1 .accent{color:var(--gold-light)}
.hero p.lead{font-size:1.2rem;color:rgba(250,246,238,.85);max-width:520px;margin-bottom:2rem;line-height:1.85}
.hero-cta{display:flex;gap:1rem;flex-wrap:wrap}
.hero-visual{display:flex;justify-content:center;align-items:center}
.hero-medallion{
  position:relative;width:380px;height:380px;border-radius:50%;
  background:radial-gradient(circle,rgba(252,250,244,.95),rgba(241,232,214,.9));
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 30px 80px rgba(0,0,0,.4), inset 0 0 0 12px rgba(192,154,78,.25);
  animation:floaty 6s ease-in-out infinite;
}
.hero-medallion::before{
  content:"";position:absolute;inset:-22px;border-radius:50%;
  border:2px dashed rgba(217,188,126,.4);animation:spin 60s linear infinite;
}
.hero-medallion img{width:74%;height:auto}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@keyframes spin{to{transform:rotate(360deg)}}

.hero-stats{display:flex;gap:2.5rem;margin-top:3rem;flex-wrap:wrap}
.hero-stats .stat .num{font-family:'Cormorant Garamond',serif;font-size:2.6rem;font-weight:700;color:var(--gold-light);line-height:1}
html[lang="ar"] .hero-stats .stat .num{font-family:'Amiri',serif}
.hero-stats .stat .label{font-size:.85rem;color:rgba(250,246,238,.7);letter-spacing:.05em}

/* ===== Generic page hero (sub pages) ===== */
.page-hero{
  background:linear-gradient(135deg,var(--navy-deep),var(--navy-soft));
  color:var(--cream);padding:5.5rem 0 4.5rem;position:relative;overflow:hidden;text-align:center;
}
.page-hero::before{
  content:"";position:absolute;inset:0;opacity:.06;
  background-image:url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z' fill='none' stroke='%23D9BC7E'/%3E%3C/svg%3E");
}
.page-hero h1{font-size:clamp(2.2rem,5vw,3.6rem);color:#fff;font-weight:700;position:relative}
.page-hero p{color:rgba(250,246,238,.82);max-width:600px;margin:1rem auto 0;font-size:1.1rem;position:relative}
.breadcrumb{position:relative;font-size:.85rem;color:var(--gold-light);margin-top:1.4rem;letter-spacing:.08em}
.breadcrumb a{color:rgba(217,188,126,.7);text-decoration:none}
.breadcrumb a:hover{color:var(--gold-light)}

/* ===== Cards ===== */
.grid{display:grid;gap:1.6rem}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}

.card{
  background:#fff;border-radius:18px;padding:2rem;border:1px solid rgba(192,154,78,.18);
  box-shadow:var(--shadow-sm);transition:.35s;position:relative;overflow:hidden;
}
.card::before{
  content:"";position:absolute;top:0;inset-inline-start:0;width:100%;height:4px;
  background:linear-gradient(90deg,var(--gold),var(--olive));transform:scaleX(0);transform-origin:inline-start;transition:.35s;
}
.card:hover{transform:translateY(-6px);box-shadow:var(--shadow-md);border-color:rgba(192,154,78,.4)}
.card:hover::before{transform:scaleX(1)}
.card .icon{
  width:60px;height:60px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,rgba(192,154,78,.16),rgba(117,129,54,.12));margin-bottom:1.3rem;
  color:var(--navy);
}
.card .icon svg{width:30px;height:30px}
.card h3{font-size:1.3rem;color:var(--navy);margin-bottom:.7rem;font-weight:700}
.card p{color:var(--ink-soft);font-size:.98rem;line-height:1.75}

/* Value pills */
.pill{
  display:inline-block;background:var(--cream-deep);color:var(--navy);
  padding:.4rem 1rem;border-radius:30px;font-size:.85rem;font-weight:600;margin:.25rem;
  border:1px solid rgba(192,154,78,.25);
}

/* Section padding */
.pad{padding:5.5rem 0}
.pad-sm{padding:3.5rem 0}
.bg-cream{background:linear-gradient(180deg,var(--cream),var(--paper))}
.bg-navy{background:linear-gradient(135deg,var(--navy-deep),var(--navy-soft));color:var(--cream)}
.bg-navy .section-title{color:#fff}
.bg-navy .section-sub{color:rgba(250,246,238,.8)}
.bg-navy .eyebrow{color:var(--gold-light)}

/* Split feature */
.split{display:grid;grid-template-columns:1fr 1fr;gap:3.5rem;align-items:center}
.split-visual{
  border-radius:24px;overflow:hidden;position:relative;min-height:380px;
  background:linear-gradient(135deg,var(--navy),var(--navy-soft));
  display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-lg);
}
.split-visual .ring{position:absolute;border:2px solid rgba(217,188,126,.25);border-radius:50%}
.split-visual img{width:62%;position:relative;z-index:2;filter:drop-shadow(0 20px 40px rgba(0,0,0,.4))}

/* Feature list */
.feat-list{list-style:none;display:flex;flex-direction:column;gap:1.3rem}
.feat-list li{display:flex;gap:1rem;align-items:flex-start}
.feat-list .fi{
  flex-shrink:0;width:42px;height:42px;border-radius:12px;background:var(--navy);color:var(--gold-light);
  display:flex;align-items:center;justify-content:center;
}
.feat-list .fi svg{width:22px;height:22px}
.feat-list h4{color:var(--navy);font-size:1.1rem;margin-bottom:.2rem}
.feat-list p{color:var(--ink-soft);font-size:.95rem}

/* Stat band */
.stat-band{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;text-align:center}
.stat-band .s .num{font-family:'Cormorant Garamond',serif;font-size:3rem;font-weight:700;color:var(--gold-light)}
html[lang="ar"] .stat-band .s .num{font-family:'Amiri',serif}
.stat-band .s .lbl{font-size:.92rem;color:rgba(250,246,238,.78);margin-top:.3rem}

/* Process steps */
.steps{counter-reset:step;display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.step{position:relative;padding-top:1rem}
.step .n{
  counter-increment:step;font-family:'Cormorant Garamond',serif;font-size:3.4rem;font-weight:700;
  color:rgba(192,154,78,.35);line-height:1;
}
html[lang="ar"] .step .n{font-family:'Amiri',serif}
.step .n::before{content:counter(step,decimal-leading-zero)}
.step h4{color:var(--navy);font-size:1.2rem;margin:.5rem 0}
.step p{color:var(--ink-soft);font-size:.95rem}

/* CTA band */
.cta-band{
  background:linear-gradient(135deg,var(--gold-deep),var(--gold));
  border-radius:28px;padding:3.5rem;text-align:center;position:relative;overflow:hidden;
  color:var(--navy-deep);
}
.cta-band::before{
  content:"";position:absolute;inset:0;opacity:.12;
  background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%2300284A' stroke-width='1.5'/%3E%3C/svg%3E");
}
.cta-band h2{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:700;margin-bottom:.8rem;position:relative}
.cta-band p{font-size:1.1rem;margin-bottom:1.8rem;position:relative;opacity:.85}

/* ===== Footer ===== */
.footer{background:var(--navy-deep);color:rgba(250,246,238,.75);padding:4rem 0 1.5rem;position:relative}
.footer::before{content:"";position:absolute;top:0;left:0;width:100%;height:4px;background:linear-gradient(90deg,var(--gold),var(--olive),var(--orange),var(--red))}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:2.5rem;margin-bottom:2.5rem}
.footer-brand img{height:80px;margin-bottom:1rem}
.footer-brand p{font-size:.95rem;line-height:1.8;max-width:300px}
.footer h5{color:var(--gold-light);font-size:1.05rem;margin-bottom:1.1rem;font-weight:700}
.footer ul{list-style:none}
.footer ul li{margin-bottom:.6rem}
.footer ul a{color:rgba(250,246,238,.7);text-decoration:none;transition:.2s;font-size:.93rem}
.footer ul a:hover{color:var(--gold-light)}
.footer .contact-item{display:flex;gap:.6rem;align-items:flex-start;margin-bottom:.8rem;font-size:.93rem}
.footer .contact-item svg{width:18px;height:18px;flex-shrink:0;margin-top:3px;color:var(--gold)}
.footer-bottom{border-top:1px solid rgba(217,188,126,.18);padding-top:1.5rem;text-align:center;font-size:.85rem;color:rgba(250,246,238,.55)}

/* ===== Section images ===== */
.media{
  border-radius:22px;overflow:hidden;position:relative;box-shadow:var(--shadow-lg);
  border:1px solid rgba(192,154,78,.25);background:var(--cream-deep);
}
.media::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  box-shadow:inset 0 0 0 6px rgba(252,250,244,.5), inset 0 0 0 7px rgba(192,154,78,.35);
  border-radius:22px;
}
.media img{display:block;width:100%;height:100%;object-fit:cover}
/* Branded placeholder shown until a real photo is dropped in */
.media{background:linear-gradient(135deg,var(--cream-deep),var(--cream)) ;}
.media img[src$=".jpg"]{background:
  repeating-linear-gradient(45deg,rgba(192,154,78,.08) 0 12px,transparent 12px 24px),
  linear-gradient(135deg,var(--navy),var(--navy-soft));
  min-height:180px;color:transparent;font-size:0;}
.media-tag{
  position:absolute;bottom:14px;inset-inline-start:14px;z-index:3;
  background:rgba(0,26,51,.82);color:var(--gold-light);backdrop-filter:blur(6px);
  padding:.4rem 1rem;border-radius:30px;font-size:.82rem;font-weight:600;
  display:flex;align-items:center;gap:.5rem;border:1px solid rgba(217,188,126,.3);
}
.media-tag svg{width:15px;height:15px}

/* card with image header */
.card-img{padding:0;overflow:hidden}
.card-img .ci-media{position:relative;height:180px;overflow:hidden;background:var(--cream-deep)}
.card-img .ci-media img{width:100%;height:100%;object-fit:cover;transition:.5s}
.card-img:hover .ci-media img{transform:scale(1.06)}
.card-img .ci-media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(0,26,51,.35))}
.card-img .ci-body{padding:1.6rem 1.7rem 1.9rem}
.card-img .ci-body h3{font-size:1.25rem;color:var(--navy);margin-bottom:.6rem;font-weight:700}
.card-img .ci-body p{color:var(--ink-soft);font-size:.96rem;line-height:1.7}
.card-img .ci-icon{
  position:absolute;bottom:-22px;inset-inline-end:18px;z-index:3;width:50px;height:50px;border-radius:13px;
  background:linear-gradient(135deg,var(--gold),var(--gold-deep));color:var(--navy-deep);
  display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-md);
}
.card-img .ci-icon svg{width:24px;height:24px}
.card-img .ci-body{position:relative}

/* page hero with bg image */
.page-hero.has-img{padding:0}
.page-hero.has-img .ph-media{position:absolute;inset:0;z-index:0}
.page-hero.has-img .ph-media img{width:100%;height:100%;object-fit:cover;opacity:.32}
.page-hero.has-img .ph-media::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(0,26,51,.85),rgba(11,58,96,.7))}
.page-hero.has-img .ph-inner{position:relative;z-index:2;padding:5.5rem 0 4.5rem}

/* Reveal animation */
.reveal{opacity:0;transform:translateY(30px);transition:.8s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}

/* Lang visibility */
[data-en]{display:none}
html[lang="en"] [data-ar]{display:none}
html[lang="en"] [data-en]{display:revert}

/* ===== Responsive ===== */
@media(max-width:980px){
  .hero-grid{grid-template-columns:1fr;text-align:center}
  .hero-visual{order:-1}
  .hero-medallion{width:280px;height:280px}
  .hero-cta,.hero-stats{justify-content:center}
  .split{grid-template-columns:1fr}
  .grid-3,.grid-4{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:1fr 1fr}
  .stat-band{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  .nav-links{
    position:fixed;top:70px;inset-inline-end:0;height:calc(100vh - 70px);width:74%;max-width:300px;
    flex-direction:column;align-items:flex-start;background:var(--paper);
    padding:2rem 1.5rem;gap:.4rem;box-shadow:var(--shadow-lg);transform:translateX(110%);
    transition:.35s;border-inline-start:1px solid rgba(192,154,78,.2);
  }
  html[lang="ar"] .nav-links{transform:translateX(-110%)}
  .nav-links.open{transform:translateX(0)}
  .nav-links a{width:100%;font-size:1.1rem;padding:.8rem}
  .menu-toggle{display:flex}
  .grid-3,.grid-4,.grid-2{grid-template-columns:1fr}
  .steps,.stat-band,.footer-grid{grid-template-columns:1fr}
  .nav-brand .b-en{display:none}
  .cta-band{padding:2.2rem 1.4rem}
  .pad{padding:3.5rem 0}
}
