/* TC Wedding Videos — concept site
   Built on the proven structure from the Summit Realty build, which carries
   several hard-won fixes (position:fixed scroll sections, circle-wipe starting
   at progress 0, z-index ordering for overlay/footer). Those are preserved
   deliberately — see the inline notes below. Palette, type and components are
   new: warm antique-gold + paper, editorial serif, built for wedding footage. */

:root {
  --bg-light: #f6f2ec;
  --bg-dark: #12110f;
  --text-on-light: #1a1815;
  --text-on-dark: #f6f2ec;
  --accent: #9c7a4d;
  --muted: #6e675c;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg-light);
  color: var(--text-on-light);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ===== Loader ===== */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand {
  font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing: 0.32em;
  color: var(--text-on-dark);
  font-weight: 600;
}
.loader-brand span { color: var(--accent); }
#loader-bar-track { width: 220px; height: 2px; background: rgba(246,242,236,0.15); }
#loader-bar { width: 0%; height: 100%; background: var(--accent); transition: width 0.2s ease; }
#loader-percent { font-size: 0.75rem; letter-spacing: 0.15em; color: #a79c8c; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 1.8rem 5vw;
  mix-blend-mode: difference;
  transition: background-color 0.3s ease, padding 0.3s ease;
}
/* Over the video experience a transparent, difference-blended bar is right.
   Over the long-form sections below it isn't: it has no backdrop, so real
   content scrolls underneath it and the two overlap (caught for real — the
   contact block's phone number rendered straight through the nav). Past the
   experience it becomes a solid bar and drops the blend mode, so it occludes
   properly instead of compositing with whatever is behind it. */
