/* ============================================================
   Troon Pacific, Inc. — Private Real Estate Advisory
   Design system: quiet, editorial, architectural
   ============================================================ */

:root {
  /* Brand: Troon Pacific Style Guide taupe #534840 / gray #696765,
     paired with a stately private-bank green and muted gold */
  --paper: #f5f4ef;
  --paper-deep: #ecebe3;
  --ink: #2e2a25;
  --ink-soft: #534840;   /* logo taupe — PMS 8405C */
  --muted: #696765;      /* logo warm gray — PMS 8402C */
  --line: #d7d4c9;
  --accent: #35543f;     /* stately green */
  --green-deep: #29402f;
  --gold: #a98e4e;
  --gold-soft: #c9b37e;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.9rem, 6.2vw, 5rem); line-height: 1.06; }
h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.18; }
h3 { font-size: 1.5rem; line-height: 1.3; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h2 + p, h3 + p { margin-top: 0.8em; }

p { max-width: var(--measure); }
p + p { margin-top: 1.1em; }

.lede {
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

em { font-style: italic; }

a { color: inherit; }

/* ---------- Layout ---------- */

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(24px, 6vw, 72px); }

section { padding: 4rem 0; }
section.tight { padding: 3rem 0; }

@media (max-width: 800px) {
  section { padding: 3rem 0; }
  .hero { padding: 3.25rem 0 2.75rem; }
}

@media (max-width: 420px) {
  .logo img { height: 32px; }
  .logo span { display: none; }
  html { font-size: 15px; }
}

.rule-top { border-top: 1px solid var(--line); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  align-items: start;
}

.sticky-label { position: sticky; top: 7rem; }

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .sticky-label { position: static; margin-bottom: 0.25rem; }
}

/* ---------- Header / Nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  gap: 2rem;
}

.wordmark {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.logo { text-decoration: none; display: inline-block; }

.logo img { display: block; height: 46px; width: auto; }

.logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.55rem;
}

footer .logo img { height: 40px; }

.wordmark span {
  display: block;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: var(--muted);
  margin-top: 0.35rem;
}

nav.primary { display: flex; flex-wrap: wrap; gap: 1.7rem; justify-content: flex-end; }

nav.primary a {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav.primary a:hover { color: var(--ink); }
nav.primary a.active { color: var(--ink); border-bottom-color: var(--ink); }

/* Hamburger — collapses the menu on small screens */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.6rem 1rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-inner { flex-wrap: wrap; align-items: center; gap: 1rem; }
  .logo img { height: 38px; }
  .logo span { font-size: 0.54rem; letter-spacing: 0.22em; margin-top: 0.4rem; }
  .nav-toggle { display: inline-block; margin-left: auto; flex: none; }
  nav.primary {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 0 1rem;
  }
  nav.primary.open { display: flex; }
  nav.primary a {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  nav.primary a.active { border-bottom-color: var(--line); color: var(--accent); }
}

/* ---------- Hero ---------- */

.hero { padding: 4.25rem 0 3.5rem; }
.hero h1 { max-width: none; }
.hero .lede { margin-top: 1.4rem; max-width: 72ch; }

