/* ==========================================================================
   Dr. Hisham's Healthcare — main stylesheet
   Brand teal pulled from the clinic's own logo (#3EAF9B family).
   ========================================================================== */

:root {
  --teal: #2e9c88;
  --teal-dark: #1c6b5d;
  --teal-darker: #0f4a40;
  --teal-light: #e6f5f2;
  --teal-lighter: #f4faf9;
  --ink: #1a2b28;
  --ink-soft: #4a5a57;
  --gold: #d3a856;
  --white: #ffffff;
  --border: #e2ece9;
  --shadow: 0 4px 24px rgba(15, 74, 64, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 74, 64, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--teal-darker);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--teal-lighter); }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 8px 20px rgba(46, 156, 136, 0.32); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46, 156, 136, 0.4); }
.btn-outline { background: transparent; border-color: var(--teal); color: var(--teal-dark); }
.btn-outline:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }
.btn-ghost-white { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.55); color: var(--white); backdrop-filter: blur(6px); }
.btn-ghost-white:hover { background: var(--white); color: var(--teal-darker); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand-logo { height: 46px !important; width: auto; }
.brand-text { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--teal-darker); font-size: 1.05rem; line-height: 1.15; }
.brand-text span { display: block; font-weight: 500; font-size: 0.72rem; color: var(--teal); letter-spacing: 0.06em; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink); position: relative; padding: 6px 0; }
.main-nav a:hover, .main-nav a.active { color: var(--teal-dark); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--teal); border-radius: 2px; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-darker); font-size: 0.92rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--teal-darker); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  background: linear-gradient(160deg, var(--teal-darker) 0%, var(--teal-dark) 55%, var(--teal) 130%);
  overflow: hidden;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.14), transparent 45%),
                     radial-gradient(circle at 10% 90%, rgba(211,168,86,0.18), transparent 40%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; font-size: 1.1rem; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { color: rgba(255,255,255,0.86); font-size: 1.12rem; max-width: 520px; }
.hero-phones { display: flex; gap: 22px; margin: 26px 0 30px; flex-wrap: wrap; }
.hero-phones div { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.hero-phones strong { display: block; font-size: 1.05rem; color: var(--white); }

.hero-photo-wrap { position: relative; }
.hero-photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255,255,255,0.18);
}
.hero-photo img { width: 100%; height: 480px; object-fit: cover; object-position: top center; }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--white); color: var(--teal-darker);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.hero-badge .num { font-size: 1.7rem; font-weight: 800; color: var(--teal); }
.hero-badge .txt { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.3; max-width: 110px; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.trust-strip .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 26px 24px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--teal-darker); font-size: 0.92rem; }
.trust-item .ico { font-size: 1.4rem; }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .icon-badge {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--teal-light); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card a.card-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--teal-dark); font-size: 0.9rem; }

/* ---------- Doctor cards ---------- */
.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.doctor-card .photo { aspect-ratio: 4/5; overflow: hidden; }
.doctor-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card .info { padding: 24px 22px 28px; }
.doctor-card .role { color: var(--teal); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; display: block; }
.doctor-card h3 { margin-bottom: 2px; }
.doctor-card .reg { color: var(--ink-soft); font-size: 0.82rem; margin-bottom: 12px; }
.doctor-card p { font-size: 0.92rem; }

.doctor-full {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: start;
  background: var(--white); border: 1px solid var(--border); border-radius: 20px;
  padding: 36px; box-shadow: var(--shadow); margin-bottom: 40px;
}
.doctor-full .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.doctor-full .photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.doctor-full .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill { background: var(--teal-light); color: var(--teal-darker); padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.doctor-full .timing { margin-top: 18px; padding: 16px 18px; background: var(--teal-lighter); border-radius: var(--radius-sm); border: 1px dashed var(--teal); }
.doctor-full .timing strong { color: var(--teal-darker); display: block; margin-bottom: 4px; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.testimonial-card .stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.quote { font-size: 1.02rem; color: var(--ink); font-style: italic; }
.testimonial-card .who { font-weight: 700; color: var(--teal-darker); margin-top: 14px; font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal-darker));
  border-radius: 24px;
  padding: 56px;
  color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.82); margin-bottom: 0; }

/* ---------- Locations ---------- */
.location-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.location-card h3 { display: flex; align-items: center; gap: 10px; }
.location-card .detail-row { display: flex; gap: 12px; margin: 14px 0; font-size: 0.95rem; }
.location-card .detail-row .ico { color: var(--teal); font-size: 1.1rem; flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq-cat { margin-bottom: 40px; }
.faq-cat h3 { color: var(--teal-dark); border-bottom: 2px solid var(--teal-light); padding-bottom: 10px; margin-bottom: 6px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; font-weight: 700; font-size: 1rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: inherit;
}
.faq-q .plus { color: var(--teal); font-size: 1.4rem; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a p { padding-bottom: 20px; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid a { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); display: block; aspect-ratio: 1/1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--teal-darker); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.96rem; background: var(--teal-lighter); transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--teal); background: var(--white); }
.form-row textarea { resize: vertical; min-height: 130px; }
#formStatus { margin-top: 14px; font-weight: 600; font-size: 0.92rem; }
#formStatus.success { color: var(--teal-dark); }
#formStatus.error { color: #b3452f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-darker); color: rgba(255,255,255,0.82); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer-brand .brand-text { color: var(--white); }
.footer-brand .brand-text span { color: rgba(255,255,255,0.6); }
.site-footer p { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 12px; }
.site-footer ul li a { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.site-footer ul li a:hover { color: var(--white); }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  transition: background 0.15s ease;
}
.social-row a:hover { background: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 0.85rem; color: rgba(255,255,255,0.55); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,0.7); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
  font-size: 1.8rem;
  animation: pulse-wa 2.4s infinite;
}
@keyframes pulse-wa {
  0% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.85), 0 0 0 10px rgba(37,211,102,0.08); }
  100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5); }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--teal-darker), var(--teal-dark));
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.85); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav, .header-cta .btn-outline, .header-phone { display: none; }
  .nav-toggle { display: block; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo img { height: 360px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .doctor-full { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-band { flex-direction: column; text-align: center; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 60px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .container { justify-content: center; text-align: center; }
  .hero-badge { position: static; margin-top: -30px; margin-left: 20px; width: fit-content; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 150;
  background: var(--teal-darker);
  color: var(--white);
  padding: 90px 32px 40px;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 16px 0; font-size: 1.2rem; font-weight: 700; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.15); }
.mobile-nav .close-btn { position: absolute; top: 22px; right: 24px; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; }