.site-header.is-solid {
  mix-blend-mode: normal;
  background: var(--bg-dark);
  padding: 1.1rem 5vw;
  box-shadow: 0 1px 0 rgba(246,242,236,0.12);
}
.site-header.is-solid .logo,
.site-header.is-solid .nav-links a { color: var(--text-on-dark); }
.site-header.is-solid .logo span { color: var(--accent); }
.site-header nav { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; letter-spacing: 0.22em; color: #fff;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  color: #fff; text-decoration: none; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ===== Hero ===== */
.hero-standalone {
  position: relative; z-index: 10;
  height: 100vh; width: 100%;
  background-color: #2a2018;
  /* Overlay kept light enough that the photograph is genuinely the dominant
     layer rather than a texture under flat colour — the same balance the
     earlier build had to be corrected into after real feedback. */
  background-image: linear-gradient(180deg, rgba(26,20,14,.52) 0%, rgba(26,20,14,.74) 100%),
                     url('../frames/hero.jpg');
  background-size: cover; background-position: center 38%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 6vw;
  color: var(--text-on-dark);
}
/* Hero-scoped label colours. The shared --accent/--muted tokens are tuned for
   the light sections; over a photograph they fall well below 4.5:1. These are
   scoped replacements so the shared tokens stay untouched. */
.hero-standalone .section-label {
  color: #e2c39a; font-size: 0.82rem; letter-spacing: 0.24em;
  text-transform: uppercase; margin-bottom: 1.6rem; display: block;
}
.hero-heading {
  font-family: var(--font-display); font-weight: 500;
  font-size: 7.6rem; line-height: 1.0; letter-spacing: -0.015em;
  max-width: 16ch;
}
.hero-heading .word { display: inline-block; }
.hero-tagline {
  font-size: 1.12rem; line-height: 1.6; color: rgba(246,242,236,0.82);
  max-width: 44ch; margin-top: 2rem;
}
.hero-price-row {
  display: flex; align-items: baseline; gap: 2.6rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(246,242,236,0.18);
}
.hero-price { display: flex; flex-direction: column; }
.hero-price-label {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: #cdbca6; margin-bottom: 0.35rem;
}
.hero-price-value {
  font-family: var(--font-display); font-weight: 600; font-size: 2.3rem;
  color: #e2c39a; line-height: 1;
}
.hero-quickstats {
  display: flex; gap: 1.8rem; color: rgba(246,242,236,0.8); font-size: 0.98rem;
}
.hero-quickstats strong { color: var(--text-on-dark); font-weight: 600; }
/* Solid fill rather than a ghost outline: contrast no longer depends on
   whichever part of the photograph happens to sit behind it. */
.hero-skip-link {
  display: inline-flex; align-self: flex-start;
  margin-top: 1.6rem;
  background: #e2c39a; color: #2a1c0f; text-decoration: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.9rem 1.9rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.hero-skip-link:hover { background-color: #f0d6b2; transform: translateY(-1px); }
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 6vw;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-indicator span {
  font-size: 0.68rem; letter-spacing: 0.2em; color: #cdbca6; text-transform: uppercase;
}
.scroll-arrow { width: 1px; height: 40px; background: #cdbca6; position: relative; }
.scroll-arrow::after {
  content: ''; position: absolute; bottom: 0; left: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid #cdbca6; border-bottom: 1px solid #cdbca6;
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-standalone { will-change: opacity; }
}

/* ===== Canvas ===== */
.canvas-wrap { position: fixed; inset: 0; z-index: 1; clip-path: circle(0% at 50% 50%); }
#canvas { width: 100%; height: 100%; display: block; }

/* ===== Dark overlay ===== */
#dark-overlay { position: fixed; inset: 0; z-index: 50; background: var(--bg-dark); opacity: 0; pointer-events: none; }

/* ===== Marquee ===== */
.marquee-wrap {
  position: fixed; top: 44%; left: 0; z-index: 40;
  width: 240%; pointer-events: none; opacity: 0;
}
.marquee-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: 13vw; white-space: nowrap; line-height: 1;
  /* Light ghost. Measure over scroll 0.71-0.89 — that is the window app.js
     actually fades this in over, NOT the 0.20-0.29 an older comment in the
     Red Lime stylesheet cites. Brian's Pendrell Hall film means 91.2/255
     there, which lands inside the light-text band (TC 77.6, Red Lime 78.5,
     Video FX 101.2) and nowhere near the one dark-text build (K&K 123.8).
     Carries the 0.09/0.24 pair rather than TC's 0.07/0.20 because these
     frames run ~14 points brighter than TC's, and light ghost text needs
     the extra weight to read. Re-measure if the film changes — guessing
     this produces an invisible element. */
  color: rgba(246,242,236,0.09);
  -webkit-text-stroke: 1px rgba(246,242,236,0.24);
}

/* ===== Scroll container ===== */
/* z-index 60 sits above #dark-overlay (50) deliberately: otherwise the overlay
   paints 90% black over fully-opaque stat text and washes it out regardless of
   the text's own opacity. */
#scroll-container { position: relative; height: 1500vh; z-index: 60; }

.scroll-section {
  /* position:fixed, not absolute. Absolute inside a 1500vh container puts every
     section at the same single document point, so they only exist on screen
     near the container's midpoint — which reads as sections flashing and
     vanishing, and the final CTA never appearing at the real bottom at all.
     Fixed pins them to the viewport so scroll drives opacity only. */
  position: fixed; top: 50%; left: 0; width: 100%;
  transform: translateY(-50%);
  opacity: 0;
}
.section-inner { max-width: 40vw; }
.align-left { padding-left: 6vw; padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 6vw; }
.align-left .section-inner, .align-right .section-inner { max-width: 40vw; }

/* A backdrop behind the text block only — text sitting bare on moving footage
   is illegible no matter which frame is underneath. */
.section-content .section-inner,
.section-cta .section-inner {
  background: rgba(18, 17, 15, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.6rem 2.8rem;
  border-radius: 4px;
  border-left: 2px solid var(--accent);
}
.section-content .section-label,
.section-cta .section-label {
  display: block; font-size: 0.75rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: #c9a878; margin-bottom: 1.2rem;
}
.section-content .section-heading {
  font-family: var(--font-display); font-weight: 500;
  font-size: 4.2rem; line-height: 1.05; margin-bottom: 1.3rem;
  color: var(--text-on-dark);
}
.section-content .section-body,
.section-cta .section-body {
  font-size: 1.04rem; line-height: 1.68; color: rgba(246,242,236,0.82);
}

/* ===== Stats ===== */
.section-stats { width: 100%; padding: 0 8vw; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; }
.stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat-number {
  font-family: var(--font-display); font-weight: 600;
  font-size: 7vw; color: var(--text-on-dark);
  /* Cormorant ships old-style (text) figures by default: 9, 5, 3, 4 and 7 all
     drop below the baseline. At this size those descenders collided with the
     suffix directly underneath. Ask for lining figures, and keep real leading
     underneath as a fallback for when the loaded subset has no lining set. */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  line-height: 1.12;
}
.stat-suffix {
  font-size: 1rem; color: #c9a878; margin-top: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.stat-label {
  font-size: 0.86rem; line-height: 1.55; color: rgba(246,242,236,0.62);
  margin-top: 0.55rem; max-width: 24ch;
}

/* ===== CTA ===== */
.section-cta .section-heading {
  font-family: var(--font-display); font-weight: 500;
  font-size: 4.6rem; line-height: 1.02; margin-bottom: 1.3rem;
  color: var(--text-on-dark);
}
.section-cta .section-body { margin-bottom: 2rem; max-width: 36ch; }
.cta-button {
  display: inline-block; padding: 1.05rem 2.6rem;
  background: var(--accent); color: #17130d;
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 2px;
  transition: background 0.3s ease;
}
.cta-button:hover { background: #bb9660; }

/* ===== Full details (normal flow, not scroll-jacked) ===== */
/* z-index 90 for the same reason the footer needs 100: the fixed
   video-experience layers would otherwise bleed through a plain
   position:relative block. */
.details-section {
  position: relative; z-index: 90;
  background: var(--bg-light); color: var(--text-on-light);
  padding: 6rem 6vw;
}
.details-inner { max-width: 1040px; margin: 0 auto; }
.details-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 2rem;
  padding-bottom: 2.4rem; margin-bottom: 2.6rem;
  border-bottom: 1px solid rgba(26,24,21,0.14);
}
.details-heading {
  font-family: var(--font-display); font-weight: 500;
  font-size: 3rem; line-height: 1.08; margin: 0.6rem 0 0.5rem;
  max-width: 20ch;
}
.details-address { color: var(--muted); font-size: 0.92rem; letter-spacing: 0.02em; }
.details-price { text-align: right; }
.details-price-label {
  display: block; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem;
}
.details-price-value {
  font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--accent);
}
.details-body { max-width: 66ch; margin-bottom: 3rem; }
.details-body p {
  font-size: 1.06rem; line-height: 1.78; color: var(--text-on-light); margin-bottom: 1.2rem;
}
.details-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(26,24,21,0.14);
  border: 1px solid rgba(26,24,21,0.14);
  margin-bottom: 3rem;
}
.detail-item {
  background: var(--bg-light); padding: 1.6rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.detail-label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.detail-value { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.details-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; margin-bottom: 1rem; }
.details-subheading {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: 1.2rem;
}
.room-list { list-style: none; }
.room-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(26,24,21,0.1);
  font-size: 0.95rem;
}
.room-name { font-weight: 600; }
.room-size { color: var(--muted); }
.details-tenure { margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.features-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; }
.features-list li { font-size: 0.94rem; padding-left: 1.5rem; position: relative; }
.features-list li::before {
  content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

.stacked-section { border-top: 1px solid rgba(26,24,21,0.14); }
.section-heading-md {
  font-family: var(--font-display); font-weight: 500;
  font-size: 2.4rem; line-height: 1.15; margin: 0.6rem 0 2.2rem;
}

/* ===== Venues ===== */
.attachments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.attachment-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.4rem; border: 1px solid rgba(26,24,21,0.14);
  color: var(--text-on-light);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.attachment-item:hover { border-color: var(--accent); background: rgba(156,122,77,0.06); }
.attachment-icon { color: var(--accent); flex-shrink: 0; font-size: 0.6rem; }
.attachment-name { font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.attachment-name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; }

/* ===== Quotes ===== */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.quote-card {
  border-top: 2px solid var(--accent);
  padding: 1.6rem 0 0;
}
.quote-card p {
  font-family: var(--font-display); font-size: 1.28rem; line-height: 1.5;
  color: var(--text-on-light); margin-bottom: 1rem;
}
.quote-card cite {
  font-style: normal; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 4rem; }
.contact-form { display: flex; flex-direction: column; }
.calc-label {
  display: flex; justify-content: space-between; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 1.4rem 0 0.6rem;
}
.calc-label:first-child { margin-top: 0; }
.contact-input, .contact-textarea {
  width: 100%; padding: 0.9rem 1rem; font-family: var(--font-body); font-size: 0.95rem;
  border: 1px solid rgba(26,24,21,0.22); background: #fff; color: var(--text-on-light);
}
.contact-input:focus, .contact-textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.contact-textarea { min-height: 130px; resize: vertical; }
.contact-consent {
  display: flex; align-items: flex-start; gap: 0.7rem; margin: 1.6rem 0;
  font-size: 0.85rem; color: var(--muted);
}
.contact-consent input { margin-top: 0.2rem; accent-color: var(--accent); }
.contact-form .cta-button { border: none; cursor: pointer; align-self: flex-start; font-family: var(--font-body); }
.contact-form-note { margin-top: 1rem; font-size: 0.9rem; color: var(--accent); min-height: 1.2em; }
.contact-info { display: flex; flex-direction: column; gap: 1.6rem; justify-content: center; }
.contact-info p { font-size: 0.95rem; line-height: 1.7; }
.contact-info strong { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-info a { color: var(--text-on-light); text-decoration: none; border-bottom: 1px solid rgba(156,122,77,0.5); }
.contact-info a:hover { color: var(--accent); }

/* ===== Footer ===== */
.site-footer {
  /* z-index 100: every .scroll-section is position:fixed, so the persisted CTA
     stays glued to the viewport even once scroll has passed #scroll-container.
     Without a z-index above the highest fixed layer, the footer slides in
     underneath that still-visible text and the two overlap illegibly. */
  position: relative; z-index: 100;
  background: var(--bg-dark); color: var(--text-on-dark);
  padding: 5rem 6vw 2rem;
}
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem; max-width: 1200px; margin: 0 auto;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(246,242,236,0.12);
}
.footer-brand .logo { font-size: 1.5rem; }
.footer-tagline { margin-top: 0.9rem; color: #9a9184; font-size: 0.9rem; max-width: 26ch; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col-title {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #c9a878; margin-bottom: 0.3rem;
}
.footer-col a {
  color: var(--text-on-dark); text-decoration: none; font-size: 0.9rem;
  opacity: 0.85; transition: opacity 0.2s ease;
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 1.6rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.78rem; color: #9a9184;
}

/* Honest, unmissable disclosure — this site is a proposal built from stock
   placeholder footage, sent unsolicited. Saying so plainly on the page is the
   point, not fine print. */
.demo-disclosure {
  max-width: 1200px; margin: 2rem auto 0; padding: 1.2rem 1.4rem;
  border: 1px solid rgba(246,242,236,0.22);
  border-radius: 3px;
  font-size: 0.8rem; line-height: 1.7; color: #b5ac9e;
}
.demo-disclosure strong { color: var(--text-on-dark); display: block; margin-bottom: 0.3rem; }
.demo-disclosure a { color: #c9a878; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .hero-heading { font-size: 3.1rem; max-width: 100%; }
  .hero-tagline { font-size: 1rem; }
  .hero-price-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-quickstats { gap: 1.1rem; font-size: 0.9rem; flex-wrap: wrap; }
  .scroll-indicator { bottom: 1.2rem; }
  .align-left, .align-right { padding-left: 6vw; padding-right: 6vw; }
  .align-left .section-inner, .align-right .section-inner { max-width: 100%; }
  .section-content .section-inner, .section-cta .section-inner { padding: 1.8rem 1.6rem; }
  .section-content .section-heading { font-size: 2.2rem; }
  .section-cta .section-heading { font-size: 2.4rem; }
  .stats-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .stat-number { font-size: 16vw; }
  #scroll-container { height: 900vh; }
  .marquee-text { font-size: 22vw; }
  .nav-links { display: none; }
  .details-section { padding: 4rem 6vw; }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .details-columns { grid-template-columns: 1fr; gap: 2.4rem; }
  .features-list { grid-template-columns: 1fr; }
  .details-header { flex-direction: column; align-items: flex-start; }
  .details-price { text-align: left; }
  .details-heading { font-size: 2.1rem; }
  .section-heading-md { font-size: 1.8rem; }
  .attachments-grid { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .hero-heading { font-size: 5.2rem; }
  .attachments-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Narrow-viewport hero backdrop =====
   The hero photograph is the mobile LCP element, and the desktop file is
   1920px wide for a ~390px viewport. Same image, a third of the bytes. */
@media (max-width: 820px) {
  .hero-standalone {
    background-image: linear-gradient(180deg, rgba(26,20,14,.52) 0%, rgba(26,20,14,.74) 100%),
                      url('../frames/hero-sm.jpg');
  }
}
