/* ==========================================================
   MEDEUS PRODUCTIONS — design tokens
   Palette: cinematic ink + warm editorial parchment, wine + brass accents
   Type: Fraunces (display, serif with personality) / Work Sans (body)
   ========================================================== */

:root {
  --ink: #1c1a1d;
  --ink-soft: #2a2730;
  --parchment: #f6f1e8;
  --parchment-deep: #ede4d3;
  --wine: #6d2a35;
  --wine-deep: #4f1e26;
  --brass: #a9835a;
  --stone: #8a8175;
  --white: #fffdfa;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --gutter: clamp(24px, 5vw, 72px);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: inherit;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.placeholder-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--stone);
  background: rgba(255,255,255,0.6);
  padding: 6px 10px;
  border-radius: 3px;
}

/* ---------- shared layout ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section-inner--narrow { max-width: 760px; }
.section-inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-bottom: 14px; }
.section-lede { font-size: 1.05rem; color: var(--stone); max-width: 56ch; }
.section-lede a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

.section--dark { background: var(--ink); color: var(--parchment); }
.section--dark .section-lede { color: #b9b1ae; }
.section--parchment { background: var(--parchment); }

.admin-note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--stone);
  font-style: italic;
}
.section--dark .admin-note { color: #8a8286; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  min-height: 48px;
}
.btn-primary { background: var(--wine); color: var(--white); }
.btn-primary:hover { background: var(--wine-deep); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline { color: var(--wine); border-color: var(--wine); margin-top: 8px; }
.btn-outline:hover { background: var(--wine); color: var(--white); }
.btn-large { padding: 18px 40px; font-size: 1rem; }

/* ---------- nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.is-scrolled {
  background: rgba(255, 253, 250, 0.94);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  backdrop-filter: blur(6px);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s ease;
}
.site-nav.is-scrolled .nav-mark { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.3s ease, opacity 0.2s ease;
}
.nav-links a:hover { opacity: 0.7; }
.site-nav.is-scrolled .nav-links a { color: var(--ink); }
.nav-cta {
  border: 1px solid rgba(255,255,255,0.6);
  padding: 9px 18px;
  border-radius: var(--radius);
}
.site-nav.is-scrolled .nav-cta { border-color: var(--wine); color: var(--wine) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--white);
  transition: background 0.3s ease;
}
.site-nav.is-scrolled .nav-toggle span { background: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
}
.hero-frame-bar {
  position: absolute; left: 0; right: 0; height: 28px; background: var(--ink);
  z-index: 3;
}
.hero-frame-bar--top { top: 0; }
.hero-frame-bar--bottom { bottom: 0; }
.hero-media { position: absolute; inset: 0; }
.hero-media-placeholder {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(169,131,90,0.18), transparent 55%),
    linear-gradient(160deg, #241f26 0%, #17151a 60%, #0f0d11 100%);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 40px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
  padding: 0 var(--gutter);
  color: var(--white);
}
.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 22px;
}
.hero-headline {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 26px;
}
.hero-sub {
  font-size: 1.1rem;
  color: #ffffff;
  max-width: 50ch;
  margin-bottom: 38px;
  color: var(--white);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%);
  z-index: 2; background: none; border: none; width: 26px; height: 42px;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 20px;
}
.scroll-cue span {
  display: block; width: 4px; height: 8px; margin: 7px auto 0;
  background: var(--white); border-radius: 2px;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  60% { opacity: 0.2; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* hero load sequence — the one deliberate motion moment */
