/* ==========================================================================
   Margaritas Videography — stylesheet
   Design direction: a wedding-film studio's site should feel like it was
   cut on an editing timeline, not a template. The recurring motif is the
   cinema frame — letterbox bars + editor's timecode — used only where the
   content is genuinely about runtime (hero, coverage packages).
   ========================================================================== */

:root {
  /* Color */
  --color-bg: #14110d;          /* near-black warm charcoal, screening-room dark */
  --color-surface: #1f1a13;     /* card / panel surface, one step up from bg */
  --color-surface-raised: #29221a;
  --color-text: #f3ede0;        /* warm ivory */
  --color-text-muted: #b7ac99;  /* muted warm grey for secondary copy */
  --color-accent: #c6a15b;      /* brass / champagne gold */
  --color-accent-soft: #c6a15b33;
  --color-line: #3a3226;        /* hairline borders on dark surfaces */

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;

  /* Layout */
  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
  --letterbox: clamp(10px, 2vw, 22px);

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 0.5s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { 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;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

/* Focus visibility everywhere, always */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border: 1px solid var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--color-accent); color: #14110d; }
.btn-solid {
  background: var(--color-accent);
  color: #14110d;
}
.btn-solid:hover, .btn-solid:focus-visible { background: transparent; color: var(--color-text); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Site header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  background: linear-gradient(to bottom, rgba(20,17,13,0.85), transparent);
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(20,17,13,0.92);
  backdrop-filter: blur(8px);
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--color-line);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.02em;
}
.wordmark span { color: var(--color-accent); }

.nav-links { display: flex; gap: 2.4rem; align-items: center; }
.nav-links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--color-accent);
  transition: width var(--dur) var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--color-accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 50;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--color-text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Letterbox frame motif ---------- */
.frame-bars { position: relative; overflow: hidden; }
.frame-bars::before, .frame-bars::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: var(--letterbox);
  background: var(--color-bg);
  z-index: 3;
}
.frame-bars::before { top: 0; }
.frame-bars::after { bottom: 0; }

.grain { position: absolute; inset: 0; z-index: 1; opacity: 0.05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 20%, #2a2016 0%, transparent 60%),
    linear-gradient(160deg, #1c170f 0%, #0f0d0a 70%);
}
.hero-inner { position: relative; z-index: 2; padding-top: var(--letterbox); padding-bottom: var(--letterbox); }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.05;
}
.hero h1 em { color: var(--color-accent); font-style: italic; }
.hero-sub {
  margin: 1.6rem auto 0;
  max-width: 40ch;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.hero-scroll {
  margin-top: 3.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* ---------- Section shell ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { max-width: 56ch; margin-bottom: 3rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
}
.section-alt { background: var(--color-surface); }

/* ---------- Film frame / video showcase ---------- */
.film-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--color-line);
  padding: 0;
  text-align: left;
}
.film-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.film-frame:hover img { transform: scale(1.04); }
.film-frame::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,17,13,0.75), rgba(20,17,13,0.1) 55%);
}
.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 0.9rem;
  color: var(--color-text);
}
.play-btn .ring {
  width: 64px; height: 64px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease);
}
.film-frame:hover .ring { background: var(--color-accent-soft); }
.play-btn .ring svg { fill: var(--color-accent); }
.play-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Video modal */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(10,9,7,0.92);
  padding: var(--gutter);
}
.modal.is-open { display: flex; }
.modal-box { width: 100%; max-width: 960px; aspect-ratio: 16/9; position: relative; }
.modal-box iframe { width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute; top: -2.6rem; right: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}
.modal-close:hover { color: var(--color-accent); }

/* ---------- Intake form ---------- */
.intake { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { position: relative; margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  padding: 0.7rem 0.1rem;
  color: var(--color-text);
  transition: border-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-color: var(--color-accent); outline: none; }
.field input:invalid:not(:placeholder-shown) { border-color: #a15b4a; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.form-status {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  min-height: 1.2em;
}
.form-status.ok { color: #8fae7c; }
.form-status.err { color: #c96a5b; }

/* ---------- Price / packages page ---------- */
.page-banner { padding-top: calc(7rem + var(--letterbox)); padding-bottom: 3rem; text-align: left; background: linear-gradient(180deg, #1c170f, var(--color-bg)); }
.page-banner h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-banner p { margin-top: 1rem; max-width: 60ch; color: var(--color-text-muted); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--color-line);
}
.price-card {
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.price-card.is-visible { opacity: 1; transform: none; }
.price-media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.price-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); }
.timecode {
  position: absolute; left: 0; bottom: 0;
  display: flex; align-items: baseline; gap: 0.5rem;
  background: rgba(20,17,13,0.82);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-mono);
}
.timecode .tc-value { font-size: 1.05rem; letter-spacing: 0.06em; color: var(--color-accent); }
.timecode .tc-label { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-muted); }

.price-body { padding: 2rem clamp(1.4rem, 3vw, 2.2rem) 2.2rem; display: flex; flex-direction: column; flex: 1; }
.price-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}
.price-tag {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: 1.6rem;
  margin-top: 0.4rem;
}
.price-features { margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.7rem; }
.price-features li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.price-features li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 1px;
  background: var(--color-accent);
}
.price-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Book page ---------- */
.book-hero { padding-top: calc(8rem + var(--letterbox)); padding-bottom: 4rem; }
.book-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.08; max-width: 16ch; }
.book-hero h1 em { font-style: italic; color: var(--color-accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 3.4rem 0 2.4rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.4rem;
  margin-bottom: 2.4rem;
}
.footer-brand { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; }
.footer-contact h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}
.footer-contact a { display: block; margin-bottom: 0.35rem; }
.footer-contact a:hover { color: var(--color-accent); }
.footer-social { display: flex; align-items: center; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur) var(--ease);
}
.footer-social a:hover { border-color: var(--color-accent); }
.footer-social svg { fill: var(--color-text-muted); width: 16px; height: 16px; }
.footer-social a:hover svg { fill: var(--color-accent); }
.footer-base {
  padding-top: 1.6rem;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 0 0 0 30%;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    gap: 1.8rem;
    border-left: 1px solid var(--color-line);
  }
  .nav-open .nav-links { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-links a { font-size: 1rem; }

  .price-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
