@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

:root{
  /* White UI (calm) */
  --bg:#ffffff;
  --soft:#ffffff;
  --card:#ffffff;

  /* Text */
  --text:#01040a;
  --muted:#838c98;

  /* Accent (keep calm blue) */
  --accent:#0d4369;

  /* Borders + shadows */
  --border: rgba(17,24,39,.08);

  --shadow-card: 0 10px 22px rgba(0,0,0,.07);
  --shadow-soft: 0 6px 16px rgba(0,0,0,.05);



  --radius:18px;

  /* Waves (white) */
  /* Waves (seamless / متناسقة) */
  --wave-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23ffffff' d='M0 70 C 200 40 400 100 600 70 C 800 40 1000 100 1200 70 L1200 120 L0 120 Z'/%3E%3C/svg%3E");

  --wave-svg-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23ffffff' fill-opacity='0.65' d='M0 78 C 240 58 360 92 600 78 C 840 64 960 96 1200 78 L1200 120 L0 120 Z'/%3E%3C/svg%3E");

  --wave-svg-3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23ffffff' fill-opacity='0.35' d='M0 84 C 300 104 300 64 600 84 C 900 104 900 64 1200 84 L1200 120 L0 120 Z'/%3E%3C/svg%3E");

}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Poppins',sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}
a{ text-decoration:none !important; color:inherit; }
ul{ margin:0; padding:0; list-style:none !important; }
li{ list-style:none !important; }
img{ max-width:100%; display:block; }

/* Helpers */
.container{ width:min(1120px, 92%); margin:0 auto; }
.mt{ margin-top:2rem; }
.mt-sm{ margin-top:1rem; }
.small{ font-size:.95rem; }
.muted{ color:var(--muted); }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color:#ffffff;                 /* نص أبيض واضح */
  font-weight: 700;
  box-shadow: 0 .6rem 1.4rem rgba(15,76,103,.22);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 .8rem 1.6rem rgba(15,76,103,.26);
}
.btn:active{ transform: translateY(0); }


.btn-outline{
  background: rgba(255,255,255,.10);
  color: #ffffff !important;     /* لأنه داخل الهيرو */
  border-color: rgba(255,255,255,.45);
  box-shadow:none;
}
.btn-outline:hover{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.65);
}


.btn-sm{ padding:10px 16px; font-size: .95rem; }

/* Sections */
.section{ padding: 64px 0; }
.section-white{ background:#fff; }
.section-soft{ background:#fff; } /* كله أبيض */

.section-title{ text-align:center; margin-bottom: 18px; }
.section-title h2{
  margin:0;
  font-size: clamp(1.7rem, 2.3vw, 2.2rem);
  color: var(--text);
}
.section-title p,
.card p,
.partner-body p{
  color: var(--muted);
  opacity: 1;
}


/* ===== HEADER (White + shadow on scroll) ===== */
.site-header{
  position: fixed;
  top:0; left:0; width:100%;
  z-index: 9999;
  padding: 14px 0;
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: padding .25s ease, box-shadow .25s ease, background .25s ease;
}

.page-home .site-header.header-home{
  background: rgba(255,255,255,.92) !important;
  box-shadow: none;
}

.is-scrolled .site-header{
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
  padding: 10px 0;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  color: var(--text) !important;
  font-weight: 800;
}
.brand img{
  height: 42px;
  width:auto;
  transition: height .35s ease, transform .35s ease;
}
.brand-text{
  font-size: 1.05rem;
  white-space: nowrap;
  color: var(--text);
  transition: opacity .25s ease, transform .35s ease;
}


/* Home hero logo effect */
.page-home .site-header.header-home .brand img{
  height: 96px;                /* كبير بالبداية */
  transition: height .5s ease, transform .5s ease;
}

.is-scrolled.page-home .site-header.header-home .brand img{
  height: 42px;                /* يصغر عند النزول */
}

.page-home .site-header.header-home .brand img{ height: 76px; }
.page-home .site-header.header-home .brand-text{
  opacity: 0;
  transform: translateY(8px);
  transition: all .4s ease;
}

.is-scrolled.page-home .site-header.header-home .brand-text{
  opacity: 1;
  transform: translateY(0);
}


/* عند السكروول يرجع طبيعي + يصغر */
.is-scrolled.page-home .site-header.header-home .brand{
  position: static;
  transform: none;
}
.is-scrolled.page-home .site-header.header-home .brand img{ height: 40px; }
.page-home .site-header.header-home .brand-text{
  opacity: 0;
  transform: translateY(8px);
  transition: all .4s ease;
}

.is-scrolled.page-home .site-header.header-home .brand-text{
  opacity: 1;
  transform: translateY(0);
}


/* NAV */
.nav{ display:block; }
.nav ul{
  display:flex;
  align-items:center;
  gap: 20px;
}
.nav a{
  color: var(--text) !important;
  font-weight: 600;
  opacity: .92;
  transition: opacity .2s ease, color .2s ease;
}
.site-header .nav .btn{
  background: var(--accent);
  border-color: var(--accent);
  color:#fff !important;
}
.site-header .nav .btn:hover{
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.nav a:hover{ color: var(--accent) !important; opacity:1; }
.nav a.active{
  position: relative;
}
.nav a.active::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-10px;
  height:2px;
  border-radius: 999px;
  background: var(--accent);
}


.menu-btn{
  display:none;
  border:none;
  background: rgba(0,0,0,.06);
  color: var(--text);
  width:46px; height:46px;
  border-radius: 14px;
  font-size: 1.35rem;
  cursor:pointer;
}

/* ===== HERO ===== */
.hero{
  position:relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  color:#fff;
  background: url("images/hero.png") center/cover no-repeat;
  background-attachment: fixed;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,.52));
  pointer-events:none;
}
.hero-content{
  position:relative;
  padding-top: 110px;
  padding-bottom: 150px;
}
.eyebrow{
  margin:0 0 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .95rem;
  opacity: .92;
}
.hero h1{
  margin:0 0 14px;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.06;
  text-shadow: 0 12px 30px rgba(0,0,0,.30);
}
.hero .lead{
  margin:0 0 22px;
  max-width: 70ch;
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255,255,255,.92);
}
.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(120deg,
      rgba(15,76,103,.12),
      transparent 60%);
  pointer-events:none;
}

