/* ============================================================
   INTELLIGENT MARKET — style.css
   Warm Modern Theme | Multilingual | RTL Ready | Responsive
   Palette inspired by: hot pink, terracotta, warm cream, dark warm bg
   ============================================================ */

/* ── Custom Properties ───────────────────────────────────── */
:root {
  --bg:              #F5EDE0;
  --bg-card:         #FFFFFF;
  --bg-card-hover:   #FDF6EF;
  --pink:            #E8447A;
  --pink-light:      #FF6B98;
  --pink-dark:       #C42F60;
  --terra:           #C4623A;
  --terra-light:     #E07A52;
  --cream:           #F5EDE0;
  --text:            #1C0E08;
  --text-muted:      #7A5A48;
  --text-subtle:     #C4A898;
  --border:          rgba(196, 98, 58, 0.15);
  --border-hover:    rgba(232, 68, 122, 0.4);
  --navbar-h:        72px;
  --radius:          12px;
  --radius-lg:       20px;
  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans:       'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:      'Playfair Display', Georgia, serif;
  --font-hebrew:     'Heebo', 'Inter', system-ui, sans-serif;
  --shadow-card:     0 4px 24px rgba(100, 40, 20, 0.08);
  --shadow-pink:     0 0 30px rgba(232, 68, 122, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[lang="he"] body,
body[lang="he"] {
  font-family: var(--font-hebrew);
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Utilities ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible        { opacity: 1; transform: translateY(0); }
.reveal--delay-1          { transition-delay: 0.12s; }
.reveal--delay-2          { transition-delay: 0.24s; }
.reveal--delay-3          { transition-delay: 0.36s; }
.reveal--delay-4          { transition-delay: 0.48s; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition),
              backdrop-filter var(--transition),
              border-color var(--transition);
}

.navbar.scrolled {
  background: rgba(245, 237, 224, 0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  /* Always LTR — brand name must never flip in RTL layouts */
  direction: ltr;
  unicode-bidi: isolate;
}

.logo-mark {
  width: 34px;
  height: 40px;
  flex-shrink: 0;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-accent {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink) 50%, var(--pink-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Desktop menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 1px;
  background: var(--pink);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.lang-btn:hover { color: var(--pink); }

.lang-btn.active {
  color: var(--pink);
  background: rgba(232, 68, 122, 0.12);
}

.lang-sep {
  color: var(--text-subtle);
  font-size: 0.75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: rgba(245, 237, 224, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 24px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.mobile-nav-link:hover {
  background: rgba(196, 98, 58, 0.08);
  color: var(--text);
}

.mobile-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
  padding: 14px 24px;
  font-size: 0.95rem;
}

.mobile-lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  overflow: hidden;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--navbar-h) + 60px) 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Warm grid pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 98, 58, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 98, 58, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Pink glow */
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(232, 68, 122, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

/* Terracotta glow */
.hero-glow--2 {
  top: 75%;
  left: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(196, 98, 58, 0.1) 0%, transparent 70%);
}

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

.hero-content { max-width: 800px; }

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(232, 68, 122, 0.08);
  border: 1px solid rgba(232, 68, 122, 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--pink);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Hero title */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink) 40%, var(--pink-light) 70%, var(--terra-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: warm-shimmer 5s ease-in-out infinite;
}

@keyframes warm-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Hero subtitle */
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 300;
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.75;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--pink), transparent);
  animation: scroll-fade 2s ease-in-out infinite;
}

@keyframes scroll-fade {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1) translateY(10px); }
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink) 60%, var(--pink-light) 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(232, 68, 122, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(232, 68, 122, 0.5);
  filter: brightness(1.08);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary--large {
  padding: 18px 40px;
  font-size: 1rem;
}

/* ── SECTION COMMONS ─────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 28px;
}

.section-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink-dark), var(--terra-light));
  margin: 0 auto;
  border-radius: 1px;
}

/* ── SERVICES ────────────────────────────────────────────── */
.services {
  padding: 120px 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition),
              border-color var(--transition),
              transform var(--transition),
              box-shadow var(--transition);
}

