/* ============================================================
   Leônia — Memory Lane  |  Static CSS
   Palette: rose gold · cream · lavender
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --radius: 1rem;

  --background: #faf7f4;
  --foreground: #4a3228;

  --card: #fdfcfb;
  --card-foreground: #4a3228;

  --primary: #c4836a;          /* rose gold */
  --primary-foreground: #fefefe;

  --secondary: #e8dff0;        /* soft lavender */
  --secondary-foreground: #5a4870;

  --muted: #f2ede8;
  --muted-foreground: #8a7060;

  --accent: #d9b8e0;           /* lavender pink */
  --accent-foreground: #4a3860;

  --border: #e8ddd4;
  --input: #e8ddd4;
  --ring: #c4836a;

  --rose-gold: #c4836a;
  --cream: #faf7f4;
  --lavender: #c8aed8;

  --gradient-hero: linear-gradient(135deg, #f7f0e8 0%, #ecdff5 50%, #e8c4b0 100%);
  --gradient-rose: linear-gradient(135deg, #c4836a, #b05878);
  --gradient-soft: linear-gradient(180deg, #fefefe 0%, #f4ecf8 100%);

  --shadow-soft: 0 10px 40px -10px rgba(180, 100, 80, 0.18);
  --shadow-elegant: 0 20px 60px -20px rgba(160, 80, 140, 0.25);
  --shadow-glow: 0 0 60px rgba(210, 160, 140, 0.4);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-image:
    radial-gradient(at 20% 0%, rgba(210, 160, 200, 0.5), transparent 50%),
    radial-gradient(at 80% 100%, rgba(200, 140, 110, 0.4), transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.01em;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---------- Utility Classes ---------- */
.font-script  { font-family: 'Great Vibes', cursive; }
.font-display { font-family: 'Playfair Display', serif; }

.bg-gradient-rose { background-image: var(--gradient-rose); }
.bg-gradient-soft { background-image: var(--gradient-soft); }
.shadow-soft      { box-shadow: var(--shadow-soft); }
.shadow-elegant   { box-shadow: var(--shadow-elegant); }
.shadow-glow      { box-shadow: var(--shadow-glow); }

.text-gradient-rose {
  background: var(--gradient-rose);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ---------- Layout ---------- */
.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container--narrow {
  max-width: 56rem;
}

.section {
  padding-block: 6rem;
}

@media (min-width: 768px) {
  .section { padding-block: 8rem; }
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted-foreground);
  max-width: 36rem;
  margin-inline: auto;
}

/* ---------- Icon Heart ---------- */
.icon-heart {
  color: var(--primary);
  fill: var(--primary);
  display: inline-block;
  vertical-align: middle;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(250, 247, 244, 0.5) 0%,
    rgba(250, 247, 244, 0.3) 50%,
    var(--background) 100%);
}

.hero__content {
  text-align: center;
  max-width: 48rem;
  animation: fadeUp 1s ease both;
}

.hero__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(196, 131, 106, 0.8);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: fadeUp 1s ease 0.1s both;
}

.hero__title {
  font-size: clamp(4.5rem, 15vw, 9rem);
  line-height: 1;
  margin-bottom: 1rem;
  animation: scaleIn 1.4s ease both;
}

.hero__subtitle {
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  color: rgba(74, 50, 40, 0.8);
  animation: fadeUp 1s ease 0.6s both;
}

.hero__divider {
  margin-top: 3rem;
  margin-inline: auto;
  height: 1px;
  width: 8rem;
  animation: fadeIn 1.4s ease 1.2s both;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
  }
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 16px);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.gallery__item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery__item:hover img {
  transform: scale(1.1);
}

.gallery__hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(196, 131, 106, 0.4), transparent, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery__item:hover .gallery__hover {
  opacity: 1;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section__eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.video-section__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.video-section__script {
  font-size: clamp(3rem, 7vw, 3.75rem);
}

.video-section__frame {
  border-radius: calc(var(--radius) + 16px);
  padding: 0.75rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .video-section__frame { padding: 1rem; }
}

.video-section__inner {
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 16 / 9;
  position: relative;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.video-placeholder__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(196, 131, 106, 0.6), rgba(216, 185, 224, 0.3));
}

.video-placeholder__btn {
  position: relative;
  height: 5rem;
  width: 5rem;
  border-radius: 50%;
  background: rgba(253, 252, 251, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  transition: transform 0.5s ease;
  color: var(--primary);
}

.video-placeholder:hover .video-placeholder__btn {
  transform: scale(1.1);
}

.video-placeholder__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(253, 252, 251, 0.95);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}

.video-embed {
  position: absolute;
  inset: 0;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   MESSAGES
   ============================================================ */
.messages__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .messages__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .messages__grid { grid-template-columns: repeat(3, 1fr); }
}

.message-card {
  position: relative;
  border-radius: calc(var(--radius) + 16px);
  background: rgba(253, 252, 251, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elegant);
}

.message-card__quote {
  color: rgba(196, 131, 106, 0.4);
  margin-bottom: 1rem;
}

.message-card__text {
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(74, 50, 40, 0.9);
  margin-bottom: 1.5rem;
}

.message-card__from {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

.message-card__line {
  display: inline-block;
  height: 1px;
  width: 2rem;
  background: rgba(196, 131, 106, 0.6);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding-block: 4rem;
  padding-inline: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(232, 221, 212, 0.5);
}

.footer__name {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.footer__caption {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ============================================================
   MUSIC PLAYER (fixed bottom-left)
   ============================================================ */
.music-player {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 40;
  animation: fadeUp 0.8s ease 1.5s both;
}

.music-player__pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  background: rgba(253, 252, 251, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  box-shadow: var(--shadow-elegant);
}

.music-player__btn {
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.music-player__btn:hover {
  transform: scale(1.05);
}

.music-player__info {
  display: flex;
  flex-direction: column;
}

.music-player__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.music-player__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

/* ============================================================
   SHARE BUTTON (fixed bottom-right)
   ============================================================ */
.share-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeUp 0.8s ease 1.5s both;
}

.share-btn:hover {
  transform: scale(1.05);
}

.share-btn__label {
  display: none;
}

@media (min-width: 640px) {
  .share-btn__label { display: inline; }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-item:nth-child(1) { transition-delay: 0s; }
.reveal-item:nth-child(2) { transition-delay: 0.1s; }
.reveal-item:nth-child(3) { transition-delay: 0.2s; }
.reveal-item:nth-child(4) { transition-delay: 0.3s; }
.reveal-item:nth-child(5) { transition-delay: 0.4s; }
.reveal-item:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
