/* === THEME: Golden Heritage — Kazakh Ethno Merei Toi === */
/* Gold + Turquoise, national ornaments, ceremonial feel */
html { background: #C4B99A; }

:root {
  --bg: #FBF8F0;
  --bg-alt: #F0EBDD;
  --text: #3A3226;
  --text-muted: #8A7D6B;
  --accent: #C4943A;
  --accent-light: #E2CFA0;
  --accent-dark: #9A7228;
  --heading: #3D2B14;
  --teal: #1A8C8C;
  --teal-light: #7ECFCF;
  --teal-dark: #0E6B6B;
  --white: #FFFDF7;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* === ETHNO ORNAMENT BORDER (3x center) === */
.ethno-border {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.35;
}

.ethno-border img {
  width: 70px;
  height: auto;
}

.ethno-border-top { margin-bottom: 20px; }
.ethno-border-bottom { margin-top: 16px; transform: scaleY(-1); }

/* === ETHNO SVG ORNAMENTS === */
.ethno-section-divider {
  display: block;
  width: 80px;
  height: auto;
  margin: 0 auto 24px;
  opacity: 0.2;
}

/* === SVG ORNAMENT DIVIDERS === */
.svg-ornament {
  display: block;
  margin: 0 auto;
  overflow: visible;
}

.svg-ornament-sm {
  width: 120px;
  height: 20px;
}

.svg-ornament-md {
  width: 200px;
  height: 24px;
}

/* === HERO CORNER ORNAMENTS === */
.hero-corner {
  position: absolute;
  width: 70px;
  height: 70px;
  opacity: 0.2;
}

.hero-corner-tl { top: 16px; left: 16px; }
.hero-corner-tr { top: 16px; right: 16px; transform: scaleX(-1); }
.hero-corner-bl { bottom: 56px; left: 16px; transform: scaleY(-1); }
.hero-corner-br { bottom: 56px; right: 16px; transform: scale(-1); }

/* === ORNAMENT — ethno diamond === */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
}

.ornament::before,
.ornament::after {
  content: '';
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}

.ornament-diamond {
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  border: 1px solid var(--accent-dark);
}

.ornament-lg .ornament-diamond {
  width: 12px;
  height: 12px;
}

.ornament-lg::before,
.ornament-lg::after {
  width: 70px;
}

/* === TEAL ACCENT STRIP === */
.hero-teal-strip {
  width: 60%;
  max-width: 240px;
  height: 3px;
  margin: 0 auto 8px;
  background: linear-gradient(90deg, transparent, var(--teal-light), var(--teal), var(--teal-light), transparent);
  border-radius: 2px;
  opacity: 0.5;
}

/* === HERO SECTION === */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(26, 140, 140, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(196, 148, 58, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 30%, var(--bg) 70%, var(--bg-alt) 100%);
  position: relative;
}

.hero-yurt {
  width: 64px;
  height: auto;
  margin-bottom: 8px;
  opacity: 0.6;
}

.hero-label {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-names {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-ampersand {
  display: none;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 16px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: gentle-bounce 2.5s ease-in-out infinite;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-light);
}

@keyframes gentle-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* === SECTION SPACING === */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
  text-align: center;
  margin-bottom: 24px;
}

/* === INVITATION TEXT === */
.invitation {
  text-align: center;
  padding: 56px 0;
}

.invitation-hosts {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.invitation-hosts-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.invitation-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
  max-width: 340px;
  margin: 24px auto 0;
}

/* === EVENT DETAILS === */
.event-details {
  text-align: center;
}

.event-item {
  margin-bottom: 28px;
}

.event-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.event-value {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--heading);
}

.event-value-sm {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

/* === COUNTDOWN === */
.countdown-section {
  text-align: center;
  padding: 48px 0;
  background: var(--bg-alt);
}

.countdown-label {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent-light);
  background: var(--white);
}

.cd-item span:first-child {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1;
}

.cd-item span:last-child {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* === LOCATION === */
.location {
  text-align: center;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 50px;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 20px;
}

.map-btn:hover {
  background: var(--teal-dark);
}

.map-btn:active {
  transform: scale(0.97);
}

.map-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

/* === CALENDAR ICON === */
.cal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  opacity: 0.5;
}

.cal-icon:hover {
  background: var(--accent);
  color: var(--white);
  opacity: 1;
}

.cal-icon svg {
  fill: currentColor;
}

/* === PERSONAL MESSAGE === */
.personal-msg {
  text-align: center;
  padding: 52px 0;
}

.personal-msg-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.9;
  color: var(--heading);
  max-width: 320px;
  margin: 0 auto;
}

/* === RSVP === */
.rsvp-section .rsvp-submit {
  background: var(--accent);
}

.rsvp-section .rsvp-submit:hover {
  background: var(--accent-dark);
}

/* === FOOTER === */
.template-footer {
  text-align: center;
  padding: 32px 20px 80px;
  border-top: 1px solid var(--accent-light);
}

.template-footer-brand {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.template-footer-brand a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === MUSIC BUTTON === */
.music-btn {
  background: var(--accent);
  border: none;
}

.music-btn svg {
  fill: var(--white);
}

/* === RESPONSIVE === */
@media (max-width: 380px) {
  .hero-label {
    font-size: 60px;
  }
  .hero-names {
    font-size: 36px;
  }
  .hero-corner {
    width: 60px;
    height: 60px;
  }
  .cd-item {
    width: 64px;
    height: 64px;
  }
  .cd-item span:first-child {
    font-size: 20px;
  }
}
