/* ==========================================================================
   Rezum.ma – Main Stylesheet
   Color Palette:
     Navy:   #1a3a5c
     Teal:   #0891b2
     Gold:   #c9a84c
     Light:  #f0f6ff
     White:  #ffffff
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --navy:      #1a3a5c;
  --navy-dark: #0f2338;
  --teal:      #0891b2;
  --teal-dark: #0670a0;
  --gold:      #c9a84c;
  --gold-dark: #a8861f;
  --light:     #f0f6ff;
  --gray-100:  #f8f9fa;
  --gray-200:  #e9ecef;
  --text-main: #1e2d3d;
  --text-muted:#6c757d;
  --radius:    0.625rem;
  --shadow:    0 4px 24px rgba(26,58,92,0.10);
  --shadow-lg: 0 8px 40px rgba(26,58,92,0.15);
  --transition: 0.28s ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', 'Cairo', sans-serif;
  font-size: 1rem;
  color: var(--text-main);
  background: #fff;
  line-height: 1.75;
}

body.lang-ar {
  font-family: 'Cairo', sans-serif;
  font-size: 1.05rem;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4,
body.lang-ar h5,
body.lang-ar h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cdd8e5;
  font-size: 0.82rem;
  padding: 6px 0;
}
.topbar a { color: #cdd8e5; }
.topbar a:hover { color: var(--gold); }
.lang-switch { margin: 0 4px; padding: 2px 8px; border-radius: 4px; font-weight: 600; font-size: 0.78rem; }
.lang-switch.active { color: var(--gold); border-bottom: 2px solid var(--gold); }

/* ---------- Navbar ---------- */
#mainNav {
  background: var(--navy);
  padding: 0.5rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  z-index: 1040;
}

.brand-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.brand-dot { color: var(--gold); }
.brand-tagline {
  font-size: 0.7rem;
  color: #9ab4cb;
  font-weight: 400;
  margin-left: 10px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: none !important; /* hide tagline to free nav space */
}
body.lang-ar .brand-tagline { margin-left: 0; margin-right: 10px; }

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.87) !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.6rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: color var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--gold) !important; }

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark) !important;
  border: none;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }

