/* ==========================================================================
   Wazen (وازن) — Official Website Stylesheet
   Pure CSS, zero dependencies. Responsive breakpoint: max-width: 720px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Reset & Base Variables
   -------------------------------------------------------------------------- */
:root {
  --wz-text: #0A0A0A;
  --wz-text-muted: #4B5563;
  --wz-text-light: #9CA3AF;
  --wz-bg: #FFFFFF;
  --wz-bg-alt: #F7F8FA;
  --wz-bg-dark: #0B0F14;
  --wz-primary: #10B981;
  --wz-primary-dark: #059669;
  --wz-primary-light: #ECFDF5;
  --wz-border: #E5E7EB;
  --wz-border-alt: #E6EAF0;
  --wz-font-ar: 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wz-font-latin: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--wz-bg);
  color: var(--wz-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="ar"], body[lang="ar"], [dir="rtl"] {
  font-family: var(--wz-font-ar);
}

html[lang="en"], body[lang="en"], html[lang="fr"], body[lang="fr"], [dir="ltr"] {
  font-family: var(--wz-font-latin);
}

.wz-ar-font {
  font-family: var(--wz-font-ar) !important;
}

a {
  color: #047857;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #065F46;
}

img, svg {
  display: inline-block;
  vertical-align: middle;
}

button, input, textarea, select {
  font: inherit;
}

/* --------------------------------------------------------------------------
   Layout & Container
   -------------------------------------------------------------------------- */
.wz-container {
  max-width: 1240px;
  margin: 0 auto;
}

.wz-container-narrow {
  max-width: 1100px;
  margin: 0 auto;
}

.wz-container-article {
  max-width: 820px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Navigation & Header
   -------------------------------------------------------------------------- */
.wz-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.wz-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.wz-logo img,
.wz-logo-img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.wz-logo-img.wz-logo-sm {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
}

.wz-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #0A0A0A;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wz-font-ar);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}

.wz-logo-badge.wz-badge-alt {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #10B981;
  color: #052E1F;
  font-size: 24px;
}

.wz-logo-text {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.wz-navlinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  font-size: 16px;
  font-weight: 700;
}

.wz-navlinks a {
  color: #374151;
  text-decoration: none;
  transition: color 0.15s ease;
}

.wz-navlinks a:hover,
.wz-navlinks a.wz-active {
  color: #10B981;
}

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

/* Language Selector Dropdown */
.wz-lang-selector {
  position: relative;
  display: inline-block;
}

.wz-lang-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 22px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  color: #374151;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wz-lang-btn:hover {
  border-color: #D1D5DB;
  background: #F9FAFB;
  color: #111827;
}

.wz-dark-header .wz-lang-btn {
  background: #161C24;
  border-color: #263040;
  color: #E5E7EB;
}

.wz-dark-header .wz-lang-btn:hover {
  background: #263040;
  color: #FFFFFF;
}

.wz-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 6px;
  min-width: 140px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
}

.wz-lang-selector:hover .wz-lang-menu,
.wz-lang-selector:focus-within .wz-lang-menu,
.wz-lang-menu.wz-open {
  display: flex;
}

.wz-lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  transition: background 0.12s ease;
}

.wz-lang-item:hover {
  background: #F3F4F6;
  color: #0A0A0A;
}

.wz-lang-item.wz-active {
  background: #ECFDF5;
  color: #059669;
  font-weight: 800;
}

.wz-nav-cta {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 23px;
  background: #0A0A0A;
  color: #FFFFFF !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  transition: opacity 0.15s ease;
}

.wz-nav-cta:hover {
  opacity: 0.88;
}

/* Mobile Hamburger Menu */
.wz-mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111827;
  padding: 0;
}

.wz-dark-header .wz-mobile-menu-btn {
  border-color: #263040;
  color: #F3F4F6;
}

.wz-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
}

.wz-mobile-drawer-content {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: #FFFFFF;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  overflow-y: auto;
}

[dir="rtl"] .wz-mobile-drawer-content {
  box-shadow: 10px 0 30px rgba(0,0,0,0.15);
}

