/* ============================================================
   האקדמיה למנכ"לות — Design Tokens & Base
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700&family=Cormorant+Garamond:ital,wght@1,300;1,400&display=swap');

:root {
  /* DARK BASE */
  --ak-obsidian:    #191210;
  --ak-dark:        #241813;
  --ak-brown:       #362925;

  /* GOLD SPECTRUM */
  --ak-gold-deep:   #916D4C;
  --ak-gold-mid:    #A07E61;
  --ak-gold-light:  #BC9679;
  --ak-gold-pale:   #D8BBA0;

  /* WARM LIGHT */
  --ak-cream:       #F7F0E8;
  --ak-cream-soft:  #FBF6EF;
  --ak-white:       #FFFFFF;
  --ak-beige:       #EFE5D5;   /* רקע סקשן מירית */
  --ak-card:        #F5EFE6;   /* כרטיסים ומלבני עדויות */

  /* TEXT */
  --ak-text-dark:   #191210;
  --ak-text-mid:    #5C4636;
  --ak-text-light:  #A89080;
  --ak-text-white:  #F7F0E8;

  /* LINES */
  --ak-line-dark:   rgba(245, 237, 224, 0.12);
  --ak-line-light:  rgba(42, 31, 20, 0.10);

  /* GRADIENTS */
  --ak-gold-gradient: linear-gradient(135deg, #916D4C, #A07E61);
  --ak-gold-bar:      linear-gradient(90deg, #A07E61, #BC9679);
  --ak-dark-gradient: linear-gradient(180deg, #191210, #241813);
  /* גרדיאנט טקסט מוזהב — מתחלף לפי רקע הסקשן */
  --ak-gold-text-grad: linear-gradient(135deg, #362925, #A07E61);

  /* TYPE */
  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-bold:    700;

  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;
  --text-4xl:  48px;
  --text-hero: 64px;

  /* RADII (squared by design) */
  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;

  /* SHADOWS */
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lift: 0 12px 32px rgba(13, 8, 4, 0.10);

  /* MOTION */
  --ease: cubic-bezier(.2, .6, .2, 1);
  --tr: all 0.25s ease;
}

/* ============================================================
   Reset / Base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Heebo', system-ui, sans-serif;
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ak-text-dark);
  background: var(--ak-cream-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}
@media (min-width: 1200px) {
  .container { padding: 0 60px; }
}

.section {
  padding: 60px 0;
  position: relative;
  isolation: isolate;
}
@media (min-width: 768px) {
  .section { padding: 100px 0; }
}

.section--dark {
  background: var(--ak-obsidian);
  color: var(--ak-text-white);
}
.section--cream { background: var(--ak-cream); }
.section--white { background: var(--ak-white); }

/* ============================================================
   Typography utilities
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--ak-gold-mid);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.h-hero {
  font-weight: var(--weight-light);
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-display {
  font-weight: var(--weight-light);
  font-size: clamp(32px, 5.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h-section {
  font-weight: var(--weight-light);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h-card {
  font-weight: var(--weight-medium);
  font-size: var(--text-xl);
  line-height: 1.3;
}

.wordmark-together {
  font-family: 'Cormorant Garamond', 'Heebo', serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.gold-text {
  background: var(--ak-gold-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section--dark { --ak-gold-text-grad: linear-gradient(135deg, #A07E61, #FFFFFF); }

.lead {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--ak-text-mid);
  max-width: 56ch;
}
.section--dark .lead { color: rgba(245, 237, 224, 0.72); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  border-radius: 0;
  transition: var(--tr);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn--gold {
  background: var(--ak-gold-gradient);
  color: var(--ak-obsidian);
  box-shadow: 0 4px 18px rgba(184, 131, 74, 0.25);
}
.btn--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(184, 131, 74, 0.35);
}
.btn--ghost {
  border: 1px solid var(--ak-gold-mid);
  color: var(--ak-gold-light);
}
.section--cream .btn--ghost,
.section--white .btn--ghost {
  color: var(--ak-text-dark);
  border-color: var(--ak-text-dark);
}
.btn--ghost:hover {
  background: var(--ak-gold-mid);
  color: var(--ak-obsidian);
  border-color: var(--ak-gold-mid);
}
.btn .arrow {
  display: inline-block;
  transform: rotate(180deg); /* RTL: arrow points right-to-left visually */
  transition: transform 0.25s ease;
}
.btn:hover .arrow { transform: rotate(180deg) translateX(-3px); }

/* ============================================================
   Header / Footer
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(13, 8, 4, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ak-line-dark);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ak-text-white);
}
.site-header__logo-img {
  height: 72px;
  width: 72px;
  object-fit: contain;
  display: block;
}
.site-header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.site-header__logo-text strong {
  font-weight: var(--weight-light);
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--ak-text-white);
}
.site-header__logo-text span {
  font-size: 11px;
  color: var(--ak-text-light);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.site-nav {
  display: none;
}
@media (min-width: 900px) {
  .site-nav { display: flex; gap: 32px; }
}
.site-nav a {
  font-size: var(--text-sm);
  color: var(--ak-text-white);
  opacity: 0.78;
  transition: var(--tr);
  position: relative;
  padding: 6px 0;
}
.site-nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--ak-gold-light);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: right;
}
.site-nav a:hover,
.site-nav a.is-active { opacity: 1; color: var(--ak-gold-light); }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-header__cta { display: flex; gap: 12px; align-items: center; }
.site-header__cta .btn {
  padding: 10px 20px;
  font-size: var(--text-sm);
}

.site-footer {
  background: var(--ak-obsidian);
  color: var(--ak-text-white);
  padding: 80px 0 40px;
  border-top: 1px solid var(--ak-line-dark);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--ak-line-dark);
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 56px;
  }
}
.site-footer h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ak-gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; display: grid; gap: 12px; }
.site-footer a {
  color: rgba(245, 237, 224, 0.72);
  font-size: var(--text-sm);
  transition: var(--tr);
}
.site-footer a:hover { color: var(--ak-gold-light); }
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 40px;
  color: var(--ak-text-light);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}
@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.site-footer__brand img {
  height: 84px;
  width: auto;
  display: block;
}

/* ============================================================
   Image placeholders (striped)
   ============================================================ */

.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(184, 131, 74, 0.10),
      rgba(184, 131, 74, 0.10) 1px,
      transparent 1px,
      transparent 14px
    ),
    var(--ak-brown);
  border: 1px solid var(--ak-line-dark);
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--ak-gold-pale);
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  overflow: hidden;
}
.placeholder--light {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(139, 94, 60, 0.08),
      rgba(139, 94, 60, 0.08) 1px,
      transparent 1px,
      transparent 14px
    ),
    var(--ak-cream);
  border-color: var(--ak-line-light);
  color: var(--ak-text-mid);
}
.placeholder__label {
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 0;
  opacity: 0.7;
}

/* ============================================================
   Reveal animations
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes goldShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

[data-animate] {
  opacity: 0;
}
[data-animate].is-visible {
  animation: fadeUp 0.9s var(--ease) forwards;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-animate] { opacity: 1; }
}

/* ── Mobile scroll stability ───────────────────────────────── */
@media (max-width: 820px) {
  /* Shorter translate prevents overlap artifacts during scroll-triggered animation */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  /* Ensure animated elements don't bleed stacking contexts over header */
  [data-animate].is-visible {
    animation: fadeUp 0.6s var(--ease) forwards;
  }
}