/* =========================
   Fonts
========================= */
@font-face{
  font-family: "Questv1";
  src: url("assets/fonts/Questv1-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Questv1";
  src: url("assets/fonts/Questv1-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Variables
========================= */
:root{
  --navy:#0b1b2b;
  --navy-2:#0a1726;
  --sand:#c7a06c;
  --sand-2:#d2b07f;
  --gold:#b58955;
  --text:#111827;
  --muted:#6b7280;
  --bg:#ffffff;

  --shadow: 0 18px 40px rgba(0,0,0,.10);
  --shadow-soft: 0 10px 28px rgba(0,0,0,.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;

  --container: 1180px;
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
html[dir="ltr"] body{
  direction: ltr;
  text-align: left;
}
html[dir="rtl"] body{
  direction: rtl;
  text-align: right;
}

*{ box-sizing:border-box; }
html, body{
  width: 100%;
  overflow-x: hidden;
}

iframe.goog-te-banner-frame{ display:none !important; }
.goog-te-banner-frame{ display:none !important; }
.goog-te-balloon-frame{ display:none !important; }
.goog-te-menu-frame{ max-width:100% !important; }

body{
  margin:0;
  font-family:"Questv1","Tajawal","Cairo",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
  top:0;
}

a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

.container{
  width:min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}

/* =========================
   Hero + Navbar
========================= */
.hero{
  position:relative;
  min-height: 760px;
  overflow:hidden;

  background:
    radial-gradient(900px 520px at 55% -10%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%),
    radial-gradient(560px 420px at 30% 10%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%),
    radial-gradient(820px 620px at 60% 60%, rgba(0,0,0,.08), rgba(0,0,0,0) 55%),
    linear-gradient(135deg, var(--sand) 0%, #d7ba8c 52%, #caa56e 100%);
}

.hero-left-shape{
  position: absolute;
  left: -360px;
  top: -220px;
  width: 1200px;
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* content above */
.nav, .hero-content{
  position: relative;
  z-index: 3;
}

.nav{
  position:relative;
  padding: 18px 0 10px;
}

.nav-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.lang{
  display:flex;
  direction: ltr;
  align-items:center;
  gap:8px;
  color: rgba(255,255,255,.75);
  user-select:none;
}
.lang .pill{
  display:flex;
  direction: ltr;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(11,27,43,.25);
  border: 1px solid rgba(255,255,255,.12);
  cursor:pointer;
}
.lang svg{ opacity:.8; }

.brand{
  font-family: "Cairo","Tajawal",sans-serif;
  letter-spacing: .06em;
  font-weight: 700;
  font-size: 40px;
  color: var(--navy);
  user-select:none;
}

.menu a{
  position:relative;
  padding: 8px 6px;
  font-weight: 500;
  transition: color .2s ease, background .2s ease;
  border-radius: 12px;
}

.menu a::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:-12px;
  height:2px;
  background: var(--navy);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s ease;
  opacity:.9;
}

.menu a:hover{
  background: rgba(255,255,255,.18);
}

.menu a.active{
  color: rgba(11,27,43,.95);
  font-weight: 700;
}

.menu a.active::after{
  transform: scaleX(1);
}

.nav-toggle{
  display:none;
  border:0;
  background: rgba(11,27,43,.14);
  border: 1px solid rgba(11,27,43,.18);
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}

/* =========================
   Hero content
========================= */
.hero-content{
  position:relative;
  z-index: 2;
  padding: 42px 0 64px;
}

.hero-grid{
  direction: ltr;
  display:grid;
  grid-template-columns: 1.35fr 1.05fr;
  align-items:center;
  gap: 34px;
  min-height: 610px;
}

.hero-text{ order: 2; }

/* blob */
.portrait-wrap{
  order: 1;
  position:relative;
  width: 100%;
  max-width: 520px;
  height: 520px;
  margin-right: auto;
  margin-left: 0;
  background:
    radial-gradient(60% 60% at 40% 35%, rgba(255,255,255,.10), #182845),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 48% 52% 58% 42% / 52% 44% 56% 48%;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.portrait{
  position:absolute;
  inset: 62px;
  border-radius: 999px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border: 10px solid rgba(255,255,255,.06);
  box-shadow: 0 18px 38px rgba(0,0,0,.25);
}

.portrait img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: 50% 20%;
  transform: none;
}

.hero-text{
  text-align:right;
  padding-inline-start: 10px;
}

.hero-title{
  margin: 0 0 8px;
  font-size: clamp(34px, 4.2vw, 72px);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 700;
}

.hero-sub{
  margin: 0 0 14px;
  color: rgba(11,27,43,.75);
  font-size: clamp(18px, 1.4vw, 26px);
  font-weight: 500;
}

.hero-desc{
  margin: 0 0 22px;
  color: rgba(11,27,43,.68);
  max-width: 620px;
  font-size: 18px;
}

.hero-actions{
  display:flex;
  justify-content:flex-start;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  cursor:pointer;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
  user-select:none;
  white-space:nowrap;
}

.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-primary{
  background: linear-gradient(180deg, #0e2236, #182845);
  color: #fff;
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
  min-width: 190px;
}

.link-inline{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color: rgba(11,27,43,.80);
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 12px;
}
.link-inline:hover{
  background: rgba(255,255,255,.18);
}

.hero-meta{
  position:absolute;
  left:0; right:0;
  bottom: 14px;
  z-index: 2;
  text-align:center;
  color: rgba(11,27,43,.65);
  font-weight: 500;
}

/* =========================
   Section titles
========================= */
section{ padding: 86px 0; }

.section-title{
  text-align:center;
  margin:0 0 26px;
  font-size: 68px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: .01em;
}

/* was 36px -> too big, fixed */
.section-subtitle{
  text-align:center;
  margin: -10px auto 34px;
  max-width: 720px;
  color: rgba(17,24,39,.70);
  font-size: 18px;
}

/* =========================
   About card
========================= */
.service-card,
.about-card{
  transition: transform .2s ease, box-shadow .2s ease;
}

.about-card{
  background:#fff;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  display:grid;
  grid-template-columns: 380px 1fr;
  align-items:stretch;
  min-height: 260px;
}

.about-media{
  background: #e5e7eb;
  position:relative;
}
.about-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.about-body{
  padding: 28px 30px;
  display:flex;
  align-items:center;
}
.about-body p{
  margin:0;
  color: rgba(17,24,39,.70);
  font-size: 18px;
  line-height: 1.9;
}

/* =========================
   Services
========================= */
.services-section{ padding-top: 40px; }

.services-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 22px;
  margin-top: 10px;
}

.service-card{
  background:#fff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  border: 1px solid rgba(17,24,39,.05);
  display:flex;
  flex-direction:column;
  min-height: 360px;
}

.service-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.service-media{
  height: 175px;
  overflow:hidden;
}
.service-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.service-body{
  padding: 18px 18px 14px;
  flex:0;
  text-align:center;
}
.service-title{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
}
.service-desc{
  margin: 0;
  color: rgba(17,24,39,.62);
  font-size: 16px;
  line-height: 1.9;
}

/* hidden extra cards */
.service-card.is-hidden{ display:none; }

/* details (accordion) - works with your current HTML */
.service-details{
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  border-top: 1px solid rgba(17,24,39,.06);
  transition: max-height .35s ease, padding .35s ease;
}

.service-details ul{
  margin: 12px 0 16px;
  padding: 0 18px 0 0;
  color: rgba(17,24,39,.70);
  line-height: 1.9;
  text-align: right;
}

.service-details li{ margin: 6px 0; }

/* opened ONLY when JS adds class */
.service-details.is-open{
  padding: 0 18px;
}

/* toggle arrow */
.service-toggle{
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.service-toggle .chev{ transition: transform .25s ease; }
.service-toggle[aria-expanded="true"] .chev{ transform: rotate(180deg); }


@keyframes fadeDown{
  from{ opacity:0; transform: translateY(-6px); }
  to{ opacity:1; transform: translateY(0); }
}

/* More button */
.more-wrap{
  display:flex;
  justify-content:center;
  margin-top: 28px;
}

.btn-more{
  min-width: 210px;
  background: linear-gradient(180deg, #0e2236, #182845);
  color:#fff;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}

/* =========================
   Clients
========================= */
.clients{
  padding-top: 70px;
}

.clients-arrow{
  display:flex;
  justify-content:center;
  margin: 14px 0 26px;
  color: var(--gold);
  opacity: .9;
}

.logos{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
  justify-items: center;
  padding: 10px 0 0;
}

.logo{
  width: 100%;
  max-width: 140px;
  height: 56px;
  object-fit: contain;
  display: block;
  opacity: .95;
}

/* =========================
   Footer
========================= */
footer{
  background: #182845;
  color: rgba(255,255,255,.76);
  padding: 26px 0;
  margin-top: 50px;
}
.footer-row{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items:center;
  gap: 18px;
  text-align:center;
  font-weight: 500;
}
.footer-row a{ color: rgba(255,255,255,.78); }
.footer-row a:hover{ color: #fff; }

/* Reveal helper (optional) */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}
.reveal.show{
  opacity: 1;
  transform: translateY(0);
}

/* a11y helper */
.sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================
   Responsive
========================= */

/* <= 1180 */
@media (max-width: 1180px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* <= 1024 (iPad/tablet) */
@media (max-width: 1024px){
  .hero-left-shape{ display:none; }

  .hero{
    min-height:auto;
    padding-bottom: 26px;
    background:
      radial-gradient(780px 480px at 50% -10%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%),
      radial-gradient(520px 420px at 30% 10%, rgba(255,255,255,.20), rgba(255,255,255,0) 60%),
      linear-gradient(135deg, var(--sand) 0%, #d7ba8c 52%, #caa56e 100%);
  }

  .hero-content{ padding: 18px 0 24px; }

  .hero-grid{
    grid-template-columns: 1fr;
    min-height:auto;
    gap: 18px;
    justify-items:center;
  }

  .portrait-wrap{
    width: min(420px, 90vw);
    height: min(420px, 90vw);
    margin: 0 auto;
  }
  .portrait{ inset: 44px; }

  .hero-text{
    text-align:center;
    padding: 0 10px;
    max-width: 720px;
  }

  .hero-actions{ justify-content:center; }

  .hero-meta{
    position: static;
    margin-top: 14px;
    padding: 0 12px;
    opacity: .85;
  }

  .about-card{ grid-template-columns: 1fr; }
  .about-media{ height: 220px; }

  .menu{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .brand{ font-size: 32px; }

  .menu.open{
    display:flex;
    position:absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    margin:0;
    padding: 14px 12px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(11,27,43,.12);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    flex-wrap:wrap;
    justify-content:center;
  }

  /* logos grid */
  .logos{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap:18px; }
  .logo{ max-width:150px; height:52px; }
}

/* <= 720 */
@media (max-width: 720px){
  .services-grid{ grid-template-columns: 1fr; }
}

/* <= 600 (phone) */
@media (max-width: 600px){
  .logos{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap:16px; }
  .logo{ max-width:160px; height:48px; }
}

/* <= 460 */
@media (max-width: 460px){
  .section-title{ font-size: 40px; }
  .hero-desc{ font-size: 16px; }
  .btn{ width:100%; }
  .hero-actions{ width:100%; }
}

/* <= 380 */
@media (max-width: 380px){
  .logos{ grid-template-columns: 1fr; }
  .logo{ max-width:180px; height:46px; }
  .footer-row{ grid-template-columns: 1fr; }
}
