/* =========================================================
   TOKENS
   ========================================================= */

:root{
  --ink:        #12261F;
  --ink-soft:   #4C5F57;
  --paper:      #F1F3EE;
  --paper-alt:  #E8ECE4;
  --line:       #DCE3DA;

  --primary:    #163B32;
  --primary-2:  #1E5245;
  --accent:     #C99A2E;
  --accent-2:   #E4B94E;
  --whatsapp:   #22A65E;

  --radius-lg:  22px;
  --radius-md:  14px;
  --radius-sm:  10px;

  --shadow-soft: 0 18px 40px -20px rgba(18,38,31,.35);

  --font-display: "El Messiri", serif;
  --font-body:    "Almarai", sans-serif;
  --font-mono:    "IBM Plex Sans Arabic", sans-serif;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* =========================================================
   RESET
   ========================================================= */

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a{ text-decoration:none; color:inherit; }
ul, ol{ list-style:none; }

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.25;
}

.wrap{
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  margin-bottom: 10px;
}
.eyebrow.light{ color: var(--accent-2); }


/* =========================================================
   DECORATIVE BUBBLE-FIELD BACKDROP
   ========================================================= */

.bubble-field{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(22,59,50,.06) 1.6px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}


/* =========================================================
   HEADER
   ========================================================= */

.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241,243,238,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row{
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--primary);
}

.brand-mark{
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--paper);
  font-size: 16px;
}

.brand-mark-img{
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text em{
  color: var(--accent);
  font-style: normal;
}

.header-phone{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--paper);
  font-weight: 700;
  font-size: 15px;
}

.header-phone .ring{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }

.btn-primary{
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(34,166,94,.55);
}

.btn-ghost{
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover{ border-color: var(--primary); }

.btn-lg{ padding: 18px 34px; font-size: 17px; }

.btn-outline-light{
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(241,243,238,.4);
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
}


/* =========================================================
   HERO
   ========================================================= */

.hero{ padding: 64px 0 56px; position: relative; }

.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
}

.hero-copy h1{
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 700;
  margin-bottom: 20px;
}

.accent-underline{
  position: relative;
  display: inline-block;
}
.accent-underline::after{
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: 2px;
  height: .32em;
  background: var(--accent-2);
  opacity: .55;
  z-index: -1;
  border-radius: 4px;
}

.hero-lede{
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}

.cta-row{ display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-facts{
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
}
.hero-facts li{ display: flex; align-items: center; gap: 8px; }
.hero-facts .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}


/* ---- hero visual: percentile dial (signature element) ---- */

.hero-visual{ position: relative; display: flex; justify-content: center; }

