/* ============================================================
   Tourism CRM Demo — Design System
   Palette: Coastal Ceramics (researched tourism industry standard)
   Engine: GSTS quality (video hero, serif fonts, stagger reveals)
   ============================================================ */

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

:root {
  /* Israeli Tourism Palette — clean whites, bright accents */
  --teal: #0891B2;           /* Primary — bright cyan (modern Israeli travel) */
  --deep: #0C4A6E;           /* Dark sections — deep blue (used sparingly) */
  --deep-light: #155E75;     /* Dark section hover */
  --sand: #FBBF24;           /* Warm highlight — golden sun */
  --orange: #F97316;         /* CTA — vibrant orange */
  --orange-hover: #EA580C;   /* CTA hover */
  --cream: #FAFAF9;          /* Background — near white */
  --terra: #DC2626;          /* Urgency — Eshet red for deals */

  /* Text (Avi's proven system) */
  --text: #16212B;
  --text-2: #1b465f;

  /* Surface */
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --border: #E2E0DA;

  /* Functional */
  --success: #2A9D8F;
  --warning: #E9C46A;
  --danger: #E76F51;

  /* Typography */
  --display: 'Frank Ruhl Libre', Georgia, serif;
  --sans: 'Heebo', 'Segoe UI', sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .hero-video { display: none; }
}

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

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== NAVIGATION (GSTS pattern) ===== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; z-index: 1000;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  background: transparent;
}

#nav.scrolled { background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.nav-brand {
  font-family: var(--display); font-size: 1.1rem; font-weight: 700;
  color: var(--white); transition: color 0.35s ease; white-space: nowrap;
}

#nav.scrolled .nav-brand { color: var(--deep); }

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--white); transition: color 0.3s ease; position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -4px; right: 0;
  width: 0; height: 1.5px; background: var(--orange);
  transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after { width: 100%; }
#nav.scrolled .nav-links a:not(.nav-cta) { color: var(--deep); }

.nav-cta {
  background: var(--orange); color: var(--white) !important;
  padding: 10px 24px; border-radius: 6px; font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav-cta:hover { background: var(--orange-hover); transform: translateY(-1px); }
#nav.scrolled .nav-cta { color: var(--white) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}

.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: background 0.3s ease; }
#nav.scrolled .hamburger span { background: var(--deep); }

/* ===== HERO (GSTS pattern — video bg) ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}

.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.3));
  z-index: 1;
}

.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 900px; padding: 0 24px;
}

.hero-label {
  display: inline-block; font-family: var(--sans);
  font-size: 15px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sand);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4); margin-bottom: 24px;
  opacity: 0; transform: translateY(20px);
  animation: heroIn 0.8s ease 0.3s forwards;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700;
  color: var(--white); line-height: 1.15; margin-bottom: 28px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(24px);
  animation: heroIn 0.8s ease 0.5s forwards;
}

.hero-sub {
  font-family: var(--sans); font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500; color: var(--white); max-width: 750px;
  margin: 0 auto 24px; line-height: 1.75;
  opacity: 0; transform: translateY(24px);
  animation: heroSubIn 0.8s ease 0.7s forwards;
}

.hero-secondary {
  font-family: var(--sans); font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  font-weight: 700; font-style: italic; color: var(--sand);
  margin-bottom: 40px;
  opacity: 0; transform: translateY(20px);
  animation: heroIn 0.8s ease 0.9s forwards;
}

.hero-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 44px;
  opacity: 0; transform: translateY(20px);
  animation: heroIn 0.8s ease 1.1s forwards;
}

.hero-pill {
  display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 600; color: var(--sand);
  background: rgba(233,196,106,0.15); border: 1px solid rgba(233,196,106,0.35);
  padding: 8px 20px; border-radius: 100px; white-space: nowrap;
}

.hero-ctas {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: heroIn 0.8s ease 1.3s forwards;
}

@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
@keyframes heroSubIn { to { opacity: 0.9; transform: translateY(0); } }

/* ===== SECTIONS ===== */
.section { padding: 100px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block; font-family: var(--sans);
  font-size: 14px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
}

.section-title {
  font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 24px;
}

.section-title.light { color: var(--white); }

.section-desc {
  font-size: 1.1rem; line-height: 1.85; color: var(--text);
  max-width: 750px; margin-bottom: 48px;
}

