/* ==========================================================================
   JJ Kind — website styles, built to the JJ Kind Flyer Style Guide.
   Purple / gold / black · Bitter + Public Sans · plain voice, no emoji.
   ========================================================================== */

:root {
  /* Brand */
  --purple: #4A1F8C;
  --black: #1A1A1A;
  --gold: #C9A84C;
  --white: #FFFFFF;

  /* Derived neutrals (do not add new colors) */
  --callout-bg: #F6F3F9;
  --hairline: #E4E0EA;
  --hairline-2: #DDD6E6;
  --label-gray: #5C5566;
  --list-text: #2A2530;
  --caption-gray: #8A8394;

  /* On-dark text */
  --on-dark-1: rgba(255,255,255,0.82);
  --on-dark-2: rgba(255,255,255,0.62);
  --on-dark-3: rgba(255,255,255,0.28);

  --font-display: "Bitter", Georgia, serif;
  --font-body: "Public Sans", Helvetica, Arial, sans-serif;

  --inset: 44px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--inset); }
@media (max-width: 640px) { :root { --inset: 22px; } }
.section { padding: 76px 0; }
.section--tight { padding: 48px 0; }
.center { text-align: center; }
.muted { color: var(--label-gray); }

/* Eyebrow / kicker — gold, uppercase, tracked */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600; font-size: .72rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--gold); margin: 0 0 14px;
}

/* Section title with gold underline */
.section-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  display: inline-block; padding-bottom: 8px; margin-bottom: 22px; position: relative;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--gold);
}

.lead { font-size: 1.06rem; color: var(--list-text); max-width: 60ch; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 15px 28px; border-radius: 4px; border: 2px solid var(--purple);
  background: var(--purple); color: var(--white); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: #3b1870; border-color: #3b1870; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn--gold:hover { background: #b9973f; border-color: #b9973f; color: var(--black); }
.btn--ghost { background: transparent; color: var(--purple); }
.btn--ghost:hover { background: var(--purple); color: var(--white); }
.btn--on-dark { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn--on-dark:hover { background: #b9973f; border-color: #b9973f; }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--purple); border-color: var(--white); }
.btn--lg { padding: 17px 34px; font-size: 1.02rem; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---- Navbar (purple band, edge to edge) ---- */
.nav { background: var(--purple); color: var(--white); position: sticky; top: 0; z-index: 50; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 10px 0; }
.nav__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--white); letter-spacing: -0.01em; }
/* Red heart as the dot over the "i" in Kind (uses a dotless ı + overlaid heart) */
.heart-i { position: relative; font-style: normal; }
.heart-i::before {
  content: "\2665"; position: absolute; left: 50%; top: -0.34em;
  transform: translateX(-50%); color: #e23838; font-size: .5em; line-height: 1;
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-weight: 600; font-size: .95rem; color: var(--on-dark-1);
  padding-bottom: 3px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav__link:hover, .nav__link.is-active { color: var(--white); border-color: var(--gold); }
.nav__cta { padding: 10px 20px; font-size: .9rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--purple); padding: 6px 0; transform: translateY(-120%); transition: transform .25s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links .nav__link, .nav__links .nav__cta { width: 100%; text-align: center; padding: 16px 22px; border-bottom: 0; }
  .nav__toggle { display: block; }
}

/* ---- Hero ---- */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; align-items: stretch; gap: 0; }
.hero__content { padding: 72px 5vw 72px 0; align-self: center; }
.hero__image { min-height: 460px; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__content { padding: 48px 0 30px; }
  .hero__image { min-height: 300px; margin: 0 calc(var(--inset) * -1); }
}

/* ---- Callout: purple left border on tinted fill ---- */
.callout {
  background: var(--callout-bg); border-left: 4px solid var(--purple);
  padding: 14px 18px; color: var(--list-text); font-size: .98rem;
}
.callout strong { color: var(--black); }

/* ---- Gold-square bullet list ---- */
.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li { position: relative; padding-left: 26px; margin-bottom: 20px; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--gold);
}
.bullets .b-label { display: block; font-family: var(--font-display); font-weight: 700; color: var(--black); margin-bottom: 2px; }
.bullets .b-text { color: var(--list-text); }

/* ---- Stat strip ---- */
.stats { display: flex; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stat { flex: 1; text-align: center; padding: 16px 8px; border-right: 1px solid var(--hairline); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--black); }
.stat__label { font-size: .7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--label-gray); font-weight: 600; margin-top: 2px; }

/* ---- Bands ---- */
.band-purple { background: var(--purple); color: var(--white); }
.band-purple .eyebrow { color: var(--gold); }
.band-purple .muted { color: var(--on-dark-2); }
.band-black { background: var(--black); color: var(--white); }
.band-black .eyebrow { color: var(--gold); }
.band-black .muted { color: var(--on-dark-2); }

