/* ==========================================================
   Nearlyweds — shared styles
   Colours live in :root so you can change them in one place.
   ========================================================== */
:root {
  --ink: #1e0a10;          /* main dark text */
  --paper: #f8f4f4;        /* light background */
  --wine: #2b0f17;         /* deep wine sections */
  --night: #0d0407;        /* near-black (nav, footer, film bars) */
  --red: #8c1826;          /* brand red */
  --red-bright: #b5202f;
  --gold: #e3c15f;
  --gold-line: #c9a227;
  --gold-dark: #6f5210;
  --line-dark: rgba(43, 15, 23, 0.16);
  --line-light: rgba(248, 244, 244, 0.14);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --label: 'Marcellus', Georgia, serif;
  --sans: 'Work Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 30px; /* room for the bottom film bar */
}
img, svg { display: block; max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-bright); }
::selection { background: var(--red-bright); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

/* ---------- Film treatment ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.film-bar {
  position: fixed; left: 0; right: 0; z-index: 200; height: 30px; background: var(--night);
}
.film-bar.top { top: 0; border-bottom: 1px solid var(--gold-line); }
.film-bar.bottom { bottom: 0; border-top: 1px solid var(--gold-line); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; left: 0; right: 0; top: 30px; z-index: 190;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 32px;
  background: rgba(13, 4, 7, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 38px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 30px;
  font-family: var(--label); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-links a { color: rgba(248, 244, 244, 0.72); transition: color .22s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.bg-paper { background: var(--paper); }
.bg-wine { background: var(--wine); color: var(--paper); }
.bg-red { background: var(--red); color: var(--paper); }
.bg-night { background: var(--night); color: var(--paper); }

.section-head { max-width: 640px; margin-bottom: 60px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold-dark); }
.eyebrow span {
  font-family: var(--label); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dark);
}
.on-dark .eyebrow::before { background: var(--gold-line); }
.on-dark .eyebrow span { color: var(--gold); }

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.05; }
h2 { font-size: clamp(2rem, 3.2vw, 2.7rem); }
.lede { margin-top: 16px; font-size: 1.02rem; max-width: 52ch; color: rgba(30, 10, 16, 0.72); }
.on-dark .lede { color: rgba(248, 244, 244, 0.68); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px;
  border-radius: 2px; font-family: var(--sans); font-size: 0.86rem; letter-spacing: 0.02em;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-red { background: var(--red); color: var(--paper); border: 1px solid var(--red); }
.btn-red:hover { background: transparent; color: var(--gold); border-color: var(--gold); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-dark:hover { background: transparent; color: var(--ink); transform: translateY(-1px); }
.btn-light { background: var(--paper); color: var(--ink); border: 1px solid var(--paper); }
.btn-light:hover { background: transparent; color: var(--paper); transform: translateY(-1px); }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }
.text-link {
  font-family: var(--label); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid rgba(140, 24, 38, 0.4); padding-bottom: 3px;
}

/* ---------- Home: opening reel ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: 70px 0 90px; color: var(--paper); overflow: hidden; text-align: center; background: var(--night);
}
.reel-viewport { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.reel-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.reel-frame { position: relative; width: 260px; height: 100%; flex-shrink: 0; margin-right: 4px; }
.reel-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-end {
  position: relative; width: min(100vw, 1100px); height: 100%; flex-shrink: 0; background: var(--wine);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  border-left: 1px solid rgba(201, 162, 39, 0.35); border-right: 1px solid rgba(201, 162, 39, 0.35);
}
.reel-caption { display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; transition: opacity 900ms ease; }
.reel-caption span {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2rem;
  color: var(--paper); line-height: 1.35; max-width: 34ch; display: block;
}
.reel-fade { position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none; }
.reel-fade.left { left: 0; background: linear-gradient(90deg, var(--night), transparent); }
.reel-fade.right { right: 0; background: linear-gradient(-90deg, var(--night), transparent); }
.hero-tint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(181, 32, 47, 0.08), transparent 55%),
              linear-gradient(180deg, rgba(13, 4, 7, 0.28) 0%, rgba(13, 4, 7, 0.12) 45%, rgba(13, 4, 7, 0.5) 100%);
}
.hero-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 140px 30px rgba(0, 0, 0, 0.4); }

/* ---------- Service cards ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-dark); border: 1px solid var(--line-dark);
}
.svc {
  color: inherit; background: var(--paper); padding: 42px 32px;
  display: flex; flex-direction: column; transition: background .25s;
}
.svc h3 { font-family: var(--serif); font-weight: 700; line-height: 1.05; font-size: 1.55rem; margin-bottom: 14px; transition: color .25s; }
.svc p { font-size: 0.92rem; color: rgba(30, 10, 16, 0.68); margin-bottom: 22px; flex-grow: 1; transition: color .25s; }
.svc ul {
  list-style: none; font-size: 0.84rem; color: rgba(30, 10, 16, 0.75);
  display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line-dark); padding-top: 16px;
  transition: color .25s, border-color .25s;
}
.svc li { display: flex; gap: 9px; }
.svc li::before { content: '•'; color: var(--gold-dark); }
.svc:hover { background: var(--red); }
.svc:hover h3, .svc:hover p, .svc:hover ul, .svc:hover li, .svc:hover li::before { color: var(--gold); }
.svc:hover ul { border-color: rgba(227, 193, 95, 0.35); }

/* ---------- Process rows ---------- */
.process { border-top: 1px solid var(--line-light); }
.process-row {
  display: grid; grid-template-columns: 150px 1fr 1.4fr; gap: 28px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--line-light);
}
.process-row .when { font-family: var(--label); font-size: 0.78rem; color: var(--gold); padding-top: 4px; letter-spacing: 0.05em; text-transform: uppercase; }
.process-row h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--paper); line-height: 1.05; }
.process-row p { font-size: 0.92rem; color: rgba(248, 244, 244, 0.58); }

