/* ============================================
   ED & Girth Clinic - Dr. Alaa Sadik
   Professional Medical Aesthetic CSS
   ============================================ */

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2540;
  --accent: #c9a96e;
  --accent-light: #e8d5b0;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #7a7a9a;
  --border: #e0e0f0;
  --success: #2ecc71;
  --shadow: 0 4px 24px rgba(26, 58, 92, 0.10);
  --shadow-lg: 0 8px 40px rgba(26, 58, 92, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* RTL support for Arabic */
body[dir="rtl"] {
  font-family: 'Cairo', 'Noto Kufi Arabic', sans-serif;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-mid); margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Language Bar ── */
.lang-bar {
  background: var(--primary-dark);
  padding: 8px 0;
  text-align: right;
}
body[dir="rtl"] .lang-bar { text-align: left; }

.lang-bar .container { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
body[dir="rtl"] .lang-bar .container { justify-content: flex-start; }

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}
.lang-btn:hover, .lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ── Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-main {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.logo-sub {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav { display: flex; gap: 4px; list-style: none; }
.site-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.site-nav a:hover { background: var(--light-bg); color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 8px;
  padding: 10px 20px !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--white) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: all var(--transition); }

/* ── Hero Section ── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1e4d7a 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 169, 110, 0.2);
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 32px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  border: 2px solid var(--accent);
}
.btn-primary:hover { background: #b8935a; border-color: #b8935a; color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,169,110,0.4); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.hero-card h3 { color: var(--accent-light); margin-bottom: 20px; }
.treatment-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: background var(--transition);
}
.treatment-pill:hover { background: rgba(255,255,255,0.12); }
.pill-icon { font-size: 1.4rem; }
.pill-text strong { display: block; color: var(--white); font-size: 0.95rem; }
.pill-text span { font-size: 0.8rem; color: rgba(255,255,255,0.65); }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--light-bg);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-item svg { color: var(--success); width: 20px; height: 20px; }

/* ── Section Common ── */
.section { padding: 80px 0; }
.section-alt { background: var(--light-bg); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-header .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.section-header p { font-size: 1.1rem; }

/* ── Treatments Cards ── */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.treatment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.treatment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.treatment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.treatment-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(26,58,92,0.1), rgba(201,169,110,0.15));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.treatment-card h3 { margin-bottom: 12px; }
.treatment-card p { font-size: 0.92rem; margin-bottom: 16px; }

.card-benefits { list-style: none; margin: 16px 0; }
.card-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.card-benefits li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: linear-gradient(135deg, var(--primary), #1e4d7a);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  margin-top: 8px;
}
.price-amount { font-size: 1.3rem; }
.price-unit { font-size: 0.78rem; opacity: 0.85; }

.card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.featured-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
}
body[dir="rtl"] .featured-badge { right: auto; left: 20px; }

/* ── Pricing Table ── */
.pricing-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
}
.pricing-table th {
  background: var(--primary);
  color: var(--white);
  padding: 16px 24px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
body[dir="rtl"] .pricing-table th { text-align: right; }
.pricing-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-mid);
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: var(--light-bg); }
.pricing-table td:last-child { font-weight: 700; color: var(--primary); }
.combo-row td { background: rgba(201,169,110,0.06); }
.combo-row td:first-child { color: var(--accent); font-weight: 600; }

/* ── Doctor Section ── */
.doctor-section { background: var(--primary); color: var(--white); }
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}
.doctor-photo-placeholder {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255,255,255,0.2);
  text-align: center;
  padding: 32px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}
.doctor-photo-placeholder .icon { font-size: 4rem; margin-bottom: 12px; display: block; }
.doctor-section h2 { color: var(--white); }
.doctor-section .eyebrow { color: var(--accent-light); }
.doctor-credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}
body[dir="rtl"] .credential-item { border-left: none; border-right: 3px solid var(--accent); }
.credential-item strong { color: var(--white); font-size: 0.92rem; display: block; }
.credential-item span { color: rgba(255,255,255,0.65); font-size: 0.82rem; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text-dark);
  transition: background var(--transition);
}
body[dir="rtl"] .faq-question { text-align: right; }
.faq-question:hover { background: var(--light-bg); }
.faq-question.open { background: var(--light-bg); color: var(--primary); }
.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--accent);
}
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer.open { max-height: 400px; }
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ── Process Steps ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.process-step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 52px; height: 52px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; }

/* ── Contact / CTA ── */
.cta-section {
  background: linear-gradient(135deg, #0f2540 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 40px; }

.contact-methods {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 24px 32px;
  min-width: 200px;
  transition: all var(--transition);
}
.contact-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.contact-card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.contact-card strong { display: block; color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.contact-card a { color: var(--accent-light); font-size: 0.9rem; }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all var(--transition);
  border: 2px solid #25D366;
}
.whatsapp-btn:hover { background: #1da851; border-color: #1da851; color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35); }

/* ── Availability Section ── */
.availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.day-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.day-card:hover { box-shadow: var(--shadow); }
.day-header {
  background: var(--primary);
  color: var(--white);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.95rem;
}
.time-slots {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.time-slot {
  background: var(--light-bg);
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.time-slot:hover { background: var(--primary); color: var(--white); border-color: var(--primary); cursor: pointer; }
.time-slot.available { border-color: var(--success); color: var(--success); }

/* ── Footer ── */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-main { color: var(--white); }
.footer-brand .logo-sub { color: var(--accent); }
.footer-brand p { margin-top: 16px; font-size: 0.88rem; line-height: 1.7; }
.footer-col h5 {
  color: var(--white);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  max-width: 600px;
  margin-top: 16px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .doctor-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 80px 32px 32px;
    z-index: 999;
  }
  .hamburger { display: flex; z-index: 1001; position: relative; }
  .hero { padding: 60px 0; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 20px; justify-content: flex-start; }
  .contact-methods { flex-direction: column; align-items: center; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.hidden { display: none; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--text-dark);
  color: rgba(255,255,255,0.85);
  padding: 20px 32px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.cookie-banner p { margin: 0; font-size: 0.88rem; }
.cookie-actions { display: flex; gap: 12px; }
.cookie-accept {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
}
.cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
}
