/*
Theme Name: Momentvia
Theme URI: https://momentvia.com
Author: Momentvia
Description: Premium, editorial marketing theme for Momentvia (WeddCam) — ivory/charcoal palette, cinematic photography, restrained motion. Text and images are edited via Appearance -> Customize.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: momentvia-theme
*/

:root {
  --ivory: #fbf8f3;
  --parchment: #f1ebe0;
  --charcoal: #1a1815;
  --charcoal-soft: #45403a;
  --champagne: #b3925f;
  --champagne-pale: #e9dfcb;
  --blush: #e8d7d2;
  --hairline: #e2d9c9;
  --footer-ink: #14120f;
  --footer-text: #cfc7ba;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1200px;
  --measure: 640px;
  --gap-section: clamp(4.5rem, 9vw, 9rem);
  --gap-section-sm: clamp(3rem, 6vw, 5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.mv-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.mv-measure { max-width: var(--measure); }

/* ---------- Reveal-on-scroll ---------- */
.mv-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.mv-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Nav ---------- */
.mv-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.mv-nav.is-scrolled {
  background: rgba(251, 248, 243, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.mv-wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--charcoal);
}
.mv-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.mv-nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  transition: color 0.25s ease;
}
.mv-nav-links a:hover { color: var(--charcoal); }
.mv-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--ivory) !important;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.mv-nav-cta:hover { background: var(--champagne); transform: translateY(-1px); }
.mv-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mv-nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mv-mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 39;
  background: var(--ivory);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mv-mobile-panel a { text-decoration: none; font-size: 1.4rem; color: var(--charcoal); font-family: var(--serif); }
body.mv-menu-open .mv-mobile-panel { display: flex; }

@media (max-width: 860px) {
  .mv-nav-links, .mv-nav-cta.mv-desktop-only { display: none; }
  .mv-nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.mv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.mv-btn-primary { background: var(--charcoal); color: var(--ivory); }
.mv-btn-primary:hover { background: var(--champagne); transform: translateY(-1px); }
.mv-btn-ghost { background: transparent; color: var(--charcoal); border: 1px solid var(--charcoal-soft); }
.mv-btn-ghost:hover { border-color: var(--charcoal); }
.mv-btn-light { background: var(--ivory); color: var(--charcoal); }
.mv-btn-light:hover { background: var(--champagne-pale); }

/* ---------- Hero ---------- */
.mv-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  background: linear-gradient(180deg, #2a241c 0%, #4a3c2c 55%, #6d5940 100%);
}
.mv-hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}
.mv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, 0.15) 0%, rgba(20, 18, 15, 0.65) 100%);
}
.mv-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  color: var(--ivory);
}
.mv-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.06;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}
.mv-hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 46ch;
  color: rgba(251, 248, 243, 0.88);
  margin: 0 0 2.25rem;
}
.mv-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.mv-hero-actions .mv-link-secondary {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: rgba(251, 248, 243, 0.9);
  font-size: 0.98rem;
}

.mv-hero-chips {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 4vw, 4rem);
  top: clamp(5rem, 14vh, 9rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.mv-chip {
  background: rgba(251, 248, 243, 0.14);
  border: 1px solid rgba(251, 248, 243, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ivory);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  align-self: flex-end;
}
@media (max-width: 720px) {
  .mv-hero-chips { display: none; }
}

/* ---------- Section rhythm ---------- */
.mv-section { padding: var(--gap-section) 0; }
.mv-section-sm { padding: var(--gap-section-sm) 0; }
.mv-section-alt { background: var(--parchment); }

.mv-eyebrow-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--champagne);
  margin: 0 0 0.75rem;
}

/* ---------- Editorial (problem) ---------- */
.mv-editorial { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mv-editorial-media { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: linear-gradient(160deg, #d8cbb4, #efe6d6); }
.mv-editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.mv-editorial h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.18;
  margin: 0 0 1.25rem;
}
.mv-editorial p { font-size: 1.08rem; color: var(--charcoal-soft); margin: 0 0 1rem; }
.mv-editorial .mv-pull { font-family: var(--serif); font-size: 1.2rem; color: var(--charcoal); }
@media (max-width: 860px) {
  .mv-editorial { grid-template-columns: 1fr; }
  .mv-editorial-media { order: -1; }
}

/* ---------- Steps ---------- */
.mv-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}
.mv-step { padding-top: 2rem; border-top: 1px solid var(--hairline); }
.mv-step-num { font-family: var(--serif); font-size: 2.75rem; color: var(--champagne); margin: 0 0 1rem; line-height: 1; }
.mv-step h3 { font-size: 1.2rem; margin: 0 0 0.6rem; }
.mv-step p { color: var(--charcoal-soft); margin: 0; font-size: 1.02rem; }
@media (max-width: 860px) {
  .mv-steps { grid-template-columns: 1fr; }
}

/* ---------- Product showcase ---------- */
.mv-showcase { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mv-showcase-copy h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.mv-showcase-copy p { font-size: 1.08rem; color: var(--charcoal-soft); max-width: 42ch; }
.mv-showcase-frames {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}
.mv-phone {
  width: clamp(150px, 22vw, 210px);
  aspect-ratio: 9 / 19.5;
  border-radius: 2.2rem;
  background: var(--charcoal);
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(26, 24, 21, 0.35);
}
.mv-phone:nth-child(2) { transform: translateY(-1.5rem); }
.mv-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 1.6rem;
  background: linear-gradient(165deg, #efe6d6 0%, #d8cbb4 60%, #b3925f 100%);
  overflow: hidden;
  position: relative;
}
.mv-phone-screen span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  background: rgba(26, 24, 21, 0.55);
  color: var(--ivory);
  font-size: 0.68rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  text-align: center;
}
@media (max-width: 860px) {
  .mv-showcase { grid-template-columns: 1fr; }
  .mv-showcase-frames { order: -1; }
}

/* ---------- No app sequence ---------- */
.mv-noapp { text-align: center; }
.mv-noapp h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin: 0 0 1rem;
}
.mv-noapp > p { color: var(--charcoal-soft); font-size: 1.1rem; margin: 0 auto 3rem; max-width: 46ch; }
.mv-sequence {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 1.05rem;
  color: var(--charcoal);
}
.mv-sequence span.mv-seq-item {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--ivory);
}
.mv-sequence span.mv-seq-arrow { color: var(--champagne); font-family: var(--serif); }

