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

:root {
  --color-primary: #1c7ed6;
  --color-primary-dark: #155faf;
  --color-accent: #0fbf61;
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-muted: #4b5563;
  --color-border: #e5e7eb;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius-lg: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --header-offset: 120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 249, 255, 0.88)),
    url('../assets/bbg.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-text);
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(28, 126, 214, 0.08), transparent 26%),
    radial-gradient(circle at 86% 6%, rgba(15, 191, 97, 0.08), transparent 28%);
  z-index: -1;
}

body.lang-en {
  direction: ltr;
  text-align: left;
  font-family: 'Inter', 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.lang-ar {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: linear-gradient(135deg, #e6f0ff, #f8fbff);
}

button,
.cta,
.button {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

button:focus-visible,
.cta:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.cta-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.cta-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.cta-secondary {
  background: #e8f3ff;
  color: var(--color-primary);
}

.cta-secondary:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.cta-icon {
  padding: 12px;
  border-radius: 14px;
  min-width: 44px;
  justify-content: center;
}

.whatsapp-icon {
  background: #25d366;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.whatsapp-icon:hover {
  background: #1ebe5d;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 18px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  padding: 12px 16px;
}

.site-header.elevated {
  box-shadow: var(--shadow-soft);
  border-bottom-color: transparent;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  line-height: 0;
}

.logo-image img {
  height: clamp(56px, 6vw, 72px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: start;
  align-items: flex-start;
  line-height: 1.2;
}

.brand-since {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-muted);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
}

nav.main-nav a {
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}

nav.main-nav a:hover {
  background: #eef5ff;
}

@media (min-width: 961px) {
  nav.main-nav .language-switch {
    border: 2px solid var(--color-primary);
    background: rgba(28, 126, 214, 0.1);
    color: var(--color-primary-dark);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(28, 126, 214, 0.18);
  }

  nav.main-nav .language-switch:hover,
  nav.main-nav .language-switch:focus-visible {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(28, 126, 214, 0.24);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}

.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  padding: 78px 0 42px;
  overflow: hidden;
  scroll-margin-top: var(--header-offset);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 12px;
  background: radial-gradient(circle at 20% 20%, rgba(12, 110, 218, 0.08), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(15, 191, 97, 0.08), transparent 40%),
    linear-gradient(135deg, rgba(28, 126, 214, 0.08), rgba(12, 114, 185, 0.06));
  border-radius: 28px;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 26px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 12px;
  color: #0f172a;
}

.hero-subtitle {
  color: var(--color-muted);
  margin: 0 0 10px;
  font-weight: 600;
}

.hero-hashtag {
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.social-inline {
  display: flex;
  gap: 10px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 191, 97, 0.12);
  color: #0f9e57;
  font-weight: 800;
  margin-top: 6px;
}

.section {
  padding: 46px 0;
  scroll-margin-top: var(--header-offset);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: 1.6rem;
  color: #0f172a;
}

.section-subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(28, 126, 214, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, #eef5ff, #f8fbff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
}

.card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  background: #eef5ff;
  color: var(--color-primary-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.badge {
  align-self: flex-start;
}

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

.highlight {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #eef5ff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: #0f172a;
  font-weight: 700;
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 191, 97, 0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 38px 0 24px;
  margin-top: 38px;
}

.footer .logo-text {
  color: #fff;
}

.footer .logo-image img {
  height: clamp(58px, 7vw, 78px);
}

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

.footer a {
  color: #cbd5e1;
}

.footer small {
  color: #94a3b8;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}

.footer-list .contact-item {
  white-space: nowrap;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.icon-btn,
.social-only {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  border: 1px solid rgba(28, 126, 214, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn:hover,
.social-only:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  object-fit: contain;
}

.floating-bar {
  position: fixed;
  right: 16px;
  bottom: 120px;
  display: grid;
  gap: 8px;
  z-index: 1000;
}

body.lang-ar .floating-bar {
  right: auto;
  left: 16px;
}

.floating-bar a,
.floating-bar .social-only {
  width: 48px;
  height: 48px;
}

.badge-founder {
  background: rgba(15, 191, 97, 0.14);
  color: #0f9e57;
  font-weight: 800;
}

.payment-row,
.hours-row,
.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-image {
  width: 100%;
  min-height: 260px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: saturate(1.02);
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(15, 191, 97, 0.15), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(28, 126, 214, 0.18), transparent 38%),
    radial-gradient(circle at 60% 70%, rgba(12, 114, 185, 0.12), transparent 40%);
  z-index: 1;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.14) 15%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  background: none;
  border-radius: 0;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  border: none;
  z-index: 3;
  text-align: start;
}

.social-only.whatsapp,
.icon-btn.whatsapp {
  background: #25d366;
  color: #ffffff;
  border-color: #1ebe5d;
}

@media (max-width: 960px) {
  .header-actions {
    gap: 8px;
  }

  .header-actions .cta {
    display: none;
  }

  nav.main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    padding: 14px;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-panel .nav-link {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    font-weight: 700;
  }

  .mobile-panel .quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-panel .cta {
    width: 100%;
    justify-content: center;
  }

  .mobile-panel.open {
    display: flex;
  }

  .floating-bar {
    bottom: 80px;
  }
}

@media (max-width: 640px) {
  .header-content {
    flex-wrap: wrap;
  }

  .hero {
    padding: 64px 0 34px;
  }

  .hero-badge {
    gap: 4px;
  }

  .floating-bar {
    gap: 8px;
    bottom: 18px;
    right: 12px;
  }

  .logo-image img {
    height: clamp(46px, 10vw, 56px);
  }

  .floating-bar a {
    width: 42px;
    height: 42px;
  }

  .floating-bar .icon {
    width: 22px;
    height: 22px;
  }
}