.hero-kicker, .hero-headline, .hero-sub, .hero-actions {
  opacity: 0;
  transform: translateY(16px);
}
.hero.is-loaded .hero-kicker { animation: rise 0.7s 0.15s ease forwards; }
.hero.is-loaded .hero-headline { animation: rise 0.8s 0.32s ease forwards; }
.hero.is-loaded .hero-sub { animation: rise 0.8s 0.5s ease forwards; }
.hero.is-loaded .hero-actions { animation: rise 0.8s 0.68s ease forwards; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- wedding films ---------- */
.film-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 20px;
}
.film-card { cursor: pointer; }
.film-card--featured { grid-row: span 1; }
.film-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(150deg, #33272c, #1c1a1d);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
}
.film-card--featured .film-thumb { aspect-ratio: 16/11; }
.play-btn {
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.play-btn svg { width: 22px; height: 22px; fill: var(--ink); margin-left: 3px; }
.film-card:hover .play-btn { transform: scale(1.08); }
.film-thumb .placeholder-tag { position: absolute; bottom: 12px; left: 12px; }
.film-meta { padding-top: 14px; }
.film-meta h3 { margin-bottom: 4px; }
.film-meta p { color: #b9b1ae; font-size: 0.92rem; }

@media (max-width: 860px) {
  .film-grid { grid-template-columns: 1fr; }
}

/* ---------- photography masonry ---------- */
.masonry {
  columns: 4 220px;
  column-gap: 16px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, var(--parchment-deep), #ddd0b4);
  border-radius: var(--radius);
  display: flex; align-items: flex-end; padding: 12px;
  transition: transform 0.25s ease;
  cursor: pointer;
}
.masonry-item.span-tall { aspect-ratio: 3/4; }
.masonry-item.span-wide { aspect-ratio: 4/3; }
.masonry-item:hover { transform: translateY(-4px); }

/* ---------- statement ---------- */
.statement {
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  background: var(--white);
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}
.statement p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.4;
  color: var(--wine-deep);
}

/* ---------- weddings grid ---------- */
.wedding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.wedding-card { text-decoration: none; color: var(--ink); display: block; }
.wedding-cover {
  aspect-ratio: 4/5;
  background: linear-gradient(150deg, #ece2d0, #cbb98f);
  border-radius: var(--radius);
  display: flex; align-items: flex-end; padding: 14px;
  transition: opacity 0.2s ease;
}
.wedding-card:hover .wedding-cover { opacity: 0.85; }
.wedding-info { padding-top: 14px; }
.wedding-info p { color: var(--stone); font-size: 0.92rem; margin-top: 4px; }

@media (max-width: 860px) {
  .wedding-grid { grid-template-columns: 1fr; }
}

/* ---------- process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}
.process-list li { display: flex; gap: 20px; }
.process-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brass);
  line-height: 1;
  flex-shrink: 0;
}
.process-list h3 { margin-bottom: 8px; }
.process-list p { color: var(--stone); font-size: 0.96rem; }

@media (max-width: 760px) {
  .process-list { grid-template-columns: 1fr; }
}

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  padding: 30px 24px;
  border: 1px solid #e7ddc9;
  border-radius: var(--radius);
}
.service-card--accent { background: var(--wine); color: var(--white); border-color: var(--wine); }
.service-card--accent p { color: #e7d3d6; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--stone); font-size: 0.92rem; }

@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.about-media {
  background: linear-gradient(150deg, #2a2730, #1c1a1d);
  display: flex; align-items: flex-end; padding: 30px;
}
.about-media .placeholder-tag { color: #cfc7c3; background: rgba(0,0,0,0.35); }
.about-copy {
  padding: clamp(48px, 6vw, 90px);
  display: flex; flex-direction: column; justify-content: center;
  gap: 18px;
  background: var(--parchment);
}
.about-copy h2 { margin-bottom: 6px; }
.about-copy p { color: #4c463f; max-width: 52ch; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-media { min-height: 320px; }
}

/* ---------- testimonials ---------- */
.testimonial-track {
  display: flex;
  gap: 40px;
  overflow: hidden;
}
.testimonial {
  flex: 0 0 100%;
  margin: 0;
  transition: transform 0.5s ease;
}
.testimonial p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  max-width: 68ch;
}
.testimonial footer {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--brass);
}
.testimonial-nav { display: flex; gap: 14px; margin-top: 34px; }
.testimonial-nav button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: none; color: var(--white);
}
.testimonial-nav button:hover { background: rgba(255,255,255,0.1); }

