/* =========================================================
   UNION HILL PARTNERS — STYLESHEET
   Design tokens live at the top. Change colors/fonts here
   and they propagate through the whole site.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,500;1,8..60,600&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* --- Palette: pulled directly from the Union Hill logo files --- */
  --ink: #1A2233;         /* near-navy charcoal, primary text */
  --ink-soft: #4B5468;    /* softened body text */
  --paper: #FFFFFF;       /* base background */
  --paper-deep: #EEF1F6;  /* light cool panel background */
  --paper-white: #FFFFFF; /* lightest surface */
  --brick: #233A6D;       /* primary brand navy (sampled from logo) */
  --brick-dark: #182849;  /* deeper navy for hover states */
  --brass: #4B5C89;       /* muted navy-gray, secondary accent */
  --slate: #182849;       /* deep navy — used for the contact section */
  --line: rgba(26, 34, 51, 0.12);

  /* --- Type --- */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--ink); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brick);
  display: inline-block;
}

/* Brick-coursing divider motif — a recurring signature rule */
.brick-rule {
  height: 10px;
  width: 100%;
  background-image: repeating-linear-gradient(
      90deg, transparent, transparent 58px, var(--line) 58px, var(--line) 59px
    ),
    repeating-linear-gradient(
      90deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 30px
    );
  background-position: 0 0, 29px 0;
  opacity: 0.6;
}

button, .btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--brick); color: var(--paper-white); }
.btn-primary:hover { background: var(--brick-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper-white); }

/* ---------------- Header ---------------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(233, 226, 208, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
}
.logo span { color: var(--brick); }
.logo img { height: 34px; width: auto; display: block; }
footer .logo img { height: 30px; }

/* --- Sample-content ribbon: makes placeholder cards unmistakable --- */
.sample-card { position: relative; }
.sample-ribbon {
  position: absolute;
  top: 14px;
  left: -34px;
  transform: rotate(-40deg);
  background: var(--brick);
  color: var(--paper-white);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 40px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.property-card.sample-card { opacity: 0.92; }
.testi-card.sample-card { border: 1px dashed var(--brick); }
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--brick); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone {
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  display: none;
}
.menu-toggle { display: none; background: none; border: none; font-size: 22px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 92px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--brick); }
.hero p.lede {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--paper-deep), 14px 14px 0 1px var(--line);
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-visual .tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: var(--ink);
  color: var(--paper-white);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 12px;
  letter-spacing: 0.04em;
}

/* Hero offer form — the signature element: this is the conversion point */
.hero-form-card {
  background: var(--brick);
  padding: 40px 34px;
  box-shadow: none;
}
.hero-offer-form { display: flex; flex-direction: column; gap: 14px; }
.hero-form-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--paper-white);
  margin: 0 0 6px;
}
.hero-offer-form label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: -6px;
}
.hero-offer-form input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--paper-white);
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 2px;
}
.hero-offer-form input::placeholder { color: rgba(255,255,255,0.5); }
.hero-offer-form input:focus {
  outline: 2px solid var(--paper-white);
  outline-offset: 1px;
  background: rgba(255,255,255,0.16);
}
.hero-form-submit {
  background: var(--paper-white);
  color: var(--brick);
  margin-top: 8px;
  justify-content: center;
}
.hero-form-submit:hover { background: var(--paper-deep); }
.hero-form-note {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* ---------------- Offer types ---------------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.offer-card {
  background: var(--paper-white);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}
.offer-card .offer-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brick);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.offer-card h3 { font-size: 19px; margin-bottom: 10px; }
.offer-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; flex-grow: 1; }
@media (max-width: 960px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .offer-grid { grid-template-columns: 1fr; }
}

/* ---------------- How it works — linear step track ---------------- */
.steps-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.steps-track::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.step-item { position: relative; padding-right: 24px; z-index: 1; }
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brick);
  color: var(--paper-white);
  font-family: var(--font-mono);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step-item h3 { font-size: 17px; margin-bottom: 8px; }