/* ---------- Photo stills ---------- */
.stills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.still { position: relative; aspect-ratio: 21 / 13; overflow: hidden; }
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.still::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 40px 8px rgba(0, 0, 0, 0.5); }
.still:hover img { transform: scale(1.06); }

/* ---------- Reviews ---------- */
.t-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(248, 244, 244, 0.2); border: 1px solid rgba(248, 244, 244, 0.2);
}
.t-card { background: var(--red); padding: 36px 30px; }
.t-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; margin-bottom: 16px; }
.t-card blockquote { font-family: var(--serif); font-style: italic; font-size: 1.16rem; line-height: 1.45; margin-bottom: 24px; }
.t-card cite { font-style: normal; font-size: 0.72rem; color: rgba(248, 244, 244, 0.6); font-family: var(--label); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Contact + form ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; }
.contact-intro p { color: rgba(30, 10, 16, 0.72); margin: 20px 0 34px; max-width: 40ch; }
.contact-detail { font-size: 0.92rem; }
.small-label {
  display: block; font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red); margin-bottom: 4px;
}
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(30, 10, 16, 0.55);
}
.field label small { text-transform: none; letter-spacing: 0.01em; font-size: inherit; opacity: 0.85; }
.field input, .field select, .field textarea {
  background: var(--paper); border: 1px solid var(--line-dark); border-radius: 2px;
  padding: 13px 14px; font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  transition: border-color .2s; width: 100%;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238c0f24' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red-bright); outline: none; }
.form .btn { align-self: flex-start; margin-top: 6px; }
.form-status { font-size: 0.9rem; color: var(--red); min-height: 1.4em; }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Inner page hero (About / Services) ---------- */
.page-hero {
  position: relative; padding: 200px 0 110px; background: var(--wine); color: var(--paper); overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 4, 7, 0.55) 0%, rgba(43, 15, 23, 0.75) 60%, var(--wine) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 16ch; }
.page-hero h1 em { font-weight: 400; color: var(--gold); }

/* ---------- Split feature (image + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.flip .feature-img { order: 2; }
.feature-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 50px 10px rgba(0, 0, 0, 0.45); }
.feature h2 { margin-bottom: 18px; }
.feature p { color: rgba(30, 10, 16, 0.72); font-size: 1.02rem; max-width: 46ch; }
.feature ul { list-style: none; margin-top: 26px; border-top: 1px solid var(--line-dark); }
.feature li {
  display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--serif); font-size: 1.2rem;
}
.feature li::before { content: '•'; color: var(--gold-dark); }

/* ---------- Principles / packages ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.trio > div { background: var(--wine); padding: 40px 32px; }
.trio .num { font-family: var(--label); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 18px; display: block; }
.trio h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; margin-bottom: 12px; }
.trio p { font-size: 0.92rem; color: rgba(248, 244, 244, 0.62); }

/* ---------- Big quote ---------- */
.big-quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.25; max-width: 26ch; margin: 0 auto; text-align: center;
}

/* ---------- Closing call to action band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: rgba(248, 244, 244, 0.7); max-width: 48ch; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(248, 244, 244, 0.65); padding: 70px 0 30px; text-align: center; position: relative; z-index: 2; }
.footer-label { font-family: var(--label); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-logo { height: 34px; width: auto; margin: 0 auto 26px; }
.footer-email { display: inline-block; color: rgba(248, 244, 244, 0.7); font-size: 0.9rem; margin-bottom: 36px; }
.footer-email:hover { color: var(--gold); }
.footer-base {
  border-top: 1px solid rgba(248, 244, 244, 0.12); padding-top: 26px;
  font-family: var(--label); font-size: 0.72rem; color: rgba(248, 244, 244, 0.4);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.page { animation: pageIn .6s ease both; }
body.leaving .page { opacity: 0; transition: opacity .34s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .contact-grid, .feature { grid-template-columns: 1fr; gap: 48px; }
  .feature.flip .feature-img { order: 0; }
  .feature-img { aspect-ratio: 4 / 3; }
  .svc-grid, .t-grid, .trio { grid-template-columns: 1fr; }
  .stills-grid { grid-template-columns: repeat(2, 1fr); }
  .process-row { grid-template-columns: 110px 1fr; }
  .process-row p { grid-column: 2 / 3; }
}
@media (max-width: 680px) {
  .nav { padding: 12px 18px; gap: 12px; }
  .nav-logo img { height: 22px; }
  .nav-links { gap: 14px; font-size: 0.6rem; letter-spacing: 0.08em; }
  .wrap { padding: 0 20px; }
  .hero { padding: 60px 0; min-height: 86vh; }
  .reel-caption span { font-size: 1.6rem; }
  .stills-grid, .form-row { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .page-hero { padding: 160px 0 80px; }
  .feature + .feature { margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