.service-card[data-delay="1"] { transition-delay: 0.1s; }
.service-card[data-delay="2"] { transition-delay: 0.2s; }
.service-card[data-delay="3"] { transition-delay: 0.3s; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(232, 68, 122, 0.06);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--pink);
  margin-bottom: 20px;
}

.service-icon svg { width: 100%; height: 100%; }

.service-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(232, 68, 122, 0.08);
  border: 1px solid rgba(232, 68, 122, 0.2);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}

/* Featured card */
.service-card--featured {
  background: linear-gradient(135deg, #FFF0F4 0%, #FFF5EC 100%);
  border-color: rgba(232, 68, 122, 0.3);
}

.service-card--featured:hover {
  border-color: rgba(232, 68, 122, 0.6);
  box-shadow: var(--shadow-card), 0 0 40px rgba(232, 68, 122, 0.08);
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--pink-dark), var(--pink));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

[dir="rtl"] .featured-badge { right: auto; left: 16px; }

/* ── WHY US ──────────────────────────────────────────────── */
.why-us {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.why-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.why-glow {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(196, 98, 58, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

[dir="rtl"] .why-glow { right: auto; left: -10%; }

.why-header { margin-bottom: 80px; }

.why-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
}

.why-tag {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 700px;
}

.why-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.why-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 40px;
  font-weight: 300;
}

.why-quote {
  position: relative;
  padding: 32px 36px;
  background: #FFF0F4;
  border: 1px solid rgba(232, 68, 122, 0.15);
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.6;
}

[dir="rtl"] .why-quote {
  border-left: 1px solid var(--border);
  border-right: 3px solid var(--pink);
  border-radius: var(--radius) 0 0 var(--radius);
}

.quote-mark {
  font-size: 3rem;
  color: var(--pink);
  line-height: 0;
  vertical-align: -0.5em;
  font-style: normal;
  opacity: 0.5;
}

.quote-mark--close { vertical-align: -0.6em; }

/* Pillars */
.why-pillars {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pillar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.pillar:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

[dir="rtl"] .pillar:hover { transform: translateX(-4px); }

.pillar-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--terra);
}

.pillar-icon svg { width: 100%; height: 100%; }

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CONTACT CTA ─────────────────────────────────────────── */
.contact-cta {
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contact-cta::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Warm radial glow behind CTA */
.contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%,
    rgba(232, 68, 122, 0.05) 0%,
    rgba(196, 98, 58, 0.04) 40%,
    transparent 70%);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 30%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 48px;
  font-family: var(--font-serif);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: #1C0E08;
  border-top: 1px solid rgba(232, 68, 122, 0.2);
  padding: 80px 0 32px;
  color: #FAF0E6;
}

