/**
 * ============================================
 * Custom Fixes - CSS
 * ============================================
 * תיקונים ושיפורים מותאמים אישית
 */

/* ============================================
   0. Site Notice Bar
   ============================================ */
.site-notice-bar {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  color: #FFFFFF;
  padding: 1rem 0;
  text-align: center;
  font-family: 'Assistant', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1002;
}

.site-notice-bar p {
  margin: 0;
  line-height: 1.5;
  animation: notice-pulse 3s ease-in-out infinite;
}

@keyframes notice-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

@media (max-width: 768px) {
  .site-notice-bar {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }

  .site-notice-bar p {
    line-height: 1.4;
  }
}

/* ============================================
   1. Header - Logo + SAF Text
   ============================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-family-heading, 'Heebo', sans-serif);
}

.logo-text-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-silver, #C0C0C0);
  line-height: 1.2;
}

.logo-text-sub {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gold-champagne, #C9A961);
  line-height: 1.2;
}

/* ============================================
   2. Header - Centered Navigation
   ============================================ */
.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

/* Logo - pushed to the right */
.logo {
  justify-self: end; /* Far right in RTL */
}

/* Nav - centered */
.nav {
  justify-self: center;
  display: flex;
  justify-content: center;
}

/* Buttons - pushed to the left */
.header-actions {
  justify-self: start; /* Far left in RTL */
  display: flex;
  gap: 1rem;
}

/* ============================================
   3. Container Size Reduction - HERO SECTION
   ============================================ */
.hero .container {
  max-width: 1000px !important; /* Reduced from 1200px */
}

.hero {
  padding: 4rem 0 3rem; /* Less padding */
}

.hero-content {
  max-width: 850px; /* More compact */
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important; /* Slightly smaller */
}

/* ============================================
   4. Footer Link Hover Effect - KEEP ARROW + ADD COLOR
   ============================================ */
.footer-links a {
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-champagne, #C9A961) !important;
  transform: translateX(-5px);
}

/* The arrow already exists in the HTML - just change its color on hover */
.footer-links a:hover i {
  color: var(--gold-champagne, #C9A961);
}

/* ============================================
   5. Number Counter Animation
   ============================================ */
.stat-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   6. Newsletter Form
   ============================================ */
.footer-newsletter {
  max-width: 350px;
}

.newsletter-desc {
  font-size: 0.875rem;
  color: var(--text-muted, #94A3B8);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.newsletter-form {
  width: 100%;
}

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #FAFAF9);
  font-size: 0.875rem;
  font-family: 'Assistant', sans-serif;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--gold-champagne, #C9A961);
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-input::placeholder {
  color: var(--text-muted, #94A3B8);
}

.newsletter-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--gold-champagne, #C9A961), var(--gold-dark, #B8975A));
  color: var(--primary-dark, #0F172A);
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.newsletter-note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted, #94A3B8);
  font-style: italic;
}

/* ============================================
   7. About Page - Story Section Layout
   ============================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.story-content {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.story-content h2 {
  margin-bottom: 1.5rem;
  color: var(--gold-champagne, #C9A961);
}

.story-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-silver, #C0C0C0);
}

.story-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-secondary, #CBD5E1);
}

.story-highlight {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(201, 169, 97, 0.05));
  border-right: 4px solid var(--gold-champagne, #C9A961);
  border-radius: 8px;
}

.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-self: center;
}

/* ============================================
   8. Responsive
   ============================================ */
@media (max-width: 1024px) {
  .logo-text {
    display: none; /* Hide text on tablets */
  }

  .header-content {
    gap: 1rem;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-actions {
    display: none; /* Hidden in mobile, using bottom nav instead */
  }

  .hero {
    min-height: auto;
    padding: 4rem 0 2rem;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
  }

  .story-stats {
    grid-template-columns: 1fr;
  }
}