.dial-card{
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.dial-svg{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.dial-track{
  fill: none;
  stroke: var(--paper-alt);
  stroke-width: 10;
}

.dial-progress{
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  transform-origin: center;
  animation: draw-dial 1.6s cubic-bezier(.3,.9,.3,1) .2s both;
}

@keyframes draw-dial{
  from{ stroke-dashoffset: 100; }
}

.dial-center{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
}

.dial-number{
  font-size: 46px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.dial-unit{
  font-size: 16px;
  color: var(--accent);
  margin-top: -6px;
}
.dial-label{
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.float-chip{
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-mono);
}
.float-chip strong{ font-size: 18px; }
.float-chip span{ font-size: 11px; opacity: .8; }

.chip-experience{ top: -6%; left: -4%; }
.chip-plan{ bottom: -4%; left: 6%; }


/* =========================================================
   TRUST STRIP
   ========================================================= */

.trust{
  background: var(--primary);
  color: var(--paper);
  padding: 34px 0;
}

.trust-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-item strong{
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 4px;
}
.trust-item span{
  font-size: 13px;
  color: rgba(241,243,238,.75);
}


/* =========================================================
   SECTION GENERIC
   ========================================================= */

.section{ padding: 92px 0; }

.section-head{
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2{
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
}
.section-lede{ color: var(--ink-soft); font-size: 15.5px; }


/* =========================================================
   SERVICES
   ========================================================= */

.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.service-card.is-featured{
  background: var(--primary);
  border-color: var(--primary);
}
.service-card.is-featured h3,
.service-card.is-featured p{ color: var(--paper); }

.bubble-mark{
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}
.bubble-mark.filled{
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.service-card h3{ font-size: 20px; margin-bottom: 10px; }
.service-card p{ color: var(--ink-soft); font-size: 15px; }
.service-card.is-featured p{ opacity: .85; }


/* =========================================================
   EXPERIENCE
   ========================================================= */

.experience{ padding: 92px 0; background: var(--paper-alt); }

.experience-grid{
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 48px;
  align-items: center;
}

.experience-copy h2{ font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.experience-copy > p{ color: var(--ink-soft); font-size: 15.5px; margin-bottom: 26px; max-width: 56ch; }

.check-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.check-list li{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}
.mini-bubble{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.experience-badge{
  background: var(--primary);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.experience-badge span{ font-family: var(--font-mono); font-size: 13px; opacity: .75; }
.experience-badge strong{ font-family: var(--font-display); font-size: 62px; line-height: 1.1; }
.experience-badge b{ font-size: 18px; font-weight: 700; }
.experience-badge small{ margin-top: 10px; font-size: 12.5px; opacity: .8; }


/* =========================================================
   METHOD (sequential steps)
   ========================================================= */

.steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
}

.step-num{
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}

.step h3{ font-size: 17px; margin-bottom: 8px; }
.step p{ color: var(--ink-soft); font-size: 14px; }


/* =========================================================
   FAQ
   ========================================================= */

.faq-list{ max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }

.faq-list details{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.faq-list summary{
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--primary);
  list-style: none;
}
.faq-list summary::-webkit-details-marker{ display:none; }

.faq-list p{
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.final-cta{ padding: 80px 0 100px; }

.final-box{
  background: var(--primary);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.final-box h2{ color: var(--paper); font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.final-box p{ color: rgba(241,243,238,.75); font-size: 15px; }

.final-actions{ display: flex; gap: 14px; flex-wrap: wrap; }


/* =========================================================
   FLOATING CONTACT
   ========================================================= */

.floating-contact{
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-btn{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}

.floating-whatsapp{ background: var(--whatsapp); color: #fff; }
.floating-call{ background: var(--primary); color: var(--paper); }


/* =========================================================
   FOOTER
   ========================================================= */

.footer{ background: var(--ink); color: rgba(241,243,238,.7); padding: 28px 0; }

.footer-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  text-align: center;
}
.footer-row strong{ color: var(--paper); font-family: var(--font-display); }


/* =========================================================
   POPUP — lead capture (mobile only)
   ========================================================= */

#popupOverlay{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(18,38,31,.6);
  backdrop-filter: blur(3px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: popupFadeIn .35s ease;
}

@keyframes popupFadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.popup-card{
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -14px 40px -12px rgba(18,38,31,.45);
  overflow: hidden;
  text-align: center;
  animation: popupSlideUp .4s cubic-bezier(.22,.9,.35,1.1);
}

@keyframes popupSlideUp{
  from{ transform: translateY(100%); }
  to{ transform: translateY(0); }
}

.popup-header{
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-2) 70%);
  padding: 24px 20px 34px;
}

.popup-close{
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(241,243,238,.14);
  color: var(--paper);
  font-size: 10px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s ease, background .2s ease;
}
.popup-close:hover{ opacity: .9; background: rgba(241,243,238,.28); }

.popup-mark{
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--paper);
  overflow: hidden;
  padding: 8px;
}
.popup-mark img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.popup-brand{
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}
.popup-brand span{
  display: block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(241,243,238,.75);
  margin-top: 3px;
}

.popup-badge{
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(201,154,46,.6);
}

.popup-body{
  padding: 30px 24px 22px;
}

.popup-title{
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--primary);
  margin: 0 0 10px;
  line-height: 1.5;
}
.popup-title em{
  font-style: normal;
  color: var(--accent);
}

.popup-desc{
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin: 0 0 22px;
}

.popup-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  margin-bottom: 12px;
  transition: transform .15s ease;
}
.popup-btn:active{ transform: scale(.97); }

.popup-btn-whatsapp{
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(34,166,94,.55);
}
.popup-btn-whatsapp .wa-icon{
  flex-shrink: 0;
}

.popup-btn-call{
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--line);
}

.popup-note{
  font-size: 12px;
  color: var(--ink-soft);
  opacity: .8;
  margin-top: 2px;
}

@media (min-width: 769px){
  #popupOverlay{ display: none !important; }
}


/* =========================================================
   SCROLL REVEAL (progressive enhancement)
   ========================================================= */

[data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible{
  opacity: 1;
  transform: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 920px){

  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ margin-top: 32px; }

  .trust-grid{ grid-template-columns: repeat(2, 1fr); }
  .service-grid{ grid-template-columns: 1fr; }
  .experience-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: repeat(2, 1fr); }

  .final-box{ flex-direction: column; text-align: center; }

  .check-list{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .steps{ grid-template-columns: 1fr; }
  .header-phone span:not(.ring){ font-size: 14px; }
  .floating-text{ display: none; }
  .floating-btn{ padding: 14px; border-radius: 50%; }

  .hero{ padding: 40px 0 40px; }
  .cta-row{ flex-direction: column; align-items: stretch; }
  .cta-row .btn{ justify-content: center; }

  .dial-card{ width: min(230px, 68vw); }
  .dial-number{ font-size: 36px; }

  .float-chip{ padding: 8px 12px; }
  .float-chip strong{ font-size: 15px; }
  .float-chip span{ font-size: 10px; }
  .chip-experience{ top: -4%; left: -2%; }
  .chip-plan{ bottom: -2%; left: 2%; }
}
