/* Real Estate Laughs | shared styles
   Brand kit v1: Night Navy, Sign Yellow, Tangerine, Warm Paper, Fresh Mint, Slate
   Fonts: Archivo Black (headlines, meme text), Inter (body) */

:root {
  --navy: #0F1B2D;
  --yellow: #FFC94D;
  --tangerine: #FF7A1A;
  --paper: #FFF8EE;
  --mint: #2ED3A3;
  --slate: #5B6475;
  --white: #FFFFFF;
  --line: #E8DCC8;

  --font-head: 'Archivo Black', 'Arial Black', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --gutter: 16px;
  --max: 1100px;
  --radius: 14px;
  --shadow: 5px 5px 0 var(--navy);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--tangerine); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
h4 { font-size: 1.1rem; }
.h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.h3 a { text-decoration: none; }
.h3 a:hover { color: var(--tangerine); }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.4em; }

.muted { color: var(--slate); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--yellow); color: var(--navy); padding: 8px 12px; z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--navy);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--navy);
  font-family: var(--font-head); font-size: 1.15rem; line-height: 1;
}
.brand:hover { color: var(--navy); }
.logo-mark { width: 40px; height: 40px; flex: none; }
.brand-name { white-space: nowrap; }

.nav-toggle {
  display: none;
  font: 700 0.95rem var(--font-body);
  background: var(--yellow); color: var(--navy);
  border: 3px solid var(--navy); border-radius: 10px;
  padding: 8px 14px; cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 10px; color: var(--navy);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--yellow); color: var(--navy); }
.site-nav .nav-cta { background: var(--navy); color: var(--paper); }
.site-nav .nav-cta:hover { background: var(--tangerine); color: var(--navy); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 3px solid var(--navy);
    flex-direction: column; align-items: stretch;
    padding: 8px var(--gutter) 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; font-size: 1.05rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 700 1rem var(--font-body);
  background: var(--yellow); color: var(--navy);
  border: 3px solid var(--navy); border-radius: 12px;
  padding: 12px 22px; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  text-align: center;
}
.btn:hover { color: var(--navy); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--navy); }
.btn:active { transform: translate(5px, 5px); box-shadow: none; }
.btn-dark { background: var(--navy); color: var(--paper); }
.btn-dark:hover { color: var(--paper); }
.btn-orange { background: var(--tangerine); }
.btn-mint { background: var(--mint); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--yellow); transform: none; box-shadow: none; }
.btn-block { display: block; width: 100%; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-navy { background: var(--navy); color: var(--paper); }
.section-navy a:not(.btn) { color: var(--yellow); }
.section-navy .btn { color: var(--navy); }
.section-navy .btn-dark { color: var(--paper); border: 2px solid var(--paper); }
.section-navy .muted { color: #B8C0CF; }
.section-yellow { background: var(--yellow); }
.section-white { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tangerine); margin-bottom: 10px;
}
.section-navy .eyebrow { color: var(--mint); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 48px; }
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-size: 1.2rem; max-width: 560px; }
.hero-mark {
  display: inline-block;
  background: var(--yellow); border: 3px solid var(--navy); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: 0.85rem; margin-bottom: 18px;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Mascot placeholder */
.mascot {
  background: var(--white);
  border: 3px dashed var(--navy); border-radius: var(--radius);
  padding: 18px; text-align: center; min-height: 320px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
}
.mascot img {
  width: 100%; max-width: 320px; min-height: 200px; object-fit: contain;
  font-size: 0.9rem; color: var(--slate); text-align: center;
}
.mascot figcaption { font-size: 0.85rem; color: var(--slate); }
.mascot-small { min-height: 200px; }
.mascot-small img { max-width: 200px; min-height: 140px; }

/* ---------- Meme cards ---------- */
.meme-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .meme-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .meme-grid { grid-template-columns: 1fr; } }