/* ---- Grid ---- */
.grid { display: grid; gap: 34px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ---- Home listing cards ---- */
.home-card { border: 1px solid var(--hairline); background: var(--white); display: flex; flex-direction: column; }
.home-card__media { position: relative; height: 220px; background: var(--callout-bg); }
.home-card__media img { width: 100%; height: 100%; object-fit: cover; }
.home-card__badge {
  position: absolute; top: 12px; left: 12px; font-family: var(--font-body); font-weight: 600;
  font-size: .68rem; text-transform: uppercase; letter-spacing: 0.12em; padding: 6px 12px;
}
.home-card__badge--available { background: var(--gold); color: var(--black); }
.home-card__badge--soon { background: var(--purple); color: var(--white); }
.home-card__badge--leased { background: var(--hairline-2); color: var(--label-gray); }
.home-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.home-card__price { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--gold); line-height: 1; }
.home-card__price span { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--label-gray); letter-spacing: 0; }
.home-card__addr { font-family: var(--font-display); font-weight: 600; color: var(--black); }
.home-card__city { font-size: .88rem; color: var(--caption-gray); }
.home-card__note { color: var(--list-text); font-size: .92rem; margin: 4px 0 0; }
.home-card__specs { display: flex; margin-top: auto; border-top: 1px solid var(--hairline); }
.home-card__spec { flex: 1; text-align: center; padding: 12px 4px; border-right: 1px solid var(--hairline); }
.home-card__spec:last-child { border-right: 0; }
.home-card__spec b { font-family: var(--font-display); display: block; font-size: 1.05rem; }
.home-card__spec small { font-size: .64rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--label-gray); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-chip {
  border: 1px solid var(--hairline-2); background: var(--white); color: var(--label-gray);
  padding: 9px 18px; font-weight: 600; font-size: .85rem; cursor: pointer; transition: .15s;
}
.filter-chip:hover { border-color: var(--purple); color: var(--purple); }
.filter-chip.is-active { background: var(--purple); color: var(--white); border-color: var(--purple); }
.empty-state { text-align: center; padding: 56px 20px; color: var(--caption-gray); }

/* ---- Forms ---- */
.form-wrap { max-width: 720px; margin: 0 auto; }
.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 600; font-size: .92rem; color: var(--list-text); margin-bottom: 7px; }
.field .req { color: var(--purple); }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=number], .field input[type=date], .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--black);
  padding: 13px 14px; border: 1px solid var(--hairline-2); border-radius: 3px; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(74,31,140,.14);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field-hint { font-size: .85rem; color: var(--caption-gray); margin-top: 6px; }
fieldset { border: 0; padding: 0; margin: 0; }
.form-section-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--black);
  display: inline-block; padding-bottom: 7px; margin: 34px 0 18px; position: relative;
  /* pinned so the h2 element does not inherit the global heading rule */
  line-height: inherit; letter-spacing: normal;
}
.form-section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--gold); }
.form-section-title:first-of-type { margin-top: 0; }
.checkbox-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; color: var(--list-text); }
.checkbox-row input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--purple); flex: none; }

/* ---- Quiz ---- */
.quiz-card { max-width: 620px; margin: 0 auto; background: var(--white); border: 1px solid var(--hairline); padding: 38px; }
.quiz-progress { height: 4px; background: var(--hairline); overflow: hidden; margin-bottom: 28px; }
.quiz-progress__bar { height: 100%; background: var(--gold); transition: width .3s ease; width: 0; }
.quiz-count { font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.quiz-q { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--black); margin-bottom: 22px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; border: 1px solid var(--hairline-2); background: var(--white);
  font-family: var(--font-body); font-size: 1rem; color: var(--list-text); cursor: pointer; transition: .15s;
}
.quiz-option:hover { border-color: var(--purple); }
.quiz-option.is-selected { border-color: var(--purple); background: var(--callout-bg); }
.quiz-option__dot { width: 16px; height: 16px; border: 2px solid var(--hairline-2); flex: none; }
.quiz-option.is-selected .quiz-option__dot { border-color: var(--purple); background: var(--gold); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 26px; }
.quiz-result { text-align: center; }
.quiz-result h2 { margin-bottom: 12px; }
.reassure { display: block; background: var(--callout-bg); border-left: 4px solid var(--purple); padding: 12px 16px; font-size: .95rem; color: var(--list-text); text-align: left; margin-top: 18px; }

/* ---- Success ---- */
.form-success { display: none; max-width: 560px; margin: 0 auto; background: var(--callout-bg); border-left: 4px solid var(--purple); padding: 40px 32px; }
.form-success.is-visible { display: block; }

/* ---- Footer (black band, per flyer spec) ---- */
.footer { background: var(--black); color: var(--white); padding: 52px 0 40px; }
.footer__eyebrow { color: var(--gold); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 10px; }
.footer__phone { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1; margin-bottom: 6px; }
.footer__site { color: var(--on-dark-1); font-weight: 600; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-end; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { color: var(--on-dark-2); font-weight: 600; font-size: .92rem; }
.footer__links a:hover { color: var(--white); }
.footer__eho { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); }
.footer__eho-badge { width: 34px; height: 34px; border: 1.5px solid rgba(255,255,255,.7); display: grid; place-items: center; flex: none; }
.footer__eho-text { color: var(--on-dark-2); font-size: .8rem; }
.footer__fineprint { color: var(--on-dark-3); font-size: .72rem; margin-top: 16px; max-width: 70ch; }

.hide { display: none !important; }
