/* ==========================================================
   Pranav & Kowshika — Wedding Ceremony Program
   Stylesheet
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

html, body {
  background: #f7ecd9;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #2a1000;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ===================================
   Page container
   =================================== */
.page {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  background: #faf1de;
  background-image:
    radial-gradient(ellipse at top, #fdf6e8 0%, #f7ecd9 70%);
  min-height: 100vh;
  overflow: hidden;
}

/* Subtle leaf-pattern background overlay */
.leaf-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.0;
}

/* Full-page decorative SVG (banners, side stems, frame) */
.border-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Corner floral PNGs */
.corner-floral {
  position: absolute;
  width: 42%;
  max-width: 320px;
  height: auto;
  pointer-events: none;
  z-index: 3;
  user-select: none;
}
.corner-tl { top: 0; left: 0; }
.corner-tr { top: 0; right: 0; }
.corner-bl { bottom: 0; left: 0; }
.corner-br { bottom: 0; right: 0; }

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

/* ===================================
   Top section — arched gold banner
   =================================== */
.top-section {
  position: relative;
  padding: 30px 40px 18px;
  text-align: center;
  min-height: 240px;
}

/* Ganesha at top of section */
.ganesha-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
  position: relative;
  z-index: 3;
}
.ganesha-wrap svg {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(122, 94, 28, 0.25));
}

.title-block {
  position: relative;
  z-index: 3;
  margin-top: 4px;
}

.title-script {
  font-family: 'Great Vibes', cursive;
  font-size: 42px;
  color: #1a0800;
  line-height: 1.05;
  display: block;
  letter-spacing: 0.5px;
}

/* ===================================
   Middle content
   =================================== */
.middle {
  position: relative;
  padding: 8px 80px 16px;
  z-index: 1;
}

/* Couple names */
.couple-band {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0 4px;
}

.couple-name {
  font-family: 'Great Vibes', cursive;
  font-size: 50px;
  color: #8B1A1A;
  text-shadow: 0 1px 0 rgba(139,26,26,0.08);
  line-height: 1;
}

/* Decorative gold rule */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
}
.gold-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #c9a84c 30%, #c9a84c 70%, transparent);
}
.gold-rule-diamond {
  color: #c9a84c;
  font-size: 11px;
  letter-spacing: 4px;
}

/* ===================================
   Ritual entries
   =================================== */
.ritual {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid rgba(180,130,0,0.25);
  display: flex;
  gap: 14px;
}
.ritual:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.ritual-num {
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  color: #b8941e;
  min-width: 22px;
  padding-top: 4px;
  letter-spacing: 1.2px;
  font-weight: 500;
}
.ritual-title {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 500;
  color: #8B1A1A;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.ritual-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #2a1000;
}
.ritual-desc em {
  color: #6B0000;
  font-style: italic;
  font-weight: 500;
}

/* Saptapadi steps */
.saptapadi { margin-top: 6px; }
.step-row {
  display: flex;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #2a1000;
}
.step-num {
  color: #b8941e;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  min-width: 16px;
  padding-top: 2px;
  font-weight: 500;
}

/* ===================================
   Bottom section — arched gold banner
   =================================== */
.bottom-section {
  position: relative;
  padding: 24px 40px 36px;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.date-text {
  font-family: 'Great Vibes', cursive;
  font-size: 34px;
  color: #1a0800;
  line-height: 1.3;
  text-align: center;
  position: relative;
  z-index: 3;
}

.date-divider {
  margin: 6px auto 8px;
  width: 60%;
  position: relative;
  z-index: 3;
}

/* ===================================
   Tablet breakpoint
   =================================== */
@media (max-width: 768px) {
  .top-section {
    padding: 24px 30px 14px;
    min-height: 210px;
  }
  .ganesha-wrap svg { width: 110px; height: auto; }
  .corner-floral { width: 44%; }
  .title-script { font-size: 36px; }
  .middle { padding: 8px 50px 16px; }
  .couple-name { font-size: 42px; }
  .ritual { gap: 12px; }
  .ritual-desc { font-size: 13.5px; line-height: 1.65; }
  .step-row { font-size: 13px; }
  .bottom-section {
    padding: 22px 30px 30px;
    min-height: 160px;
  }
  .date-text { font-size: 28px; }
}

/* ===================================
   Phone breakpoint
   =================================== */
@media (max-width: 480px) {
  .top-section {
    padding: 18px 20px 12px;
    min-height: 180px;
  }
  .ganesha-wrap svg { width: 90px; height: auto; }
  .ganesha-wrap { margin-bottom: 2px; }
  .corner-floral { width: 46%; }
  .title-script { font-size: 28px; line-height: 1.05; }
  .middle { padding: 6px 28px 14px; }
  .couple-band { padding: 10px 0 4px; }
  .couple-name { font-size: 32px; line-height: 1.05; }
  .gold-rule { margin: 4px 0 12px; gap: 8px; }
  .gold-rule-diamond { font-size: 9px; letter-spacing: 3px; }
  .ritual {
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .ritual-num {
    font-size: 9px;
    min-width: 20px;
    padding-top: 3px;
    letter-spacing: 1px;
  }
  .ritual-title {
    font-size: 10px;
    letter-spacing: 1.6px;
    margin-bottom: 4px;
  }
  .ritual-desc { font-size: 13px; line-height: 1.6; }
  .step-row {
    font-size: 12.5px;
    line-height: 1.55;
    gap: 6px;
  }
  .step-num { font-size: 9.5px; min-width: 14px; }
  .bottom-section {
    padding: 18px 18px 26px;
    min-height: 140px;
  }
  .date-text { font-size: 24px; line-height: 1.25; }
}

/* ===================================
   Small phone breakpoint
   =================================== */
@media (max-width: 360px) {
  .top-section {
    padding: 16px 16px 10px;
    min-height: 160px;
  }
  .ganesha-wrap svg { width: 78px; height: auto; }
  .title-script { font-size: 24px; }
  .middle { padding: 6px 22px 12px; }
  .couple-name { font-size: 28px; }
  .ritual-desc { font-size: 12.5px; }
  .step-row { font-size: 12px; }
  .date-text { font-size: 22px; }
}

/* ===================================
   Print styles
   =================================== */
@media print {
  html, body { background: #fff; }
  .page { box-shadow: none; }
}
