@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Raleway:wght@300;400;500;600&display=swap');

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

:root {
  --blue-pale:    #e8eff5;
  --blue-light:   #bdd0df;
  --blue-mid:     #8aaec8;
  --blue-deep:    #4e72aa;
  --blue-dark:    #4e72aa;
  --gold:         #8a96a3;
  --gold-light:   #b8c2cc;
  --text-dark:    #38393a;
  --text-mid:     #606668;
  --text-light:   #90979c;
  --white:        #fafcfe;
  --shadow:       0 4px 24px rgba(46,95,122,0.10);
  --shadow-hover: 0 8px 32px rgba(46,95,122,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

/* ── FLOWER SVG ASSETS ── */
/* Inline reusable flower used via JS/HTML */
.floral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.8rem auto;
}

.floral-divider .line {
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--blue-mid), transparent);
}

.floral-divider .flower-sm {
  width: 22px;
  height: 22px;
  opacity: 0.7;
}

/* Corner flower decorations */
.flower-corner {
  position: absolute;
  opacity: 0.13;
  pointer-events: none;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,252,254,0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blue-light);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  box-shadow: 0 2px 12px rgba(46,95,122,0.07);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--blue-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand span { color: var(--gold); font-style: italic; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
  padding-bottom: 3px;
}

.nav-links a:hover { color: var(--blue-dark); }
.nav-links a.active {
  color: var(--blue-dark);
  border-bottom: 2px solid var(--gold);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 40px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--blue-deep);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(78,114,170,0.3);
}
.btn-primary:hover {
  background: #3d62a0;
  box-shadow: 0 6px 20px rgba(78,114,170,0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border: 1.5px solid var(--blue-deep);
}
.btn-outline:hover {
  background: var(--blue-pale);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(196,168,130,0.35);
}
.btn-gold:hover {
  background: #6e7d8c;
  transform: translateY(-1px);
}

/* ── SECTION SHARED ── */
section { padding: 5rem 1.5rem; }

.section-inner { max-width: 900px; margin: 0 auto; }
.section-inner.wide { max-width: 1100px; }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 0.12em;
}

/* Floral divider replaces old .divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.4rem auto 0;
}
.divider::before,
.divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--blue-mid));
}
.divider::after {
  background: linear-gradient(90deg, var(--blue-mid), transparent);
}
.divider-flower {
  display: inline-block;
  width: 18px;
  height: 18px;
}

/* ── FOOTER ── */
footer {
  background: #2d4880;
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.88rem;
  position: relative;
  overflow: hidden;
}

footer .footer-flowers {
  position: absolute;
  opacity: 0.08;
  bottom: -20px;
}
footer .footer-flowers.left  { left: -20px; }
footer .footer-flowers.right { right: -20px; transform: scaleX(-1); }

