/**
 * GetIDA-Faithful Design System for Torah Study Platform
 * Faithful recreation of GetIDA.com aesthetic with Torah content
 */

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* GetIDA Colors */
  --color-dark: #2B2925;
  --color-orange: #DD8B26;
  --color-cream: #F4EDE5;
  --color-white: #FFFFFF;
  --color-text-dark: #2B2925;
  --color-text-light: #62605C;

  /* Typography */
  --font-primary: 'DM Sans', -apple-system, system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 64px;
  --spacing-xxl: 80px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.main-nav {
  background: var(--color-dark);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
}

.logo-hebrew {
  color: var(--color-orange);
  font-size: 32px;
}

.logo-text {
  color: var(--color-white);
}

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

.nav-links a {
  color: var(--color-cream);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--color-cream);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: #C77A1F;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(221, 139, 38, 0.3);
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero-main {
  background: linear-gradient(135deg, var(--color-dark) 0%, #3a3632 100%);
  padding: 120px 40px;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-headline {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-highlight {
  display: block;
  color: var(--color-orange);
  margin-top: 8px;
}

.hero-subtext {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-cream);
  margin-bottom: 32px;
  max-width: 540px;
  opacity: 0.95;
}

.btn-hero {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(221, 139, 38, 0.4);
}

.btn-hero:hover {
  background: #C77A1F;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(221, 139, 38, 0.5);
}

.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.hero-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, rgba(221, 139, 38, 0.2) 0%, rgba(212, 175, 55, 0.2) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.floating-hebrew {
  font-size: 180px;
  color: var(--color-orange);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.hero-decoration {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(221, 139, 38, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   CONTAINER UTILITIES
   ═══════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ═══════════════════════════════════════════
   VALUE PROPOSITION SECTION
   ═══════════════════════════════════════════ */
.value-section {
  padding: var(--spacing-xxl) 40px;
  background: var(--color-white);
  text-align: center;
}

.section-heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text-dark);
  margin-bottom: 24px;
}

.section-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.btn-secondary {
  background: transparent;
  color: var(--color-orange);
  border: 2px solid var(--color-orange);
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  transition: all 0.3s ease;
}

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

/* ═══════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════ */
.features-section {
  padding: var(--spacing-xxl) 40px;
  background: var(--color-cream);
}

.section-title-center {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-orange) 0%, #E89A3A 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-white);
}

.feature-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.feature-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* ═══════════════════════════════════════════
   AUDIENCE SECTION
   ═══════════════════════════════════════════ */
.audience-section {
  padding: var(--spacing-xxl) 40px;
  background: var(--color-white);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.audience-card {
  background: var(--color-cream);
  padding: 48px 40px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.audience-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.audience-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.link-arrow {
  color: var(--color-orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: gap 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-arrow:hover {
  gap: 12px;
}

/* ═══════════════════════════════════════════
   STATS SECTION
   ═══════════════════════════════════════════ */
.stats-section {
  padding: var(--spacing-xxl) 40px;
  background: var(--color-dark);
  text-align: center;
  color: var(--color-white);
}

.stats-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-cream);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.stats-number {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 900;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 16px;
}

.stats-description {
  font-size: 18px;
  color: var(--color-cream);
  opacity: 0.9;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS SECTION
   ═══════════════════════════════════════════ */
.testimonials-section {
  padding: var(--spacing-xxl) 40px;
  background: var(--color-cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 40px auto;
}

.testimonial-card {
  background: var(--color-white);
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stars {
  color: var(--color-orange);
  font-size: 20px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
}

.testimonials-cta {
  text-align: center;
  margin-top: 40px;
}

/* ═══════════════════════════════════════════
   TRUST SECTION
   ═══════════════════════════════════════════ */
.trust-section {
  padding: var(--spacing-xxl) 40px;
  background: var(--color-white);
  text-align: center;
}

.trust-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 24px auto 40px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.badge-item {
  text-align: center;
}

.badge-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.badge-item p {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
}

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */
.cta-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, var(--color-orange) 0%, #C77A1F 100%);
  text-align: center;
  color: var(--color-white);
}

.cta-heading {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 36px;
}

.btn-cta-large {
  background: var(--color-white);
  color: var(--color-orange);
  padding: 18px 48px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-cta-large:hover {
  background: var(--color-cream);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.main-footer {
  background: var(--color-dark);
  color: var(--color-cream);
  padding: var(--spacing-xxl) 40px 40px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-cream);
  opacity: 0.8;
  max-width: 350px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 15px;
  color: var(--color-cream);
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--color-orange);
  opacity: 1;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
  color: var(--color-cream);
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    flex-direction: column;
    gap: 30px;
  }

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