﻿/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { direction: rtl; }

:root{
  --ink: #0f3d3a;     /* غامق طبي */
  --brand: #0e6f73;   /* لون Neo Physio */
  --accent: #0f9a8f;  /* زرار/هايلايت */
  --bg: #ffffff;      /* أبيض */
  --soft: #f4f8f8;    /* رمادي فاتح جدًا */
  --line: #e6eff0;    /* خطوط وفواصل */
  --muted: #5b7a78;
}

body{
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
}

/* ===== Container ===== */
.container{
  width: 92%;
  max-width: 1120px;
  margin: auto;
}

/* ===== Header ===== */
.topbar{
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navwrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 14px;
  position: relative;
}

/* ===== Brand ===== */
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo{
  height: 42px;
  width: auto;
  display: block;
}

.btxt .name{
  color: var(--brand);
  font-weight: 900;
  font-size: 16px;
}

.btxt .tag{
  font-size: 12px;
  color: var(--muted);
}

/* ===== Nav ===== */
.nav{
  display: flex;
  gap: 12px;
}

.nav a{
  text-decoration: none;
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
}

.nav a:hover,
.nav a.active{
  background: var(--soft);
}

/* ===== Buttons ===== */
.actions{
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: .2s ease;
}

.btn:hover{ filter: brightness(0.95); }

.btn.ghost{
  background: transparent;
  color: var(--ink);
  border-color: #b9d6d4;
}

.btn.small{
  font-size: 13px;
  padding: 7px 12px;
}

/* ===== Hamburger ===== */
.menuBtn{
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
}

.menuBtn span{
  width: 20px;
  height: 2px;
  background: var(--ink);
  display: block;
  border-radius: 2px;
}

/* ===== HERO (image only) ===== */
.hero{
  width: 100%;
  background: #0b2f2d;
  border-bottom: 1px solid var(--line);
}

.hero img{
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== Sections ===== */
.section{
  padding: 28px 0;
  background: #fff;
}

.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

/* ===== Typography ===== */
.section-title{
  font-size: 26px;
  font-weight: 950;
  letter-spacing: .2px;
  margin-bottom: 12px;
  color: var(--ink);
}

.lead{
  color: #274b49;
  font-size: 15.5px;
  margin-bottom: 10px;
}

.subhead{
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 8px;
  color: var(--ink);
}

.p{
  color: #2f5451;
  font-size: 15px;
}

.hr{
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

/* ===== Why list (no boxes) ===== */
.why-list{
  list-style: none;
  margin-top: 10px;
}

.why-list li{
  padding: 10px 0;
  color: #2f5451;
  font-size: 15px;
  border-bottom: 1px dashed #e7f0f1;
}

.why-list li:last-child{ border-bottom: 0; }

.why-list li strong{
  color: var(--ink);
  font-weight: 950;
  display: inline-block;
  margin-left: 6px;
}

/* ===== CTA row ===== */
.cta-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ===== Contact card ===== */
.contact-card{
  background: var(--soft);
}

.kv{
  display: grid;
  gap: 10px;
  margin-top: 6px;
  color: #2f5451;
  font-size: 14.5px;
}

.kv b{
  color: var(--ink);
  margin-left: 6px;
}

.link{
  color: var(--brand);
  text-decoration: none;
  font-weight: 950;
}

.link:hover{ text-decoration: underline; }

/* ===== Footer ===== */
.footer{
  text-align: center;
  padding: 20px 0 26px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  background: #fff;
}

/* =========================================================
   GALLERY (Grid + Cards)
   ========================================================= */
.gallery-grid{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.g-item{
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
  transform: translateY(0);
  transition: .2s ease;
}

.g-item:hover{ transform: translateY(-2px); }

.g-item img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.g-cap{
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border: 1px solid rgba(230,239,240,0.9);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 18, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 10000;
}

.lightbox.show{ display: flex; }

.lb-card{
  width: min(980px, 96vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(230,239,240,0.8);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.lb-top{
  padding: 12px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.lb-title{
  font-weight: 950;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-close{
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  border-radius: 12px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 950;
}

.lb-stage{
  background: #0b2f2d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.lb-img{
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.lb-bottom{
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lb-cap{
  color: #2f5451;
  font-size: 13.5px;
  font-weight: 800;
}

.lb-nav{
  display: flex;
  gap: 8px;
}

.lb-btn{
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 950;
}

.lb-btn:hover{ background: var(--soft); }

/* =========================================================
   TESTIMONIALS STYLE (Only testimonials page)
   Works ONLY when body has class="page-testimonials"
   ========================================================= */
.page-testimonials .card{
  padding: 26px;
  max-width: 920px;
  margin: 0 auto;
}

.page-testimonials .section-title{
  margin-bottom: 14px;
}

/* كل رأي كارت */
.page-testimonials .card .review{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px 18px;
  box-shadow:0 10px 22px rgba(0,0,0,0.05);
  line-height:1.95;
  font-size:15.5px;
  color:#2f5451;
  position: relative;
}

/* فاصلة اقتباس بسيطة */
.page-testimonials .card .review::before{
  content: "“";
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 28px;
  font-weight: 900;
  color: #cfe2e1;
}

/* مسافة بين الآراء */
.page-testimonials .card .review + .review{
  margin-top: 14px;
}

/* اسم العميل */
.page-testimonials .card .review .r-name{
  display:block;
  color:var(--ink);
  font-weight:950;
  font-size:16px;
  margin-bottom:8px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 920px){
  .nav{
    display: none;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: 68px;
    right: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    min-width: 220px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
    z-index: 999;
  }

  .nav.show,
  .nav.active{ display: flex; }

  .menuBtn{ display: flex; }

  .hero img{ height: 320px; }

  .section-title{ font-size: 22px; }
  .card{ padding: 18px; }

  .gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-item img{ height: 170px; }

  /* Testimonials on mobile */
  .page-testimonials .card{
    padding: 18px;
    max-width: 100%;
  }
  .page-testimonials .card .review{
    padding: 14px 16px;
    font-size: 15px;
  }
}

@media (max-width: 520px){
  .gallery-grid{ grid-template-columns: 1fr; }
  .g-item img{ height: 190px; }
}