/* ==========================================================================
   Dr. Shehab Salah Centers — premium stylesheet
   Palette: emerald / forest green + gold. Bilingual RTL + LTR.
   ========================================================================== */

:root {
  /* greens */
  --forest: #0a3b26;
  --emerald: #0f7a45;
  --emerald-600: #12894f;
  --emerald-500: #1aa35f;
  --leaf: #46c07d;
  --mint-100: #e7f5ec;
  --mint-50:  #f3faf5;
  /* gold */
  --gold: #c9a24b;
  --gold-light: #e6c877;
  --gold-dark: #9c7a2f;
  /* neutrals */
  --ink: #0c1f17;
  --slate: #4a5b53;
  --line: #e2ede7;
  --cream: #f8f6f0;
  --white: #ffffff;
  --bg: #f5f9f6;
  /* effects */
  --shadow-sm: 0 2px 10px rgba(10,59,38,.06);
  --shadow-md: 0 14px 40px rgba(10,59,38,.12);
  --shadow-lg: 0 30px 70px rgba(10,59,38,.20);
  --gold-grad: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  --green-grad: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: 'Tajawal', 'Poppins', sans-serif; }
html[lang="ar"] { direction: rtl; }
html[lang="en"] { direction: ltr; }

/* Display headings */
h1, h2, .display { font-family: 'Poppins', 'Tajawal', sans-serif; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] .display { font-family: 'Playfair Display', 'Poppins', serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* language visibility */
.ar-only, .en-only { display: none; }
html[lang="ar"] .ar-only { display: revert; }
html[lang="en"] .en-only { display: revert; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 80px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand .logo-img {
  width: 50px; height: 50px; border-radius: 50%; flex: none; object-fit: cover;
  border: 2px solid var(--gold); box-shadow: var(--shadow-sm); background: var(--mint-50);
}
.brand .brand-name { font-weight: 800; font-size: 1.02rem; color: var(--forest); line-height: 1.25; letter-spacing: -.01em; }
.brand .brand-sub  { font-size: .74rem; color: var(--gold-dark); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 15px; border-radius: 11px; font-weight: 600; font-size: .95rem; color: var(--slate);
  transition: .18s; position: relative;
}
.nav-links a:hover { color: var(--emerald); background: var(--mint-100); }
.nav-links a.active { color: var(--emerald); }
.nav-links a.active::after {
  content: ""; position: absolute; inset-inline: 15px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold-grad);
}

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  border: 1px solid var(--line); background: #fff; color: var(--emerald); font-weight: 700;
  padding: 9px 15px; border-radius: 11px; cursor: pointer; font-family: inherit; font-size: .9rem; transition: .18s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--cream); }

.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center; font-family: inherit;
  font-weight: 700; font-size: .96rem; cursor: pointer; padding: 13px 24px; border-radius: 13px; border: 0;
  transition: .22s; white-space: nowrap;
}
html[lang="en"] .btn { font-family: 'Poppins', sans-serif; }
.btn-primary { background: var(--green-grad); color: #fff; box-shadow: 0 8px 22px rgba(15,122,69,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15,122,69,.38); }
.btn-gold { background: var(--gold-grad); color: #3a2c08; box-shadow: 0 8px 22px rgba(201,162,75,.34); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(201,162,75,.44); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--emerald); }
.btn-ghost:hover { border-color: var(--gold); background: var(--cream); }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,.3); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37,211,102,.4); }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-btn span { display: block; width: 24px; height: 2.5px; background: var(--forest); margin: 5px 0; border-radius: 3px; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -12%, rgba(26,163,95,.18), transparent 60%),
    radial-gradient(760px 460px at -6% 108%, rgba(201,162,75,.16), transparent 55%),
    linear-gradient(180deg, #fbfdfb, var(--bg));
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(10,59,38,.05) 1px, transparent 0);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 74px 68px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  color: var(--gold-dark); font-weight: 700; padding: 8px 16px; border-radius: 999px; font-size: .84rem;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.18; color: var(--forest); font-weight: 800; letter-spacing: -.015em; }
.hero h1 .accent { color: var(--emerald-500); position: relative; }
.hero h1 .accent::after { content:""; position:absolute; inset-inline:0; bottom:2px; height:.28em; background: rgba(201,162,75,.35); z-index:-1; border-radius:4px; }
.hero p.lead { font-size: 1.14rem; color: var(--slate); margin-top: 20px; max-width: 42ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.8rem; font-weight: 800; color: var(--emerald); }
html[lang="en"] .hero-stats .num { font-family: 'Playfair Display', serif; }
.hero-stats .lbl { font-size: .84rem; color: var(--slate); font-weight: 600; }

