/* =========================================================
   Harry Lee, Broker — styles
   Change the look here: colours, fonts and sizes all live in :root.
   ========================================================= */

:root {
  /* Colours */
  --navy-950: #0B1220;      /* main background (navy-black) */
  --navy-900: #131C2F;      /* tinted band */
  --navy-800: #1E2A42;      /* hairlines on dark */
  --ivory: #F5EFE4;         /* main text on dark, light band */
  --ivory-soft: #CFC6B6;    /* secondary text on dark */
  --brass: #C3954A;         /* gold accents */
  --walnut: #5A3E2B;        /* warm band */
  --walnut-soft: #E6D6C4;   /* secondary text on walnut */
  --cobalt: #2F5BD3;        /* buttons (from Harry's tie) */
  --cobalt-hover: #244AB4;
  --ink: #0B1220;           /* text on ivory */
  --ink-soft: #4A4438;      /* secondary text on ivory */
  --line-light: #D9CFBF;    /* hairlines on ivory */

  /* See-through navy for the hero, so the headline stays readable over the video */
  --veil-strong: rgba(11, 18, 32, 0.92);
  --veil-mid: rgba(11, 18, 32, 0.62);
  --veil-light: rgba(11, 18, 32, 0.2);
  --veil-button: rgba(11, 18, 32, 0.55);

  /* Fonts */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;

  /* Type scale (1.25 ratio from 17px) */
  --step-0: 1.0625rem;
  --step-1: 1.328rem;
  --step-2: 1.66rem;
  --step-3: 2.075rem;
  --step-4: 2.594rem;
  --step-5: 3.243rem;
  --step-6: 4.053rem;
  --small: 0.875rem;

  /* Spacing */
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-20: 20px;
  --s-24: 24px;
  --s-32: 32px;
  --s-40: 40px;
  --s-48: 48px;
  --s-56: 56px;
  --s-64: 64px;
  --s-96: 96px;

  --radius: 6px;
  --measure: 62ch;
  --wrap: 1180px;
  --callbar-h: 64px;
}

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

html, body { overflow-x: clip; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom));
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 var(--s-16);
}

h1 { font-size: clamp(var(--step-4), 1.4rem + 4.6vw, var(--step-6)); letter-spacing: -0.03em; }
h2 { font-size: clamp(var(--step-3), 1.5rem + 2vw, var(--step-5)); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 var(--s-16); max-width: var(--measure); }

a { color: inherit; text-underline-offset: 0.2em; }

::selection { background: var(--brass); color: var(--ink); }

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

.nowrap { white-space: nowrap; }

.todo {
  display: inline-block;
  background: var(--brass);
  color: var(--ink);
  font-size: var(--small);
  font-weight: 700;
  padding: 0 var(--s-8);
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: var(--s-16);
  top: -100px;
  z-index: 100;
  background: var(--ivory);
  color: var(--ink);
  padding: var(--s-12) var(--s-16);
  font-weight: 700;
}
.skip:focus { top: var(--s-16); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-20);
}

/* ---------- Sections (one padding rule; modifiers change colour only) ---------- */
.block { padding-block: var(--s-56); }

.block--tint { background: var(--navy-900); }

.block--light { background: var(--ivory); color: var(--ink); }
.block--light p { color: var(--ink-soft); }

.block--walnut { background: var(--walnut); color: var(--ivory); }
.block--walnut p { color: var(--walnut-soft); }

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ivory-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: var(--s-12) var(--s-24);
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  gap: 0.3em;
  cursor: pointer;
}

.btn--primary { background: var(--cobalt); color: var(--ivory); }
.btn--outline { border-color: var(--ivory); color: var(--ivory); background: var(--veil-button); }
.btn--light { background: var(--ivory); color: var(--ink); }

.btn-row { display: grid; gap: var(--s-12); margin-top: var(--s-24); }

@media (hover: hover) {
  .btn--primary:hover { background: var(--cobalt-hover); }
  .btn--outline:hover { background: var(--ivory); color: var(--ink); }
  .btn--light:hover { background: var(--walnut-soft); }
  .text-link:hover { color: var(--brass); }
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-950);
  border-bottom: 1px solid var(--navy-800);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-4);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  padding-block: var(--s-4);
}
.wordmark__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: 0.01em;
  color: var(--ivory);
}
.wordmark__title {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--brass);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.site-nav { width: 100%; }
.site-nav ul {
  display: flex;
  justify-content: space-between;
  gap: var(--s-8);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(0.8125rem, 3.9vw, 0.9375rem);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ivory-soft);
}
.site-nav a[aria-current="page"] { color: var(--ivory); box-shadow: inset 0 -2px 0 var(--brass); }

.header-call { display: none; }

@media (hover: hover) {
  .site-nav a:hover { color: var(--ivory); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-950);
}

.hero__media,
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--veil-mid) 0%, var(--veil-light) 30%, var(--veil-strong) 100%);
}

.hero .wrap {
  padding-top: var(--s-96);
  padding-bottom: var(--s-56);
}

.hero h1 { max-width: 14ch; }
.hero .lead { color: var(--ivory); max-width: 34ch; }

