/* ============================================================
   مؤسسة عيشة - Shared Stylesheet
   Colors: Navy #1B2B6B | Orange #F47920
   Font: Cairo (Google Fonts)
   Performance-first: no JS, minimal CSS, mobile-first
   ============================================================ */

:root {
  --navy:    #1B2B6B;
  --navy-d:  #0F1A48;
  --orange:  #F47920;
  --orange-h:#D96510;
  --white:   #ffffff;
  --light:   #F4F6FF;
  --gray:    #64748b;
  --border:  #e2e8f0;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(27,43,107,.10);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  color: #1a1a2e;
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 64px 20px; }
.section-light { background: var(--light); }

/* ── TYPOGRAPHY ── */
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 600px;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn:hover       { background: var(--orange-h); transform: translateY(-2px); }
.btn:active      { transform: translateY(0); }
.btn-white       { background: var(--white); color: var(--navy); }
.btn-white:hover { background: #eef0ff; }
.btn-outline     { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-lg          { padding: 18px 40px; font-size: 19px; }

/* ── HEADER: شريط علوي أبيض (لوجو) + شريط تنقل كحلي ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-d);
  box-shadow: 0 2px 16px rgba(0,0,0,.22);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px clamp(16px, 4vw, 48px);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.logo { height: 58px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.phone-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  font-family: 'Cairo', sans-serif;
  transition: background .2s, border-color .2s, color .2s;
}
.phone-btn:hover { background: var(--orange-h); }
.phone-btn svg   { flex-shrink: 0; }
.phone-btn--outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--border);
}
.phone-btn--outline:hover {
  background: var(--light);
  border-color: var(--navy);
}
.wa-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: var(--white);
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
  transition: background .2s;
}
.wa-btn:hover { background: #1ebe5a; }

/* ── NAV (كحلي داكن + نص أبيض كالسابق) ── */
.site-nav {
  background: var(--navy-d);
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s, opacity .2s;
}
.nav-inner a:hover { color: var(--white); }
.nav-inner a.active {
  color: var(--white);
  border-bottom-color: var(--orange);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy-d) 0%, var(--navy) 60%, #2a3d8f 100%);
  color: var(--white);
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(244,121,32,.18) 0%, transparent 65%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--orange); }
.hero p { font-size: 18px; opacity: .9; margin-bottom: 28px; }
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
}
.badge i { font-size: 12px; opacity: .95; }
.hero-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-sm { padding: 52px 20px 44px; }

/* ── SERVICES GRID (Home) — 4 per row on desktop for balanced LP grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 36px rgba(27,43,107,.16); }
.service-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  background: var(--light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--navy);
}
.service-icon i { line-height: 1; }
.service-card h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 8px; text-align: center; }
.service-card p  {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.65;
  min-height: calc(1.65em * 3);
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
}
.service-card .card-link:hover { text-decoration: underline; }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
@media (min-width: 1200px) {
  .features-grid.features-grid--four { grid-template-columns: repeat(4, 1fr); }
}
.feature-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  background: var(--orange);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  color: var(--white);
}
.feature-icon i { line-height: 1; }
.feature-text h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.feature-text p  { font-size: 14px; color: var(--gray); }

/* ── STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.step { text-align: center; }
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900;
  margin: 0 auto 16px;
  border: 4px solid var(--orange);
}
.step h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step p  { font-size: 14px; color: var(--gray); }

/* ── TRUST NUMBERS ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.trust-item {
  text-align: center;
  background: var(--white);
  padding: 32px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.trust-num {
  font-size: 42px; font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}
.trust-item h4 { font-size: 15px; font-weight: 700; color: var(--navy); }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-d), var(--navy));
  color: var(--white);
  text-align: center;
  padding: 64px 20px;
}
.cta-banner h2 { font-size: clamp(22px,4vw,36px); font-weight: 900; margin-bottom: 12px; }
.cta-banner p  { font-size: 17px; opacity: .85; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-group { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── PAGE DETAIL SECTIONS ── */
.detail-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.detail-intro .intro-text h2 { font-size: clamp(22px,3vw,32px); font-weight: 900; color: var(--navy); margin-bottom: 16px; }
.detail-intro .intro-text p  { font-size: 16px; color: var(--gray); margin-bottom: 16px; }
.detail-intro .intro-visual {
  background: linear-gradient(135deg, var(--navy), #2a3d8f);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.detail-intro .intro-visual.intro-visual--media {
  padding: 0;
  background: var(--navy-d);
}
.intro-visual--media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.intro-visual--media .intro-visual-caption {
  padding: 18px 20px 22px;
  font-size: 16px;
  line-height: 1.6;
  opacity: .95;
  background: linear-gradient(180deg, transparent, rgba(15,26,72,.55));
  margin-top: -56px;
  position: relative;
}
.detail-intro .intro-visual .big-icon {
  font-size: 72px;
  margin-bottom: 16px;
  line-height: 1;
}
.detail-intro .intro-visual .big-icon i { vertical-align: middle; }
.detail-intro .intro-visual p { font-size: 16px; opacity: .85; }

/* ── CHECKLIST ── */
.check-list { list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓';
  background: var(--orange);
  color: var(--white);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── FOOTER ── */
footer {
  background: var(--navy-d);
  color: rgba(255,255,255,.8);
  padding: 56px 20px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto 40px;
}
/* لوجو الفوتر: طبقة بيضاء بقناع على شكل الشعار (يحترم شفافية الـ PNG) */
.footer-logo-mask {
  display: inline-block;
  position: relative;
  line-height: 0;
  margin-bottom: 16px;
}
.footer-logo-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #fff;
  -webkit-mask-image: url("../logo.png");
  mask-image: url("../logo.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  pointer-events: none;
}
.footer-logo-mask .footer-logo {
  display: block;
  height: 68px;
  width: auto;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
}
.footer-brand p { font-size: 14px; line-height: 1.9; opacity: .75; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 16px; border-bottom: 2px solid var(--orange); padding-bottom: 8px; display: inline-block; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; opacity: .75; transition: opacity .2s, color .2s; }
.footer-col ul li a:hover { opacity: 1; color: var(--orange); }
.footer-contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; margin-bottom: 12px;
}
.footer-contact-item svg { flex-shrink: 0; color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  max-width: 1140px;
  margin: 0 auto;
}
.footer-credits {
  direction: ltr;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,.75);
}
.footer-credits a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.footer-credits a:hover { text-decoration: underline; color: var(--orange); }
.footer-credits .fc-sep { color: rgba(255,255,255,.85); padding: 0 4px; }

/* ── FLOATING WHATSAPP (RTL: place on visual right) ── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  z-index: 999;
  background: #25d366;
  color: var(--white);
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform .2s;
  font-size: 30px;
}
.wa-float:hover { transform: scale(1.12); }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--navy-d);
  padding: 10px 20px;
}
.breadcrumb-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.6);
}
.breadcrumb-inner a:hover { color: var(--orange); }
.breadcrumb-inner span { color: rgba(255,255,255,.35); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .detail-intro { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-inner { padding: 8px 16px; }
  .logo         { height: 46px; }
  .phone-btn .phone-label { display: none; }
  .wa-btn  .wa-label   { display: none; }
  .section  { padding: 48px 16px; }
  .hero     { padding: 56px 16px 40px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 320px; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner .btn-group { flex-direction: column; align-items: center; }
  .cta-banner .btn-group .btn { width: 100%; max-width: 300px; justify-content: center; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Two-column service blocks (hvac page) ── */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) {
  .split-2 { grid-template-columns: 1fr; }
}
