/* PropertyVidTour site styles. Brand colors and type from Brand Foundation v1.
   To rename the business, edit js/brand.js — not this file. */

:root {
  --ink: #0e1b2c;
  --brass: #b08d57;
  --cosmic: #f77314;
  --ivory: #f6f2ea;
  --stone: #d9d2c5;
  --slate: #5b6573;
  --white: #ffffff;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --header-h: 84px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 28px;
  color: var(--slate);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.wordmark-name {
  font-family: var(--font-serif);
  color: var(--ink);
  margin: 0;
}

h1 {
  font-weight: 600;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-weight: 600;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.17;
}

h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
}

p {
  margin: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* Buttons — Cosmic Orange with Midnight Ink text for WCAG contrast */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-primary {
  background: var(--cosmic);
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #e06610;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(246, 242, 234, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--brass);
  color: var(--ivory);
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.site-nav a:focus-visible,
.wordmark:focus-visible,
input:focus-visible,
textarea:focus-visible,
.dialog-close:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(14, 27, 44, 0.72), rgba(14, 27, 44, 0));
  transition: background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(14, 27, 44, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  flex-shrink: 0;
  width: max-content;
  max-width: 100%;
}

.wordmark-name {
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ivory);
}

.wordmark-rule {
  width: 100%;
  height: 1.5px;
  background: var(--brass);
  margin: 6px 0 5px;
  border: 0;
}

.wordmark-descriptor {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ivory);
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--brass);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ivory);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
}

.hero-video,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14, 27, 44, 0.90) 0%, rgba(14, 27, 44, 0.52) 45%, rgba(14, 27, 44, 0.34) 100%),
    linear-gradient(to right, rgba(14, 27, 44, 0.48), transparent 60%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 0 88px;
  max-width: 720px;
}

.hero h1 {
  color: var(--ivory);
}

.hero-lead {
  margin: 18px 0 32px;
  font-size: 18px;
  line-height: 30px;
  color: var(--stone);
  max-width: 28em;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p {
  margin-top: 14px;
}

.section-muted {
  background: var(--stone);
  background: color-mix(in srgb, var(--stone) 42%, var(--ivory));
}

/* Samples */
.sample-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 12px;
  overflow: hidden;
}

.sample-media {
  position: relative;
  min-height: 320px;
}

.sample-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ivory);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--stone);
}

.badge-static {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}

.sample-intro {
  margin-bottom: 28px;
  max-width: 640px;
}

.sample-intro h3 {
  margin-bottom: 8px;
}

.sample-body {
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sample-body h3 {
  margin-bottom: 8px;
}

.sample-meta {
  font-size: 14px;
  line-height: 22px;
  color: var(--slate);
  margin: 0 0 22px;
}

.sample-meta strong {
  color: var(--ink);
  font-weight: 500;
}

.sample-stills {
  /* Rows of three; a short last row is centered. Add or remove figures freely. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.sample-stills figure {
  flex: 1 1 calc((100% - 32px) / 3);
  max-width: calc((100% - 32px) / 3);
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--stone);
  background: var(--stone);
}

.sample-stills img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.sample-stills figcaption {
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 10px 10px;
  color: var(--slate);
  background: var(--ivory);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  padding-top: 8px;
}

.step-num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--brass);
  display: block;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 10px;
}

/* Pricing */
.pricing-card {
  max-width: 520px;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 12px;
  padding: 48px 48px 40px;
}

.price {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  color: var(--ink);
  margin: 8px 0 6px;
}

.price span {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--slate);
}

.pricing-card .btn {
  margin-top: 28px;
}

/* Closing CTA + form */
.cta-band {
  background: var(--ink);
  color: var(--stone);
  padding: 104px 0 96px;
}

.cta-band h2 {
  color: var(--ivory);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.cta-copy p {
  margin-top: 16px;
  max-width: 28em;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label,
.contact-form .label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--stone);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--ivory);
  background: rgba(246, 242, 234, 0.06);
  border: 1px solid rgba(217, 210, 197, 0.28);
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(176, 141, 87, 0.7);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 13px;
  line-height: 20px;
  color: var(--stone);
  opacity: 0.8;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--stone);
  border-top: 1px solid rgba(217, 210, 197, 0.16);
  padding: 40px 0 48px;
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.site-footer .wordmark-name {
  color: var(--ivory);
  font-size: 20px;
}

.credit {
  font-size: 13px;
  line-height: 22px;
  max-width: 52em;
}

.site-footer a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
}

.site-footer a:hover {
  color: var(--brass);
}

/* Dialog */
.tour-dialog {
  border: 0;
  padding: 0;
  background: var(--ink);
  color: var(--ivory);
  width: min(960px, calc(100vw - 32px));
  border-radius: 10px;
  overflow: hidden;
}

.tour-dialog::backdrop {
  background: rgba(14, 27, 44, 0.82);
}

.tour-dialog video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

.dialog-bar p {
  font-size: 13px;
}

.dialog-close {
  background: transparent;
  border: 0;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Thank-you page */
.thanks {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ivory);
  padding: 120px 0 80px;
}

.thanks-card {
  max-width: 560px;
}

.thanks .btn {
  margin-top: 28px;
}

.thanks a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
}

.thanks a:not(.btn):hover {
  color: var(--brass);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

}

/* Mobile */
@media (max-width: 860px) {
  body {
    font-size: 16px;
    line-height: 26px;
  }

  .wrap,
  .header-inner {
    width: min(var(--max), calc(100% - 32px));
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
  }

  .site-nav.is-open {
    transform: none;
  }

  .hero-copy {
    padding-bottom: 64px;
  }

  .section {
    padding: 72px 0;
  }

  .sample-card,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .sample-media {
    min-height: 240px;
    aspect-ratio: 3 / 2;
  }

  .sample-body {
    padding: 28px 24px 32px;
  }

  .sample-stills figure {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .cta-band {
    padding: 80px 0 72px;
  }
}