/* ---------- Privacy ---------- */
.mv-privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.mv-privacy-item {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-left: 1px solid var(--hairline);
}
.mv-privacy-item:first-child { border-left: none; }
.mv-privacy-label { font-family: var(--serif); font-size: 1.05rem; color: var(--champagne); margin: 0 0 0.5rem; }
.mv-privacy-item p { margin: 0; color: var(--charcoal-soft); }
@media (max-width: 860px) {
  .mv-privacy-grid { grid-template-columns: 1fr; }
  .mv-privacy-item { border-left: none; border-top: 1px solid var(--hairline); }
  .mv-privacy-item:first-child { border-top: none; }
}

/* ---------- For couples ---------- */
.mv-couples { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mv-couples-media { aspect-ratio: 5 / 4; border-radius: 4px; overflow: hidden; background: linear-gradient(150deg, #efe6d6, #e8d7d2); }
.mv-couples-media img { width: 100%; height: 100%; object-fit: cover; }
.mv-couples h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 0 0 1.1rem; }
.mv-couples p { color: var(--charcoal-soft); font-size: 1.08rem; margin: 0 0 1.75rem; max-width: 42ch; }
@media (max-width: 860px) {
  .mv-couples { grid-template-columns: 1fr; }
}

/* ---------- Any celebration (horizontal gallery) ---------- */
.mv-any h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 0 0 2.5rem; text-align: center; }
.mv-any-scroller {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin: 0 calc(-1 * clamp(1.25rem, 4vw, 3rem));
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}
.mv-any-tile {
  scroll-snap-align: start;
  flex: 0 0 clamp(210px, 26vw, 280px);
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(165deg, #d8cbb4, #efe6d6);
}
.mv-any-tile img { width: 100%; height: 100%; object-fit: cover; }
.mv-any-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(20,18,15,0.65), transparent);
  color: var(--ivory);
  font-size: 0.95rem;
}

/* ---------- Testimonials ---------- */
.mv-testimonial { text-align: center; }
.mv-testimonial blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}
.mv-testimonial cite {
  font-style: normal;
  color: var(--charcoal-soft);
  font-size: 0.98rem;
}

/* ---------- Final CTA ---------- */
.mv-final {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #33291c 0%, #6d5940 100%);
  color: var(--ivory);
}
.mv-final-inner { position: relative; z-index: 2; padding: 3rem clamp(1.25rem, 4vw, 3rem); }
.mv-final h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 1rem;
}
.mv-final p { font-size: 1.1rem; color: rgba(251, 248, 243, 0.85); margin: 0 0 2rem; }
.mv-final-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.mv-final-signin { font-size: 0.95rem; color: rgba(251, 248, 243, 0.75); text-decoration: none; border-bottom: 1px solid rgba(251, 248, 243, 0.4); }

/* ---------- Footer ---------- */
.mv-footer { background: var(--footer-ink); color: var(--footer-text); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.mv-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(207, 199, 186, 0.18);
}
.mv-footer-brand { font-family: var(--serif); color: var(--ivory); font-size: 1.3rem; text-decoration: none; }
.mv-footer-cols { display: flex; gap: clamp(2rem, 5vw, 5rem); flex-wrap: wrap; }
.mv-footer-col h4 { font-size: 0.85rem; color: var(--ivory); margin: 0 0 0.9rem; font-weight: 500; }
.mv-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.mv-footer-col a { text-decoration: none; color: var(--footer-text); font-size: 0.92rem; transition: color 0.2s ease; }
.mv-footer-col a:hover { color: var(--ivory); }
.mv-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.75rem; font-size: 0.85rem; color: rgba(207, 199, 186, 0.7); }

@media (max-width: 720px) {
  .mv-footer-top { flex-direction: column; }
}