.meme {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 3px solid var(--navy); border-radius: var(--radius);
  padding: 26px 24px 40px;
  display: flex; flex-direction: column; justify-content: center;
  font-family: var(--font-head); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.3;
  box-shadow: var(--shadow);
}
.meme--paper { background: var(--paper); color: var(--navy); }
.meme--navy { background: var(--navy); color: var(--white); }
.meme p { margin: 0 0 0.6em; }
.meme p:last-of-type { margin-bottom: 0; }
.meme .punch { color: var(--tangerine); }
.meme--navy .punch { color: var(--yellow); }
.meme .wm {
  position: absolute; right: 14px; bottom: 10px;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; color: var(--slate);
}
.meme .sticker {
  position: absolute; top: -12px; right: 14px;
  background: var(--mint); color: var(--navy);
  font-family: var(--font-body); font-weight: 800; font-size: 0.75rem;
  border: 3px solid var(--navy); border-radius: 999px; padding: 3px 10px;
  transform: rotate(4deg);
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .card-grid, .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid, .card-grid-2, .card-grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 3px solid var(--navy); border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
}
.card h3 { margin-top: 0; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-tag {
  display: inline-block; align-self: flex-start;
  background: var(--yellow); border: 2px solid var(--navy); border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; padding: 2px 10px; margin-bottom: 12px;
}
.card-tag--mint { background: var(--mint); }
.card-tag--orange { background: var(--tangerine); }
.price { font-family: var(--font-head); font-size: 1.6rem; margin: 4px 0 10px; }
.price small { font-family: var(--font-body); font-size: 0.9rem; color: var(--slate); font-weight: 600; }

.card-navy { background: var(--navy); color: var(--paper); }
.card-navy a:not(.btn) { color: var(--yellow); }

/* ---------- Forms ---------- */
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.form-inline input[type="email"] { flex: 1 1 240px; }
.form-stack { display: grid; gap: 14px; }
label { font-weight: 700; display: block; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: 500 1rem var(--font-body);
  padding: 12px 14px;
  border: 3px solid var(--navy); border-radius: 12px;
  background: var(--white); color: var(--navy);
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--tangerine); outline-offset: 2px;
}
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--slate); margin-top: 10px; }
.form-msg { margin-top: 12px; font-weight: 600; min-height: 1.4em; }
.form-msg.is-error { color: var(--tangerine); }
.form-msg.is-ok { color: #1A9A74; }
.section-navy .form-msg.is-ok { color: var(--mint); }

.choice-group { display: flex; gap: 10px; flex-wrap: wrap; }
.choice-group label {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; margin: 0;
  background: var(--white); border: 3px solid var(--navy); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.choice-group input { accent-color: var(--navy); width: 18px; height: 18px; margin: 0; }
.choice-group label:has(input:checked) { background: var(--yellow); }
.group-label { font-weight: 700; display: block; margin-bottom: 8px; }

.signup-box {
  background: var(--white);
  border: 3px solid var(--navy); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.signup-box h2 { margin-top: 0; }

/* ---------- Article ---------- */
.article { max-width: 760px; }
.article-head { margin-bottom: 28px; }
.article-meta { color: var(--slate); font-size: 0.9rem; }
.article h2 { margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article .lead { font-size: 1.15rem; }
.article ol.ideas { padding-left: 0; list-style: none; }
.article ol.ideas > li {
  position: relative;
  padding-left: 52px; margin-bottom: 18px;
}
.article ol.ideas > li::before {
  content: counter(list-item); /* honors the start="" attribute */
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px;
  background: var(--yellow); border: 3px solid var(--navy); border-radius: 10px;
  font-family: var(--font-head); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.article ol.ideas strong { display: block; font-size: 1.05rem; }

.caption-list { padding-left: 0; list-style: none; }
.caption-list li {
  background: var(--white); border: 2px solid var(--navy); border-radius: 10px;
  padding: 12px 14px 12px 48px; margin-bottom: 10px; position: relative;
}
.caption-list li::before {
  content: counter(list-item); /* honors the start="" attribute */
  position: absolute; left: 12px; top: 12px;
  font-family: var(--font-head); font-size: 0.9rem; color: var(--tangerine);
}

.callout {
  background: var(--yellow); border: 3px solid var(--navy); border-radius: var(--radius);
  padding: 20px 22px; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.disclosure { font-size: 0.9rem; color: var(--slate); border-left: 4px solid var(--yellow); padding-left: 12px; }

details {
  background: var(--white); border: 3px solid var(--navy); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 12px;
}
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; }

/* ---------- Lists / check marks ---------- */
.checks { list-style: none; padding-left: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px; border-radius: 6px;
  background: var(--mint); border: 2px solid var(--navy);
}
.checks-x li::before { background: var(--tangerine); border-radius: 50%; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 18px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 40px; height: 40px;
  background: var(--navy); color: var(--yellow);
  font-family: var(--font-head); font-size: 1.1rem;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}

/* ---------- Contact card ---------- */
.contact-card {
  background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.contact-card .name { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 2px; }
.contact-card .brokerage { font-weight: 700; color: var(--slate); margin-bottom: 14px; }
.contact-card a { font-weight: 700; word-break: break-word; }
.contact-line { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.contact-line span:first-child { font-weight: 700; color: var(--slate); min-width: 56px; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: #C9D0DC;
  padding: 48px 0 28px; margin-top: 40px;
  font-size: 0.92rem;
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--paper); font-family: var(--font-head); margin-bottom: 10px; }
.footer-brand .logo-mark { width: 34px; height: 34px; }
.site-footer h4 { color: var(--paper); margin-bottom: 10px; font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-legal { border-top: 1px solid #2A3850; padding-top: 18px; font-size: 0.85rem; margin-bottom: 8px; }
.footer-legal strong { color: var(--paper); }

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding: 80px 0; }
.page-404 h1 { font-size: clamp(2.6rem, 10vw, 5rem); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.hr { border: 0; border-top: 3px solid var(--navy); margin: 40px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
