@import url("https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600;700;800&display=swap");

:root {
  /* Palette - Serene & Professional */
  --bg-body: #fdfcff;
  --bg-surface: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.85);

  --primary: #4f46e5; /* Indigo 600 - Trustworthy & Deep */
  --primary-light: #818cf8; /* Indigo 400 */
  --primary-dark: #4338ca; /* Indigo 700 */

  --secondary: #ec4899; /* Pink 500 - Empathy & Warmth */
  --accent: #14b8a6; /* Teal 500 - Healing & Growth */

  --text-main: #1e293b; /* Slate 800 */
  --text-muted: #64748b; /* Slate 500 */
  --text-light: #94a3b8; /* Slate 400 */

  --border-light: #e2e8f0;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --max-width: 1100px;
  --header-height: 70px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-body);
  /* Gentle, premium background gradient */
  background-image: radial-gradient(
      circle at 10% 10%,
      rgba(79, 70, 229, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(236, 72, 153, 0.05) 0%,
      transparent 40%
    );
  color: var(--text-main);
  font-family: "Assistant", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  direction: rtl;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-main);
}
p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2);
}
.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--text-main), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.nav-link:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.06);
}

/* Hero Section */
.hero {
  padding: 4rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.tag-overline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-text {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 90%;
}

/* Badges */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.badge {
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-weight: 600;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px; /* Pill shape */
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}
.btn-secondary {
  background: white;
  color: var(--text-main);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.btn-whatsapp {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}
.btn-whatsapp:hover {
  background: #bbf7d0;
  transform: translateY(-2px);
}

/* Cards & Layouts */
.section-block {
  padding: 4rem 0;
}
.section-header {
  max-width: 800px;
  margin-bottom: 2.5rem;
}
.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: -10px;
  width: 40px;
  height: 40px;
  background: rgba(236, 72, 153, 0.15);
  border-radius: 50%;
  z-index: -1;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.kpi-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.kpi-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Images */
.img-rounded {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  width: 100%;
  height: auto;
}
.hero-img {
  height: 100%;
  min-height: 400px;
}

/* Forms */
.form-card {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 0.9rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fdfcff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Accordion / Details */
details {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none; /* Hide default triangle */
  position: relative;
  padding-right: 0;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
}
details[open] summary::after {
  content: "-";
}

/* Footer */
footer {
  background: #f1f5f9;
  padding: 3rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bg-soft-blue {
  background: #eff6ff;
}
.bg-soft-purple {
  background: #fbf7ff;
}

/* Sticky Mobile Bottom Bar (Replaces 4 corners) */
.mobile-sticky-bar {
  display: none; /* Shown on mobile */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  padding: 12px 18px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  z-index: 999;
  border-top: 1px solid var(--border-light);
  align-items: center;
  gap: 12px;
}
.mobile-sticky-bar .btn {
  flex: 1;
  font-size: 0.95rem;
  padding: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  } /* Could add hamburger later if needed, for now simplification */
  .hero-img {
    min-height: 250px;
    height: auto;
  }

  .mobile-sticky-bar {
    display: flex;
  }
  .corner-floating {
    display: none;
  } /* Hiding legacy desktop floaters on mobile */
}

/* Desktop Floating Action for WA (Nice to have) */
.fab-desktop {
  position: fixed;
  bottom: 2rem;
  left: 2rem; /* Hebrew RTL -> Left side is usually better for 'secondary' or consistent with LTR UX standards? Actually RTL usually places floaters on LEFT or RIGHT. Let's stick to LEFT to not block scrollbar. */
  z-index: 100;
}
.fab-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366; /* WhatsApp Green */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  font-size: 2rem;
  transition: transform 0.2s;
  border: 2px solid white;
}
.fab-btn:hover {
  transform: scale(1.1);
}
@media (max-width: 900px) {
  .fab-desktop {
    display: none;
  }
}
/* --- Unified Article Styles --- */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.article-header {
  text-align: center;
  margin: 2rem 0 5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  display: block;
  margin-bottom: 150px;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2rem;
  transition: transform 0.2s;
}
.back-home:hover {
  transform: translateX(5px);
  text-decoration: underline;
}

.article-title {
font-size: 1.1rem;
  margin: 1rem 0;
  line-height: 1.2;
  font-weight: 800;
  max-width: 90%;
}

.section-title.centered {
  text-align: center;
  display: block;
  margin: 5rem 0 3.5rem;
  width: 100%;
}
.section-title.centered::after {
  right: 50%;
  transform: translateX(50%);
  width: 55px;
  height: 55px;
  bottom: -8px;
  opacity: 0.8;
}

.quote-block {
  border-right: 4px solid var(--secondary);
  padding: 1.5rem 2rem;
  background: rgba(236, 72, 153, 0.05);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 3rem 0;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.6;
}

.list-check {
  list-style: none;
  padding-right: 0;
  margin: 2rem 0;
}
.list-check li {
  position: relative;
  padding-right: 2.5rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}
.list-check li::before {
  content: "✓";
  position: absolute;
  right: 0.5rem;
  top: 0;
  color: var(--accent);
  font-weight: 900;
  font-size: 1.3rem;
}

/* Specific for tables in articles */
.reframing-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.reframing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
}
.reframing-table th,
.reframing-table td {
  padding: 1.25rem;
  text-align: right;
  border-bottom: 1px solid var(--border-light);
}
.reframing-table th {
  background: var(--primary);
  color: white;
  font-weight: 700;
}
.reframing-table td:first-child {
  font-weight: 700;
  color: var(--primary);
}
.old-frame {
  color: #ef4444;
  font-style: italic;
}
.new-frame {
  color: #10b981;
  font-weight: 600;
}
