/* ==========================================
   HOPE - Speranță Website Styles
   ========================================== */

/* ---------- Base / Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Focus styles pentru accessibility */
:focus-visible {
  outline: 3px solid #2c5aa0;
  outline-offset: 3px;
}

/* Screen reader only */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #2c5aa0;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 9999;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------- Layout ---------- */
.container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 24px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-word {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.05em;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.main-nav a:hover,
.main-nav a:focus {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(64px, 15vw, 160px);
  font-weight: 900;
  margin: 0 0 24px;
  letter-spacing: 0.15em;
  line-height: 1;
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 20px);
  flex-wrap: wrap;
}

.hero-letter {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-letter:nth-child(1) { animation-delay: 0s; }
.hero-letter:nth-child(2) { animation-delay: 0.2s; }
.hero-letter:nth-child(3) { animation-delay: 0.4s; }
.hero-letter:nth-child(4) { animation-delay: 0.6s; }

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-tagline {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  margin: 0 0 16px;
  opacity: 0.95;
}

.hero-description {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0.9;
}

/* ---------- Section Titles ---------- */
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin: 0 0 16px;
  color: #2c5aa0;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  text-align: center;
  color: #4a5568;
  margin: 0 0 48px;
  max-width: 700px;
  margin-inline: auto;
}

/* ---------- Statistics Section ---------- */
.stats-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
}

.stats-section .section-title,
.stats-section .section-subtitle {
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
}

.stat-label {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.95;
  font-weight: 500;
}

/* ---------- Meaning Section ---------- */
.meaning-section {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.meaning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.meaning-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.meaning-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(44, 90, 160, 0.15);
  border-color: #2c5aa0;
}

.card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.meaning-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #2c5aa0;
}

.meaning-card p {
  margin: 0;
  color: #4a5568;
  line-height: 1.7;
}

/* ---------- Timeline Section ---------- */
.timeline-section {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2c5aa0 0%, #667eea 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: calc(50% - 40px);
}

.timeline-left {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-right {
  left: calc(50% + 40px);
  padding-left: 40px;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #2c5aa0 0%, #667eea 100%);
  border: 4px solid #ffffff;
  border-radius: 50%;
  top: 0;
  box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.2);
  animation: pulse 2s infinite;
}

.timeline-left .timeline-marker {
  right: -12px;
}

.timeline-right .timeline-marker {
  left: -12px;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(44, 90, 160, 0.4);
  }
}

.timeline-content {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  box-shadow: 0 12px 28px rgba(44, 90, 160, 0.2);
  transform: scale(1.02);
  border-color: #2c5aa0;
}

.timeline-date {
  display: inline-block;
  background: linear-gradient(135deg, #2c5aa0 0%, #667eea 100%);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a1a2e;
}

.timeline-content p {
  margin: 0;
  color: #4a5568;
  line-height: 1.7;
  font-size: 15px;
}

/* ---------- Gallery Section ---------- */
.gallery-section {
  background: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.gallery-card {
  background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.gallery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-card:hover::before {
  opacity: 1;
}

.gallery-card:hover {
  transform: translateY(-12px) rotate(2deg);
  box-shadow: 0 16px 40px rgba(44, 90, 160, 0.2);
  border-color: #2c5aa0;
}

.gallery-visual {
  font-size: 64px;
  margin-bottom: 16px;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.gallery-card:hover .gallery-visual {
  transform: scale(1.2) rotate(-5deg);
}

.gallery-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #2c5aa0;
  position: relative;
  z-index: 1;
}

.gallery-card p {
  margin: 0;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ---------- Contact Section ---------- */
.contact-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.contact-wrapper {
  display: grid;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: #2c5aa0;
  margin: 0 0 24px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefits-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.benefits-list li:hover {
  border-color: #2c5aa0;
  box-shadow: 0 8px 20px rgba(44, 90, 160, 0.1);
  transform: translateX(8px);
}

.benefit-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.benefits-list strong {
  display: block;
  font-size: 18px;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.benefits-list p {
  margin: 0;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.6;
}

.hope-form {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
  font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #f7fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2c5aa0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.char-counter {
  display: block;
  font-size: 13px;
  color: #718096;
  margin-top: 6px;
  font-weight: 500;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  color: #4a5568;
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #2c5aa0 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 90, 160, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-arrow {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.form-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: #718096;
  text-align: center;
  font-style: italic;
}

/* ---------- Quotes Section ---------- */
.quotes-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
}

.quotes-section .section-title,
.quotes-section .section-subtitle {
  color: #ffffff;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.quote-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 32px;
  margin: 0;
  transition: all 0.3s ease;
}

.quote-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.quote-text {
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  margin: 0 0 16px;
  position: relative;
}

.quote-text::before {
  content: '"';
  font-size: 64px;
  position: absolute;
  top: -20px;
  left: -10px;
  opacity: 0.3;
  line-height: 1;
}

.quote-author {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  opacity: 0.9;
  margin: 0;
}

/* ---------- Stories Section ---------- */
.stories-section {
  background: #f7fafc;
}

.stories-grid {
  display: grid;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.story-card {
  background: #ffffff;
  border-left: 4px solid #2c5aa0;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.story-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateX(4px);
}

.story-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #2c5aa0;
}

.story-meta {
  font-size: 14px;
  color: #718096;
  margin: 0 0 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.story-card p {
  margin: 0 0 16px;
  color: #4a5568;
  line-height: 1.7;
}

.story-lesson {
  background: #edf2f7;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0 0;
  font-size: 15px;
}

.story-lesson strong {
  color: #2c5aa0;
}

/* ---------- Action Section ---------- */
.action-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.action-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
}

.action-card:hover {
  border-color: #2c5aa0;
  box-shadow: 0 8px 20px rgba(44, 90, 160, 0.1);
  transform: translateY(-4px);
}

.action-number {
  display: inline-block;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
  box-shadow: 0 4px 8px rgba(44, 90, 160, 0.2);
}

.action-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a1a2e;
}

.action-card p {
  margin: 0;
  color: #4a5568;
  line-height: 1.7;
}

.action-cta {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
}

.cta-text {
  font-size: clamp(18px, 2.5vw, 24px);
  margin: 0 0 16px;
  font-weight: 600;
  line-height: 1.6;
}

.cta-emphasis {
  font-size: clamp(20px, 3vw, 28px);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- Final Message ---------- */
.final-message {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.final-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin: 0 0 24px;
  line-height: 1.3;
  max-width: 900px;
  margin-inline: auto;
}

.final-text {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a2e;
  color: #ffffff;
  padding: 32px 0;
  text-align: center;
}

.footer-text {
  margin: 0 0 8px;
  opacity: 0.9;
}

.footer-note {
  margin: 0;
  font-size: 14px;
}

.footer-link {
  color: #a3bffa;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    text-align: center;
  }

  .main-nav ul {
    justify-content: center;
  }

  .hero {
    padding: 60px 0;
  }

  .section {
    padding: 48px 0;
  }

  .meaning-grid,
  .quotes-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    gap: 4px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px !important;
    padding-right: 0 !important;
    text-align: left !important;
    left: 0 !important;
  }

  .timeline-marker {
    left: 8px !important;
    right: auto !important;
  }

  .hope-form {
    padding: 24px;
  }
}

@media (min-width: 769px) {
  .meaning-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .meaning-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .quotes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .action-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  body {
    color: #000000;
    background: #ffffff;
  }

  .section {
    page-break-inside: avoid;
  }
}