/* Hero stats: white glass */
.hero-stats{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat{
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.40);
  padding: 14px 16px;
  border-radius: 16px;
  min-width: 170px;
  color: var(--text);            
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}
.stat b{ color: var(--accent); } 
/* Add + without changing JS text at the end */
.stat b[data-suffix]::after{
  content: attr(data-suffix);
}

.stat span{ color: var(--muted); opacity: 1; }


/* ===== WAVES ===== */
.wave{
  position:absolute;
  left:0;
  width:100%;
  height:120px;
  bottom:0;

  background-repeat: repeat-x;
  background-size: 1200px 120px; 
  transform: translateZ(0);
}

/* كلهم نفس الـ bottom عشان يكونون متناسقين */
.wave1{ background-image: var(--wave-svg);   animation: waveMove 12s linear infinite;        opacity: .98; }
.wave2{ background-image: var(--wave-svg-2); animation: waveMove 9s  linear infinite reverse; opacity: .75; }
.wave3{ background-image: var(--wave-svg-3); animation: waveMove 7s  linear infinite;        opacity: .55; }

@keyframes waveMove{
  from { background-position-x: 0; }
  to   { background-position-x: 1200px; }
}


@media (prefers-reduced-motion: reduce){
  .wave1,.wave2,.wave3{ animation:none; }
  html{ scroll-behavior:auto; }
}

/* ===== Grids + Cards ===== */
.grid{ display:grid; gap: 18px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0,0,0,.10);
}
.card{
  position: relative;
  overflow: hidden;
}
.card::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(
    400px circle at var(--x) var(--y),
    rgba(15,76,103,.08),
    transparent 40%
  );
  opacity:0;
  transition: opacity .2s ease;
}
.card:hover::after{
  opacity:1;
}

.card h3{ margin:0 0 10px; color: var(--text); font-size: 1.2rem; }
.card p{ margin:0; color: var(--muted); line-height: 1.9; }

.partner{ display:flex; gap: 16px; align-items:center; }
.partner-logo{
  background: rgba(15,76,103,.06);
  border-color: rgba(15,76,103,.12);
}

.partner-body h3 a{ color: var(--text); }
.partner-body h3 a:hover{ color: var(--accent); text-decoration: underline; }

.cta-card{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  box-shadow: 0 24px 55px rgba(0,0,0,.08);
}

