/* =========================================================
   مدينة المسرة الطبية — Stylesheet
   ========================================================= */

:root {
  --color-primary: #0e7c6b;
  --color-primary-dark: #0a5c4f;
  --color-primary-light: #14a08a;
  --color-accent: #d4af37;
  --color-dark: #0b2b28;
  --color-text: #24343a;
  --color-muted: #64777c;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f9f8;
  --shadow-soft: 0 10px 30px rgba(11, 43, 40, 0.1);
  --shadow-hover: 0 16px 40px rgba(11, 43, 40, 0.18);
  --radius: 16px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(212, 175, 55, 0.45);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(11, 43, 40, 0.92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}

.brand-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: #fff;
  font-weight: 600;
  position: relative;
  padding: 6px 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-call-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-mobile-title {
  display: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(10, 61, 53, 0.75), rgba(11, 43, 40, 0.9)),
    url("../assets/images/hero-bg.jpg") center/cover no-repeat,
    linear-gradient(160deg, #0a5c4f, #0b2b28 70%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  height: 128px;
  width: 128px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 22px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  animation: fadeInDown 0.9s ease both;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 12px;
  animation: fadeInUp 0.9s ease both 0.1s;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 0.9s ease both 0.2s;
}

.hero-desc {
  max-width: 640px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  animation: fadeInUp 0.9s ease both 0.3s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  animation: fadeInUp 0.9s ease both 0.4s;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.4rem;
  opacity: 0.8;
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.follow-section {
  background: var(--color-bg-alt);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 8px;
}

.section-eyebrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* ===== Follow / Social ===== */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.social-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  color: var(--color-dark);
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
}

.social-card i {
  font-size: 1.9rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  transition: background var(--transition), color var(--transition);
}

.social-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.social-card.facebook:hover i { background: #1877f2; color: #fff; }
.social-card.whatsapp:hover i { background: #25d366; color: #fff; }
.social-card.tiktok:hover i { background: #000; color: #fff; }

/* ===== Location ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: stretch;
}

.location-info {
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  box-shadow: var(--shadow-soft);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-item i {
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-top: 4px;
}

.info-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-item p {
  color: rgba(255, 255, 255, 0.8);
}

.info-item p a:hover {
  color: var(--color-accent);
}

.info-item p.plus-code {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.5px;
}

.location-info .btn {
  margin-top: 10px;
  align-self: flex-start;
}

.location-map {
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* ===== Floating Call Button ===== */
.floating-call {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 44px 0 28px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.footer-brand img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-dark);
  transform: translateY(-3px);
}

.footer-copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  .location-map {
    min-height: 280px;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 110px 0 60px;
  }

  .scroll-indicator {
    display: none;
  }

  .nav-mobile-title {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    top: 34px;
    right: 40px;
    left: 40px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-accent);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: rgba(11, 43, 40, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-call-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 70px 0;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .floating-call {
    width: 52px;
    height: 52px;
    bottom: 18px;
    left: 18px;
  }
}
