/* ===== CSS Variables & Theme ===== */
:root {
  --primary: #5b7e95;
  --primary-light: #7fa3b8;
  --primary-dark: #3d5a6e;
  --accent: #c4a882;
  --accent-light: #e0d1be;
  --accent-dark: #a88e6a;
  --bg: #faf9f7;
  --bg-warm: #f5f0eb;
  --bg-section: #eef4f8;
  --text: #3a3a3a;
  --text-light: #6b6b6b;
  --text-heading: #2c4a5e;
  --white: #ffffff;
  --border: #e0dcd6;
  --shadow: 0 2px 20px rgba(91, 126, 149, 0.08);
  --shadow-lg: 0 8px 40px rgba(91, 126, 149, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-body: 'Heebo', 'Segoe UI', sans-serif;
  --font-heading: 'Heebo', 'Segoe UI', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--white);
  font-weight: 500;
}

.top-bar a:hover {
  color: var(--accent-light);
}

.top-bar .phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.top-bar .hours {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 60px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.4rem;
  margin-bottom: 2px;
  color: var(--primary-dark);
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 300;
}

/* ===== Navigation ===== */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--bg-section);
}

.nav-link.active {
  color: var(--primary-dark);
  font-weight: 700;
}

/* Header CTA button */
.nav-cta-wrap { margin-right: 8px; }

.nav-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(196, 168, 130, 0.4);
}

/* Soft secondary button (light backgrounds) */
.btn-soft {
  background: var(--bg-section);
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
}

.btn-soft:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(91, 126, 149, 0.3);
}

/* Homepage hero CTA row */
.hero-cta-home {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0 8px;
}

/* Trust / affiliations bar */
.trust-bar {
  background: var(--white);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar-title {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.trust-bar-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.trust-bar-items span {
  position: relative;
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding-right: 18px;
}

.trust-bar-items span::before {
  content: '\2726';
  color: var(--accent);
  position: absolute;
  right: 0;
}

/* Floating contact buttons */
.floating-contact {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-contact a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition);
}

.floating-contact a:hover {
  transform: scale(1.08);
  color: var(--white);
}

.floating-contact .fc-whatsapp { background: #25D366; }
.floating-contact .fc-phone { background: var(--primary); }
.floating-contact svg { width: 28px; height: 28px; fill: currentColor; }

@media (max-width: 480px) {
  .floating-contact { bottom: 16px; left: 16px; gap: 10px; }
  .floating-contact a { width: 50px; height: 50px; }
  .floating-contact svg { width: 25px; height: 25px; }
}

/* FAQ accordion */
.content-wrapper .faq-q {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-heading);
  transition: color var(--transition);
}

.content-wrapper .faq-q:hover { color: var(--primary); }

.content-wrapper .faq-q::after {
  content: '+';
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.content-wrapper .faq-q.open::after {
  content: '\2212';
}

.content-wrapper .faq-body {
  display: none;
  padding: 12px 0 8px;
}

.content-wrapper .faq-body.open { display: block; }

.content-wrapper .faq-body p:last-child,
.content-wrapper .faq-body ul:last-child { margin-bottom: 0; }

/* Dropdown */
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
  border: 1px solid var(--border);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.dropdown a:hover {
  background: var(--bg-section);
  color: var(--primary);
  padding-right: 25px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Doctor Banner ===== */
.doctor-banner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.doctor-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(196,168,130,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

/* ===== Specialties Grid (Homepage) ===== */
.specialties {
  padding: 70px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-title .title-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 15px auto 0;
  border-radius: 2px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.spec-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.spec-card .icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.8rem;
}

.spec-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.spec-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

.spec-card .card-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.spec-card .card-link:hover {
  color: var(--accent-dark);
}

/* ===== About Section ===== */
.about-section {
  padding: 50px 0;
  background: var(--bg-section);
}

.about-text-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text);
}

.about-text-block p {
  margin-bottom: 15px;
}

.about-headline {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 30px;
}

.about-bio {
  font-size: 0.98rem;
  color: var(--text-light, var(--text));
  padding-top: 25px;
  border-top: 1px solid var(--bg-section);
}

/* ===== Fields List ===== */
.fields-section {
  padding: 50px 0 70px;
}

.fields-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.field-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 25px;
  background: var(--white);
  border-radius: var(--radius);
  border-right: 4px solid var(--primary);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.field-item:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-lg);
}

.field-item .field-icon {
  color: var(--primary);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.field-item a {
  font-weight: 600;
  color: var(--primary-dark);
}

.field-item span {
  color: var(--text-light);
}

/* ===== Content Pages ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-hero h2 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.page-hero .breadcrumb {
  font-size: 0.9rem;
  opacity: 0.8;
}

.page-hero .breadcrumb a {
  color: var(--accent-light);
}

.page-content {
  padding: 60px 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow);
}

.content-wrapper h3 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-section);
}

.content-wrapper h3:first-child {
  margin-top: 0;
}

.content-wrapper p {
  margin-bottom: 18px;
  line-height: 2;
}

.content-wrapper ul {
  list-style: none;
  margin-bottom: 20px;
}

.content-wrapper ul li {
  padding: 8px 20px 8px 0;
  position: relative;
  line-height: 1.8;
}

.content-wrapper ul li::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  right: 0;
  font-size: 1.2rem;
}

.content-wrapper h4 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: var(--primary);
}

.content-wrapper .lead {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.9;
}

.content-wrapper ol {
  margin: 0 22px 22px 0;
  padding-right: 18px;
  line-height: 1.9;
}

.content-wrapper ol li {
  margin-bottom: 8px;
}

.content-wrapper .faq-q {
  margin-top: 26px;
}

/* Sidebar Navigation for subpages */
.page-with-sidebar {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.page-sidebar {
  flex: 0 0 250px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.sidebar-nav {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar-nav h4 {
  padding: 18px 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
}

.sidebar-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--bg-section);
  color: var(--primary);
  padding-right: 25px;
}

.sidebar-nav a.active {
  border-right: 3px solid var(--primary);
  font-weight: 600;
}

.page-main-content {
  flex: 1;
}

/* ===== Contact Page ===== */
.contact-section {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--primary-dark);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-detail .detail-icon {
  width: 45px;
  height: 45px;
  background: var(--bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail .detail-text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-detail .detail-text p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--primary-dark);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--bg);
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 126, 149, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(91, 126, 149, 0.4);
}

.map-container {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  background: var(--bg-section);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-about p {
  opacity: 0.8;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-contact p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-contact a {
  color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-image {
    flex: none;
  }

  .hero-image .image-frame {
    margin: 0 auto;
    width: 200px;
    height: 250px;
    font-size: 3rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    flex: none;
  }

  .page-with-sidebar {
    flex-direction: column;
  }

  .page-sidebar {
    flex: none;
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    padding: 10px 0;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 25px;
    border-radius: 0;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-right: 20px;
    display: block;
    background: var(--bg);
  }

  .nav-cta-wrap { padding: 10px 25px; }
  .nav-cta { display: inline-block; text-align: center; }

  .content-wrapper {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 50px 0 60px;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 4px;
  }
}
