/* =====================================================
   HeelzFlow — global.css  (Linear/Vercel aesthetic)
   CSS custom properties + base + utilities
   ===================================================== */

:root {
  /* Core */
  --color-bg:           #09090B;
  --color-bg-elevated:  #0C0C0F;
  --color-card:         rgba(255,255,255,0.03);
  --color-card-hover:   rgba(255,255,255,0.05);
  --color-border:       rgba(255,255,255,0.06);
  --color-border-hover: rgba(255,255,255,0.12);

  /* Text */
  --color-text:           #FFFFFF;
  --color-text-secondary: #9CA3AF;
  --color-text-muted:     #6B7280;

  /* Brand gradient — orange → purple */
  --grad-brand:   linear-gradient(135deg, #ff914d 0%, #8c52ff 100%);
  --grad-brand-r: linear-gradient(135deg, #8c52ff 0%, #ff914d 100%);
  --color-orange: #ff914d;
  --color-pink:   #c97aff;
  --color-purple: #8c52ff;

  /* Spacing */
  --section-padding:  clamp(4rem, 8vw, 8rem) 0;
  --container-max:    1200px;
  --container-pad:    clamp(1rem, 4vw, 2rem);

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-full: 9999px;

  /* Typography */
  --font-base: 'Cairo', 'Inter', sans-serif;
  --line-height-base: 1.75;

  /* Transitions */
  --transition: 0.25s ease;

  /* Header */
  --header-height: 64px;
}

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

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

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.lang-en { direction: ltr; font-family: 'Inter', sans-serif; }
body.lang-en .site-logo .logo-flow { font-family: 'Inter', sans-serif; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-orange); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 800; }

/* ── Container ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--narrow { max-width: 720px; }

/* ── Section ───────────────────────────────────────── */
.section { padding: var(--section-padding); }
.section--elevated { background: var(--color-bg-elevated); }

/* ── Section header ────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text);
}
.section-desc {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.75;
}

/* ── Gradient text ─────────────────────────────────── */
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-base);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(249,115,22,0);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(219,39,119,0.35);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: var(--color-border-hover);
}
.btn-outline:hover {
  color: var(--color-text);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--color-text); }
.btn-white {
  background: #fff;
  color: #09090B;
  border-color: transparent;
}
.btn-white:hover { background: #F3F4F6; color: #09090B; }
.btn-white-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-white-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.825rem; }

/* ── Card ──────────────────────────────────────────── */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.card:hover {
  background: var(--color-card-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
}

/* ── Divider ───────────────────────────────────────── */
.divider { height: 1px; background: var(--color-border); }

/* ── WhatsApp float ────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.whatsapp-float svg { width: 26px; height: 26px; fill: #fff; }

/* ── Scroll top ────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-start: 1.5rem;
  z-index: 900;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  cursor: pointer;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--color-orange); border-color: transparent; color: #fff; }

/* ── Text utilities ────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }

/* ── Page hero (inner pages) ───────────────────────── */
.page-hero {
  padding: calc(var(--header-height) + 4rem) 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.page-hero__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.page-hero__sub   { color: var(--color-text-secondary); max-width: 500px; margin-inline: auto; }

/* ── WP post content ───────────────────────────────── */
.entry-content p    { margin-bottom: 1.25rem; color: var(--color-text-secondary); }
.entry-content h2, .entry-content h3 { margin-block: 1.75rem 0.75rem; }
.entry-content ul, .entry-content ol { margin-block: 1rem; padding-inline-start: 1.5rem; color: var(--color-text-secondary); }
.entry-content ul li { list-style: disc; margin-bottom: 0.35rem; }
.entry-content ol li { list-style: decimal; margin-bottom: 0.35rem; }
.entry-content a    { color: var(--color-orange); text-decoration: underline; }
.entry-content blockquote {
  border-inline-start: 3px solid var(--color-orange);
  padding: 1rem 1.5rem;
  margin-block: 1.5rem;
  background: rgba(249,115,22,0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text-secondary);
}

/* ── Accessibility ─────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 3px; }
