/* ========================================

/* Variables */
:root {
  --color-primary: #1a1a1a;
  --color-text: #2c2c2c;
  --color-light: #666;
  --color-bg: #ffffff;
  --color-accent: #d4a574;
  --font-serif: 'Prata', serif;
  --font-sans: 'Noto Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}


/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Global kazakh serif italic accents */
.invite-subtitle,
.invite-main-text,
.location-address,
.location-hint,
.footer-text {
  font-family: var(--font-serif);
  font-style: italic;
}

/* Container Utilities */
.container-small {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-medium {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Ornamental side images for container-medium */
.container-medium {
  position: relative;
}

.container-medium::before,
.container-medium::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 240px;
  background-image: url('/assets/images/bg-pattern1.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
}

.container-medium::before {
  left: -140px;
}

.container-medium::after {
  right: -140px;
}

/* Hero Fullscreen */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content-center {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: 120px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin: 0 0 20px;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 60px;
  text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
  animation: fadeInUp 1.2s ease-out;
}

.scroll-down {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.1em;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  animation: fadeInUp 1.5s ease-out, bounce 2s infinite 2s;
}

.scroll-down:hover {
  opacity: 1;
}

.scroll-down svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Content Blocks */
.content-block {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
}


.block-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}

.content-block > * {
  position: relative;
  z-index: 1;
}

/* Typography */
.block-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 40px;
  color: var(--color-primary);
}

.block-title-sm {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 50px;
  color: var(--color-primary);
}

.block-subtitle-label {
    padding-top: 20px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-light);
}

/* Invitation Text */
.invite-text-group {
  max-width: 700px;
  margin: 0 auto;
}

.invite-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-light);
  margin-bottom: 30px;
}

.invite-main-text {
  font-family: 'Noto Serif', serif;
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  line-height: 2;
  color: var(--color-text);
}

.invite-main-text strong {
  font-weight: 600;
  color: var(--color-primary);
}

/* Event Time */
.event-datetime {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  color: var(--color-primary);
}

/* Countdown */
.countdown-display {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

/* Calendar (like Madiyar-Assel) */
.calendar-block {
  padding-top: 60px;
  padding-bottom: 60px;
}

.calendar-widget-new {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 20px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-weekdays .weekday {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-light);
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-day-new {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}

.calendar-day-new.muted { visibility: hidden; }

.calendar-day-new:hover { background: #fafafa; transform: translateY(-1px); transition: transform .15s ease, background .15s ease; }

.calendar-day-new.event {
  position: relative;
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.calendar-day-new.event::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: 70%;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 29.6'%3E%3Cpath fill='%23d4a574' d='M23.6,0c-2.9,0-5.4,1.7-6.6,4.1C15.8,1.7,13.3,0,10.4,0C5.9,0,2.3,3.6,2.3,8.1 c0,9,14.7,21.5,14.7,21.5S32,17.1,32,8.1C32,3.6,28.4,0,23.9,0H23.6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.countdown-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-light);
}

/* Program Timeline */
.program-timeline-vertical {
  max-width: 500px;
  margin: 0 auto;
}

.program-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  margin-bottom: 15px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.program-step:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.program-time-badge {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-accent);
}

.program-event-name {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text);
  text-align: right;
}

/* Location */
.location-details {
  max-width: 600px;
  margin: 30px auto 0;
}

.location-address {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 15px;
}

.location-hint {
  font-size: 14px;
  color: var(--color-light);
  margin-bottom: 25px;
}