/* portrait */
.hero-photo-wrap { position: relative; }
.hero-photo {
  width: 100%; border-radius: 28px; box-shadow: var(--shadow-lg); border: 6px solid #fff; position: relative; z-index: 2;
}
.hero-photo-wrap::before {
  content: ""; position: absolute; inset-inline-end: -18px; inset-block-start: -18px; width: 62%; height: 62%;
  background: var(--gold-grad); border-radius: 28px; z-index: 1; opacity: .9;
}
.hero-photo-wrap::after {
  content: ""; position: absolute; inset-inline-start: -16px; inset-block-end: -16px; width: 55%; height: 55%;
  border: 2px solid var(--emerald-500); border-radius: 28px; z-index: 1;
}
.photo-badge {
  position: absolute; z-index: 3; inset-block-end: 18px; inset-inline-start: 18px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
}
.photo-badge .pb-num { font-size: 1.3rem; font-weight: 800; color: var(--emerald); }
.photo-badge .pb-txt { font-size: .78rem; color: var(--slate); font-weight: 600; line-height: 1.2; }

/* ---- Sections ---- */
.section { padding-block: 76px; }
.section.alt { background: var(--white); border-block: 1px solid var(--line); }
.section.dark {
  background: radial-gradient(900px 500px at 80% 0%, rgba(26,163,95,.22), transparent 60%), var(--forest);
  color: #dfeee7;
}
.section-head { text-align: center; max-width: 660px; margin-inline: auto; margin-bottom: 46px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--forest); font-weight: 800; letter-spacing: -.01em; }
.section.dark .section-head h2 { color: #fff; }
.section-head p { color: var(--slate); margin-top: 14px; font-size: 1.05rem; }
.section.dark .section-head p { color: #bcd7cb; }
.kicker-line { width: 54px; height: 3px; background: var(--gold-grad); border-radius: 3px; margin: 0 auto 18px; }

/* ---- Cards ---- */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); transition: .25s; position: relative; overflow: hidden;
}
.card::before { content:""; position:absolute; inset-block-start:0; inset-inline-start:0; width:100%; height:4px; background: var(--gold-grad); transform: scaleX(0); transform-origin: inline-start; transition:.3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--mint-100), #fff); color: var(--emerald); font-size: 1.6rem;
  margin-bottom: 18px; border: 1px solid var(--line);
}
.card h3 { color: var(--forest); font-size: 1.18rem; font-weight: 800; margin-bottom: 9px; }
.card p { color: var(--slate); font-size: .97rem; }
.card ul.mini { margin-top: 14px; display: grid; gap: 7px; }
.card ul.mini li { font-size: .9rem; color: var(--slate); padding-inline-start: 22px; position: relative; }
.card ul.mini li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 800; }

/* ---- Split / about ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-photo-wrap { position: relative; }
.about-photo { width: 100%; border-radius: 26px; box-shadow: var(--shadow-md); border: 5px solid #fff; }
.about-photo-wrap::before {
  content:""; position:absolute; inset-inline-start:-16px; inset-block-start:-16px; width:100%; height:100%;
  border: 2px solid var(--gold); border-radius: 26px; z-index:-1;
}
.feature-list { display: grid; gap: 18px; margin-top: 24px; }
.feature-list li { display: flex; gap: 15px; align-items: flex-start; }
.feature-list .fi {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-grad); color: #fff; font-weight: 800; font-size: 1.15rem;
}
.feature-list .ft { font-weight: 700; color: var(--forest); }
.feature-list .fd { color: var(--slate); font-size: .94rem; }
.prose h2 { color: var(--forest); font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; }
.prose p { color: var(--slate); margin-top: 15px; }

/* ---- Reviews ---- */
.stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: .25s; position: relative;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-card .quote-mark { font-family: 'Playfair Display', serif; font-size: 3.4rem; line-height: .6; color: var(--mint-100); position: absolute; inset-inline-end: 22px; inset-block-start: 26px; }
.review-card p.text { color: var(--ink); margin: 14px 0 18px; font-size: 1.02rem; position: relative; z-index: 1; }
.review-card .who { display: flex; align-items: center; gap: 13px; }
.review-card .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--green-grad); color: #fff; font-weight: 800; font-size: 1.05rem; border: 2px solid var(--gold-light);
}
.review-card .who .nm { font-weight: 700; color: var(--forest); font-size: .96rem; }
.review-card .who .mt { color: var(--gold-dark); font-size: .8rem; font-weight: 600; }

