/* Dr. Mohamed El Shawaf Website Custom Stylesheet */

/* Google Fonts Import - Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* Color Variables */
:root {
  --primary: #0F766E;
  --primary-hover: #0D635C;
  --secondary: #2563EB;
  --secondary-hover: #1D4ED8;
  --accent: #14B8A6;
  --background: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --warning-bg: #FEF3C7;
  --warning-text: #B45309;

  --radius-lg: 20px;
  --radius-md: 12px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 10px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
}

/* Base Reset & Typography */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Offset for sticky navbar */
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

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

/* Custom Selection Color */
::selection {
  background-color: var(--accent);
  color: #fff;
}

/* Sticky Navbar Custom styling */
.custom-navbar {
  background-color: rgba(248, 250, 252, 0.85);
  /* background transparent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  padding: 1rem 0;
}

.custom-navbar.scrolled {
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary) !important;
  font-size: 1.35rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text-primary) !important;
  margin: 0 10px;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* Buttons Styling */
.btn-primary-custom {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--primary);
  transition: var(--transition-smooth);
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

.btn-secondary-custom {
  background-color: var(--secondary);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--secondary);
  transition: var(--transition-smooth);
}

.btn-secondary-custom:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--primary);
  transition: var(--transition-smooth);
}

.btn-outline-custom:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 5rem 0;
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.05) 0%, rgba(248, 250, 252, 1) 90%);
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-badges span {
  display: inline-block;
  background-color: rgba(20, 184, 166, 0.08);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(20, 184, 166, 0.15);
}

.hero-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--card-bg);
  padding: 10px;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 10px);
  object-fit: cover;
  transition: var(--transition-smooth);
}

/* Section Common Styling */
.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 50px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--accent);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* Clean Cards */
.medical-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.medical-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(20, 184, 166, 0.3);
}

.medical-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background-color: rgba(20, 184, 166, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.medical-card:hover .medical-card-icon {
  background-color: var(--primary);
  color: #ffffff;
}

/* Info Alert Card */
.notice-alert-card {
  background-color: var(--warning-bg);
  border: 1px solid rgba(180, 83, 9, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  color: var(--warning-text);
  box-shadow: var(--shadow-sm);
}

.notice-alert-card h4 {
  color: var(--warning-text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.notice-alert-card p {
  color: var(--warning-text);
  margin-bottom: 0;
  opacity: 0.95;
  font-weight: 600;
}

/* Branches Styling */
.branch-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.branch-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.2);
}

.branch-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* Accordion Custom Styling */
.custom-accordion .accordion-item {
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.custom-accordion .accordion-button {
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--card-bg);
  padding: 1.25rem 1.5rem;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(20, 184, 166, 0.04);
  color: var(--primary);
  box-shadow: none;
}

.custom-accordion .accordion-button::after {
  margin-right: auto;
  margin-left: 0;
  /* Align collapse icon to left for RTL */
}

/* Bottles & Doses Style */
.bottle-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.bottle-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.bottle-header {
  padding: 1.5rem;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
}

.bottle-header.bottle-1 {
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.bottle-header.bottle-2 {
  background: linear-gradient(135deg, #3B82F6, var(--secondary));
}

.bottle-header.bottle-3 {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
}

.bottle-header.bottle-4 {
  background: linear-gradient(135deg, #EC4899, #BE185D);
}

.dose-table {
  width: 100%;
  margin-bottom: 0;
}

.dose-table th {
  background-color: #F8FAFC;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 2px solid rgba(226, 232, 240, 0.8);
  padding: 0.75rem 1rem;
}

.dose-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

.dose-table tr:last-child td {
  border-bottom: none;
}

.badge-dose {
  background-color: rgba(20, 184, 166, 0.08);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.whatsapp-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-pulse {
  animation: pulse-ring 3s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Entrance Animations */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Section */
.footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding: 4rem 0 2rem 0;
  font-size: 0.95rem;
}

.footer h5 {
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer a {
  color: #94A3B8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 3rem;
  padding-top: 1.5rem;
}

/* Lucide Icon Adjustments */
i[data-lucide] {
  stroke-width: 2;
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-section {
    padding: 6rem 0 3rem 0;
  }

  .whatsapp-floating {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
}

/* Custom Dropdown Styling */
.custom-navbar .dropdown-menu {
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  background-color: var(--card-bg);
  min-width: 220px;
  animation: dropdownFade 0.2s ease;
  margin-top: 0.5rem;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-navbar .dropdown-item {
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  transition: var(--transition-smooth);
  text-align: right;
  /* Ensure RTL alignment */
}

.custom-navbar .dropdown-item:hover,
.custom-navbar .dropdown-item:focus {
  background-color: rgba(20, 184, 166, 0.08);
  color: var(--primary);
}

.custom-navbar .dropdown-item.active,
.custom-navbar .dropdown-item:active {
  background-color: var(--primary);
  color: #ffffff;
}

.custom-navbar .dropdown-toggle::after {
  display: inline-block;
  margin-right: 0.35em;
  margin-left: 0;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

/* ===== Mobile Hero Layout ===== */
.hero-mobile-layout {
  padding: 0;
}

/* Image in row 2: fixed width beside title */
.hero-mobile-img-wrap {
  width: 42%;
}

.hero-mobile-img-wrap .hero-image-container {
  padding: 6px;
  border-radius: 14px;
}

.hero-mobile-img-wrap .hero-image {
  border-radius: 10px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
}

/* Title block beside image */
.hero-mobile-title-block {
  flex: 1;
  min-width: 0;
}

.hero-title-mobile {
  font-size: 1.2rem;
  line-height: 1.3;
}

/* Subtitle below image+title row */
.hero-subtitle-mobile {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Description below subtitle */
.hero-description-mobile {
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Small phones (< 380px) */
@media (max-width: 380px) {
  .hero-mobile-img-wrap {
    width: 38%;
  }

  .hero-mobile-img-wrap .hero-image {
    max-height: 28vh;
  }

  .hero-title-mobile {
    font-size: 1rem;
  }

  .hero-subtitle-mobile {
    font-size: 0.8rem;
  }

  .hero-description-mobile {
    font-size: 0.8rem;
  }
}

/* Medium phones (380px–575px) */
@media (min-width: 381px) and (max-width: 575px) {
  .hero-mobile-img-wrap .hero-image {
    height: 190px;
  }

  .hero-title-mobile {
    font-size: 1.25rem;
  }
}

/* Tablet (576px–991px) */
@media (min-width: 576px) and (max-width: 991px) {
  .hero-mobile-img-wrap {
    width: 36%;
  }

  .hero-mobile-img-wrap .hero-image {
    height: 240px;
  }

  .hero-title-mobile {
    font-size: 1.75rem;
  }

  .hero-subtitle-mobile {
    font-size: 1.05rem;
  }

  .hero-description-mobile {
    font-size: 1rem;
  }
}