/* ============================================================
   MOTHER'S DAY WEBSITE — Shared Styles
   ============================================================ */

@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&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500;1,600&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #F4FAF7;
  --blush:      #C8E6D8;
  --rose:       #097969;
  --deep-rose:  #065A4E;
  --gold:       #C9A66E;
  --gold-light: #E8D5B0;
  --charcoal:   #1A2E2A;
  --muted:      #4A7A6E;
  --white:      #FFFFFF;
  --shadow:     rgba(9, 121, 105, 0.13);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  min-height: 100vh;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

.script {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(253, 250, 245, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-light);
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.site-nav a:hover,
.site-nav a.active { color: var(--deep-rose); }

.site-nav a.locked {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* ── Hero Sections ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(9, 121, 105, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-petal {
  position: absolute;
  border-radius: 50% 0 50% 0;
  opacity: 0.07;
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease both;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  color: var(--deep-rose);
  margin-bottom: 1.2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--muted);
  max-width: 640px;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 240px;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-light);
}

.hero-divider span { color: var(--gold); font-size: 1rem; }

/* ── Sections ─────────────────────────────────────────────── */
.section {
  max-width: 820px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

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

.section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--deep-rose);
  margin-bottom: 1.5rem;
}

.section p {
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.section p:last-child { margin-bottom: 0; }

.quote-block {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2.5rem 0;
  background: rgba(201, 166, 110, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
}

.quote-block p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--deep-rose);
  margin: 0;
}

/* ── Photo Grid ───────────────────────────────────────────── */
.photo-grid {
  display: grid;
  gap: 1rem;
  margin: 3rem 0;
}

.photo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.photo-slot {
  aspect-ratio: 1/1;
  border-radius: 0.75rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blush) 0%, var(--gold-light) 100%);
  position: relative;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.5s ease;
}

.photo-slot:hover img { transform: scale(1.04); }

.photo-slot.tall { aspect-ratio: 3/4; }
.photo-slot.wide { aspect-ratio: 16/9; }
.photo-slot.square { aspect-ratio: 1/1; }

/* ── Dividers ─────────────────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 3rem auto;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.4em;
  opacity: 0.7;
}

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

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

/* ── CTA Button ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--deep-rose), var(--rose));
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 6px 24px rgba(6, 90, 78, 0.3);
  margin-top: 1.5rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(6, 90, 78, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #B8935A);
  box-shadow: 0 6px 24px rgba(201, 166, 110, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 10px 32px rgba(201, 166, 110, 0.45);
}

/* ── Page Footer ──────────────────────────────────────────── */
.page-footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* ── Locked Page ──────────────────────────────────────────── */
.locked-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(9, 121, 105, 0.05) 0%, transparent 70%);
}

.lock-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.locked-page h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--deep-rose);
  margin-bottom: 0.75rem;
}

.locked-page p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto 2rem;
}

.countdown {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 1px solid var(--gold-light);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  min-width: 72px;
  box-shadow: 0 4px 16px var(--shadow);
}

.countdown-block .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--deep-rose);
  line-height: 1;
  font-weight: 700;
}

.countdown-block .label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ── Index Hub Cards ──────────────────────────────────────── */
.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.hub-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--gold-light);
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blush) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}

.hub-card.available:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px var(--shadow);
}

.hub-card.available:hover::before { opacity: 1; }

.hub-card.locked-card {
  opacity: 0.6;
  cursor: default;
}

.hub-card .card-date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.hub-card .card-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.hub-card h3 {
  font-size: 1.3rem;
  color: var(--deep-rose);
}

.hub-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.hub-card .status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  margin-top: 0.5rem;
}

.hub-card.available .status-badge {
  background: rgba(6, 90, 78, 0.1);
  color: var(--deep-rose);
}

.hub-card.locked-card .status-badge {
  background: rgba(122, 106, 106, 0.1);
  color: var(--muted);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.8; }
}

@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-80vh) rotate(360deg); opacity: 0; }
}

.petal-particle {
  position: fixed;
  pointer-events: none;
  font-size: 1rem;
  animation: floatUp linear infinite;
  z-index: 0;
}

/* ── Prose Letter ─────────────────────────────────────────── */
.letter-wrap {
  background: white;
  border-radius: 1.25rem;
  padding: 3rem 3.5rem;
  box-shadow: 0 4px 24px var(--shadow);
  border: 1px solid var(--gold-light);
  position: relative;
}

.letter-wrap::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  color: var(--blush);
  position: absolute;
  top: -1.5rem;
  left: 2rem;
  line-height: 1;
  pointer-events: none;
}

.letter-wrap p {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

/* ── Highlight List ───────────────────────────────────────── */
.highlights {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.highlights li {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gold-light);
  box-shadow: 0 2px 10px var(--shadow);
  font-size: 0.95rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.highlights li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

/* ── Gift Reveal ──────────────────────────────────────────── */
.gift-box {
  background: linear-gradient(145deg, white 0%, var(--cream) 100%);
  border: 2px solid var(--gold-light);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 8px 40px var(--shadow);
  max-width: 560px;
  margin: 3rem auto;
}

.gift-box .gift-icon { font-size: 4rem; margin-bottom: 1rem; }

.gift-box h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--deep-rose);
  margin-bottom: 1rem;
}

.gift-box p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .photo-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .letter-wrap { padding: 2rem 1.5rem; }
  .letter-wrap::before { font-size: 5rem; }
  .hub-cards { grid-template-columns: 1fr; }
  .countdown { gap: 0.75rem; }
}

/* ── Preview Bypass ───────────────────────────────────────── */
.preview-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 2.4rem;
  height: 2.4rem;
  background: rgba(44, 36, 36, 0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 999;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.preview-toggle:hover { background: rgba(44, 36, 36, 0.28); }

.preview-active .preview-toggle {
  background: rgba(6, 90, 78, 0.25);
}

.preview-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 36, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: fadeInDown 0.2s ease both;
}

.preview-modal {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem;
  width: min(320px, 90vw);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.preview-modal h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--deep-rose);
  margin-bottom: 0.4rem;
}

.preview-modal p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.preview-modal input {
  width: 100%;
  border: 1.5px solid var(--gold-light);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.4em;
  color: var(--charcoal);
  font-family: 'Playfair Display', serif;
  outline: none;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.preview-modal input:focus { border-color: var(--rose); }
.preview-modal input.error { border-color: #e05; animation: shake 0.3s ease; }

.preview-modal .modal-btns {
  display: flex;
  gap: 0.75rem;
}

.preview-modal .modal-btns button {
  flex: 1;
  padding: 0.7rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
}

.preview-modal .modal-btns button:hover { opacity: 0.85; }

.preview-modal .btn-confirm {
  background: linear-gradient(135deg, var(--deep-rose), var(--rose));
  color: white;
}

.preview-modal .btn-cancel {
  background: var(--cream);
  color: var(--muted);
  border: 1px solid var(--gold-light) !important;
}

.preview-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--deep-rose), var(--rose));
  color: white;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  z-index: 998;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}
