/* =============================================
   Wedding Invite — Mariam & Karen — 05.09.2026
   Custom CSS: animations, decorative elements,
   font-face declarations, overrides
   ============================================= */

/* ---------- Local Armenian font (glyphs only via unicode-range) ---------- */
@font-face {
  font-family: 'SHK Dzeragir';
  src: url('../fonts/SHK_Dzeragir.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0530-058F, U+FB13-FB17;
}

/* ---------- CSS Variables ---------- */
:root {
  --gold:       #c9a84c;
  --gold-light: #e8d5a3;
  --gold-dark:  #9a7a32;
  --cream:      #fdf8f2;
  --blush:      #f5e6e0;
  --text-dark:  #3a2e26;
  --text-mid:   #6b5744;
  --text-light: #a08070;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
.font-display {
  font-family: 'SHK Dzeragir', 'Cormorant Garamond', serif;
}

/* ---------- Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Decorative dividers ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin: 32px auto;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.divider::after {
  background: linear-gradient(to left, transparent, var(--gold));
}

.divider-icon {
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}

/* Botanical leaf ornament */
.ornament {
  display: inline-block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  vertical-align: middle;
  margin: 0 12px;
}

/* ---------- Hero section ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1209;
  overflow: hidden;
}

#hero .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.45;
  transition: opacity 1s ease;
}

#hero .hero-bg.loaded {
  opacity: 0.55;
}

.hero-names {
  font-family: 'SHK Dzeragir', 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  letter-spacing: 0.02em;
}

.hero-ampersand {
  font-family: 'SHK Dzeragir', 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 0.9;
  display: block;
}

.hero-date {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* Scroll arrow animation */
.scroll-arrow {
  animation: bounce 2s infinite;
}

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

/* ---------- Music toggle button ---------- */
#music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.9);
  border: 2px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: background 0.3s, transform 0.2s;
  backdrop-filter: blur(6px);
}

#music-btn:hover {
  background: var(--gold-dark);
  transform: scale(1.08);
}

#music-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ---------- Countdown ---------- */
.countdown-block {
  background: linear-gradient(135deg, #fff9f0, #fdf0e0);
  border: 1px solid var(--gold-light);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.12);
}

.countdown-number {
  font-family: 'SHK Dzeragir', 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  color: var(--gold-dark);
  line-height: 1;
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---------- Section headings ---------- */
.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'SHK Dzeragir', 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
}

/* ---------- Couple section ---------- */
.couple-photo-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.couple-photo-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-light);
  z-index: 2;
  pointer-events: none;
  border-radius: 2px;
}

.couple-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(8%) brightness(1.02);
}

/* Placeholder when no photo yet */
.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5efe8, #ede0d0);
  color: var(--text-light);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
  gap: 12px;
}

/* ---------- Details cards ---------- */
.detail-card {
  background: #fff;
  border: 1px solid var(--gold-light);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(201,168,76,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.18);
}

.detail-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Map section ---------- */
#location iframe {
  border-radius: 12px;
  filter: sepia(15%) saturate(0.9);
  transition: filter 0.3s;
}

#location iframe:hover {
  filter: sepia(0%) saturate(1);
}

/* ---------- RSVP Form ---------- */
.rsvp-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e0d0c0;
  border-radius: 8px;
  background: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.rsvp-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.rsvp-input.is-invalid {
  border-color: #c45c4a;
  box-shadow: 0 0 0 3px rgba(196, 92, 74, 0.15);
}

.rsvp-error {
  display: none;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #c45c4a;
}

.rsvp-error.show {
  display: block;
}

.rsvp-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rsvp-input::placeholder {
  color: var(--text-light);
}

.rsvp-radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.rsvp-radio {
  flex: 1;
  min-width: 140px;
  position: relative;
  cursor: pointer;
}

.rsvp-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rsvp-radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: 1px solid #e0d0c0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.25s;
  user-select: none;
}

.rsvp-radio input[type="radio"]:checked + .rsvp-radio-label {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fffdf5, #fdf5e0);
  color: var(--gold-dark);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.25);
}

.rsvp-radio-label:hover {
  border-color: var(--gold-light);
  background: #fffdf5;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(154,122,50,0.35);
}

.btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

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

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Floral corner decorations ---------- */
.corner-decoration {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.18;
  pointer-events: none;
}

.corner-decoration.top-left  { top: 0; left: 0; transform: rotate(0deg); }
.corner-decoration.top-right { top: 0; right: 0; transform: rotate(90deg); }
.corner-decoration.bot-left  { bottom: 0; left: 0; transform: rotate(270deg); }
.corner-decoration.bot-right { bottom: 0; right: 0; transform: rotate(180deg); }

/* ---------- Gold rule ---------- */
.gold-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0;
}

/* ---------- Success message ---------- */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 480px) {
  .countdown-block {
    padding: 20px 6px;
  }

  /* «Վայրկյան» — самая длинная подпись, иначе не влезает в карточку */
  .countdown-label {
    font-size: 0.55rem;
    letter-spacing: 0.06em;
  }
}