.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat-band .stat-box { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px 16px; box-shadow: var(--shadow-sm); }
.section.dark .stat-band .stat-box { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.stat-band .num { font-size: 2.2rem; font-weight: 800; color: var(--emerald-500); }
html[lang="en"] .stat-band .num { font-family:'Playfair Display', serif; }
.section.dark .stat-band .num { color: var(--gold-light); }
.stat-band .lbl { color: var(--slate); font-weight: 600; font-size: .9rem; }
.section.dark .stat-band .lbl { color: #bcd7cb; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: start; }
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 15px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; transition:.2s; }
.info-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.info-item .ii { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg,var(--mint-100),#fff); color: var(--emerald); font-size: 1.25rem; border:1px solid var(--line); }
.info-item .lab { font-size: .8rem; color: var(--slate); font-weight: 600; }
.info-item .val { font-weight: 800; color: var(--forest); direction: ltr; }
.info-item .val.rtl { direction: rtl; }
.placeholder { color: var(--gold-dark); font-style: italic; font-weight: 600; }

form.book { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); display: grid; gap: 15px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .88rem; color: var(--forest); }
.field input, .field select, .field textarea { font-family: inherit; font-size: .96rem; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--mint-50); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--emerald-500); background: #fff; }

.social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.social-row a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; padding: 11px 15px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--emerald); transition: .18s; }
.social-row a:hover { border-color: var(--gold); background: var(--cream); transform: translateY(-2px); }

/* ---- CTA ---- */
.cta-band {
  background: radial-gradient(700px 400px at 85% 10%, rgba(26,163,95,.4), transparent 60%), var(--forest);
  border-radius: 30px; padding: 54px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::after { content:""; position:absolute; inset-block-start:0; inset-inline:0; height:4px; background: var(--gold-grad); }
.cta-band h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; color:#fff; }
.cta-band p { opacity: .9; margin-top: 12px; max-width: 54ch; margin-inline: auto; color:#cfe6db; }
.cta-band .hero-cta { justify-content: center; margin-top: 26px; }
.cta-band .btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.2); border-color: var(--gold-light); }

/* ---- Footer ---- */
.site-footer { background: var(--forest); color: #cfe3d9; padding-block: 52px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 38px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--gold-light); }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 15px; }
.site-footer a { color: #cfe3d9; font-size: .92rem; display: block; padding: 4px 0; transition: .15s; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer p { font-size: .92rem; color: #a6c7ba; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; text-align: center; font-size: .84rem; color: #93bbad; }

/* ---- Page hero ---- */
.page-hero { position: relative; background: radial-gradient(800px 360px at 80% -20%, rgba(26,163,95,.16), transparent 60%), linear-gradient(180deg, #fbfdfb, var(--bg)); padding-block: 60px 44px; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(1.9rem,3.8vw,2.7rem); color: var(--forest); font-weight: 800; letter-spacing: -.01em; }
.page-hero p { color: var(--slate); margin-top: 14px; max-width: 62ch; margin-inline: auto; }

/* ---- Floating WhatsApp ---- */
.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color:#fff; display: grid; place-items: center;
  font-size: 1.7rem; box-shadow: 0 10px 26px rgba(37,211,102,.5); transition:.2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap { max-width: 440px; margin-inline: auto; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset-block-start: 80px; inset-inline: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 16px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-160%); transition: .3s; z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a.active::after { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 560px) {
  .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .brand .brand-sub { display: none; }
}
