/* ============================================================
   Ardh Al-Ahlam Pharmacy — style.css
   Palette: off-white bg | #111 dark | #C8102E red | #1A6B3A green
   Bilingual: Arabic RTL (primary) / English LTR (secondary)
   ============================================================ */

:root {
  --bg:        #F5F2EC;
  --bg-alt:    #EDEAE2;
  --dark:      #111111;
  --red:       #C8102E;
  --red-deep:  #9B0B21;
  --green:     #1A6B3A;
  --green-lt:  #22883F;
  --off-white: #F5F2EC;
  --text:      #1A1A1A;
  --text-muted:#555550;
  --border:    rgba(0,0,0,0.10);

  --font-ar:   'Cairo', 'Tajawal', sans-serif;
  --font-en:   'Montserrat', 'Cormorant Garamond', sans-serif;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Language system ── */
body.lang-ar { direction: rtl; font-family: var(--font-ar); }
body.lang-en { direction: ltr; font-family: var(--font-en); }

body.lang-ar .ar { display: inline; }
body.lang-ar .en { display: none; }
body.lang-en .ar { display: none; }
body.lang-en .en { display: inline; }

/* ── Lang bar ── */
.lang-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #222222;
  border-bottom: 1px solid rgba(200,16,46,0.4);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 24px;
  height: 44px;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-family: var(--font-ar);
  padding: 3px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.lang-btn:hover,
.lang-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.lang-divider {
  color: rgba(255,255,255,0.2);
  font-size: 14px;
}

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--dark);
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 44px;
  /* overflow removed — was clipping logo */
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(200,16,46,0.04) 0px,
      rgba(200,16,46,0.04) 1px,
      transparent 1px,
      transparent 60px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(26,107,58,0.04) 0px,
      rgba(26,107,58,0.04) 1px,
      transparent 1px,
      transparent 60px
    );
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,16,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26,107,58,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 32px 80px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.logo-wrap {
  flex-shrink: 0;
}

.logo-img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 24px rgba(200,16,46,0.35));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(200,16,46,0.30)); }
  50%       { filter: drop-shadow(0 0 32px rgba(200,16,46,0.55)); }
}

.hero-text {
  flex: 1;
  min-width: 260px;
}

.pharmacy-name {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

body.lang-ar .pharmacy-name { font-family: var(--font-ar); }
body.lang-en .pharmacy-name { font-family: var(--font-en); letter-spacing: -0.02em; }

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  font-weight: 400;
}

.cta-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 14px 40px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(200,16,46,0.35);
}
.cta-btn:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,16,46,0.45);
}

.hero-accent-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0%, var(--red) 50%, var(--green) 100%);
}

/* ── Shared section styles ── */
.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 8px;
}

/* ── Hours Section ── */
.hours-section {
  padding: 80px 0;
  background: var(--bg);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.hours-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hours-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.hours-card.open { border-top-color: var(--green); }
.hours-card.closed { border-top-color: var(--red); opacity: 0.75; }

.hours-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.hours-days {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.hours-time {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Montserrat', monospace;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hours-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}
.open-badge  { background: rgba(26,107,58,0.1);  color: var(--green); }
.closed-badge{ background: rgba(200,16,46,0.1);  color: var(--red);   }

/* ── Services Strip ── */
.services-strip {
  background: var(--dark);
  padding: 36px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.service-item {
  flex: 1 1 180px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.service-item:last-child { border-right: none; }
.service-item:hover { color: #fff; }

.service-icon {
  font-size: 1.8rem;
  color: var(--red);
  line-height: 1;
}

/* ── Contact / Map Section ── */
.contact-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 28px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.detail-icon { font-size: 1.3rem; line-height: 1.6; flex-shrink: 0; }

.contact-detail p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.directions-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.22s;
  box-shadow: 0 4px 16px rgba(26,107,58,0.3);
}
.directions-btn:hover {
  background: var(--green-lt);
  transform: translateY(-2px);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 340px;
}

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 40px 24px 32px;
  border-top: 4px solid var(--red);
}

.footer-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 8px rgba(200,16,46,0.25));
}

.footer-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    flex-direction: column;
    padding: 48px 20px 64px;
    gap: 28px;
  }
  .logo-img { width: 150px; height: 150px; }
  .services-strip { flex-direction: column; align-items: center; }
  .service-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; max-width: 100%; }
  .service-item:last-child { border-bottom: none; }
  .hours-grid { grid-template-columns: 1fr; }
}

/* ── Nav link (products page link in lang bar) ── */
.nav-home-btn {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border: 1px solid rgba(255,255,255,0.40);
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
  background: rgba(255,255,255,0.08);
}
.nav-home-btn:hover {
  color: #fff !important;
  background: var(--red);
  border-color: var(--red);
}

/* ── Global logo size guard — prevents any logo from ever overflowing ── */
.header-logo    { max-width: 70px  !important; max-height: 70px  !important; object-fit: contain; display: block; }
.footer-logo-img{ max-width: 80px  !important; max-height: 80px  !important; object-fit: contain; }
.logo-img       { max-width: 210px !important; object-fit: contain; }