.hero-roles {
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Quiet CTA link ---------- */

.cta {
  display: inline-block;
  margin-top: 2.6rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s, border-color 0.2s;
}

.cta:hover { color: var(--accent); border-color: var(--accent); }
.cta.secondary { border-bottom-color: var(--line); color: var(--ink-soft); }
.cta.secondary:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Statement band (deep green) ---------- */

.band {
  background: var(--green-deep);
  color: var(--paper);
  border-top: 1px solid var(--green-deep);
  border-bottom: 1px solid var(--green-deep);
}

.band blockquote {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  max-width: 30ch;
  font-style: italic;
}

.band cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.band .eyebrow { color: var(--gold-soft); }

.band .cta {
  color: var(--paper);
  border-bottom-color: var(--gold-soft);
}

.band .cta:hover { color: var(--gold-soft); border-bottom-color: var(--paper); }

.band ::selection { background: var(--gold); color: var(--green-deep); }

.band .wrap { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.band .cta { margin-top: 1.6rem; }
.band blockquote { margin: 0; }

/* ---------- Numbered grid (lenses, services) ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem 2.6rem;
  margin-top: 2.5rem;
}

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.cell { border-top: 1px solid var(--line); padding-top: 1.1rem; }

.cell .num {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.cell h3 { margin-top: 0.5rem; font-size: 1.32rem; }
.cell p { margin-top: 0.55rem; font-size: 1.08rem; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Service blocks ---------- */

.service { border-top: 1px solid var(--line); padding: 3rem 0; }
.service:last-of-type { border-bottom: 1px solid var(--line); }

.service .two-col { gap: 3rem; }
.service h2 { font-size: 1.6rem; }
.service .num {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

/* ---------- Timeline ---------- */

.timeline { margin-top: 3rem; border-left: 1px solid var(--line); }

.tl-item { position: relative; padding: 0 0 3.2rem 3rem; }
.tl-item:last-child { padding-bottom: 0.5rem; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.55em;
  width: 7px; height: 7px;
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.tl-item .years {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.tl-item h3 { margin-top: 0.4rem; }
.tl-item p { margin-top: 0.6rem; font-size: 1.02rem; color: var(--ink-soft); }

/* ---------- Insights ---------- */

.essay { border-top: 1px solid var(--line); padding: 3rem 0; }
.essay:last-of-type { border-bottom: 1px solid var(--line); }
.essay .tag {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.essay h2 { margin-top: 0.7rem; font-size: 1.7rem; }
.essay p { margin-top: 1rem; color: var(--ink-soft); }

/* ---------- Credentials list ---------- */

.cred-list { list-style: none; margin-top: 2.8rem; }
.cred-list li {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
  font-size: 1rem;
  color: var(--ink-soft);
}
.cred-list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Contact form ---------- */

form.inquiry { margin-top: 2.5rem; max-width: 560px; }

.field { margin-bottom: 1.8rem; }

.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  border-radius: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

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

button.cta {
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  margin-top: 1rem;
}

.confidential-note {
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Rolling inquiry (one question at a time) ---------- */

.step { display: none; }
.step.active { display: block; animation: stepin 0.45s ease; }

@keyframes stepin {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.progress {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.step h2 { max-width: 24ch; margin-bottom: 1.8rem; }

.choices { list-style: none; max-width: 560px; }

.choices li + li { margin-top: 0.7rem; }

.choices label {
  display: block;
  border: 1px solid var(--line);
  padding: 1.05rem 1.3rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.choices label:hover { border-color: var(--accent); }

.choices input { position: absolute; opacity: 0; }

.choices input:checked + span { color: var(--accent); }

.step-nav {
  margin-top: 2.2rem;
  display: flex;
  gap: 2.2rem;
  align-items: baseline;
}

.step-back {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.step-back:hover { color: var(--ink); }

/* ---------- Photography ---------- */

figure.fig { margin: 0; }

figure.fig img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.98);
}

figure.fig.portrait img { aspect-ratio: 4 / 5; }
figure.fig.wide img { aspect-ratio: 21 / 9; }

figure.fig figcaption {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.8rem;
  border-top: 1px solid var(--gold-soft);
  margin-top: 0.9rem;
}

/* Elegant placeholder shown until the image file exists */
figure.fig.empty::before {
  content: "Project photography — " attr(data-src);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, var(--green-deep) 0%, var(--accent) 55%, #6b6242 130%);
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

figure.fig.portrait.empty::before { aspect-ratio: 4 / 5; }
figure.fig.wide.empty::before { aspect-ratio: 21 / 9; }

figure.fig.natural img { aspect-ratio: auto; }

.fig-band { padding-top: 3rem; padding-bottom: 3rem; }

.fig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (max-width: 700px) { .fig-grid { grid-template-columns: 1fr; } }

/* ---------- Nav CTA button ---------- */

nav.primary a.nav-cta,
a.nav-cta {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-soft);
  background: var(--accent);
  padding: 0.7rem 1.2rem;
  border-bottom: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

nav.primary a.nav-cta:hover,
a.nav-cta:hover { background: var(--green-deep); color: var(--paper); }

@media (max-width: 900px) {
  nav.primary a.nav-cta { width: auto; align-self: flex-start; margin-top: 0.6rem; }
}

/* ---------- Shaded contact card ---------- */

.form-card {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  padding: 2.8rem clamp(1.4rem, 4vw, 3rem);
  max-width: 640px;
}

.form-card .field input,
.form-card .field select,
.form-card .field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
}

.form-card .field input:focus,
.form-card .field select:focus,
.form-card .field textarea:focus { border-color: var(--accent); outline: none; }

.form-card .field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* ---------- Insight cards ---------- */

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.2rem;
  margin-top: 2.5rem;
}

@media (max-width: 900px) { .insight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .insight-grid { grid-template-columns: 1fr; } }

.insight-card { border-top: 1px solid var(--line); padding-top: 1.2rem; }

.insight-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--paper-deep);
  display: block;
  filter: saturate(0.92);
}

.insight-card .tag {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.1rem;
}

.insight-card h2 { font-size: 1.45rem; line-height: 1.28; margin-top: 0.5rem; }

.insight-card p.excerpt { margin-top: 0.7rem; font-size: 1.02rem; line-height: 1.55; color: var(--ink-soft); }

.like-btn {
  margin-top: 1rem;
  background: none;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.like-btn:hover, .like-btn.liked { color: var(--accent); border-color: var(--accent); }

/* ---------- Media / press tiles ---------- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.2rem;
  margin-top: 3rem;
}

@media (max-width: 900px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .media-grid { grid-template-columns: 1fr; } }

a.media-tile {
  display: block;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.media-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper-deep);
  display: block;
  filter: saturate(0.92);
  border: 1px solid var(--line);
}

.media-tile .pub {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.1rem;
}

.media-tile h3 { font-size: 1.3rem; line-height: 1.32; margin-top: 0.5rem; transition: color 0.2s; }

.media-tile:hover h3 { color: var(--accent); }

.media-tile .date {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 3.25rem;
  margin-top: 3.5rem;
}

.foot-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.25rem;
}

.foot-line .logo img { height: 32px; }
.foot-line .logo span { display: none; }

footer p, footer a {
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--muted);
  text-decoration: none;
}

footer a:hover { color: var(--ink); }

.foot-links { margin-left: auto; display: flex; align-items: center; gap: 0.9rem; }

.foot-links a { color: var(--muted); transition: color 0.2s; }
.foot-links a:hover { color: var(--accent); }
.foot-links svg { display: block; }

@media (max-width: 700px) { .foot-links { margin-left: 0; flex-wrap: wrap; } }

.eho {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.eho svg { flex: none; }

.legal {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.64rem;
  color: var(--muted);
  line-height: 1.55;
}

.legal p { max-width: none; font-size: 0.64rem; line-height: 1.55; }

.legal .eho {
  display: inline-flex;
  margin-bottom: 0.5rem;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal .eho svg { width: 18px; height: 18px; }
