/* ============================================================
   santaclaus.am — Christmas Donation Platform
   Styles based on original santa_final.html design
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Rubik:wght@400;500;600;700;800&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #e7e2d8;
  font-family: 'Rubik', sans-serif;
  color: #2d2d2d;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(16, 27, 61, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 32px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand svg {
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font: 600 14px 'Rubik', sans-serif;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  opacity: 1;
}

.nav-link.donate-link {
  background: #e0524a;
  color: #fff;
  padding: 8px 18px;
}

.nav-link.donate-link:hover {
  background: #c94139;
  transform: translateY(-1px);
}

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

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Mobile Nav --- */
@media (max-width: 991px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(16, 27, 61, 0.98);
    padding: 16px;
    gap: 4px;
    backdrop-filter: blur(10px);
  }

  .navbar-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
  }
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 480px;
  margin-top: 64px;
  background: linear-gradient(180deg, #2745e8, #3a5bf0, #dde5ef);
  display: grid;
  grid-template-areas: "hero";
  overflow: hidden;
}

.hero-svg {
  grid-area: hero;
  width: 100%;
  line-height: 0;
}

.hero-svg svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Hero content overlay */
.hero-content {
  grid-area: hero;
  z-index: 2;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.hero-content .container {
  width: 100%;
  pointer-events: auto;
}

.hero-content-inner {
  text-align: center;
  color: #fff;
  pointer-events: auto;
}

/* Two-column hero layout: title left, form right */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 48px;
  align-items: center;
}

.hero-info {
  pointer-events: auto;
  color: #fff;
}

.hero-form {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  pointer-events: auto;
}

.hero-form .form-group {
  margin-bottom: 20px;
}

.hero-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #101b3d;
  margin-bottom: 8px;
}

.hero-form input,
.hero-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #dde5ef;
  border-radius: 12px;
  font: 15px 'Rubik', sans-serif;
  color: #101b3d;
  background: #f8faff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.hero-form input:focus,
.hero-form textarea:focus {
  border-color: #2846E9;
  box-shadow: 0 0 0 3px rgba(40,70,233,0.1);
}

.hero-form textarea {
  min-height: 130px;
  resize: vertical;
}

.hero-form button[type="submit"] {
  font-size: 17px;
  padding: 16px 28px;
  border-radius: 14px;
}

/* Hero countdown banner */
.hero-countdown {
  text-align: center;
  color: #ffd166;
  font-size: 17px;
  font-weight: 500;
  padding: 12px 28px;
  margin-bottom: 24px;
  background: rgba(16,27,61,0.35);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  display: inline-block;
  pointer-events: auto;
  white-space: nowrap;
}

.hero-countdown strong {
  color: #fff;
  font-weight: 700;
  font-size: 22px;
}

.hero-title {
  font-family: 'Caveat', cursive;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 17px 'Rubik', sans-serif;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  background: #e0524a;
  color: #fff;
  transition: transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(224,82,74,0.4);
}

.hero-btn:hover {
  transform: translateY(-2px);
}