/* Page hero (inner pages) - white as well */
.page-hero{
  padding-top: 120px;
  padding-bottom: 42px;
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.page-hero h1{ margin:0 0 10px; font-size: clamp(2rem, 3.4vw, 3rem); }
.page-hero .lead{ margin:0; max-width:72ch; line-height:1.9; color: var(--muted); }

/* Footer - white + top border */
.site-footer{
  background: #fff;
  color: var(--text);
  padding: 56px 0 20px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
}
.site-footer h4{ margin:0 0 10px; }

.footer-links{ display:grid; gap: 10px; }
.footer-links a{ color: var(--muted) !important; }
.footer-links a:hover{ color: var(--accent) !important; text-decoration: underline; }

.footer-bottom{
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.06);
  display:flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

/* Back to top */
.back-to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--accent);
  color:#fff;
  display:none;
  align-items:center;
  justify-content:center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-card);
  z-index: 9999;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .cta-card{ flex-direction: column; align-items: flex-start; }

  .menu-btn{ display:inline-flex; align-items:center; justify-content:center; }

  .nav{
    position: fixed;
    left: 0; right: 0;
    top: 74px;
    background: #fff;
    transform: translateY(-140%);
    transition: transform .25s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    padding: 12px 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .nav.open{ transform: translateY(0); }

  .nav ul{ flex-direction: column; gap: 14px; }
  .nav a{ color: var(--text) !important; }

  /* Home logo fix on mobile */
  .page-home .site-header.header-home .brand{
    position: static;
    transform: none;
  }
  .page-home .site-header.header-home .brand-text{ display:none; }
  .page-home .site-header.header-home .brand img{ height: 46px; }
}
/* ===== Contact page (Info + Form) ===== */
.info{
  display:grid;
  gap: 12px;
  margin-top: 14px;
}
.info > div{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.info b{ color: var(--text); }
.info span{ color: var(--muted); text-align:right; }

.note{
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(17,24,39,.20);
  background: rgba(17,24,39,.03);
  color: var(--text);
}

/* Form */
.form{
  display:grid;
  gap: 14px;
  margin-top: 10px;
}
.form label{
  display:grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}
.form input,
.form textarea{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.18);
  background:#fff;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.form textarea{ resize: vertical; min-height: 150px; }

.form input:focus,
.form textarea:focus{
  border-color: rgba(189, 216, 227, 0.55); /* قريب من accent */
  box-shadow: 0 0 0 4px rgba(38,86,106,.12);
}

.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form button.btn{
  justify-self: start;
  padding: 12px 24px;
}
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.show{
  opacity: 1;
  transform: translateY(0);
}
/* ===== About Hero Background ===== */
/* ===== About Banner (image only) ===== */
.about-banner{
  height: 44vh;          /* كان أكبر */
  min-height: 300px;
  border-radius: 22px;
  margin: 92px auto 18px;  /* مهم: يقلل الفراغ تحت + يحسب للهيدر */
  width: min(1120px, 92%);
  background:
    linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.50)),
    url("images/about.png") center/cover no-repeat;
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.06);
}

.about-top{
  padding-top: 18px;   /* كان 120px */
  padding-bottom: 22px;
  background: linear-gradient(to bottom, rgba(15,76,103,.06), transparent 70%);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.about-first{ padding-top: 18px; }
.section{ padding: 56px 0; }

.about-top-inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.about-top h1{
  margin:0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
}
.about-top p{
  margin:10px 0 0;
  max-width: 70ch;
  line-height: 1.8;
}


/* ===== About page polish ===== */


/* قللي الفراغ العام بين الأقسام */
.section{ padding: 64px 0; } /* كان كبير */
.section-title{ margin-bottom: 18px; }

/* سكشن أول محتوى في about: خليه أقرب */
.about-first{ padding-top: 34px; }  /* بدل ما يبدأ بعيد */

/* Card النص الطويل: خليه أخف + سطر أريح */
.about-text-card p{
  line-height: 1.9;
  color: var(--muted);
}

/* صورة about: شكل أفخم + نفس ارتفاع الكرت */
.about-img{
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
  height: 100%;
  object-fit: cover;
  min-height: 360px;

  /* Animation start state */
  opacity: 0;
  transform: translateY(40px) scale(.96);
  transition: opacity .9s ease, transform .9s ease;
}
.about-img.show{
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* خلي عمودين متساويين + بدون تمدد غريب */
.about-grid{
  align-items: stretch;
}

/* Mission/Vision cards: تمييز بسيط */
.mv-card{
  position: relative;
  overflow:hidden;
}
.mv-card::before{
  content:"";
  position:absolute;
  left:0; top:0;
  width:100%;
  height:4px;
  background: linear-gradient(90deg, var(--accent), rgba(15,76,103,.15));
}

/* CTA: أجمل وأخف */
.cta-card{
  border: 1px solid rgba(15,76,103,.14);
  background: rgba(15,76,103,.05);
}

/* Responsive */
@media (max-width: 980px){
  .about-top{ padding-top: 110px; }
  .about-img{ min-height: 260px; }
}

/* Responsive */
@media (max-width: 820px){
  .row{ grid-template-columns: 1fr; }
  .info > div{ flex-direction: column; }
  .info span{ text-align:left; }
}