.section-desc.light { color: rgba(255,255,255,0.85); }

/* ===== REVEAL ANIMATIONS (GSTS pattern) ===== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.75s; }

/* ===== CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }

.card-number {
  font-family: var(--display); font-size: 2rem; font-weight: 800;
  color: var(--teal); line-height: 1; margin-bottom: 16px;
}

.card h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.card p { font-size: 1rem; line-height: 1.7; color: var(--text); }

/* ===== ACCENT SECTIONS (light with color accent, Israeli tourism standard) ===== */
.dark-section { background: linear-gradient(135deg, #F0FDFA, #ECFEFF, #F0F9FF); color: var(--text); }

.dark-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.dark-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: var(--teal); }
.dark-card .card-number { color: var(--teal); }
.dark-card h3 { color: var(--text); }
.dark-card p { color: var(--text-2); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; font-family: var(--sans);
  font-size: 0.92rem; font-weight: 600;
  background: var(--orange); color: var(--white);
  padding: 14px 36px; border-radius: 8px; border: none; cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover { background: var(--orange-hover); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; font-family: var(--sans);
  font-size: 0.92rem; font-weight: 600;
  background: transparent; color: var(--cream);
  padding: 14px 36px; border-radius: 8px;
  border: 1.5px solid rgba(241,250,238,0.4); cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); transform: translateY(-2px); }

/* ===== TABLE ===== */
.data-table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.data-table-header { background: var(--deep); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.data-table-header h3 { font-size: 1rem; font-weight: 600; color: var(--white); }
.data-table-header span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th { padding: 14px 16px; text-align: right; font-weight: 700; color: var(--text); background: var(--off-white); border-bottom: 2px solid var(--border); font-size: 0.85rem; }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
tr:hover { background: rgba(42,157,143,0.02); }

/* ===== BADGES ===== */
.badge { display: inline-block; padding: 4px 14px; border-radius: 100px; font-size: 0.8125rem; font-weight: 600; }
.badge-active { background: rgba(42,157,143,0.1); color: var(--teal); }
.badge-draft { background: rgba(233,196,106,0.15); color: #A88B2F; }
.badge-full { background: rgba(38,70,83,0.08); color: var(--deep); }
.badge-closed { background: rgba(231,111,81,0.1); color: var(--terra); }

.brand-tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.brand-dreams { background: rgba(38,70,83,0.06); color: var(--deep); }
.brand-solo { background: rgba(244,162,97,0.1); color: var(--orange); }

/* ===== CAPACITY BAR ===== */
.cap-bar { width: 72px; height: 6px; background: rgba(0,0,0,0.06); border-radius: 100px; overflow: hidden; display: inline-block; vertical-align: middle; margin-inline-start: 6px; }
.cap-fill { height: 100%; border-radius: 100px; }
.cap-green { background: var(--teal); }
.cap-yellow { background: var(--sand); }
.cap-red { background: var(--terra); }

/* ===== KPI ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kpi-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 28px; position: relative; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.kpi-card::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--teal); }
.kpi-value { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--deep); line-height: 1.2; }
.kpi-label { font-size: 0.875rem; color: var(--text-2); margin-top: 4px; }
.kpi-trend { font-size: 0.8125rem; font-weight: 600; margin-top: 6px; color: var(--teal); }

/* ===== FUNNEL ===== */
.funnel { display: flex; flex-direction: column; gap: 8px; max-width: 600px; margin: 0 auto; }
.funnel-row { display: flex; align-items: center; gap: 16px; }
.funnel-num { width: 48px; font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--deep); text-align: center; }
.funnel-bar { height: 44px; border-radius: 8px; display: flex; align-items: center; padding: 0 20px; font-size: 0.9375rem; font-weight: 600; color: var(--white); transition: transform 0.3s ease; }
.funnel-bar:hover { transform: scaleX(1.02); transform-origin: right; }

/* ===== FLOW STEPS ===== */
.flow { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 48px; }
.flow-step { flex: 1; min-width: 160px; text-align: center; padding: 32px 24px; background: var(--white); border: 1px solid var(--border); transition: transform 0.2s ease; }
.flow-step:first-child { border-radius: 0 12px 12px 0; }
.flow-step:last-child { border-radius: 12px 0 0 12px; }
.flow-step:not(:first-child) { border-right: none; }
.flow-step:hover { transform: translateY(-2px); }
.flow-step .num { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--teal); margin-bottom: 8px; }
.flow-step .title { font-size: 0.9375rem; font-weight: 700; color: var(--text); }
.flow-step .desc { font-size: 0.8125rem; color: var(--text-2); margin-top: 4px; }

/* ===== TIER CARDS ===== */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tier-card { border-radius: 12px; padding: 28px; text-align: center; color: var(--white); }
.tier-card h4 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.tier-card .req { font-size: 0.875rem; opacity: 0.8; margin-bottom: 12px; }
.tier-card ul { list-style: none; font-size: 0.875rem; text-align: right; }
.tier-card li { padding: 3px 0; }
.tier-bronze { background: linear-gradient(135deg, #6B4423, #8B6342); }
.tier-silver { background: linear-gradient(135deg, #3D4F5F, #5A7080); }
.tier-gold { background: linear-gradient(135deg, #C4923A, #D4A847); }
.tier-plat { background: linear-gradient(135deg, var(--deep), var(--deep-light)); }

/* ===== INTEGRATION GRID ===== */
.int-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.int-item { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 20px 12px; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.int-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.int-item .name { font-size: 0.875rem; font-weight: 600; color: var(--deep); }
.int-item .stat { font-size: 0.75rem; color: var(--teal); font-weight: 500; margin-top: 4px; }

/* ===== SUMMARY ===== */
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.check-list { list-style: none; }
.check-list li { padding: 8px 0; display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; }
.check-list .mark { flex-shrink: 0; font-weight: 700; font-size: 1.1rem; }
.check-list .done .mark { color: var(--teal); }
.check-list .pending .mark { color: var(--orange); }

/* ===== LINKS ===== */
.links-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.link-btn { font-size: 0.875rem; font-weight: 600; padding: 8px 20px; border: 1px solid var(--deep); border-radius: 6px; color: var(--deep); transition: all 0.2s ease; }
.link-btn:hover { background: var(--deep); color: var(--white); }

/* ===== CTA SECTION ===== */
.cta-section { background: var(--deep); text-align: center; }
.cta-section .section-title { color: var(--white); max-width: 700px; margin: 0 auto 48px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
footer { background: var(--deep); border-top: 1px solid rgba(255,255,255,0.06); padding: 48px 24px 32px; text-align: center; }
.footer-brand { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-links a { font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-credit { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 4px; }
.footer-credit a { color: var(--teal); }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); text-decoration: none;
  transition: transform 0.3s ease; animation: wa-pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: #FFFFFF; }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 32px rgba(37,211,102,0.6); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,0.1); flex-direction: column; padding: 24px; gap: 0; }
  .nav-links.open a { color: var(--deep) !important; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links.open a:last-child { border-bottom: none; }
  .section { padding: 72px 20px; }
  .summary-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-step { border-radius: 0 !important; border-right: 1px solid var(--border) !important; }
  .flow-step:first-child { border-radius: 12px 12px 0 0 !important; }
  .flow-step:last-child { border-radius: 0 0 12px 12px !important; }
  .flow-step:not(:first-child) { border-top: none; }
}

@media (max-width: 600px) {
  #nav { padding: 0 20px; }
  .hero-video { display: none; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4)); }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .kpi-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 320px; justify-content: center; }
}

/* ===== JS INIT (shared across pages) ===== */
/* Add this to each page's script:
(function() {
  var nav = document.getElementById('nav');
  window.addEventListener('scroll', function() {
    if (window.scrollY > 60) nav.classList.add('scrolled');
    else nav.classList.remove('scrolled');
  }, { passive: true });

  if ('IntersectionObserver' in window) {
    var obs = new IntersectionObserver(function(entries) {
      entries.forEach(function(e) { if (e.isIntersecting) { e.target.classList.add('visible'); obs.unobserve(e.target); } });
    }, { threshold: 0.12, rootMargin: '0px 0px -40px 0px' });
    document.querySelectorAll('.reveal, .reveal-stagger').forEach(function(el) { obs.observe(el); });
  } else {
    document.querySelectorAll('.reveal, .reveal-stagger').forEach(function(el) { el.classList.add('visible'); });
  }
})();
*/
