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

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

:root {
  --navy:      #3a4d7c;
  --navy-dark: #2d3c63;
  --navy-pale: #eef0f7;
  --gold:      #c9973b;
  --white:     #ffffff;
  --off-white: #f8f7f4;
  --text:      #2c3a5e;
  --gray:      #8a92a6;
}

body {
  font-family: 'Raleway', sans-serif;
  background: var(--off-white);
  min-height: 100vh;
  color: var(--text);
}

/* ══ HEADER ══ */
.site-header {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding-bottom: 1.8rem;
  overflow: hidden;
}

.botanical-top,
.botanical-bottom {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255,255,255,0.88);
}

.botanical-top  { margin-bottom: 0.6rem; }
.botanical-bottom { margin-top: 0.6rem; }

.header-names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.38em;
  font-size: 1.55rem;
  text-transform: uppercase;
  color: var(--white);
  padding: 0 1rem;
  margin-bottom: 0.35rem;
}

.header-sep {
  width: 50px;
  height: 1px;
  background: rgba(255,255,255,0.45);
  margin: 0 auto 0.4rem;
}

.header-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.06em;
}

/* ══ NAV ══ */
nav {
  background: var(--navy-dark);
  display: flex;
  justify-content: center;
}

nav a {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.4rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

nav a.active,
nav a:hover {
  color: var(--white);
  border-bottom-color: var(--gold);
  background: rgba(255,255,255,0.04);
}

/* ══ LAYOUT ══ */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

/* ══ SECTION TITLE ══ */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2rem;
}

.section-title::before,
.section-title::after {
  content: '—';
  color: var(--gold);
  margin: 0 0.6rem;
}

/* ══ UPLOAD ZONE ══ */
.upload-zone {
  border: 1px dashed rgba(58,77,124,0.5);
  border-radius: 3px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--white);
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--navy);
  border-style: solid;
  background: var(--navy-pale);
}

.upload-zone .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.6;
}

.upload-zone h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: var(--navy);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.upload-zone p {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.6;
  font-weight: 300;
}

#file-input { display: none; }

/* ══ PREVIEW GRID ══ */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 1.5rem;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.14);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
}

.thumb-loading {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.preview-item .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: bold;
}

/* ══ PROGRESS ══ */
.progress-bar-container {
  background: #dde2ef;
  border-radius: 2px;
  height: 3px;
  margin-top: 1.2rem;
  overflow: hidden;
  display: none;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  border-radius: 2px;
  transition: width 0.3s;
  width: 0%;
}

/* ══ ALERT ══ */
.alert {
  padding: 0.85rem 1rem;
  border-left: 3px solid;
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.alert-success { background: #eaf2e8; color: #2d5e28; border-color: #5a9e52; }
.alert-error   { background: #f8eaec; color: #7a2130; border-color: #c0384a; }

/* ══ BUTTONS ══ */
.btn {
  display: inline-block;
  padding: 0.85rem 2.8rem;
  border-radius: 1px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(42,60,100,0.35);
}

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.actions {
  text-align: center;
  margin-top: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

/* ══ GALLERY ══ */
.gallery-count {
  text-align: center;
  color: var(--gray);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
  transition: transform 0.22s, box-shadow 0.22s;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item--video {
  position: relative;
}

.gallery-item--video .video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  pointer-events: none;
}

/* ══ LIGHTBOX ══ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,28,50,0.96);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 2px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.12);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 22px;
  color: rgba(255,255,255,0.8);
  font-size: 2.6rem;
  cursor: pointer;
  line-height: 1;
  font-weight: 300;
}

.lightbox-close:hover { color: white; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 3rem;
  cursor: pointer;
  padding: 0 1.2rem;
  user-select: none;
  font-weight: 300;
}

.lightbox-prev:hover,
.lightbox-next:hover { color: white; }

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

/* ══ QR CARD ══ */
.qr-card {
  background: var(--white);
  border: 1px solid rgba(58,77,124,0.14);
  padding: 3rem 2rem;
  text-align: center;
}

.qr-frame {
  display: inline-block;
  padding: 12px;
  border: 2px solid var(--gold);
  margin-bottom: 1.5rem;
  line-height: 0;
}

.qr-frame img {
  display: block;
  width: 260px;
  height: 260px;
}

.qr-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.qr-card .qr-note {
  font-size: 0.82rem;
  color: var(--gray);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 1.5rem;
}

.qr-card .url {
  font-family: 'Raleway', monospace;
  font-size: 0.78rem;
  color: var(--gray);
  word-break: break-all;
  background: var(--navy-pale);
  padding: 0.6rem 0.8rem;
  border-radius: 2px;
  margin: 1.2rem auto;
  max-width: 380px;
}

.qr-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ══ STATS BAND ══ */
.stats-band {
  background: var(--navy-pale);
  border: 1px solid rgba(58,77,124,0.12);
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  margin-bottom: 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 0.3rem;
}

/* ══ FOOTER ══ */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

/* ══ PRINT ══ */
@media print {
  nav, footer, .no-print { display: none !important; }
  body { background: white; }
  .site-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ══ MOBILE ══ */
@media (max-width: 480px) {
  .header-names { font-size: 1.15rem; letter-spacing: 0.25em; }
  .preview-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .btn { padding: 0.75rem 1.8rem; }
  .stats-band { gap: 1.5rem; }
}