footer .footer-names {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
footer .footer-names span { color: var(--gold-light); font-style: italic; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(189,208,223,0.6);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.card-icon { font-size: 1.8rem; margin-bottom: 0.9rem; }
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.5rem; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--blue-light);
  border-radius: 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(74,122,155,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* ── BOTANICAL GARLANDS — homepage hero ── */
.hero-garland {
  position: absolute;
  height: clamp(320px, 60vh, 580px);
  width: auto;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.92;
  top: calc(37% - 2em);
}
.hero-garland.left {
  left: max(0px, calc(50% - 480px));
  transform: translateY(-50%);
}
.hero-garland.right {
  right: max(0px, calc(50% - 480px));
  transform: translateY(-50%) scaleX(-1);
}
@media (orientation: landscape) and (max-height: 600px) {
  .hero-garland { height: clamp(280px, 80vh, 420px); top: 33%; }
  .hero-garland.left  { left: max(0px, calc(50% - 360px)); }
  .hero-garland.right { right: max(0px, calc(50% - 360px)); }
}

/* ── BOTANICAL GARLANDS — inner page banners ── */
.page-garland {
  position: absolute;
  height: 110%;
  width: auto;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
  opacity: 0.80;
  top: 50%;
}
.page-garland.left  { left: -10px;  transform: translateY(-50%); }
.page-garland.right { right: -10px; transform: translateY(-50%) scaleX(-1); }
@media (max-width: 600px) {
  .page-garland { opacity: 0.55; }
}

/* ── HERO (index) ── */
.hero {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 10rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 86vh;
  width: 100%;
}

.hero-names-wrap { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.hero-name-line {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  color: #4e72aa;
  letter-spacing: 0.3em;
  line-height: 1.3;
  margin: 0;
  font-weight: 400;
}

.hero-and {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: #8a96a3;
  letter-spacing: 0.06em;
  margin: 1rem 0;
  font-weight: 400;
  text-align: center;
  transform: translateX(-0.9em);
}

.hero-date-wrap { text-align: center; transform: translateY(5rem); }

.hero-date {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  color: #4e72aa;
  letter-spacing: 0.26em;
  margin-bottom: 0.5rem;
  font-style: normal;
}

.hero-location {
  font-size: 0.82rem;
  color: #8a96a3;
  letter-spacing: 0.08em;
  text-transform: none;
  margin-bottom: 0;
}


/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding-top: 68px;
  background: linear-gradient(140deg, #eaf4fb, #d5ebf5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-flower {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
}
.page-hero-flower.left  { left: -30px; bottom: -30px; width: 200px; }
.page-hero-flower.right { right: -30px; top: -30px; width: 200px; transform: rotate(180deg); }

.page-hero-inner { padding: 3.5rem 1.5rem 3rem; position: relative; z-index: 1; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--blue-dark);
  margin-bottom: 0.6rem;
  letter-spacing: 0.16em;
}
.page-hero p { color: var(--text-mid); font-size: 1rem; }

/* ── INFO PAGE ── */
.info-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.info-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.info-text strong { display: block; color: var(--blue-dark); font-weight: 600; }
.info-text span { color: var(--text-mid); font-size: 0.93rem; }

.timeline { border-left: 2px solid var(--blue-light); padding-left: 1.8rem; }
.timeline-item { position: relative; margin-bottom: 1.8rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.3rem; top: 0.4rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue-deep);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-mid);
}
.timeline-time {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.timeline-event { font-weight: 600; color: var(--blue-dark); text-decoration: none; }
.timeline-note { font-size: 0.9rem; color: var(--text-mid); text-decoration: none; }
.timeline-event a, .timeline-note a { color: inherit; text-decoration: none; pointer-events: none; }

/* ── OUR STORY GALLERY ── */
.photo-gallery {
  columns: 3;
  column-gap: 1rem;
}
@media (max-width: 860px) { .photo-gallery { columns: 2; } }
@media (max-width: 540px) { .photo-gallery { columns: 1; } }

.photo-gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
  cursor: pointer;
}
.photo-gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}
.photo-gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,50,65,0.9);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

/* ── REGISTRY ── */
.registry-store-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.1rem;
  border: 2px solid var(--blue-light);
}
.registry-store-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--blue-dark);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

/* ── RESPONSIVE ── */

/* Portrait mobile: hamburger menu */
@media (max-width: 640px) and (orientation: portrait) {
  .form-row { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; }
  .nav-hamburger { display: block; }
  .hero-content { min-height: 28vh; }
  .hero { padding: 2rem 1.5rem 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 4px 12px rgba(46,95,122,0.10);
    border-top: 1px solid var(--blue-light);
  }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: 0.7rem 1.5rem; font-size: 0.95rem; }
  nav.nav-open .nav-links { display: flex; }
}

/* Landscape mobile: regular tabs + hero spacing */
@media (orientation: landscape) and (max-height: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-content { min-height: 85vh; gap: 4rem; }
  .hero { padding: 5rem 4rem 2rem; }
  .hero-date-wrap { transform: translateY(1rem); }
  .hero-names-wrap { margin-top: 2rem; }
}

@media (orientation: portrait) {
  .hero { justify-content: center; min-height: 70vh; padding: 5rem 1.5rem 2rem; }
  .hero-content { min-height: unset; justify-content: flex-start; gap: 4rem; }
  .hero-names-wrap { transform: none; margin-top: 2rem; }
  .hero-date-wrap { transform: none; }
  .hero-garland { height: clamp(130px, 28vh, 210px); top: 34%; }
  .temple-img { width: 180px !important; }
  .hero-garland.left  { left: 10px; }
  .hero-garland.right { right: 10px; }
  .hero-name-line { font-size: clamp(1.25rem, 3.6vw, 2.2rem); }
  .hero-and { transform: translateX(-0.5em); font-size: 0.65rem; margin: 0.2rem 0; }
  .nav-buttons-section { padding: 0.5rem 1.5rem 1rem !important; }
}
