/* Greg Speed real estate site — navy, red, white
   Structure: add future top-level sections by extending the nav in each page
   (or later a shared include). Do not feature an umbrella brand until Greg names it. */

:root {
  --navy: #12305b;
  --navy-deep: #0b1d38;
  --navy-mid: #1b4278;
  --red: #c8102e;
  --red-dark: #9b0c23;
  --white: #ffffff;
  --off-white: #f4f6f9;
  --ink: #1a1f29;
  --muted: #4b5563;
  --line: #d5dce6;
  --firm-name-size: 1.0625rem; /* must stay >= agent name (TREC 1260-02-.12 / KREC 201 KAR 11:105) */
  --agent-name-size: 1rem;
  --shadow: 0 10px 30px rgba(18, 48, 91, 0.08);
  --max: 1120px;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy-mid);
}

a:hover {
  color: var(--red);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* TREC: firm name + firm phone conspicuously on every page.
   KREC: brokerage name in the header / visible without scrolling.
   KREC 201 KAR 11:105 §3(7): principal office is outside Kentucky. */
.compliance-bar {
  background: var(--navy-deep);
  color: var(--white);
  padding: 0.55rem 1.25rem;
  font-size: var(--firm-name-size);
  line-height: 1.35;
}

.compliance-bar .wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
}

.firm-name {
  font-size: var(--firm-name-size);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  text-decoration: none;
}

.firm-phone {
  font-size: var(--firm-name-size);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.firm-phone:hover,
.firm-name:hover {
  color: #ffd7de;
}

.license-note {
  flex-basis: 100%;
  font-size: 0.8125rem;
  color: #d5deec;
}

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand img {
  width: 84px;
  height: 56px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

/* Greg's name and the firm name: same size, same bold weight (firm never smaller or lighter). */
.brand-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.45rem;
}

.agent-name,
.firm-name-inline {
  font-size: var(--firm-name-size);
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.brand-sep {
  color: var(--line);
  font-weight: 400;
}

.hashtag {
  color: var(--red);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--off-white);
  color: var(--red);
}

main {
  min-height: 50vh;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  background:
    linear-gradient(180deg, rgba(11, 29, 56, 0.08), rgba(11, 29, 56, 0.02)),
    var(--off-white);
  border-bottom: 1px solid var(--line);
  padding: 3.25rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
  max-width: 40rem;
}

.hero-card {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  text-align: center;
}

/* Official VRS seal: shown as supplied, never recolored or combined with Greg's house logo. */
.hero-card .vrs-seal {
  width: 150px;
  height: 150px;
  margin: 0 auto 0.9rem;
  display: block;
}

.hero-card p {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.hero-card .hero-card-firm {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.hero-card .hero-card-phone a {
  font-weight: 700;
  color: var(--navy);
}

.kicker {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.65rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 2px solid var(--red);
  line-height: 1.2;
}

.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--off-white);
  color: var(--navy);
}

.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--off-white);
}