/* ---------- business ---------- */
.plain-list { margin: 20px 0 26px; }
.plain-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e0d5bf;
  color: #4c463f;
}
.business-grid { display: grid; gap: 16px; }
.business-item {
  aspect-ratio: 16/10;
  background: linear-gradient(150deg, #e3d8c0, #c9bb97);
  border-radius: var(--radius);
  display: flex; align-items: flex-end; padding: 12px;
}

@media (max-width: 860px) {
  .section-inner--split { grid-template-columns: 1fr; }
}

/* ---------- final CTA ---------- */
.final-cta {
  background: var(--wine-deep);
  color: var(--white);
  text-align: center;
  padding: clamp(80px, 12vw, 130px) var(--gutter);
}
.final-cta h2 { color: var(--white); margin-bottom: 16px; }
.final-cta p { color: #e6d3d6; max-width: 46ch; margin: 0 auto 34px; }

/* ---------- form ---------- */
.inquiry-form { display: flex; flex-direction: column; gap: 36px; }
.form-section h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--wine);
  margin-bottom: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.inquiry-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.88rem; color: var(--stone);
}
.form-section > label { margin-bottom: 18px; }
.inquiry-form input,
.inquiry-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid #d9cfc0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  min-height: 48px;
}
.inquiry-form textarea { min-height: 100px; resize: vertical; }
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: 2px solid var(--wine);
  outline-offset: 1px;
}
.checkbox-row { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.checkbox-row label {
  flex-direction: row; align-items: center; gap: 8px;
  font-size: 0.94rem; color: var(--ink);
}
.checkbox-row input { min-height: auto; width: 18px; height: 18px; }

.form-confirmation {
  padding: 40px;
  background: var(--parchment);
  border-radius: var(--radius);
  text-align: center;
}
.form-confirmation h3 { margin-bottom: 12px; }
.form-confirmation a { color: var(--wine); text-decoration: underline; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfc7c3; }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 60px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between;
}
.footer-mark { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); margin-bottom: 6px; }
.footer-links, .footer-social { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a, .footer-social a { text-decoration: none; color: #cfc7c3; font-size: 0.9rem; }
.footer-links a:hover, .footer-social a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: var(--max-width); margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem;
}
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: #a89e99; text-decoration: none; }

/* ---------- modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,13,17,0.86); }
.modal-panel {
  position: relative; z-index: 1;
  background: var(--ink-soft);
  border-radius: 4px;
  max-width: 900px; width: 100%;
  padding: 20px;
}
.modal-panel--lightbox { max-width: 720px; }
.modal-close {
  position: absolute; top: -44px; right: 0;
  background: none; border: none; color: var(--white);
  font-size: 1.8rem; line-height: 1;
}
.video-placeholder, .lightbox-image {
  aspect-ratio: 16/9;
  background: linear-gradient(150deg, #33272c, #1c1a1d);
  display: flex; align-items: center; justify-content: center;
  color: #cfc7c3; text-align: center; padding: 30px;
  border-radius: 2px;
}
.lightbox-image { aspect-ratio: 4/5; }
.video-placeholder:has(iframe), .lightbox-image:has(img) { padding: 0; overflow: hidden; }
.video-placeholder iframe { width: 100%; height: 100%; border: 0; }
.lightbox-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- admin-managed media fill ---------- */
.hero-media-placeholder.has-image,
.film-thumb.has-image,
.masonry-item.has-image,
.wedding-cover.has-image,
.about-media.has-image,
.business-item.has-image {
  background-size: cover;
  background-position: center;
}
.lightbox-nav { display: flex; justify-content: space-between; margin-top: 14px; }
.lightbox-nav button {
  background: none; border: 1px solid rgba(255,255,255,0.4);
  color: var(--white); width: 42px; height: 42px; border-radius: 50%;
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- mobile nav ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 82vw);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px var(--gutter);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links a { color: var(--ink) !important; font-size: 1.1rem; }
  .nav-links.is-open { transform: translateX(0); }
  .nav-cta { border-color: var(--wine) !important; color: var(--wine) !important; }
}

@media (max-width: 560px) {
  .masonry { columns: 2 160px; }
}
