/* Greenland Advisors — shared site styles
   Modern Advisory direction: navy + green, Sora sans, generous whitespace.
   Used across: index, buy, sell, scale, listings, listing, about, contact. */

:root {
  --green: #22b573;
  --green-deep: #1c9c63;
  --green-soft: #d8f0e3;
  --navy: #2d5179;
  --navy-deep: #1f3a5a;
  --navy-dark: #162a44;
  --navy-darker: #0f1d33;
  --ink: #0f1d33;
  --ink-soft: rgba(15,29,51,0.72);
  --ink-mute: rgba(15,29,51,0.5);
  --ink-faint: rgba(15,29,51,0.32);
  --line: rgba(15,29,51,0.1);
  --line-strong: rgba(15,29,51,0.18);
  --bg: #ffffff;
  --bg-soft: #f6f5f1;
  --bg-warm: #faf8f3;
  --warning: #e8a838;

  --font-sans: "Sora", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 8px;
  --radius-lg: 12px;
  --container: 1280px;
  --pad-x: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
button { font: inherit; }

/* ---------- LAYOUT ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-dark); color: #fff; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
}
.eyebrow--mute { color: var(--ink-mute); }
.eyebrow--on-dark { color: var(--green); }
.eyebrow--with-rule { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow--with-rule::before {
  content: ''; width: 24px; height: 1px; background: currentColor; opacity: 0.4;
}

.lede { font-size: 19px; line-height: 1.55; color: var(--ink-soft); font-weight: 400; max-width: 60ch; }
.section-title { font-size: clamp(36px, 4.5vw, 56px); letter-spacing: -0.025em; }
.section-title--center { text-align: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius); text-decoration: none;
  font-size: 15px; font-weight: 600; font-family: var(--font-sans);
  border: 1.5px solid transparent; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--navy-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 9px 16px; font-size: 13px; }

.btn-arrow { width: 14px; height: 14px; flex-shrink: 0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px;
  transition: gap .15s;
}
.link-arrow:hover { gap: 12px; }
.link-arrow--green { color: var(--green); }
.link-arrow--on-dark { color: #fff; }

/* ---------- NAV ---------- */
.nav {
  display: flex; align-items: center;
  padding: 18px var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 44px; }
.nav__links { display: flex; gap: 28px; margin-left: 48px; }
.nav__link {
  font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  position: relative; padding: 8px 0;
}
.nav__link:hover { color: var(--green); }
.nav__link--active { color: var(--green); }
.nav__link--active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--green); border-radius: 2px;
}
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__signin { font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav__signin:hover { color: var(--green); }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-dark); color: #fff; padding: 80px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 48px; }
.footer__brand { max-width: 320px; }
.footer__brand-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer__brand-mark img { height: 36px; border-radius: 6px; }
.footer__brand-text { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.footer__brand-text .green { color: var(--green); }
.footer__brand-text .muted { color: rgba(255,255,255,0.65); font-weight: 500; font-size: 14px; letter-spacing: 0.18em; }
.footer__tagline { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.55; }
.footer__col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--green); font-weight: 500; margin-bottom: 18px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 14px; transition: color .15s; }
.footer__col a:hover { color: var(--green); }
.footer__bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.5);
  font-family: var(--font-mono); letter-spacing: 0.06em;
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer__legal a:hover { color: #fff; }

/* ---------- HERO PATTERNS ---------- */
.hero-navy {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-dark) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero-navy__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, black, transparent);
}
.hero-navy > .container { position: relative; }

/* ---------- STAT STRIP ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,0.1); padding: 36px 0; }
.stat { padding-left: 28px; border-left: 1px solid rgba(255,255,255,0.1); }
.stat:first-child { padding-left: 0; border-left: none; }
.stat__num { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; color: var(--green); line-height: 1; }
.stat__label { font-size: 15px; font-weight: 600; margin-top: 12px; }
.stat__sub { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ---------- TAGS / BADGES ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 9px; border-radius: 999px; font-weight: 500;
}
.badge--available { background: var(--green); color: #fff; }
.badge--under-contract { background: var(--warning); color: #fff; }
.badge--sold { background: var(--ink-mute); color: #fff; }
.badge--ghost { background: rgba(34,181,115,0.12); color: var(--green-deep); border: 1px solid rgba(34,181,115,0.3); }
.badge--ghost-dark { background: rgba(34,181,115,0.15); color: var(--green); border: 1px solid rgba(34,181,115,0.4); }
.badge__dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
}

/* ---------- LISTING CARDS ---------- */
.listing-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
}
.listing-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(15,29,51,0.18); }
.listing-card__media { position: relative; aspect-ratio: 16/10; }
.listing-card__media-status { position: absolute; top: 14px; right: 14px; }
.listing-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.listing-card__head { display: flex; justify-content: space-between; align-items: center; }
.listing-card__title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.listing-card__sub { font-size: 13px; color: var(--ink-soft); }
.listing-card__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.listing-card__stat-k { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); }
.listing-card__stat-v { font-size: 19px; font-weight: 700; margin-top: 4px; letter-spacing: -0.02em; }

/* ---------- PLACEHOLDER IMAGES ---------- */
.ph {
  background: repeating-linear-gradient(135deg, #e7e4dc 0 14px, rgba(0,0,0,.035) 14px 28px);
  display: flex; align-items: center; justify-content: center;
  color: rgba(40,50,70,0.55);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.ph--dark {
  background: repeating-linear-gradient(135deg, #1a2638 0 14px, rgba(255,255,255,.04) 14px 28px);
  color: rgba(255,255,255,0.55);
}
.ph--accent { background: repeating-linear-gradient(135deg, #e9efe8 0 14px, rgba(0,0,0,.035) 14px 28px); }
.ph__label { background: rgba(255,255,255,0.7); padding: 4px 10px; border-radius: 2px; }
.ph--dark .ph__label { background: rgba(10,18,30,0.85); }

/* ---------- FORMS ---------- */
.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--green); }
.field input, .field select, .field textarea {
  font: inherit; padding: 13px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: #fff;
  color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,181,115,0.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.field__help { font-size: 12px; color: var(--ink-mute); }

.form-success {
  padding: 24px 28px; border-radius: var(--radius-lg);
  background: var(--green-soft); border: 1px solid rgba(34,181,115,0.35);
  color: var(--navy-dark);
}
.form-success h4 { color: var(--green-deep); font-size: 17px; margin-bottom: 6px; }
.form-success p { font-size: 14px; }

/* ---------- ICON CHIP (numbered/iconed) ---------- */
.icon-chip {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.icon-chip--ghost { background: var(--green-soft); color: var(--green-deep); }
.icon-chip--navy { background: var(--navy); color: #fff; }

/* ---------- BREADCRUMB ---------- */
.crumbs {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs__sep { color: var(--ink-faint); }

/* ---------- CARD ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px;
}
.card--soft { background: var(--bg-soft); }

/* ---------- UTILITIES ---------- */
.green { color: var(--green); }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-mute); }
.mono { font-family: var(--font-mono); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.text-center { text-align: center; }

/* periods accent (Buy. Scale. Exit.) */
.dot { color: var(--green); }
