/* ============================================
   Memorial Website for Martina Okunega
   Color Palette: Soft whites, creams, beiges
   ============================================ */

:root {
  --color-bg: #fffbf6;
  --color-bg-alt: #f5f0eb;
  --color-cream: #f0e9e0;
  --color-beige: #e8ddd1;
  --color-warm-grey: #b8a99a;
  --color-text: #5a4e44;
  --color-text-light: #8a7e74;
  --color-heading: #4a3f36;
  --color-accent: #c9a87c;
  --color-accent-soft: #d4b896;
  --color-white: #ffffff;
  --color-overlay: rgba(250, 248, 245, 0.35);

  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* ============================================
   Header / Navbar
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(90, 78, 68, 0.06);
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-heading);
  padding: 12px 26px;
  border-radius: 0;
  position: relative;
  transition: all 0.4s ease;
}

.header.scrolled .nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--color-text);
  padding: 10px 22px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: all 0.4s ease;
}

.header.scrolled .nav-link::after {
  height: 1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-heading);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 40px;
}

.header.scrolled .nav-link:hover::after,
.header.scrolled .nav-link.active::after {
  width: 30px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-text);
  cursor: pointer;
  padding: 5px;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-bg);
  isolation: isolate;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  animation: heroFadeIn 2s ease-out 0.3s forwards;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Text above portrait */
.hero-text-top {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Portrait with Darken blend mode (Photoshop-style) */
.hero-portrait {
  mix-blend-mode: darken;
  pointer-events: none;
  margin: 10px 0;
  opacity: 0;
  animation: portraitFadeIn 2s ease-out 0.8s forwards;
  background-color: var(--color-bg);
}

.hero-portrait-img {
  max-height: 45vh;
  width: auto;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* Text below portrait */
.hero-text-bottom {
  position: relative;
  z-index: 2;
  text-align: center;
}

@keyframes portraitFadeIn {
  0% {
    opacity: 0;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-light);
  letter-spacing: 3px;
  margin-bottom: 12px;
  opacity: 0;
  animation: textFadeUp 1s ease-out 1.2s forwards;
}

.hero-name {
  font-family: 'Parisienne', cursive;
  font-size: 4.5rem;
  font-weight: normal;
  font-style: normal;
  color: var(--color-text-light);
  letter-spacing: 2px;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin-bottom: 8px;
  opacity: 0;
  animation: textFadeUp 1s ease-out 1.5s forwards;
}

/* Font options for Martina's name - uncomment one to use */
/* .hero-name { font-family: 'Dancing Script', cursive; font-weight: 600; font-style: normal; letter-spacing: 2px; } */
/* .hero-name { font-family: 'Great Vibes', cursive; font-weight: normal; font-style: normal; letter-spacing: 1px; } */
/* .hero-name { font-family: 'Parisienne', cursive; font-weight: normal; font-style: normal; letter-spacing: 2px; } */
/* .hero-name { font-family: 'Allura', cursive; font-weight: normal; font-style: normal; letter-spacing: 2px; } */
/* .hero-name { font-family: 'Cookie', cursive; font-weight: normal; font-style: normal; letter-spacing: 1px; } */
/* .hero-name { font-family: 'Pacifico', cursive; font-weight: normal; font-style: normal; letter-spacing: 1px; } */

.hero-maiden {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-light);
  letter-spacing: 2px;
  margin-bottom: 16px;
  opacity: 0;
  animation: textFadeUp 1s ease-out 1.8s forwards;
}

.hero-dates {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  animation: textFadeUp 1s ease-out 2.1s forwards;
}

@keyframes textFadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.scroll-down {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-warm-grey);
  font-size: 20px;
  transition: all 0.3s ease;
  animation: bounceDown 2s ease-in-out infinite 3.5s;
}

.scroll-down:hover {
  color: var(--color-accent);
}

@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ============================================
   Funeral Section
   ============================================ */
/* Shared wrapper: funeral + footer always fill exactly one screen */
.funeral-footer-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.funeral-section {
  min-height: 60vh;
  padding: 80px 0;
  background-color: var(--color-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.funeral-section > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.funeral-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--color-beige), transparent);
}

.funeral-message {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.funeral-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-heading);
  line-height: 1.6;
  letter-spacing: 1.5px;
}

.heading-divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-accent);
  margin: 35px auto 0 auto;
}

/* Funeral Date */
.funeral-date {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-heading);
  letter-spacing: 2px;
  text-align: center;
  margin: 30px 0 40px 0;
  padding-top: 20px;
}

/* Funeral Cards */
.funeral-links-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.funeral-card {
  background: var(--color-white);
  border: 1px solid var(--color-cream);
  border-radius: 4px;
  padding: 55px 40px;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.funeral-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(90, 78, 68, 0.08);
  border-color: var(--color-beige);
}

.funeral-card-icon {
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--color-accent);
  border: 1px solid var(--color-cream);
  border-radius: 50%;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.funeral-card:hover .funeral-card-icon {
  background-color: var(--color-bg-alt);
  border-color: var(--color-beige);
}

.funeral-card h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.funeral-card .funeral-card-time {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 16px;
  letter-spacing: 1.5px;
}

.funeral-card .funeral-card-address {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 28px;
  flex-grow: 1;
  letter-spacing: 0.5px;
}