.btn-location {
  display: inline-block;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #bf9465;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-location:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Hosts */
.hosts-names {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  color: var(--color-primary);
}

.hosts-names .separator {
  margin: 0 15px;
  color: var(--color-accent);
}

/* Form */
.rsvp-form-new {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  padding: 50px 40px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-alert {
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 30px;
  font-size: 15px;
  text-align: center;
}

.success-alert {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-alert {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-row {
  margin-bottom: 30px;
  text-align: left;
}

.form-label-new {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.form-input-new {
  width: 100%;
  padding: 15px 18px;
  font-size: 16px;
  font-family: var(--font-sans);
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.form-input-new:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

.radio-options-new {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option-new {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option-new:hover {
  background: #f9f9f9;
  border-color: var(--color-accent);
}

.radio-option-new input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.radio-label-text {
  font-size: 15px;
  color: var(--color-text);
}

.btn-submit-new {
  width: 100%;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: #bf9465;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.btn-submit-new:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Footer */
.site-footer {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-text {
  font-size: 15px;
  color: var(--color-light);
  margin-bottom: 10px;
}

.footer-text a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-text a:hover {
  text-decoration: underline;
}

.footer-credit {
  font-size: 13px;
  color: var(--color-light);
  opacity: 0.7;
}

/* Music control */
/* Music control (svadba style) */
.music-fab { position: fixed; right: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%; background: #4b3a2b; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); cursor: pointer; z-index: 50; border: none; }
.music-fab:hover { filter: brightness(1.05); }
.music-fab svg { width: 26px; height: 26px; }

/* Language switcher (svadba style) */
.lang-fab { position: fixed; right: 16px; bottom: 80px; width: 48px; height: 48px; border-radius: 50%; background: #ffffff; color: #4b3a2b; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.18); cursor: pointer; z-index: 55; font-weight: 700; font-family: 'Noto Sans', system-ui, sans-serif; text-decoration: none; }
.lang-fab:hover { filter: brightness(1.03); }

/* Responsive */
@media (max-width: 768px) {
  .hero-main-title {
    font-size: 72px;
  }
  
  .hero-subtitle {
    font-size: 18px;
    letter-spacing: 0.2em;
  }
  
  .block-title {
    font-size: 36px;
    font-family: 'Caveat', cursive;
  }
  
  .block-title-sm {
    font-size: 28px;
  }
  
  .content-block {
    padding: 60px 20px;
  }
  
  .countdown-display {
    gap: 5px;
  }
  
  .countdown-number {
    font-size: 48px;
  }
  
  .program-step {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .program-event-name {
    text-align: center;
  }
  
  .rsvp-form-new {
    padding: 40px 25px;
  }
  
  .event-datetime {
    font-size: 24px;
  }

  /* Ensure side ornaments are visible on tablets */
  .container-medium::before,
  .container-medium::after {
    width: 80px;
    height: 160px;
    opacity: 0.22;
  }

  .container-medium::before { left: -90px; }
  .container-medium::after { right: -90px; }
}

@media (max-width: 480px) {
  .hero-main-title {
    font-family: 'Great Vibes', cursive;
    font-size: 80px;
    font-weight: 400;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1;
  }
  
  .hero-subtitle {
    font-size: 26px;
    font-family: 'Caveat', cursive;
    font-weight: 400;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .countdown-number {
    font-size: 36px;
  }
  
  .countdown-unit {
    min-width: 70px;
  }

  /* Ensure side ornaments are visible on phones */
  .container-medium::before,
  .container-medium::after {
    width: 60px;
    height: 120px;
    opacity: 0.2;
  }

  
  .container-medium.block-in::before { 
    content: '';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 240px;
    background-image: url('/assets/images/bg-pattern1.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;}
  .container-medium.block-in::after { 
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 240px;
    background-image: url('/assets/images/bg-pattern1.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;}
    .content-block.event-time-block::before {
        content: '';
        position: absolute;
        top: 70%;
        transform: translateY(-60%);
        width: 100%;
        height: 100%;
        background-image: url(/assets/images/bg-pattern2.png);
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.5;
        pointer-events: none;
    }
    .content-block.countdown-block::before {
        content: '';
        left: 0;
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url(/assets/images/noroot.png);
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.3;
        pointer-events: none;
    }
    .content-block.hosts-block::before {
        content: '';
        left: 25%;
        top: 5%;
        position: absolute;
        width: 100%;
        height: 100%;
        /* background-image: url(/assets/images/ornament.png); */
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 1.3;
        pointer-events: none;
    }
}


/* -------- Reveal on scroll (text blocks) -------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
/* Stagger support via CSS variable */
.reveal { transition-delay: var(--reveal-delay, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