.nav-cta { gap: 6px !important; flex-shrink: 0; }
.nav-cta .btn { font-size: 0.8rem; padding: 0.35rem 0.75rem; white-space: nowrap; }

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--teal-dark) 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/images/hero-bg-pattern.svg') center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--gold); }
.hero .lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.12rem;
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-val { font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.hero-stat-lbl { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-top: 4px; }
.hero-image-wrap {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-img {
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  max-height: 480px;
  object-fit: cover;
}

/* ---------- Section Defaults ---------- */
.section { padding: 80px 0; }
.section-light { background: var(--light); }
.section-gray  { background: var(--gray-100); }
.section-navy  { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}
.section .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
}

/* ---------- Cards ---------- */
.card-feature {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card-feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-feature .icon-wrap {
  width: 56px; height: 56px;
  background: var(--light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card-feature .icon-wrap i { font-size: 1.5rem; color: var(--teal); }
.card-feature h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-feature p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ---------- Comparison Table ---------- */
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); }
.comparison-table thead tr th { background: var(--navy); color: #fff; padding: 1rem 1.2rem; font-size: 0.95rem; }
.comparison-table thead tr th:first-child { background: var(--navy-dark); }
.comparison-table tbody tr td { padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; vertical-align: top; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr td:first-child { font-weight: 600; color: var(--navy); background: var(--gray-100); }
.comparison-table tbody tr td.rezum-col { background: #eef9f0; color: #1a6e2e; font-weight: 600; }
.comparison-table .check { color: #1a9e3a; font-size: 1.1rem; }
.comparison-table .cross { color: #dc3545; font-size: 1.1rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding: 0; list-style: none; }
.timeline::before { content: ''; position: absolute; left: 28px; top: 10px; bottom: 10px; width: 2px; background: var(--teal); opacity: 0.3; }
body.lang-ar .timeline::before { left: auto; right: 28px; }
.timeline-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; align-items: flex-start; }
.timeline-dot {
  flex-shrink: 0; width: 56px; height: 56px;
  background: var(--teal); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 0 0 6px rgba(8,145,178,0.12);
}
.timeline-content h5 { color: var(--navy); margin-bottom: 0.25rem; }
.timeline-content p  { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ---------- Doctor Profile ---------- */
.doctor-card {
  background: var(--light);
  border-radius: 1rem;
  padding: 2.5rem;
  display: flex; gap: 2rem; align-items: flex-start;
  border-left: 5px solid var(--gold);
}
body.lang-ar .doctor-card { border-left: none; border-right: 5px solid var(--gold); }
.doctor-img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 4px solid var(--gold); }
.doctor-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; color: var(--teal); text-transform: uppercase; }
.doctor-name  { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1.2; margin: 0.25rem 0 0.75rem; }
.badge-list   { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.badge-cred   { background: var(--navy); color: #fff; border-radius: 50px; padding: 3px 12px; font-size: 0.75rem; font-weight: 600; }

/* ---------- IPSS Calculator ---------- */
.ipss-wrap { background: var(--light); border-radius: 1rem; padding: 2rem; border: 1px solid #c7d8f0; }
.ipss-question { margin-bottom: 1.5rem; }
.ipss-question label { font-weight: 600; font-size: 0.92rem; color: var(--navy); margin-bottom: 0.5rem; display: block; }
.ipss-result {
  padding: 1.5rem; border-radius: 0.75rem;
  text-align: center; margin-top: 1.5rem;
  display: none;
}
.ipss-result.mild    { background: #d4f0dc; border: 1px solid #77c28a; }
.ipss-result.mod     { background: #fff3cd; border: 1px solid #ffc107; }
.ipss-result.severe  { background: #fde8e8; border: 1px solid #e06060; }
.ipss-score { font-size: 3rem; font-weight: 800; line-height: 1; }
.ipss-category { font-size: 1.1rem; font-weight: 700; margin-top: 0.25rem; }

/* ---------- FAQ Accordion ---------- */
.faq-accordion .accordion-button {
  font-weight: 600; font-size: 0.95rem; color: var(--navy);
  background: var(--light);
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--teal); background: #dff1f7; box-shadow: none;
}
.faq-accordion .accordion-button::after { filter: hue-rotate(180deg); }
.faq-accordion .accordion-body { font-size: 0.92rem; line-height: 1.8; color: var(--text-main); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff; border-radius: 1rem; padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.testimonial-text { font-size: 0.95rem; font-style: italic; color: var(--text-main); margin-bottom: 1rem; }
.testimonial-author { font-weight: 700; color: var(--navy); font-size: 0.88rem; }
.testimonial-stars { color: var(--gold); font-size: 1rem; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(90deg, var(--navy-dark), var(--teal-dark));
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
}
.cta-banner h3 { color: #fff; font-size: 1.8rem; margin-bottom: 0.75rem; }
.cta-banner p  { color: rgba(255,255,255,0.82); margin-bottom: 1.5rem; }

/* ---------- Video Highlight ---------- */
.video-highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
}
.video-highlight .section-label { color: var(--gold); }
.video-highlight h2 { color: #fff; }
.video-highlight .lead { color: rgba(255,255,255,0.82); }
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  border: 3px solid var(--gold);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Contact Form ---------- */
.contact-card {
  background: #fff; border-radius: 1rem;
  padding: 2.5rem; box-shadow: var(--shadow);
}
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.form-control, .form-select {
  border: 1.5px solid #c0cfe0;
  border-radius: 0.5rem; font-size: 0.92rem; padding: 0.65rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-nav { background: var(--light); padding: 12px 0; font-size: 0.82rem; }
.breadcrumb-item a { color: var(--teal); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item+.breadcrumb-item::before { color: #aaa; }

/* ---------- Map Box ---------- */
.map-box { border-radius: 1rem; overflow: hidden; height: 300px; border: 3px solid var(--light); }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  z-index: 9999;
  transition: transform var(--transition), box-shadow var(--transition);
}
body.lang-ar .whatsapp-float { right: auto; left: 24px; }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* ---------- Stats Strip ---------- */
.stats-strip { background: var(--navy); padding: 50px 0; }
.stat-item { text-align: center; }
.stat-item .stat-val { font-size: 2.6rem; font-weight: 800; color: var(--gold); display: block; }
.stat-item .stat-label { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-top: 4px; }

/* ---------- Utility ---------- */
.text-gold  { color: var(--gold) !important; }
.text-teal  { color: var(--teal) !important; }
.text-navy  { color: var(--navy) !important; }
.bg-light-blue { background: var(--light); }
.rounded-xl { border-radius: 1.25rem; }
.shadow-card { box-shadow: var(--shadow); }
.pill { border-radius: 50px; }
.divider-gold { border: none; height: 3px; width: 60px; background: var(--gold); margin: 1rem 0 1.5rem; }
.list-check li { padding: 0.3rem 0; }
.list-check li i { color: var(--teal); margin-right: 8px; }
body.lang-ar .list-check li i { margin-right: 0; margin-left: 8px; }

/* ---------- Legal Pages ---------- */
.hero-sm { padding: 70px 0 50px; }
.hero-sm h1 { font-size: 2.4rem; }

.legal-body { font-size: 0.97rem; line-height: 1.85; color: var(--text); }
.legal-body h2 {
  font-size: 1.25rem; font-weight: 700;
  color: var(--navy); margin-top: 2.5rem; margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.legal-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-dark); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-body p { margin-bottom: 1rem; }
.legal-body ul { padding-left: 1.4rem; margin-bottom: 1rem; }
body.lang-ar .legal-body ul { padding-left: 0; padding-right: 1.4rem; }
.legal-body ul li { margin-bottom: 0.45rem; }
.legal-body a { color: var(--teal); text-decoration: underline; }
.legal-body a:hover { color: var(--navy); }
.legal-body strong { color: var(--navy-dark); }

.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  border-radius: 50px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b0c0d2; }
.footer-top { padding: 60px 0 40px; }
.footer-heading { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.footer-text { font-size: 0.88rem; line-height: 1.7; }
.footer-clinic { font-size: 0.85rem; line-height: 1.8; }
.footer-clinic a { color: #b0c0d2; }
.footer-clinic a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.45rem; font-size: 0.85rem; }
.footer-links a { color: #b0c0d2; }
.footer-links a:hover { color: var(--gold); }
.footer-social a { color: #b0c0d2; font-size: 1.3rem; margin-right: 12px; transition: color var(--transition); }
body.lang-ar .footer-social a { margin-right: 0; margin-left: 12px; }
.footer-social a:hover { color: var(--gold); }
.footer-bottom { background: #0a1a2d; padding: 16px 0; font-size: 0.8rem; color: #6c8daa; border-top: 1px solid #1f3450; }
.footer-bottom a { color: #6c8daa; margin-left: 16px; }
body.lang-ar .footer-bottom a { margin-left: 0; margin-right: 16px; }
.footer-bottom a:hover { color: var(--gold); }
.footer-credit { margin-left: 16px; color: #4a6a88; font-size: 0.78rem; }
.footer-credit a { color: #4a6a88; margin-left: 0; }
.footer-credit a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .hero { padding: 70px 0 50px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-stats { gap: 1.2rem; }
  .hero-stat-val { font-size: 1.7rem; }
  .doctor-card { flex-direction: column; align-items: center; text-align: center; }
  body.lang-ar .doctor-card { border-right: none; border-top: 5px solid var(--gold); }
  .doctor-card { border-left: none; border-top: 5px solid var(--gold); }
  .section { padding: 55px 0; }
  .comparison-table { font-size: 0.8rem; }
  .cta-banner { padding: 2rem 1rem; }
  .cta-banner h3 { font-size: 1.4rem; }
}

@media (max-width: 575.98px) {
  .topbar { display: none !important; }
  .hero-cta { flex-direction: column; }
}
