/* Property Pilot — thepropertypilot.co.nz
   Plain CSS. No build step, no framework, no decorative motion. */

/* ---------- tokens ---------- */
:root {
  --ground:      #faf7f2;   /* warm off-white */
  --ground-alt:  #f3ede4;   /* alternating section band */
  --ground-dark: #1d1a16;   /* hero fallback / footer */
  --ink:         #191714;   /* near-black text */
  --ink-soft:    #56504a;   /* secondary text */
  --clay:        #a8482a;   /* single earthy accent */
  --clay-dark:   #8a3920;
  --line:        #e2dace;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: 24px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
/* long unbroken strings (emails, placeholder tokens) must never widen the layout */
p, dd, li, h1, h2, h3 { overflow-wrap: break-word; }
a { color: var(--clay); }
a:hover { color: var(--clay-dark); }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn--primary:hover { background: var(--clay-dark); border-color: var(--clay-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--ground);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--clay); }
.header-call {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--clay);
  padding-bottom: 1px;
}
.header-call:hover { color: var(--clay); }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .wordmark { font-size: 1.1rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ground-dark);
  color: #fff;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
}
.hero__media { position: absolute; inset: 0; }
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* set by app.js when the clip is missing or cannot play */
.hero.is-videoless .hero__video { display: none; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,16,13,0.88) 0%, rgba(18,16,13,0.55) 45%, rgba(18,16,13,0.35) 100%);
}
.hero__content {
  position: relative;
  padding-top: 120px;
  padding-bottom: 72px;
  max-width: 880px;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e7cfc2;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.9rem);
  max-width: 19ch;
  color: #fff;
}
.hero__lead {
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  color: #ece6df;
  max-width: 52ch;
  margin-top: 20px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

@media (max-width: 600px) {
  .hero { min-height: 0; }
  .hero__content { padding-top: 84px; padding-bottom: 52px; }
  .hero__actions .btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- sections ---------- */
.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--ground-alt); }
.section__title {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  margin-bottom: 14px;
}
.section__intro {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 40px;
}
.section__title + .services,
.section__title + .work,
.section__title + .steps,
.section__title + .prose,
.section__title + .contact { margin-top: 44px; }

@media (max-width: 600px) {
  .section { padding: 56px 0; }
}

/* ---------- services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service {
  min-width: 0;
  background: var(--ground);
  border: 1px solid var(--line);
  border-top: 3px solid var(--clay);
  padding: 30px 26px 26px;
}
.section--alt .service { background: var(--ground); }
.service h3 { font-size: 1.32rem; margin-bottom: 12px; }
.service__what { font-size: 1.02rem; margin-bottom: 20px; }
.service__detail { margin: 0; }
.service__detail dt {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  color: var(--clay);
  margin-bottom: 5px;
}
.service__detail dd {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.service__detail dd:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- work / video facades ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}
.work-item { min-width: 0; }
.work-item h3 { font-size: 1.22rem; margin: 20px 0 8px; }
.work-item p { color: var(--ink-soft); font-size: 0.98rem; max-width: 46ch; }

.facade {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--ground-dark);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.facade img { width: 100%; height: 100%; object-fit: cover; }
.facade__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(24,22,18,0.78);
}
.facade__play svg { width: 74px; height: auto; }
.facade:hover .facade__play { color: var(--clay); }

/* the injected player keeps the same box */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 800px) {
  .work { grid-template-columns: 1fr; gap: 36px; }
  .facade__play svg { width: 60px; }
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step { min-width: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.step__n {
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--clay);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.18rem; margin-bottom: 10px; }
.step p:last-child { color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- about ---------- */
.prose p {
  font-size: 1.06rem;
  margin-bottom: 20px;
  max-width: 64ch;
}
.prose p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact__phone {
  display: block;
  width: fit-content;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5.5vw, 2.7rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--clay);
  line-height: 1.1;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.contact__phone:hover { color: var(--clay); }
.contact__email {
  display: block;
  width: fit-content;
  margin-top: 22px;
  font-size: 1.1rem;
  word-break: break-word;
}
.contact__note {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 34ch;
}

.contact__form {
  min-width: 0;
  background: var(--ground-alt);
  border: 1px solid var(--line);
  padding: 30px 28px;
}
.section--alt .contact__form { background: var(--ground); }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid #cdc3b4;
  border-radius: 2px;
  padding: 12px 13px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--clay); }
.hint { font-size: 0.86rem; color: var(--ink-soft); margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-size: 0.95rem; }
.form-status.is-error { color: #a3231a; }
.form-status.is-ok { color: #2c6135; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .contact__form { padding: 24px 20px; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ground-dark);
  color: #cfc7bd;
  padding: 44px 0;
  font-size: 0.94rem;
}
.site-footer strong { color: #fff; }
.site-footer a { color: #e2b6a3; }
.site-footer a:hover { color: #fff; }
.site-footer__inner p { margin-bottom: 8px; }
.site-footer__fine { color: #8d857c; margin-top: 18px; }
