/* ============================================
   نبضك — design tokens & base
   ============================================ */
:root {
  --color-brand: #39a29d;
  --color-bg: #f3faf9;
  --color-bg-alt: #e8f5f4;
  --color-surface: #ffffff;
  --color-text: #1a2e2d;
  --color-text-muted: #000000;
  --color-border: #c5e4e1;
  --color-primary: #39a29d;
  --color-primary-dark: #000000;
  --color-accent: #4db8b2;
  --color-accent-soft: rgba(57, 162, 157, 0.16);
  --color-primary-soft: rgba(57, 162, 157, 0.12);
  --shadow-sm: 0 1px 2px rgba(20, 55, 52, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 55, 52, 0.09);
  --shadow-lg: 0 20px 50px rgba(20, 55, 52, 0.11);
  --shadow-xl: 0 28px 64px rgba(20, 55, 52, 0.13);
  --shadow-hero-card: 0 4px 6px rgba(20, 55, 52, 0.04), 0 24px 48px rgba(30, 100, 95, 0.12);
  --shadow-hero-img: 0 12px 40px rgba(30, 100, 95, 0.2), 0 2px 0 rgba(255, 255, 255, 0.06) inset;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --container: min(1120px, 100% - 2rem);
  --font-ar: "Cairo", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
  --transition: 0.22s ease;
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:has(#nav-open:checked) {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, 100% - 2rem);
  margin-inline: auto;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(25, 95, 90, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 1rem 2.25rem;
  padding-block: 0.65rem;
  min-height: 4.5rem;
  direction: rtl;
}

@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
    gap: 1rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  line-height: 0;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.95;
}

.logo-img {
  display: block;
  height: 58px;
  width: auto;
  max-width: min(320px, 58vw);
  object-fit: contain;
  object-position: center;
}

.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform var(--transition), top var(--transition);
}

.nav-toggle::before {
  top: 15px;
  box-shadow: 0 7px 0 #ffffff;
}

.nav-toggle::after {
  top: 29px;
}

#nav-open:checked ~ .nav-toggle::before {
  top: 21px;
  transform: rotate(45deg);
  box-shadow: none;
}

#nav-open:checked ~ .nav-toggle::after {
  top: 21px;
  transform: rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media (min-width: 769px) {
  .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-list a:hover {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

@media (min-width: 769px) {
  .site-header .nav-list a {
    color: rgba(255, 255, 255, 0.94);
  }

  .site-header .nav-list a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.65);
  }

  .site-header .nav-cta.btn--primary {
    background: #ffffff;
    color: var(--color-brand);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }

  .site-header .nav-cta.btn--primary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
}

.nav-cta {
  flex-shrink: 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(57, 162, 157, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(57, 162, 157, 0.45);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.btn--on-dark {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.btn--on-dark:hover {
  color: var(--color-primary-dark);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2.75rem, 7vw, 4.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 90% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(77, 184, 178, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(45, 130, 120, 0.14) 0%, transparent 60%),
    linear-gradient(168deg, #39a29d 0%, #2f8f86 38%, #2a756f 72%, #4db8b2 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 45, 42, 0.08) 100%);
  pointer-events: none;
}

.hero-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.hero-slide {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, #f3faf9 100%);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.35rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-hero-card);
  border: 1px solid rgba(255, 255, 255, 0.95);
  max-width: min(100%, 680px);
  margin-inline: auto;
  width: 100%;
  isolation: isolate;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(120px, 28%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-brand), var(--color-accent));
  opacity: 0.95;
}

.hero-content {
  max-width: none;
  position: relative;
  z-index: 1;
  padding-top: 0.35rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-slide .hero-title {
  font-size: clamp(1.6rem, 3.8vw, 2.35rem);
  margin: 0 0 1rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.28;
  max-width: 42ch;
  margin-inline: auto;
  text-align: center;
  font-weight: 800;
}

.hero-slide .hero-lead {
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.82;
  max-width: 52ch;
  margin-inline: auto;
  text-align: center;
}

.hero-slide .hero-lead strong {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.hero-slide .hero-note {
  font-size: 0.875rem;
  color: var(--color-primary-dark);
  margin: 0 auto 1.5rem;
  line-height: 1.55;
  max-width: 48ch;
  text-align: center;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, rgba(77, 184, 178, 0.1) 100%);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(57, 162, 157, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0;
  justify-content: center;
  align-items: center;
}

.hero-slide .hero-btn-secondary.btn--ghost {
  color: var(--color-primary-dark);
  border-color: var(--color-border);
  background: var(--color-surface);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform 0.2s var(--ease-smooth);
}

.hero-slide .hero-btn-secondary.btn--ghost:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.hero-slide .btn--primary {
  transition: box-shadow var(--transition), transform 0.2s var(--ease-smooth);
}

.hero-slide .btn--primary:hover {
  transform: translateY(-1px);
}

/* Hero visual — صورة كبيرة، والنص في السلايد تحتها */
.hero-visual {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hero-img);
  line-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(15, 40, 38, 0.06) 0%, transparent 35%, transparent 65%, rgba(30, 100, 95, 0.12) 100%);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  min-height: min(48vh, 520px);
  max-height: min(68vh, 680px);
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform 8s var(--ease-smooth);
}

.hero-visual:hover .hero-image {
  transform: scale(1.02);
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.25rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  position: relative;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.65rem auto 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-brand));
  border-radius: 999px;
  opacity: 0.85;
}

.section-sub {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform 0.25s var(--ease-smooth);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(57, 162, 157, 0.22);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

/* Vision */
.vision-tagline {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
}

.vision-intro {
  max-width: 48rem;
  margin: 0 auto 2.75rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vision-card h3 {
  margin: 0 0 0.65rem;
  color: var(--color-primary-dark);
  font-size: 1.1rem;
}

.vision-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Care levels */
.care-levels-intro {
  max-width: 48rem;
  margin: 0 auto 2.75rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.care-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.care-level {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  row-gap: 0.45rem;
  align-items: start;
}

.care-level-num {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(57, 162, 157, 0.35);
}

.care-level h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 1.08rem;
  line-height: 1.45;
}

.care-level p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.feature-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* Device integration — صورة يمين، نص يسار (RTL) */
.devices-section {
  overflow: hidden;
}

.devices-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  direction: rtl;
}

.devices-visual {
  justify-self: center;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 520 / 548;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  line-height: 0;
}

/* قص من الأسفل لإخفاء علامة جيميناي/النجمة تحت الصورة */
.devices-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.devices-content {
  text-align: start;
  min-width: 0;
}

.devices-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.25;
}

.devices-tagline {
  margin: 0 0 1.1rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.5;
}

.devices-lead {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--color-text-muted);
}

