/* Elite Edge Properties -- vanilla CSS, mobile-first, no framework. */

:root {
  --navy: #0b1b33;
  --carbon: #1c2a3a;
  --gold: #c9a227;
  --gold-dark: #a7840f;
  --link: #7a5e0a;
  --bone: #f7f5f0;
  --ink: #1a1f27;
  --muted: #5b6472;
  --success: #2f6f5e;
  --error: #a4303f;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1180px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

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

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 65ch; }
a { color: var(--link); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy);
  padding: 0.75em 1em; z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 0.5em; top: 0.5em; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; color: #fff; text-decoration: none; }
.brand img { height: 48px; width: auto; max-width: 160px; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; display: block; transition: transform 0.25s ease, opacity 0.2s ease; }
/* The open drawer used to cover the button with no way back. The button now stays
   on top of the drawer and turns into an X. */
.nav-toggle { position: relative; z-index: 60; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(5, 12, 26, 0.55); z-index: 40; }
.nav-backdrop[hidden] { display: none; }

.main-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 85vw);
  background: var(--navy);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  z-index: 50;
}
.main-nav.open { transform: translateX(0); }
.main-nav ul { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.main-nav a { color: #fff; text-decoration: none; display: block; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.main-nav a[aria-current="page"] { color: var(--gold); }
.header-extras { display: flex; flex-direction: column; gap: 0.75rem; }
.phone-link, .lang-switch {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(201,162,39,0.6);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  text-align: center;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static; width: auto; transform: none; background: none; padding: 0;
    display: flex; align-items: center; gap: 1.5rem; overflow: visible;
  }
  .main-nav ul { flex-direction: row; margin: 0; gap: 1.25rem; }
  .main-nav a { border: 0; padding: 0.25rem 0; }
  .header-extras { flex-direction: row; gap: 0.75rem; }
}

/* ---------- Layout ---------- */
main { display: block; }
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Prose/form pages have no second column; a 1180px-wide block of ~65ch text
   left-aligned inside it leaves a large empty gap on wide screens. Narrow and
   center the block instead of stretching .section's grid-oriented width. */
@media (min-width: 900px) {
  .section.prose,
  .section.form-page,
  .guide-content {
    max-width: 760px;
  }
}

/* width/height attributes reserve space (no layout shift); height:auto lets
   aspect-ratio + object-fit decide the real box instead of the 1000px attribute. */
img { height: auto; max-width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--carbon) 100%);
  color: #fff;
  padding: 3rem 1.25rem;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-text h1 { color: #fff; }
.hero-text .lede { color: #d9deea; }
.hero-text p:not(.lede) { color: #c6cedd; }

.hero-agents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 420px;
  width: 100%;
}
.hero-agent img { object-position: 50% 20%; }
.hero-agent {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hero-agent img {
  width: 100%;
  aspect-ratio: 820 / 1000;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 36px -18px rgba(5, 12, 26, 0.55);
}
.hero-agent-emmanuel { margin-top: 2.25rem; }
.hero-agent figcaption { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-agent .agent-name { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.02rem; }
.hero-agent .agent-license { color: #c6cedd; font-size: 0.82rem; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .hero-agents { max-width: none; margin-left: auto; }
}

/* ---------- Path cards (buy / sell / questions) ---------- */
.path-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) {
  .path-grid { grid-template-columns: repeat(3, 1fr); }
}
.path-card {
  background: #fff;
  border: 1px solid #e4e0d4;
  border-radius: var(--radius-lg);
  color: var(--ink);
  text-decoration: none;
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 16px 30px -22px rgba(11, 27, 51, 0.25);
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.path-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201,162,39,0.12);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.path-icon svg { width: 22px; height: 22px; }
.path-body { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.path-title { font-family: var(--font-display); color: var(--navy); font-size: 1.15rem; font-weight: 600; }
.path-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.path-arrow { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold-dark); margin-top: 0.3rem; transition: transform 0.2s ease; }
.path-card:hover, .path-card:focus-visible { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 20px 36px -20px rgba(11, 27, 51, 0.35); }
.path-card:hover .path-arrow { transform: translateX(4px); }
.path-card:active { transform: translateY(-1px) scale(0.99); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  margin: 0.25rem 0.5rem 0.25rem 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Cards: stories, ask, guides ---------- */
.stories-teaser, .broker-note { text-align: left; }
.ask-grid, .guide-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 700px) {
  .ask-grid { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ask-card, .guide-card {
  background: #fff;
  border: 1px solid #e4e0d4;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.guide-card { display: flex; flex-direction: column; }
.guide-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}
.guide-card h2, .guide-card h3 { overflow-wrap: break-word; }
.pending-note { color: var(--muted); }
.disclaimer p { margin-left: auto; margin-right: auto; }

/* ---------- Stories (home) ---------- */
.story-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 700px) {
  .story-grid { grid-template-columns: 1fr 1fr; }
}
.story-card {
  background: #fff;
  border: 1px solid #e4e0d4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.story-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 18%; }
.story-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.3rem; }
.story-body h3 { margin-bottom: 0.1rem; }
.agent-license { color: var(--gold-dark); font-weight: 600; font-size: 0.9rem; margin: 0; }
.agent-languages { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.5rem; }
.story-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }

/* ---------- About page agent cards ----------
   One agent per row: portrait beside the story on wide screens, so a long story
   and a short one never sit side by side with a big empty gap. */
.agent-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; margin-top: 1.25rem; }
.agent-card {
  background: #fff;
  border: 1px solid #e4e0d4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  scroll-margin-top: 5.5rem;
}
.agent-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 18%; }
.agent-card-body { padding: 1.5rem; }
.agent-story p { max-width: 68ch; margin: 0 0 0.9rem; }
.agent-story p:first-child em, .agent-story p:first-child { color: var(--muted, #5b6474); }
@media (min-width: 860px) {
  .agent-card { grid-template-columns: 320px 1fr; align-items: start; }
  .agent-card img { aspect-ratio: 820 / 1000; height: 100%; max-height: 420px; position: sticky; top: 5.5rem; }
  .agent-card-body { padding: 2rem 2.25rem; }
}

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  display: block; background: #fff; border: 1px solid #e4e0d4; border-radius: var(--radius);
  padding: 1.1rem; text-decoration: none; color: var(--ink);
}
.blog-date { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.35rem; }
.blog-title { display: block; font-family: var(--font-display); color: var(--navy); font-weight: 600; line-height: 1.3; }
.blog-desc { display: block; margin-top: 0.45rem; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* ---------- Forms ---------- */
.site-form { max-width: 560px; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #c7c2b2;
  border-radius: 8px;
  background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus,
.checkbox-field input:focus { outline: 3px solid rgba(201,162,39,0.5); outline-offset: 1px; }
.checkbox-field { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.checkbox-field input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15rem; accent-color: var(--gold-dark); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-status { font-weight: 600; min-height: 1.2em; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }
.cf-turnstile { margin: 0.25rem 0; }

/* ---------- Guides ---------- */
.guide-meta { color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.guide-content h2 { margin-top: 2rem; }
.guide-download { margin: 1rem 0; }
.guide-download.is-disabled {
  background: #e4e4e4;
  color: #555;
  cursor: default;
  pointer-events: none;
}
.guide-content ul, .guide-content ol { max-width: 68ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfd6e3; padding: 2rem 1.25rem; margin-top: 3rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
/* A single flow of text + inline link, NOT split into flex items (that previously
   turned "Brokered by" and "Copper Creek..." into separate truncated columns). */
.footer-legal { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0; font-size: 0.92rem; line-height: 1.5; max-width: 72ch; }
.eho-icon-wrap { flex-shrink: 0; padding-top: 0.15rem; }
.eho-icon { color: var(--gold); }
.footer-legal-text { display: inline; }
.footer-legal a { color: var(--gold); }
.footer-links a { color: #cfd6e3; font-size: 0.85rem; }
.pending { background: rgba(201,162,39,0.25); padding: 0 0.3em; border-radius: 4px; }

/* ---------- Modal popup ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,27,51,0.55); }
.modal-panel {
  position: relative;
  background: var(--bone);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 2.25rem 1.5rem 1.75rem;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
@media (max-width: 699px) {
  .modal-panel { max-height: 40vh; }
}
@media (min-width: 700px) {
  .modal { align-items: center; }
  .modal-panel { border-radius: var(--radius-lg); }
}
.modal-mark { height: 28px; width: auto; margin-bottom: 0.75rem; }
.modal-panel h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.modal-panel > p { color: var(--muted); }
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e4e0d4;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: var(--bone); }
.modal-close:active { transform: scale(0.94); }

/* ---------- Print (guide pages -> PDF) ---------- */
@media print {
  .site-header, .site-footer, .modal, .nav-toggle, .guide-download, .cf-turnstile,
  .form-status, .hp-field { display: none !important; }
  body { background: #fff; }
  .guide-content { padding: 0; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
}

/* Blog article extras (2-oct-2026) */
.blog-twin { margin: -0.4rem 0 1.4rem; font-size: 0.92rem; }
.blog-related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e4e0d4; }
.blog-related h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.blog-cta { background: #fff; border: 1px solid #e4e0d4; border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 2rem 0 1rem; }
.blog-disclaimer { font-size: 0.82rem; color: var(--muted); }