.footer .footer-tagline { color: #C8B4A0; }
.footer .footer-col-title { color: var(--pink); }
.footer .footer-link { color: #C8B4A0; font-size: 0.92rem; }
.footer .footer-link:hover { color: #FAF0E6; }
.footer .footer-lang-btn { color: #7A5A48; }
.footer .footer-lang-btn:hover { color: var(--pink); }
.footer .footer-email { color: #C8B4A0; }
.footer .footer-email:hover { color: #FAF0E6; }
.footer .footer-rights { color: #5A3E34; }
.footer .logo-text { color: rgba(250, 240, 230, 0.55); }
.footer .logo-mark circle { fill: #E8447A; }
.footer .nav-logo { direction: ltr; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo { margin-bottom: 16px; }

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-subtle);
  font-style: italic;
  font-family: var(--font-serif);
  margin: 0;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-link:hover { color: var(--text); }

.footer-lang-btn {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: left;
  transition: color var(--transition);
  padding: 0;
}

[dir="rtl"] .footer-lang-btn { text-align: right; }
.footer-lang-btn:hover { color: var(--pink); }

.footer-email {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
  word-break: break-all;
}

.footer-email:hover { color: var(--pink); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-rights {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.footer-bottom-langs {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── HOME FAQ ────────────────────────────────────────────── */
.home-faq {
  padding: 80px 0;
  background: var(--bg, #F5EDE0);
}
.home-faq .section-header { margin-bottom: 56px; }
.faq-grid { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(196,98,58,0.12); }
.faq-item:first-child { border-top: 1px solid rgba(196,98,58,0.12); }
.faq-trigger {
  width: 100%; background: none; border: none; text-align: left;
  padding: 22px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 1rem; font-weight: 600;
  color: var(--text, #1C0E08);
  cursor: pointer; transition: color 0.2s;
}
[dir="rtl"] .faq-trigger { text-align: right; }
.faq-trigger:hover { color: var(--pink, #E8447A); }
.faq-icon {
  flex-shrink: 0; color: var(--pink, #E8447A);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-body {
  font-size: 0.95rem; color: var(--text-muted, #7A5A48);
  line-height: 1.8; padding-bottom: 22px;
  display: none;
  max-width: 680px;
}
[dir="rtl"] .faq-body { text-align: right; }
.faq-item.open .faq-body { display: block; }

/* ── RTL OVERRIDES ───────────────────────────────────────── */
[dir="rtl"] { font-family: var(--font-hebrew); }

[dir="rtl"] .nav-container  { flex-direction: row-reverse; }
[dir="rtl"] .nav-menu       { flex-direction: row-reverse; }
[dir="rtl"] .hero-content   { text-align: right; }
[dir="rtl"] .hero-subtitle  { margin-left: auto; margin-right: 0; }
[dir="rtl"] .btn-primary svg { transform: scaleX(-1); }
[dir="rtl"] .why-header     { text-align: right; }
[dir="rtl"] .why-tag        { margin-left: auto; }
[dir="rtl"] .footer-grid    { direction: rtl; }
[dir="rtl"] .footer-bottom  { flex-direction: row-reverse; }
[dir="rtl"] .footer-brand   { display: flex; flex-direction: column; align-items: flex-end; }
[dir="rtl"] .footer-logo    { justify-content: flex-end; }

[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .service-title,
[dir="rtl"] .why-tag,
[dir="rtl"] .pillar-title,
[dir="rtl"] .cta-title,
[dir="rtl"] .footer-tagline,
[dir="rtl"] .why-quote {
  font-family: var(--font-hebrew);
  font-style: normal;
  letter-spacing: 0;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .why-content { grid-template-columns: 1fr; gap: 48px; }
  .why-glow    { display: none; }
}

@media (max-width: 768px) {
  :root { --navbar-h: 64px; }

  .nav-menu  { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  /* Hide nav CTA from the bar on mobile — it's in the mobile menu instead */
  .nav-right .btn-primary { display: none; }

  .hero { padding-top: calc(var(--navbar-h) + 40px); }

  .services  { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }

  .why-us    { padding: 80px 0; }
  .contact-cta { padding: 80px 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container      { padding: 0 16px; }
  .service-card   { padding: 24px 20px; }
  .pillar         { padding: 20px; }
  .btn-primary    { width: 100%; justify-content: center; }
  .btn-primary--large { padding: 16px 24px; }
}

/* Touch devices: active-tap feedback on service cards instead of hover */
@media (hover: none) {
  .service-card:active {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
  }
  .service-card:active::before { opacity: 1; }
}

/* ── LANG SWITCH TRANSITION ──────────────────────────────── */
body.lang-transitioning * {
  transition-duration: 0.15s !important;
}

/* ── INTRO SPLASH ANIMATION ──────────────────────────────── */

/* If sessionStorage flag is set, hide overlay before first paint */
.intro-skip #im-intro { display: none !important; }

#im-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg, #fdf8f5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.6s ease;
}

#im-intro.im-out {
  opacity: 0;
  pointer-events: none;
}

/* Single word display */
#im-word {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: 90vw;
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-align: center;
  background: linear-gradient(135deg, #E8447A 10%, #C4623A 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
  transform: translateX(-50%) translateY(28px);
  transition: opacity 0.28s ease, transform 0.32s ease;
  white-space: normal;
  word-break: keep-all;
  user-select: none;
  pointer-events: none;
}

#im-word.im-in  { opacity: 1; transform: translateX(-50%) translateY(0); }
#im-word.im-out { opacity: 0; transform: translateX(-50%) translateY(-22px); transition: opacity 0.22s ease, transform 0.24s ease; }

/* Cloned nav logo injected during the shrink phase — no extra styles needed,
   it inherits everything from .nav-logo via its class. Only z-index & pointer-events
   are set inline by JS. */

/* ── POWERED BY ──────────────────────────────────────────── */
.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg, #fdf8f5);
  border-top: 1px solid rgba(196, 98, 58, 0.10);
  font-size: 0.72rem;
  color: var(--text-muted, #9a7a6a);
  letter-spacing: 0.03em;
}
.powered-by-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.powered-by-logo:hover { opacity: 0.7; }
.powered-by-wordmark {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
}
.powered-by-wordmark .logo-text  { color: var(--text, #1a0a00); }
.powered-by-wordmark .logo-accent { color: var(--pink, #E8447A); }

/* ── HOME CLIENT LOGOS — MARQUEE ────────────────────────── */
.home-clients {
  padding: 52px 0 48px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.clients-label {
  display: block;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
  margin-bottom: 36px;
}
.clients-marquee-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
[dir="rtl"] .clients-marquee-wrap {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to left, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
@keyframes marquee-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.clients-marquee {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee-ltr 28s linear infinite;
}
[dir="rtl"] .clients-marquee { animation-name: marquee-rtl; }
.clients-marquee:hover { animation-play-state: paused; }
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  filter: grayscale(1) opacity(0.45);
  transition: filter 0.4s ease, transform 0.4s ease;
  flex-shrink: 0;
}
.client-logo:hover { filter: grayscale(0) opacity(1); transform: scale(1.08); }
.client-logo img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.client-logo--udap img  { max-width: 220px; height: 28px; }
.client-logo--fit img   { height: 40px; max-width: 160px; }
.client-logo--pkaila img { height: 38px; max-width: 120px; }
.client-logo--invert img { filter: invert(1); }
.client-logo--invert:hover img { filter: invert(1); }
.cati-wordmark {
  font-family: 'Nunito', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  color: #C8102E;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  white-space: nowrap;
  user-select: none;
}
.client-logo--text { min-width: 120px; }
.text-logo { display: block; line-height: 1; white-space: nowrap; user-select: none; }
.text-logo--darshana {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  color: #2a1a0e;
  letter-spacing: -0.01em;
}
.text-logo-dot { color: var(--pink, #E8447A); }
.text-logo--berechit {
  font-family: 'Heebo', 'Arial Hebrew', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a3a5c;
  letter-spacing: 0.04em;
  direction: rtl;
}

/* ── HOME COUNTERS ──────────────────────────────────────── */
.home-counters {
  padding: 80px 0;
  background: var(--bg);
  position: relative;
}
.home-counters::before,
.home-counters::after {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 30%, var(--border) 70%, transparent 100%);
}
.home-counters::before { top: 0; }
.home-counters::after  { bottom: 0; }
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.counter-item {
  padding: 0 32px;
  position: relative;
}
.counter-item + .counter-item::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; height: 80%;
  width: 1px;
  background: var(--border);
}
.counter-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #E8447A 20%, #C4623A 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}
.counter-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
@media (max-width: 640px) {
  .counters-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .counter-item + .counter-item::before { display: none; }
  .counter-item { padding: 0 16px; }
}

/* ── HOME TESTIMONIALS ──────────────────────────────────── */
.home-testimonials { padding: 96px 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testi-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.testi-stars { font-size: 1.05rem; color: #F5A623; letter-spacing: 2px; }
.testi-quote { font-size: 0.94rem; line-height: 1.68; color: var(--text); flex: 1; font-style: italic; }
.testi-result {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--pink);
  background: rgba(232,68,122,0.07);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
}
.testi-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8447A, #C4623A);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testi-info { display: flex; flex-direction: column; gap: 2px; }
.testi-name { font-weight: 600; font-size: 0.9rem; }
.testi-role { font-size: 0.76rem; color: var(--text-muted); }
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; } }

/* ── HOME CASE STUDIES ──────────────────────────────────── */
.home-casestudies {
  padding: 96px 0;
  background: var(--bg-card);
}
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.cs-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.cs-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.cs-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terra);
  background: rgba(196,98,58,0.1);
  border-radius: 6px;
  padding: 3px 10px;
}
.cs-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}
.cs-challenge { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; }
.cs-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cs-metric {
  background: linear-gradient(135deg, rgba(232,68,122,0.06), rgba(196,98,58,0.04));
  border: 1px solid rgba(232,68,122,0.12);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.cs-metric-value { font-size: 0.76rem; font-weight: 700; color: var(--pink); }
.cs-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}
.cs-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(196,98,58,0.12);
  border-radius: 3px;
  overflow: hidden;
}
.cs-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #E8447A, #C4623A);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.cs-bar-after { font-weight: 700; color: var(--pink); }
.cs-cta {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap var(--transition);
}
.cs-cta:hover { gap: 10px; }
@media (max-width: 900px) { .cs-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

/* ── LATEST POST STRIP ──────────────────────────────────── */
.latest-post-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.lp-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.lp-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  white-space: nowrap;
}
.lp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--terra));
  flex-shrink: 0;
  animation: badge-pulse 2s ease-in-out infinite;
}
.lp-content { min-width: 0; }
.lp-cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 6px;
}
.lp-title {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.lp-read-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pink);
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.2s;
}
.lp-read-cta:hover { text-decoration: underline; }
.lp-all-cta {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-decoration: none;
  white-space: nowrap;
}
.lp-all-cta:hover { color: var(--terra); }
@media (max-width: 900px) {
  .lp-inner { grid-template-columns: 1fr; gap: 16px; }
  .lp-title, .lp-excerpt { white-space: normal; }
  .lp-actions { align-items: flex-start; flex-direction: row; gap: 20px; }
}
[dir="rtl"] .lp-actions { align-items: flex-start; }

/* ── BACK TO TOP ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #E8447A, #C4623A);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(232,68,122,0.35);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { box-shadow: 0 6px 24px rgba(232,68,122,0.5); }
[dir="rtl"] .back-to-top { right: auto; left: 28px; }

/* ── COOKIE CONSENT ────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 480px;
  z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: 0 8px 40px rgba(100,40,20,0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.visible { transform: translateY(0); }
[dir="rtl"] .cookie-banner { left: auto; right: 24px; }
.cookie-banner-text { font-size: 0.87rem; line-height: 1.55; color: var(--text-muted); }
.cookie-banner-text strong { color: var(--text); }
.cookie-banner-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-accept {
  padding: 9px 20px;
  background: linear-gradient(135deg, #E8447A, #C4623A);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cookie-accept:hover { opacity: 0.88; }
.cookie-decline {
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s;
}
.cookie-decline:hover { border-color: var(--text-muted); }
@media (max-width: 540px) {
  .cookie-banner { left: 12px; right: 12px; max-width: none; }
  [dir="rtl"] .cookie-banner { left: 12px; right: 12px; }
}

/* ── CERTIFICATIONS ─────────────────────────────────────── */
.certs-section { background: var(--bg); }
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.cert-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.cert-item:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.cert-logo-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.cert-logo-wrap--google { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.cert-logo-wrap--meta   { background: #1877F2; color: #fff; }
.cert-logo-wrap--ga     { background: #F9AB00; color: #fff; font-size: 0.9rem; }
.cert-name { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.cert-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.certs-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.certs-note a { color: var(--pink); text-decoration: underline; }
@media (max-width: 800px)  { .certs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .certs-grid { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; } }

/* ── Animation Enhancements (pkaila.com inspired) ─────────── */

/* Mask-reveal: text slides up from behind clip */
@keyframes mask-reveal-up {
  from { clip-path: inset(100% 0 0 0); opacity: 0; transform: translateY(18px); }
  to   { clip-path: inset(0% 0 0 0);   opacity: 1; transform: translateY(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Headline mask-reveal — applied by JS on first visible hero */
.hero-headline-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero-headline-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1), opacity 0.8s ease;
}
.hero-headline-word.word-visible span { opacity: 1; transform: translateY(0); }

/* Section-level mask reveal for h2 titles */
.reveal-mask {
  overflow: hidden;
}
.reveal-mask > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-mask.is-visible > * { opacity: 1; transform: translateY(0); }

/* Upgrade base .reveal easing to a snappier spring curve */
.reveal {
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1) !important;
}

/* Magnetic CTA buttons */
.cta-btn, .btn-primary, .btn-cta, .hero .cta, a[href*="contact"].hero-cta {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease !important;
}

/* Animated underline on nav links */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--pink,#E8447A), var(--terra,#C4623A));
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Service cards — depth lift on hover */
.service-card {
  transition: transform 0.4s cubic-bezier(0.34,1.3,0.64,1),
              box-shadow 0.4s ease !important;
}
.service-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 28px 60px rgba(196,98,58,0.18) !important;
}

/* Testimonial cards — subtle depth */
.testi-card {
  transition: transform 0.4s cubic-bezier(0.34,1.2,0.64,1),
              box-shadow 0.4s ease;
}
.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(28,14,8,0.12);
}

/* FAQ items slide-open refinement */
.faq-answer {
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1),
              opacity 0.4s ease !important;
}

/* Gradient line — start at 0 width, animate to full on scroll */
.section-line { width: 0 !important; }

/* Hero parallax layer */
.hero-parallax {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* Gradient line under section headers — animated width */
.section-line {
  transition: width 1s cubic-bezier(0.16,1,0.3,1) 0.3s !important;
}
.section-line.is-visible { width: 64px !important; }

/* Cursor glow — subtle warm dot follows mouse */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,68,122,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
  .hero-headline-word span { opacity:1; transform:none; transition:none; }
  .reveal { opacity:1; transform:none; transition:none; }
}

/* ── Case Study Modal ───────────────────────────────────────── */
.cs-modal-overlay[hidden] { display: none !important; }
.cs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 14, 8, 0.65);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cs-modal-overlay.cs-modal--open { opacity: 1; }
.cs-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 48px 40px;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 80px rgba(28,14,8,0.22);
}
.cs-modal-overlay.cs-modal--open .cs-modal { transform: translateY(0); }
.cs-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-muted, #8a7060);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.cs-modal-close:hover { background: rgba(196,98,58,0.1); color: var(--terra, #C4623A); }
[dir="rtl"] .cs-modal-close { right: auto; left: 20px; }
.cs-modal-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink, #E8447A);
  background: rgba(232,68,122,0.08);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.cs-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 900;
  color: var(--text, #1C0E08);
  margin: 0 0 12px;
  line-height: 1.2;
}
.cs-modal-challenge {
  font-size: 0.95rem;
  color: var(--text-muted, #8a7060);
  line-height: 1.6;
  margin: 0 0 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(196,98,58,0.12);
}
.cs-modal-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.cs-modal-metric {
  background: linear-gradient(135deg, rgba(232,68,122,0.06), rgba(196,98,58,0.06));
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}
.cs-modal-metric-val {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink,#E8447A), var(--terra,#C4623A));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
}
.cs-modal-metric-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #8a7060);
}
.cs-modal-body { font-size: 0.93rem; line-height: 1.75; color: var(--text, #1C0E08); }
.cs-modal-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--terra, #C4623A);
}
.cs-modal-body h3:first-child { margin-top: 0; }
.cs-modal-body p { margin: 0 0 12px; }
.cs-modal-body ul { padding-left: 20px; margin: 8px 0 16px; }
[dir="rtl"] .cs-modal-body ul { padding-left: 0; padding-right: 20px; }
.cs-modal-body li { margin-bottom: 8px; }
.cs-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 14px 28px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--pink,#E8447A), var(--terra,#C4623A));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.cs-modal-cta:hover { opacity: 0.88; transform: translateY(-1px); }
@media (max-width: 700px) {
  .cs-modal { padding: 32px 24px 28px; }
  .cs-modal-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .cs-modal-metrics { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cs-modal-metric-val { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════
   PKAILA-INSPIRED SIGNATURE ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* ── 1. SVG animated underline on hero accent ────────────── */
.hero-title-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 0.12em;
}
.hero-underline-svg {
  position: absolute;
  left: 0;
  bottom: calc(-8px + 0.12em);
  width: 100%;
  height: 12px;
  overflow: visible;
  pointer-events: none;
}
.hero-underline-path {
  fill: none;
  stroke: url(#underlineGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.6s;
}
.hero-underline-path.draw { stroke-dashoffset: 0; }

/* ── 2. Clip-path reveal for section h2 titles ───────────── */
.section-title.reveal {
  clip-path: inset(110% 0 -10% 0);
  opacity: 1 !important;          /* override generic .reveal */
  transform: none !important;     /* override generic .reveal */
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.section-title.reveal.is-visible {
  clip-path: inset(0% 0 -10% 0);
}

/* ── 3. Pulsating orbs ───────────────────────────────────── */
@keyframes orb-pulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  50%  { transform: scale(1.18); opacity: 0.25; }
  100% { transform: scale(1),    opacity: 0.55; }
}
@keyframes orb-pulse { /* fix */
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%       { transform: scale(1.18); opacity: 0.25; }
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: orb-pulse 3s cubic-bezier(0.2, 1, 0.2, 1) infinite;
  will-change: transform, opacity;
}
.hero-orb--1 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(232,68,122,0.13) 0%, transparent 70%);
  top: -80px; right: 8%;
  animation-delay: 0s;
}
.hero-orb--2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(196,98,58,0.11) 0%, transparent 70%);
  bottom: -60px; left: 4%;
  animation-delay: 1s;
}
.hero-orb--3 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(232,68,122,0.09) 0%, transparent 70%);
  top: 40%; right: 22%;
  animation-delay: 1.8s;
}
@media (max-width: 768px) {
  .hero-orb--1 { width: 200px; height: 200px; right: -20px; }
  .hero-orb--2 { width: 160px; height: 160px; }
  .hero-orb--3 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-orb { animation: none; } }

/* ── 4. Cycling word in hero subtitle ────────────────────── */
.cycle-word {
  display: inline-block;
  overflow: visible;       /* keeps baseline = text baseline, not bottom edge */
  clip-path: inset(0);    /* clips translated children without touching baseline */
  vertical-align: baseline;
  line-height: 1.2;
  height: 1.2em;
}
.cycle-word-inner {
  display: block;
  font-weight: 600;
  color: var(--pink, #E8447A);
  line-height: 1.2;
}
@keyframes cycle-out {
  0%   { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(-110%); opacity: 0; }
}
@keyframes cycle-in {
  0%   { transform: translateY(110%);  opacity: 0; }
  100% { transform: translateY(0);     opacity: 1; }
}
.cycle-word-inner.exiting { animation: cycle-out 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.cycle-word-inner.entering { animation: cycle-in  0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ── 5. Service card icon draw-on hover ──────────────────── */
.service-icon svg path,
.service-icon svg circle,
.service-icon svg line,
.service-icon svg polyline,
.service-icon svg rect {
  transition: stroke-dashoffset 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