.hero__pause {
  position: absolute;
  right: var(--s-16);
  bottom: var(--s-16);
  display: none;
  min-height: 44px;
  padding: 0 var(--s-16);
  border: 1px solid var(--ivory-soft);
  border-radius: var(--radius);
  background: var(--veil-button);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--small);
  font-weight: 600;
  cursor: pointer;
}
.hero__pause.is-visible { display: block; }

/* On phones the pause button sits top right, clear of the stacked buttons */
@media (max-width: 767px) {
  .hero__pause { top: var(--s-16); bottom: auto; }
}

/* ---------- Facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: var(--s-24) 0;
  border-bottom: 1px solid var(--navy-800);
}
.facts div { padding-inline: var(--s-8); text-align: center; }
.facts div + div { border-left: 1px solid var(--navy-800); }
.facts dt {
  font-family: var(--font-display);
  font-size: clamp(var(--step-2), 1.2rem + 2vw, var(--step-4));
  line-height: 1.1;
  color: var(--brass);
}
.facts dd { margin: var(--s-4) 0 0; font-size: var(--small); color: var(--ivory-soft); line-height: 1.35; }

/* ---------- Meet Harry (intro video) ---------- */
.intro { display: grid; gap: var(--s-32); align-items: center; }

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--navy-800);
  /* Harry's portrait, shown until the YouTube video arrives */
  background-image: url("images/harry-lee-portrait-800.webp");
  background-size: cover;
  background-position: 50% 18%;
  background-color: var(--navy-800);
}
.video-box__label {
  position: absolute;
  left: var(--s-12);
  right: var(--s-12);
  bottom: var(--s-12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-8);
  padding: var(--s-8) var(--s-12);
  border-radius: var(--radius);
  background: var(--veil-strong);
  font-size: var(--small);
  font-weight: 600;
}
.video-box__label svg { flex: none; }

/* ---------- Towns ---------- */
.towns { display: grid; gap: var(--s-24); }
.towns ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 var(--s-32);
}
.towns li {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.2;
  padding-block: var(--s-12);
  border-bottom: 1px solid var(--line-light);
}

/* ---------- Ways Harry helps ---------- */
.services { list-style: none; margin: var(--s-32) 0 0; padding: 0; }
.services li {
  display: grid;
  gap: var(--s-8);
  padding-block: var(--s-24);
  border-top: 1px solid var(--navy-800);
}
.services li:last-child { border-bottom: 1px solid var(--navy-800); }
.services h3 { margin: 0; }
.services p { color: var(--ivory-soft); margin: 0; }
.services .aside { font-size: var(--small); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--ivory);
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
}

/* ---------- Closing call band ---------- */
.closing h2 { max-width: 18ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-800);
  padding-block: var(--s-48) var(--s-32);
  font-size: var(--small);
  color: var(--ivory-soft);
}
.site-footer .wrap { display: grid; gap: var(--s-32); }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ivory);
  margin-bottom: var(--s-8);
}
.site-footer p { margin-bottom: var(--s-8); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.3em;
  text-decoration: none;
}
.footer-dre { margin-top: var(--s-16); }
.footer-logo { width: 220px; height: auto; margin-left: -12px; }
.licence {
  border-top: 1px solid var(--navy-800);
  padding-top: var(--s-24);
}
.licence p { max-width: none; }
.licence strong { color: var(--ivory); font-weight: 600; }

@media (hover: hover) {
  .site-footer li a:hover { color: var(--ivory); }
}

/* ---------- Call / text bar (phones and small tablets) ---------- */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  padding: var(--s-8) var(--s-12) calc(var(--s-8) + env(safe-area-inset-bottom));
  background: var(--navy-950);
  border-top: 1px solid var(--navy-800);
}
.callbar .btn { min-height: 48px; padding-inline: var(--s-12); }

/* ---------- Tablet and up ---------- */
@media (min-width: 768px) {
  .block { padding-block: var(--s-96); }
  .wrap { padding-inline: var(--s-32); }

  .btn { width: auto; }
  .btn-row { display: flex; flex-wrap: wrap; gap: var(--s-12); }

  .site-header .wrap { flex-wrap: nowrap; gap: var(--s-32); padding-block: var(--s-12); }
  .site-nav { width: auto; }
  .site-nav ul { gap: var(--s-24); }
  .site-nav a { font-size: 0.9375rem; }

  .hero .wrap { padding-top: 160px; padding-bottom: var(--s-96); }
  .hero::after {
    background:
      linear-gradient(90deg, var(--veil-strong) 0%, var(--veil-mid) 45%, var(--veil-light) 100%),
      linear-gradient(180deg, transparent 60%, var(--veil-strong) 100%);
  }

  .facts { padding-block: var(--s-40); }
  .facts dd { font-size: var(--step-0); }

  .towns ul { grid-template-columns: 1fr 1fr; }

  .services li { grid-template-columns: 1fr 1.4fr; gap: var(--s-8) var(--s-48); }
  .services li > :not(h3) { grid-column: 2; }
  .services h3 { grid-row: 1 / span 4; }

  .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; }
  .licence { grid-column: 1 / -1; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }

  .header-call { display: flex; }
  .site-nav { margin-left: auto; }

  .intro { grid-template-columns: 1.15fr 1fr; gap: var(--s-64); }
  .towns { grid-template-columns: 1fr 1.3fr; gap: var(--s-64); align-items: start; }
}

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__media video { display: none; }
}