/* --- Sled animation wrapper --- */
.sled-animation {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.sled-group {
  position: absolute;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* --- Countdown Bar --- */
.countdown-bar {
  background: linear-gradient(135deg, #2846E9, #3a5bf0);
  padding: 12px 0;
  text-align: center;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: rgba(255,255,255,0.5);
}

.section-title {
  font-family: 'Caveat', cursive;
  font-size: 42px;
  font-weight: 700;
  color: #101b3d;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #5c6b82;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Card --- */
.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.card-body {
  padding: 32px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #101b3d;
  margin-bottom: 12px;
}

.card-text {
  font-size: 14px;
  color: #5c6b82;
  line-height: 1.7;
}

/* --- Steps / How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #2846E9, #3a5bf0);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #101b3d;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: #5c6b82;
  line-height: 1.7;
}

/* --- Rules Section --- */
.rules-list {
  max-width: 800px;
  margin: 0 auto;
}

.rule-item {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.rule-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #e0524a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.rule-text {
  font-size: 14px;
  color: #5c6b82;
  line-height: 1.6;
  padding-top: 5px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 16px 'Rubik', sans-serif;
  padding: 14px 30px;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #e0524a;
  color: #fff;
  box-shadow: 0 4px 15px rgba(224,82,74,0.3);
}

.btn-primary:hover {
  background: #c94139;
}

.btn-secondary {
  background: #2846E9;
  color: #fff;
  box-shadow: 0 4px 15px rgba(40,70,233,0.3);
}

.btn-secondary:hover {
  background: #1a3fd6;
}

.btn-outline {
  background: transparent;
  color: #2846E9;
  border: 2px solid #2846E9;
}

.btn-outline:hover {
  background: #2846E9;
  color: #fff;
}

.btn-gold {
  background: #ffd166;
  color: #101b3d;
  box-shadow: 0 4px 15px rgba(255,209,102,0.4);
}

.btn-gold:hover {
  background: #f0c24f;
}

.btn-white {
  background: #fff;
  color: #2846E9;
}

.btn-white:hover {
  background: #eef1f6;
}

/* --- Letter Writing Section --- */
.letter-section {
  background: linear-gradient(135deg, #2846E9, #3a5bf0);
  color: #fff;
  position: relative;
}

.letter-section::before {
  content: '❄️';
  position: absolute;
  font-size: 200px;
  opacity: 0.07;
  top: 20px;
  right: 40px;
  transform: rotate(20deg);
  pointer-events: none;
  line-height: 1;
}

/* Extra decorative snowflakes on the letter section */
.letter-section::after {
  content: '❄️';
  position: absolute;
  font-size: 100px;
  opacity: 0.04;
  bottom: 20px;
  left: 40px;
  transform: rotate(-10deg);
  pointer-events: none;
  line-height: 1;
}

.letter-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.letter-info h2 {
  font-family: 'Caveat', cursive;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.letter-info p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 24px;
}

.letter-form {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  max-width: 520px;
  justify-self: end;
  width: 100%;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #dde5ef;
  border-radius: 10px;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  color: #2d2d2d;
  background: #f4f6fc;
  transition: border-color 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2846E9;
  background: #fff;
}

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

.form-group .required::after {
  content: ' *';
  color: #e0524a;
}

/* --- Donation Section --- */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.donation-card {
  background: #fff;
  border: 2px solid #dde5ef;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.donation-card:hover,
.donation-card.active {
  border-color: #2846E9;
  box-shadow: 0 4px 20px rgba(40,70,233,0.15);
}

.donation-amount {
  font-size: 36px;
  font-weight: 800;
  color: #101b3d;
  margin-bottom: 4px;
}

.donation-currency {
  font-size: 16px;
  color: #5c6b82;
  font-weight: 400;
}

.donation-label {
  font-size: 13px;
  color: #5c6b82;
  margin-top: 8px;
}

/* --- Sponsor / Partner Grid --- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.partner-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
}

.partner-icon {
  width: 64px;
  height: 64px;
  background: #eef1f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.partner-name {
  font-size: 15px;
  font-weight: 600;
  color: #101b3d;
  margin-bottom: 4px;
}

.partner-desc {
  font-size: 12px;
  color: #5c6b82;
}

/* --- Volunteer Grid --- */
.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.volunteer-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.volunteer-card:hover {
  transform: translateY(-4px);
}

.volunteer-avatar {
  width: 100%;
  height: 200px;
  background: #eef1f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.volunteer-info {
  padding: 20px 24px;
}

.volunteer-name {
  font-size: 16px;
  font-weight: 700;
  color: #101b3d;
  margin-bottom: 4px;
}

.volunteer-role {
  font-size: 13px;
  color: #5c6b82;
  margin-bottom: 12px;
}

/* --- Contact Form --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  background: linear-gradient(135deg, #2846E9, #3a5bf0);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
}

.contact-info-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item-text {
  font-size: 14px;
  opacity: 0.9;
  padding-top: 8px;
}

.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* --- Facebook Widget --- */
.fb-widget {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.fb-widget h3 {
  font-size: 16px;
  font-weight: 700;
  color: #101b3d;
  margin-bottom: 16px;
}

.fb-placeholder {
  background: #eef1f6;
  border-radius: 8px;
  padding: 40px 20px;
  color: #5c6b82;
  font-size: 14px;
}

/* --- Footer --- */
.footer {
  background: #101b3d;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}

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

.footer-brand {
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* --- Snow Canvas --- */
#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* --- Page Header (for inner pages) --- */
.page-header {
  margin-top: 64px;
  background: linear-gradient(135deg, #2846E9, #3a5bf0);
  padding: 80px 0 60px;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-family: 'Caveat', cursive;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-title { font-size: 48px; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; max-width: 520px; margin: 0 auto; }
  .hero-countdown { margin-bottom: 20px; font-size: 16px; }
  .hero-form { max-width: 100%; }
  .letter-layout { grid-template-columns: 1fr; }
  .letter-form { max-width: 100%; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 15px; }
  .hero-section { min-height: 350px; }
  .hero-form { padding: 24px; }
  .hero-form textarea { min-height: 100px; }
  .hero-countdown { font-size: 14px; padding: 8px 18px; white-space: normal; }
  .hero-countdown strong { font-size: 17px; }
  .hero-layout { gap: 24px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 32px; }
  .steps-grid { grid-template-columns: 1fr; }
  .donation-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .volunteer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-header { padding: 60px 0 40px; }
  .page-header h1 { font-size: 36px; }
  .hero-content-inner { padding: 0 20px; }
  .letter-form { padding: 24px; }
  #snow-canvas { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-layout { gap: 20px; }
  .hero-form { padding: 20px; border-radius: 14px; }
  .hero-form textarea { min-height: 90px; }
  .hero-countdown { font-size: 12px; padding: 6px 14px; margin-bottom: 16px; white-space: normal; }
  .hero-countdown strong { font-size: 14px; }
  .partner-grid { grid-template-columns: 1fr; }
}

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

@keyframes snowfall {
  0% { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(100vh) rotate(360deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