.wz-mobile-drawer.wz-open {
  display: block;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.wz-hero-section {
  padding: 3rem 1.5rem 0;
  background: radial-gradient(1200px 600px at 50% 105%, #D1FAE5 0%, rgba(209,250,229,0) 70%);
}

.wz-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.wz-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 24px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  text-decoration: none;
  color: #0A0A0A;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.15s ease;
}

.wz-hero-badge:hover {
  border-color: #10B981;
}

.wz-hero-badge-tag {
  padding: 5px 12px;
  border-radius: 18px;
  background: #10B981;
  color: #052E1F;
  font-weight: 900;
}

.wz-h1 {
  margin: 0;
  font-size: 84px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -1px;
  max-width: 980px;
}

html[lang="en"] .wz-h1, html[lang="fr"] .wz-h1 {
  letter-spacing: -2.5px;
  line-height: 1.05;
}

.wz-h2 {
  margin: 0;
  font-size: 52px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.wz-hero-subtitle {
  margin: 0;
  font-size: 21px;
  line-height: 1.75;
  color: #4B5563;
  max-width: 640px;
}

/* App Store & Google Play CTA Buttons */
.wz-download-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 6px;
}

.wz-btn-store {
  min-height: 62px;
  padding: 0 26px;
  border-radius: 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.wz-btn-store:hover {
  transform: translateY(-2px);
}

.wz-btn-appstore {
  background: #0A0A0A;
  color: #FFFFFF !important;
}

.wz-btn-playstore {
  background: #FFFFFF;
  border: 1.5px solid #0A0A0A;
  color: #0A0A0A !important;
}

.wz-rating-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #374151;
}

.wz-rating-stars {
  color: #F59E0B;
  font-size: 18px;
  letter-spacing: 2px;
}

/* Phone Fan Mockup */
.wz-fan {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 700px;
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.wz-side {
  position: absolute;
  top: 90px;
  width: 270px;
  height: 560px;
  border-radius: 46px;
  border: 9px solid #111827;
  box-sizing: border-box;
  box-shadow: 0 30px 60px rgba(10,10,10,0.18);
  transition: transform 0.3s ease;
}

.wz-side-left {
  left: 40px;
  transform: rotate(-7deg);
}

.wz-side-right {
  right: 40px;
  transform: rotate(7deg);
}

.wz-phone-center {
  position: relative;
  z-index: 2;
  width: 310px;
  height: 640px;
  border-radius: 52px;
  background: #FFFFFF;
  border: 10px solid #0A0A0A;
  box-sizing: border-box;
  padding: 30px 18px;
  box-shadow: 0 40px 80px rgba(10,10,10,0.22);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wz-float {
  position: absolute;
  z-index: 3;
  padding: 12px 16px;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 16px 40px rgba(10,10,10,0.14);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Sections & Bento
   -------------------------------------------------------------------------- */
.wz-section {
  padding: 7rem 1.5rem 5rem;
}

.wz-section-padded {
  padding: 2rem 1.5rem 6rem;
}

.wz-feature-card {
  border-radius: 40px;
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.wz-card-blue {
  background: #EEF6FF;
}

.wz-card-amber {
  background: #FFF7E6;
}

.wz-card-mint {
  background: #ECFDF5;
}

.wz-card-dark {
  background: #0A0A0A;
  color: #FFFFFF;
}

.wz-card-indigo {
  background: #1E1B4B;
  color: #F5F3FF;
}

/* FAQ Details */
details {
  background: #F7F8FA;
  border-radius: 22px;
  padding: 22px 26px;
  transition: background 0.15s ease;
}

details[open] {
  background: #F3F4F6;
}

details summary {
  font-size: 19px;
  font-weight: 800;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 700;
  color: #9CA3AF;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "−";
  color: #10B981;
}

/* --------------------------------------------------------------------------
   Support Form & Aside
   -------------------------------------------------------------------------- */
.wz-support-header {
  background: #0B0F14;
  color: #F3F4F6;
  padding: 0 1.5rem 4rem;
}

.wz-support-header-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.wz-support-grid {
  max-width: 1100px;
  margin: -2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.wz-form-card {
  flex: 999 1 560px;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid #E6EAF0;
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

.wz-aside-card {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wz-aside-box {
  background: #FFFFFF;
  border: 1px solid #E6EAF0;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wz-radio-pill {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.wz-radio-pill:has(input:checked) {
  border: 1.5px solid #10B981 !important;
  background: #ECFDF5 !important;
  color: #047857 !important;
  font-weight: 800 !important;
}

.wz-input {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #D1D5DB;
  padding: 0 16px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  box-sizing: border-box;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wz-input:focus {
  outline: none;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.wz-textarea {
  border-radius: 14px;
  border: 1px solid #D1D5DB;
  padding: 14px 16px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
  box-sizing: border-box;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wz-textarea:focus {
  outline: none;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.wz-submit-btn {
  min-height: 56px;
  border: 0;
  border-radius: 28px;
  background: #059669;
  color: #FFFFFF;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.wz-submit-btn:hover:not(:disabled) {
  background: #047857;
}

.wz-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Feedback Alert Banners */
.wz-alert {
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
  display: none;
}

.wz-alert.wz-visible {
  display: block;
}

.wz-alert-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
}

.wz-alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.wz-footer {
  border-top: 1px solid #E5E7EB;
  padding: 3rem 1.5rem 2.5rem;
}

.wz-footer-dark {
  background: #0B0F14;
  color: #9CA3AF;
  border-top: none;
  padding: 2.5rem 1.5rem;
}

/* --------------------------------------------------------------------------
   Responsive Rules (@media max-width: 720px)
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .wz-navlinks {
    display: none !important;
  }

  .wz-mobile-menu-btn {
    display: flex !important;
  }

  .wz-h1 {
    font-size: 40px !important;
    line-height: 1.15 !important;
  }

  .wz-h2 {
    font-size: 32px !important;
    line-height: 1.25 !important;
  }

  .wz-hero-subtitle {
    font-size: 18px !important;
  }

  .wz-side {
    display: none !important;
  }

  .wz-fan {
    height: 690px !important;
  }

  .wz-float {
    display: none !important;
  }

  .wz-feature-card {
    padding: 36px 24px !important;
    gap: 32px !important;
  }

  .wz-support-grid {
    margin-top: 1rem !important;
  }

  .wz-form-card {
    padding: 24px 18px !important;
  }
}