.section h2 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.section .intro {
  max-width: 44rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: 10px;
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: 1.2rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card a.more {
  font-weight: 700;
  text-decoration: none;
  color: var(--red);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.photo-placeholder,
.todo-box {
  background: repeating-linear-gradient(
    -45deg,
    #e9eef5,
    #e9eef5 12px,
    #f7f9fc 12px,
    #f7f9fc 24px
  );
  border: 2px dashed var(--navy-mid);
  border-radius: var(--radius);
  color: var(--navy);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-weight: 700;
}

.todo-inline {
  display: inline-block;
  background: #fff4c8;
  border: 1px solid #e0c04a;
  color: #5c4a00;
  font-weight: 700;
  font-size: 0.92em;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
}

.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 2.6rem 0;
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 0.6rem;
}

.cta-band p {
  color: #d5deec;
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 2.4rem 0 2.2rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  max-width: 44rem;
  color: #d9e3f2;
  font-size: 1.125rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose h3 {
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 4px solid var(--red);
}

.timeline li {
  padding: 0 0 1.35rem 1.2rem;
  position: relative;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 50%;
  position: absolute;
  left: -11px;
  top: 0.35rem;
}

.timeline strong {
  display: block;
  color: var(--navy);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.note {
  background: #eef3fa;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  color: var(--muted);
}

.disclaimer {
  font-size: 0.95rem;
  color: var(--muted);
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  border-radius: 10px;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--navy);
}

input,
select,
textarea {
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid #b7c2d1;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

form button {
  justify-self: start;
  cursor: pointer;
  font: inherit;
}

.form-status {
  display: none;
  background: #fff4c8;
  border: 1px solid #e0c04a;
  color: #5c4a00;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.site-footer {
  background: var(--navy-deep);
  color: #d7dfeb;
  padding: 2.4rem 0 1.6rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 1.75rem;
  align-items: start;
}

.site-footer h2 {
  color: var(--white);
  font-size: var(--firm-name-size);
  margin: 0 0 0.5rem;
}

.site-footer p {
  margin: 0 0 0.55rem;
}

.site-footer a {
  color: #ffffff;
}

.site-footer .vrs-seal {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 0 0.75rem;
}

/* Signature-block marks row: Greg's house logo, MRP, REALTOR®, Equal Housing. */
.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

.marks img {
  display: block;
  height: 52px;
  width: auto;
}

.footer-grid > .marks {
  grid-column: 1 / -1;
  justify-self: start;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
}

.legal {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.84rem;
  color: #b7c3d6;
}

.legal p {
  margin: 0 0 0.7rem;
}

@media (min-width: 1101px) {
  .brand-line {
    flex-wrap: nowrap;
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 3px solid var(--red);
    box-shadow: var(--shadow);
    padding: 0.5rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .header-row {
    position: relative;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .cards,
  .area-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 3px solid var(--red);
    box-shadow: var(--shadow);
    padding: 0.5rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .header-row {
    position: relative;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 2.3rem 0 2.4rem;
  }

  .compliance-bar {
    font-size: 0.95rem;
  }
}

.consent-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.25rem 0 0.75rem;
}

/* v2 quick wins: contact block near the top and mobile quick-contact bar */
.reach-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 0 0 1.4rem;
  max-width: 40rem;
}
.reach-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--navy);
}
.reach-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.reach-links a {
  display: block;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  background: var(--off-white);
  line-height: 1.25;
}
.reach-links a span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}
.reach-links a.reach-main {
  grid-column: 1 / -1;
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.reach-links a.reach-main span { color: #d5deec; }
.reach-links a:hover { border-color: var(--red); }
.quick-contact { display: none; }
@media (max-width: 700px) {
  .quick-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--navy-deep);
    border-top: 3px solid var(--red);
    box-shadow: 0 -6px 18px rgba(0,0,0,0.2);
  }
  .quick-contact a {
    color: var(--white);
    text-decoration: none;
    text-align: center;
    padding: 0.55rem 0.25rem 0.6rem;
    line-height: 1.2;
    font-size: 0.95rem;
  }
  .quick-contact a + a { border-left: 1px solid rgba(255,255,255,0.18); }
  .quick-contact span { display: block; font-size: 0.75rem; color: #d5deec; }
  body { padding-bottom: 4.2rem; }
  .reach-links { grid-template-columns: 1fr; }
}

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.consent-check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin: 0.25rem 0 0.9rem; }
.consent-check input { width: auto; margin-top: 0.25rem; flex-shrink: 0; }

/* Greg's photos (v2 preview) */
.meet-grid { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 2rem; align-items: center; }
.meet-photo, .about-photo img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.12); display: block; }
.about-grid { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 2.5rem; align-items: start; }
.about-photo { margin: 0; }
.teach-photo { margin: 1.5rem 0; max-width: 360px; }
.teach-photo img { width: 100%; height: auto; border-radius: 10px; display: block; }
.teach-photo figcaption { font-size: .9rem; color: #555; margin-top: .4rem; }
.season-banner img { display: block; width: 100%; height: 260px; object-fit: cover; }
.personal-mark img { background: #fff; border-radius: 8px; padding: 6px; width: 140px; height: auto; display: block; }
@media (max-width: 720px) {
  .meet-grid, .about-grid { grid-template-columns: 1fr; }
  .meet-photo, .about-photo { max-width: 280px; margin: 0 auto; }
  .season-banner img { height: 160px; }
}
.meet-photo { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; max-width: 280px; }
.consent-privacy { margin: -0.5rem 0 0.9rem 1.6rem; }
