/* ===================================================================
   Kyle Westholz — Real Estate  |  Clean & modern, single-page
   =================================================================== */

:root {
  --ink:        #15242b;
  --ink-soft:   #44555d;
  --muted:      #78868f;
  --line:       #e2e8e9;
  --bg:         #ffffff;
  --bg-alt:     #f2f7f6;
  --accent:     #1f7a8c;   /* deep teal-blue (primary) */
  --accent-dk:  #17616f;
  --accent-2:   #3f8f6b;   /* green (secondary) */
  --accent-tint: rgba(31,122,140,.10);
  --shadow:     0 1px 3px rgba(16,20,26,.06), 0 8px 24px rgba(16,20,26,.06);
  --radius:     14px;
  --maxw:       1120px;
  --serif:      "Fraunces", Georgia, serif;
  --sans:       "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }

a { color: inherit; text-decoration: none; }

.accent { color: var(--accent); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-full { width: 100%; }
.btn-nav { padding: .55rem 1.2rem; background: var(--ink); color: #fff; }
.btn-nav:hover { background: #000; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn-nav { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-copy .lead { font-size: 1.15rem; color: var(--ink-soft); margin: 1.4rem 0 2rem; max-width: 34ch; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 20px; box-shadow: var(--shadow);
}
.hero-photo img.img-fallback {
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #eef0f3, #eef0f3 12px, #e7eaee 12px, #e7eaee 24px);
  color: var(--muted); font-size: .9rem; font-family: var(--sans);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2.5rem; }
.section-head.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- About ---------- */
.about-grid { max-width: 820px; margin: 0 auto; }
.about-grid .section-head { margin-bottom: 1.4rem; }
.about-body p { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.creds { list-style: none; display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 1.8rem; }
.creds li { padding-left: 1.1rem; position: relative; color: var(--ink-soft); }
.creds li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.cred-k { color: var(--muted); font-weight: 500; display: inline-block; min-width: 108px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--accent-tint); margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; font-size: 1.12rem; }
.card p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Experience timeline ---------- */
.timeline { list-style: none; max-width: 760px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.tl-item { position: relative; padding: 0 0 2.2rem 2.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.tl-date { color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: .1rem; }
.tl-body h3 { font-size: 1.2rem; }
.tl-role { color: var(--accent-2); font-weight: 600; font-size: .9rem; margin: .1rem 0 .5rem; }
.tl-body p:last-child { color: var(--ink-soft); }

/* ---------- Photo band ---------- */
.photo-band { position: relative; }
.photo-band img { width: 100%; height: clamp(240px, 56vw, 820px); object-fit: cover; object-position: center 25%; display: block; }
.photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 2.5rem 24px 1.1rem;
  color: #fff; font-size: .9rem; text-align: center;
  background: linear-gradient(180deg, rgba(21,36,43,0) 0%, rgba(21,36,43,.75) 100%);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; max-width: 860px; margin: 0 auto; }
.stat { padding: 2rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.stat-num { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--accent-2); }
.stat-label { color: var(--muted); font-size: .9rem; letter-spacing: .02em; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.quote p { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin-bottom: 1rem; }
.quote cite { color: var(--muted); font-style: normal; font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-copy p { color: var(--ink-soft); margin: 1rem 0 1.8rem; max-width: 42ch; }
.contact-list { list-style: none; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 70px 1fr; align-items: center; }
.contact-list span:first-child { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { font-weight: 500; }
.contact-list a:hover { color: var(--accent); }

.contact-form { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.1rem; }
.section-alt .contact-form { background: var(--bg); }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; padding: .75rem .9rem; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-note { font-size: .9rem; color: var(--accent-dk); min-height: 1.2em; }
.hp-field { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd4da; padding: 3rem 0 1.5rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-name { font-family: var(--serif); font-size: 1.2rem; color: #fff; margin-bottom: .5rem; }
.footer-broker { color: #fff; font-weight: 500; margin-bottom: .3rem; }
.footer-license { color: #9aa1aa; }
.footer-legal .eho { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 600; margin-bottom: .6rem; }
.eho-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 2px solid #fff; border-radius: 4px; font-size: 1rem; }
.fineprint { color: #8a919b; line-height: 1.5; font-size: .82rem; }
.footer-bottom { padding-top: 1.5rem; color: #8a919b; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.2rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn-nav { margin-top: .6rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 320px; }
  .creds { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section-head:not(.center) { margin-bottom: 1.5rem; }
  .quotes { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cards, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

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