.funeral-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 14px 34px;
  border: 1px solid var(--color-beige);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.funeral-card-btn:hover {
  background-color: var(--color-heading);
  border-color: var(--color-heading);
  color: var(--color-white);
}

.funeral-card-btn.disabled-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.funeral-card-btn i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.funeral-card-btn:hover i {
  transform: translate(2px, -2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 50px 0;
  text-align: center;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-cream);
}

.footer-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-light);
  letter-spacing: 2px;
}

/* ============================================
   Stream Section
   ============================================ */
.stream-section {
  flex: 1;
  min-height: 80vh;
  padding: 80px 0;
  background-color: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stream-section > .container {
  width: 100%;
}

.stream-links-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 991px) {
  .hero-name {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .hero-portrait-img {
    max-height: 38vh;
  }

  .hero-maiden {
    font-size: 2rem;
  }

  .funeral-heading {
    font-size: 1.5rem;
  }

  .funeral-date {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 999;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-link {
    font-size: 15px;
    letter-spacing: 3px;
    padding: 15px 30px;
  }

  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-name {
    font-size: 2.6rem;
    letter-spacing: 2px;
  }

  .hero-portrait-img {
    max-height: 32vh;
  }

  .hero-subtitle {
    font-size: 1.6rem;
  }

  .hero-maiden {
    font-size: 1.6rem;
  }

  .hero-dates {
    font-size: 1.1rem;
    letter-spacing: 3px;
  }

  .funeral-date {
    font-size: 1.2rem;
  }

  .funeral-section {
    min-height: 50vh;
    padding: 40px 0;
  }

  .stream-section {
    padding: 60px 0;
  }

  .funeral-heading {
    font-size: 1.2rem;
    line-height: 1.7;
  }

  .funeral-card {
    padding: 35px 25px;
  }

  .header {
    padding: 15px 0;
  }

  .header.scrolled {
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-maiden {
    font-size: 1.3rem;
  }

  .hero-dates {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .funeral-heading {
    font-size: 1rem;
  }

  .funeral-date {
    font-size: 1rem;
  }

  .nav-link {
    font-size: 13px;
  }
}

/* ============================================
   Font Showcase (Temporary - Remove after choosing)
   ============================================ */
.font-showcase {
  padding: 60px 20px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-cream);
}

.font-showcase h3 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-heading);
  margin-bottom: 40px;
}

.font-options {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.font-option {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.font-option p {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--color-heading);
}

.font-option span {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-family: var(--font-body);
}

.font-playfair { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500; }
.font-dancing { font-family: 'Dancing Script', cursive; font-weight: 600; }
.font-great { font-family: 'Great Vibes', cursive; font-weight: normal; }
.font-parisienne { font-family: 'Parisienne', cursive; font-weight: normal; }
.font-allura { font-family: 'Allura', cursive; font-weight: normal; }
.font-cookie { font-family: 'Cookie', cursive; font-weight: normal; }
.font-pacifico { font-family: 'Pacifico', cursive; font-weight: normal; }
.font-tangerine { font-family: 'Tangerine', cursive; font-weight: 700; font-size: 3rem !important; }
.font-alex { font-family: 'Alex Brush', cursive; font-weight: normal; }
.font-sacramento { font-family: 'Sacramento', cursive; font-weight: normal; }
.font-pinyon { font-family: 'Pinyon Script', cursive; font-weight: normal; }
.font-italianno { font-family: 'Italianno', cursive; font-weight: normal; font-size: 2.8rem !important; }
.font-lavishly { font-family: 'Lavishly Yours', cursive; font-weight: normal; }
.font-corinthia { font-family: 'Corinthia', cursive; font-weight: 700; font-size: 2.8rem !important; }
.font-ephesis { font-family: 'Ephesis', cursive; font-weight: normal; }
.font-fleur { font-family: 'Fleur De Leah', cursive; font-weight: normal; font-size: 2.8rem !important; }
.font-whisper { font-family: 'Whisper', cursive; font-weight: normal; }
.font-stylescript { font-family: 'Style Script', cursive; font-weight: normal; }
.font-msmadi { font-family: 'Ms Madi', cursive; font-weight: normal; }
.font-meaculpa { font-family: 'Mea Culpa', cursive; font-weight: normal; }
.font-luxurious { font-family: 'Luxurious Script', cursive; font-weight: normal; }
.font-qwitcher { font-family: 'Qwitcher Grypen', cursive; font-weight: 700; font-size: 2.8rem !important; }
.font-herr { font-family: 'Herr Von Muellerhoff', cursive; font-weight: normal; font-size: 2.5rem !important; }
.font-monsieur { font-family: 'Monsieur La Doulaise', cursive; font-weight: normal; }
.font-rouge { font-family: 'Rouge Script', cursive; font-weight: normal; }
.font-carattere { font-family: 'Carattere', cursive; font-weight: normal; }
.font-shalimar { font-family: 'Shalimar', cursive; font-weight: normal; }

/* ============================================
   Selection Styling
   ============================================ */
::selection {
  background-color: var(--color-accent-soft);
  color: var(--color-white);
}

::-moz-selection {
  background-color: var(--color-accent-soft);
  color: var(--color-white);
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-beige);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-warm-grey);
}
