/* =============================================
   LIZA VETA — Stylesheet
   A soft, romantic, modern tribute page
   ============================================= */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette */
  --color-bg: #FDF8F4;
  --color-bg-warm: #FAF0EA;
  --color-bg-soft: #F5EBE3;
  --color-cream: #F7F0E8;
  --color-blush: #E8C4C4;
  --color-blush-light: #F2DCDC;
  --color-rose: #C9918F;
  --color-rose-deep: #B07A78;
  --color-gold: #C5A880;
  --color-gold-light: #D4C4A8;
  --color-text: #3D2C2C;
  --color-text-light: #7A6565;
  --color-text-muted: #A89090;
  --color-white: #FFFFFF;
  --color-border: rgba(61, 44, 44, 0.08);

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-padding: clamp(5rem, 12vw, 10rem);
  --container-max: 1200px;
  --container-padding: clamp(1.5rem, 4vw, 3rem);

  /* Animation */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.8s;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}


/* ---------- SHARED TYPOGRAPHY ---------- */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-rose);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 480px;
  margin-bottom: 3.5rem;
  font-weight: 300;
}


/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration) var(--ease-smooth),
              transform var(--duration) var(--ease-smooth);
}

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


/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

.nav--scrolled {
  background-color: rgba(253, 248, 244, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav__logo:hover {
  color: var(--color-rose);
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
  position: relative;
  transition: color 0.3s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-rose);
  transition: width 0.3s var(--ease-out);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.3s ease;
  transform-origin: center;
}


/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem var(--container-padding) 4rem;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: 4rem;
}

.hero__bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__gradient {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 196, 196, 0.2) 0%, rgba(253, 248, 244, 0) 70%);
  filter: blur(40px);
}

.hero__content {
  flex: 1;
  max-width: 560px;
}

.hero__prelude {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-rose);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

.hero__title-line {
  display: block;
  font-size: clamp(3.5rem, 9vw, 7rem);
}

.hero__title-line--accent {
  color: var(--color-rose-deep);
  font-style: italic;
  font-weight: 400;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--color-text-light);
  font-weight: 300;
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 3rem;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__scroll span {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__scroll-line {
  width: 60px;
  height: 1px;
  background: var(--color-blush);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-rose);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

.hero__portrait {
  flex: 0 0 auto;
  width: clamp(280px, 30vw, 420px);
  position: relative;
}

.hero__portrait::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--color-blush);
  border-radius: 200px 200px 20px 20px;
  transition: all 0.5s var(--ease-smooth);
}

.hero__portrait:hover::before {
  top: -6px;
  left: -6px;
}

.hero__portrait img {
  width: 100%;
  height: auto;
  border-radius: 200px 200px 20px 20px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}


/* ---------- ABOUT ---------- */
.about {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about__image {
  position: relative;
}

.about__image::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 60%;
  height: 60%;
  background: var(--color-blush-light);
  border-radius: 12px;
  z-index: -1;
  transition: all 0.5s var(--ease-smooth);
}

.about__image:hover::after {
  bottom: -10px;
  right: -10px;
}

.about__image img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about__text {
  max-width: 480px;
}

.about__description {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}


/* ---------- MARQUEE ---------- */
.marquee {
  padding: 2.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-cream);
}

.marquee__track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}

.marquee__track span {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--color-text-light);
  font-style: italic;
}

.marquee__dot {
  color: var(--color-blush) !important;
  font-style: normal !important;
  font-size: 0.8rem !important;
  display: flex;
  align-items: center;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ---------- GALLERY ---------- */
.gallery {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1.25rem;
}

.gallery__item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61, 44, 44, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

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

.gallery__item--tall {
  grid-row: span 2;
}

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


/* ---------- QUALITIES ---------- */
.qualities {
  padding: var(--section-padding) 0;
  background: var(--color-bg-warm);
}

.qualities .section-title {
  margin-bottom: 3.5rem;
}

.qualities__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.quality-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease;
  border: 1px solid transparent;
}

.quality-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(61, 44, 44, 0.06);
  border-color: var(--color-blush-light);
}

.quality-card__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-blush-light);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.quality-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.quality-card__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-weight: 300;
  line-height: 1.8;
}


/* ---------- QUOTE SECTION ---------- */
.quote-section {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.featured-quote {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.featured-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.featured-quote cite {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-rose);
}


/* ---------- SPLIT FEATURE ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.split__image {
  position: relative;
  overflow: hidden;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}

.split__image:hover img {
  transform: scale(1.03);
}

.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
  background: var(--color-bg-warm);
}

.split__text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  max-width: 440px;
}


/* ---------- CLOSING ---------- */
.closing {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
  text-align: center;
}

.closing__content {
  max-width: 600px;
  margin: 0 auto;
}

.closing__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.closing__title span {
  display: block;
}

.closing__title--accent {
  font-style: italic;
  color: var(--color-rose-deep);
  font-weight: 400;
}

.closing__text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.closing__heart {
  color: var(--color-rose);
  margin-bottom: 2rem;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

.closing__signature {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-muted);
}


/* ---------- FOOTER ---------- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer__text {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}


/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 968px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 7rem;
    gap: 3rem;
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero__content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__subtitle {
    max-width: 360px;
  }

  .hero__portrait {
    width: clamp(220px, 45vw, 320px);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__image {
    max-width: 400px;
    margin: 0 auto;
  }

  .about__text {
    text-align: center;
    max-width: 100%;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery__item--tall {
    grid-row: span 2;
  }

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

  .qualities__grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split__image {
    height: 50vh;
    min-height: 350px;
  }

  .split__content {
    padding: 3rem var(--container-padding);
  }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(253, 248, 244, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .nav__links.active {
    opacity: 1;
    pointer-events: all;
  }

  .nav__links a {
    font-size: 1.1rem;
  }

  .nav__toggle {
    display: flex;
    z-index: 10;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__title-line {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

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

  .qualities__grid {
    gap: 1.25rem;
  }

  .quality-card {
    padding: 1.75rem;
  }
}

@media (max-width: 400px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery__item--tall {
    grid-row: span 1;
  }

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


/* ---------- SELECTION ---------- */
::selection {
  background: var(--color-blush-light);
  color: var(--color-text);
}

::-moz-selection {
  background: var(--color-blush-light);
  color: var(--color-text);
}


/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-blush);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-rose);
}
