/* 
  Styles for Dr Hazem Clinic
  Minimal, Medical, Clean, Professional, Elegant
*/

:root {
  /* Medical Light Blue Theme */
  --primary: #E6F4FF;
  /* Light Medical Blue */
  --secondary: #A8D8FF;
  /* Soft Blue */
  --accent: #4A90E2;
  /* Accent Blue */
  --accent-hover: #357ABD;
  /* Darker Blue for hover */
  --white: #FFFFFF;
  --bg-light: #F7F9FB;
  /* Very Light Gray */
  --text-dark: #2C3E50;
  --text-muted: #5A6A75;
  /* Soft Gray Text */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  background-color: var(--white);
  line-height: 1.6;
}

/* RTL Support */
[dir="rtl"] {
  font-family: 'Inter', sans-serif;
  /* You could load an Arabic font like Tajawal, but Inter supports Arabic ok or falls back to system */
}

[dir="rtl"] .hero-title,
[dir="rtl"] .section-title {
  letter-spacing: normal;
}

[dir="rtl"] .hero-buttons .btn {
  margin-right: 0;
  margin-left: 1rem;
}

[dir="rtl"] .nav-actions .lang-btn i {
  margin-right: 0;
  margin-left: 6px;
}

/* RTL margins for items removed in favor of flex gap */

/* Containers & Typography */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.title-underline {
  height: 4px;
  width: 60px;
  background: var(--accent);
  border-radius: 4px;
  margin-bottom: 2rem;
}

.center .title-underline {
  margin-left: auto;
  margin-right: auto;
}

.center {
  text-align: center;
}

section {
  padding: 5rem 0;
}

.section-bg-light {
  background-color: var(--bg-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

.full-width {
  width: 100%;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 50px;
  object-fit: contain;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.logo h1 span {
  color: var(--accent);
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  background: var(--primary);
  border: none;
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.lang-btn i {
  margin-right: 6px;
  width: 18px;
  height: 18px;
}

.lang-btn:hover {
  background: var(--secondary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-nav {
  display: none;
  background: var(--white);
  padding: 1rem 0;
  border-top: 1px solid var(--bg-light);
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
}

/* Float WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  /* Official WhatsApp Color */
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: var(--transition);
  animation: floatBounce 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
  animation-play-state: paused;
}

@keyframes floatBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 30px;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--white) 0%, var(--primary) 100%);
}

.hero-bg-shapes {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: var(--secondary);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  z-index: 0;
}

[dir="rtl"] .hero-bg-shapes {
  right: auto;
  left: -5%;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  position: relative;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 4rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.medical-shape-container {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(-10deg);
  transition: var(--transition);
}

.medical-shape-container:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-main-icon {
  width: 120px;
  height: 120px;
  color: var(--accent);
}

/* About Section */
.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-image {
  flex: 1;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--accent);
  border: 2px dashed var(--secondary);
}

.placeholder-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.about-content {
  flex: 1.2;
}

.section-subtitle {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-text-ar p {
  margin-bottom: 1rem;
}

.credentials {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.credential-item {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--text-dark);
  gap: 1.2rem;
}

.credential-item i,
.credential-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border: 1px solid transparent;
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--white);
}

.service-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* Why Choose & Mission */
.container-split {
  display: flex;
  gap: 4rem;
}

.why-choose {
  flex: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.feature-box i {
  color: var(--accent);
}

.mission-care {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mission-box {
  background: var(--primary);
  padding: 2rem;
  border-radius: var(--radius-md);
}

.icon-wrapper {
  background: var(--white);
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: var(--accent);
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

/* Conditions Treated */
.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.condition-tag {
  background: var(--white);
  color: var(--text-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--secondary);
  transition: var(--transition);
}

.condition-tag:hover {
  background: var(--primary);
  transform: translateY(-2px);
  color: var(--accent);
}

/* Contact & Location */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-card,
.location-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item p,
.contact-item a {
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-item a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.contact-item i,
.contact-item svg {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--bg-light);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.mb-4 {
  margin-bottom: 2rem;
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent);
  border: 2px dashed var(--secondary);
}

.map-box {
  text-align: center;
}

/* Footer */
.main-footer {
  background: var(--text-dark);
  color: var(--white);
  padding-top: 4rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--secondary);
}

.footer-links h4 {
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: var(--bg-light);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--bg-light);
  margin: 0;
}

/* Responsive Variables */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .about-container,
  .container-split {
    flex-direction: column;
    gap: 3rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image {
    display: none;
  }

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

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-section {
    padding-top: 100px;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    margin: 0 !important;
  }

  .contact-card,
  .location-card {
    padding: 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }

  .container-split {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}