/* =========================================================
   Inner pages (Sell, Buy, Investors, Join, About, Contact)
   ========================================================= */

/* Shorter hero with the hillside photo, no video */
.hero--inner .wrap { padding-top: var(--s-64); padding-bottom: var(--s-48); }
.hero--inner h1 { max-width: 18ch; }

/* Two columns on wider screens */
.split { display: grid; gap: var(--s-32); align-items: start; }

/* Steps in order */
.steps { list-style: none; margin: var(--s-24) 0 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: var(--s-16) 0 var(--s-16) var(--s-56);
  border-top: 1px solid var(--navy-800);
}
.steps li:last-child { border-bottom: 1px solid var(--navy-800); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: var(--s-12);
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--brass);
}
.steps h3 { font-size: var(--step-1); margin-bottom: var(--s-4); }
.steps p { color: var(--ivory-soft); margin: 0; }
.block--light .steps li { border-color: var(--line-light); }
.block--light .steps li::before { color: var(--walnut); }
.block--light .steps p { color: var(--ink-soft); }

/* Example pre-listing value summary (Sell page) */
.sample {
  position: relative;
  background: var(--ivory);
  color: var(--ink);
  border-radius: var(--radius);
  padding: var(--s-24);
  border-top: 6px solid var(--brass);
}
.sample h3 { font-size: var(--step-1); margin-bottom: var(--s-4); }
.sample__meta { font-size: var(--small); color: var(--ink-soft); margin-bottom: var(--s-16); }
.sample dl { margin: 0; }
.sample dt {
  font-size: var(--small);
  font-weight: 700;
  color: var(--walnut);
  padding-top: var(--s-12);
  border-top: 1px solid var(--line-light);
}
.sample dd { margin: var(--s-4) 0 var(--s-12); color: var(--ink-soft); font-size: var(--small); }
.sample__stamp {
  position: absolute;
  top: var(--s-16);
  right: var(--s-16);
  transform: rotate(4deg);
  border: 2px solid var(--walnut);
  color: var(--walnut);
  border-radius: 4px;
  padding: 0 var(--s-8);
  font-size: var(--small);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* A highlighted note, e.g. the fast cash sale link */
.note {
  border-left: 4px solid var(--brass);
  background: var(--navy-900);
  padding: var(--s-20) var(--s-24);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note h2, .note h3 { font-size: var(--step-1); margin-bottom: var(--s-8); }
.note p { color: var(--ivory-soft); }

/* Simple bullet list with brass markers */
.ticks { list-style: none; margin: var(--s-16) 0 0; padding: 0; }
.ticks li { position: relative; padding: var(--s-8) 0 var(--s-8) var(--s-24); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 10px;
  height: 2px;
  background: var(--brass);
}
.block--light .ticks li::before { background: var(--walnut); }

/* Portrait (About page) */
.portrait {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--navy-800);
}

/* Person card for George (no card styling: just a split with a line) */
.person { border-top: 1px solid var(--navy-800); padding-top: var(--s-24); }
.person h3 { margin-bottom: var(--s-4); }
.person__role { font-size: var(--small); color: var(--brass); font-weight: 700; margin-bottom: var(--s-12); }

.company-logo { width: 200px; height: auto; margin-top: var(--s-8); }

/* Contact form */
.form { display: grid; gap: var(--s-16); max-width: 560px; }
.form label { display: block; font-weight: 600; margin-bottom: var(--s-4); }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 2px solid var(--ivory-soft);
  border-radius: var(--radius);
  padding: var(--s-12);
  min-height: 48px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { border-color: var(--brass); }
.form__status { font-weight: 600; color: var(--brass); min-height: 1.5em; margin: 0; }

.contact-list { list-style: none; margin: var(--s-16) 0 0; padding: 0; }
.contact-list li { border-top: 1px solid var(--navy-800); }
.contact-list li:last-child { border-bottom: 1px solid var(--navy-800); }
.contact-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-12);
  min-height: 56px;
  text-decoration: none;
  font-weight: 700;
}
.contact-list span { color: var(--ivory-soft); font-weight: 400; }

@media (min-width: 768px) {
  .hero--inner .wrap { padding-top: var(--s-96); padding-bottom: var(--s-64); }
}

@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-64); }
  .split--wide-left { grid-template-columns: 1.3fr 1fr; }
}
.spaced { margin-top: var(--s-24); }

/* George's photo beside his bio */
.person { display: grid; grid-template-columns: 112px 1fr; gap: var(--s-20); align-items: start; }
.person__photo {
  width: 112px;
  height: 140px;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: var(--radius);
}

/* HomeSmart logo (footer and Join page) */
.footer-homesmart { width: 160px; height: auto; margin-bottom: var(--s-12); }
.partner-logo { width: 200px; height: auto; margin-bottom: var(--s-12); }