.devices-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.devices-badges li {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .devices-grid {
    grid-template-columns: 1fr;
  }

  .devices-visual {
    order: -1;
    max-width: min(100%, 300px);
  }

  .devices-content {
    text-align: center;
  }

  .devices-badges {
    justify-content: center;
  }
}

/* Steps */
.steps-intro {
  max-width: 46rem;
  margin: 0 auto 2.75rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  row-gap: 0.45rem;
  align-items: start;
}

.step-num {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(57, 162, 157, 0.35);
}

.step > h3,
.step-title-row {
  grid-column: 2;
  grid-row: 1;
}

.step-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  min-width: 0;
}

.step > h3,
.step-title-row h3 {
  margin: 0;
  color: var(--color-primary-dark);
  line-height: 1.45;
}

.btn.step-register-cta {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
}

.step p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial {
  margin: 0;
}

.testimonial p {
  color: var(--color-text-muted);
  font-style: normal;
  margin-bottom: 1rem;
}

.testimonial footer {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.25rem;
  padding-inline-end: 2.75rem;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  position: absolute;
  inset-inline-end: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-accent);
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* B2B — للعيادات والأعمال */
.b2b-tagline {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
}

.b2b-intro {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.b2b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.b2b-card h3 {
  margin: 0 0 0.65rem;
  color: var(--color-primary-dark);
  font-size: 1.08rem;
  line-height: 1.45;
}

.b2b-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.b2b-cta {
  text-align: center;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.why-card h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary-dark);
}

.why-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Contact form */
.contact-form {
  max-width: 520px;
  margin-inline: auto;
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--color-brand) 0%, #2d8278 42%, #5cc9c0 100%);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-text h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
}

.cta-text p {
  margin: 0;
  opacity: 0.95;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  align-items: flex-start;
}

.cta-store {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-width: min(100%, 11rem);
}

.cta-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.cta-qr {
  display: block;
  width: 120px;
  height: auto;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.35rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.cta-qr-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.cta-actions .btn:hover {
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--color-brand);
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.5rem 2rem;
  direction: rtl;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  flex: 1 1 16rem;
  min-width: min(100%, 20rem);
}

@media (min-width: 769px) {
  .footer-brand {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.25rem 1.5rem;
    max-width: 32rem;
  }
}

.footer-text {
  text-align: center;
}

@media (min-width: 769px) {
  .footer-text {
    text-align: start;
  }
}

.footer-title {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.footer-lead {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.footer-privacy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.footer-logo {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.footer-logo:hover {
  opacity: 0.92;
}

.logo-img--footer {
  height: 70px;
  max-width: min(340px, 75vw);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  gap: 1rem 1.5rem;
  flex: 1 1 12rem;
  min-width: min(100%, 14rem);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  flex-basis: 100%;
  width: 100%;
  text-align: center;
  font-size: 0.88rem;
  padding-top: 1rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 769px) {
  .footer-inner {
    align-items: flex-start;
  }
}

/* ============================================
   Tablet
   ============================================ */
@media (max-width: 1024px) {
  .hero-slide {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .care-levels-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }

  .b2b-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    top: 4rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 2rem;
    gap: 1rem;
    border-top: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    direction: rtl;
    text-align: start;
  }

  #nav-open:checked ~ .main-nav {
    transform: translateX(0);
  }

  .main-nav .nav-list a {
    color: var(--color-text);
  }

  .main-nav .nav-list a:hover {
    color: var(--color-brand);
    border-bottom-color: var(--color-accent-soft);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-cta {
    margin-top: 0.5rem;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-slide {
    padding: 1.15rem 1.1rem;
  }

  .hero-image {
    min-height: 36vh;
    max-height: 48vh;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn--primary {
    order: -1;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .b2b-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .main-nav {
    transition: none;
  }

  .hero-visual:hover .hero-image {
    transform: none;
  }
}