.step-item p { font-size: 14px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) {
  .steps-track { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-track::before { display: none; }
}
@media (max-width: 560px) {
  .steps-track { grid-template-columns: 1fr; }
}

/* ---------------- Stats bar ---------------- */
.stats {
  background: var(--ink);
  color: var(--paper-white);
  padding: 44px 0;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
 
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--paper-white);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 241, 230, 0.6);
  margin-top: 6px;
}
@media (max-width: 700px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Section shell ---------------- */
section { padding: 96px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
.section-head p { color: var(--ink-soft); margin-top: 16px; font-size: 17px; }

/* ---------------- BRRRR cycle (signature diagram) ---------------- */
.cycle {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
}
.cycle-wheel {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto;
}
.cycle-wheel svg { width: 100%; height: 100%; }
.cycle-wheel .center-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  pointer-events: none;
}
.cycle-wheel .center-label .word { font-family: var(--font-display); font-size: 22px; }
.cycle-wheel .center-label .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); letter-spacing: 0.08em; margin-top: 4px; }

.cycle-steps { display: flex; flex-direction: column; gap: 0; }
.cycle-step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  cursor: default;
  transition: background 0.2s ease;
}
.cycle-step:last-child { border-bottom: 1px solid var(--line); }
.cycle-step .num {
  font-family: var(--font-mono);
  color: var(--brick);
  font-size: 13px;
  padding-top: 3px;
  width: 20px;
}
.cycle-step h3 { font-size: 18px; margin-bottom: 4px; }
.cycle-step p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.cycle-step.active { background: var(--paper-deep); }

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

/* ---------------- Properties ---------------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.property-card {
  background: var(--paper-white);
  border: 1px solid var(--line);
}
.property-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.property-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.property-body { padding: 26px 28px 28px; }
.property-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.property-address { font-family: var(--font-display); font-size: 22px; }
.property-city { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid var(--brass);
  color: var(--brass);
}
.property-meta {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.property-desc { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }

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

/* ---------------- Testimonials ---------------- */
.testi-wrap { position: relative; }
.testi-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  flex: 0 0 clamp(280px, 40vw, 400px);
  scroll-snap-align: start;
  background: var(--paper-white);
  border: 1px solid var(--line);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.testi-quote {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  flex-grow: 1;
}
.testi-quote::before { content: "\201C"; color: var(--brick); }
.testi-quote::after { content: "\201D"; color: var(--brick); }
.testi-name { margin-top: 20px; font-weight: 600; font-size: 14px; }
.testi-loc { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

.testi-controls { display: flex; gap: 10px; margin-top: 24px; }
.testi-controls button {
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 16px;
}
.testi-controls button:hover { background: var(--ink); color: var(--paper-white); }

/* ---------------- CTA / Contact ---------------- */
.contact {
  background: var(--slate);
  color: var(--paper-white);
}
.contact .section-head p { color: rgba(245,241,230,0.75); }
.contact .section-head h2 { color: var(--paper-white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info a { color: var(--paper-white); text-decoration: none; }
.contact-line { font-family: var(--font-mono); font-size: 15px; margin-top: 10px; display: block; }
.contact-info h3 { color: var(--paper-white); font-size: 20px; margin-top: 32px; margin-bottom: 10px;}
.contact-info p { color: rgba(245,241,230,0.75); font-size: 15px; }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245,241,230,0.7);
  margin-bottom: 6px;
  display: block;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(245,241,230,0.08);
  border: 1px solid rgba(245,241,230,0.3);
  color: var(--paper-white);
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 2px;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(245,241,230,0.4); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--brick);
  outline-offset: 1px;
  background: rgba(245,241,230,0.12);
}
.contact-form .btn-primary { margin-top: 6px; align-self: flex-start; }
.form-note { font-size: 13px; color: rgba(245,241,230,0.55); margin-top: 4px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ---------------- Footer ---------------- */
footer { padding: 50px 0 40px; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--brick); }
.footer-copy { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }

/* ---------------- Utility ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

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