/* J.Rivera Realty Group — Landis-inspired layout/UX + monochrome charcoal palette */

:root {
  --navy: #2b2b2b;
  --navy-deep: #1a1a1a;
  --navy-mid: #3a3a3a;
  --cream: #f5f5f5;
  --cream-soft: #fafafa;
  --white: #ffffff;
  --gold: #6e6e6e;
  --gold-hover: #4a4a4a;
  --gold-soft: #b0b0b0;
  --text: #1f1f1f;
  --text-muted: #6b6b6b;
  --border: #e8e8e8;
  --error: #b42318;
  --focus: #6e6e6e;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px rgba(15, 24, 41, 0.12);
  --shadow-sm: 0 8px 24px rgba(15, 24, 41, 0.07);
  --shadow-float: 0 10px 40px rgba(15, 24, 41, 0.1);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "ui-serif", "Times New Roman", Times, serif;
  --max: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream-soft);
  -webkit-font-smoothing: antialiased;
}

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

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

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-weight: 600;
}

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.75rem;
}

.section-intro h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.03em;
  font-weight: 750;
}

.section-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 24, 41, 0.08);
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 24, 41, 0.14);
}

.btn:active {
  transform: translateY(0);
}

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

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

.btn-accent {
  background: #2b2b2b;
  color: #fff;
  border-color: #2b2b2b;
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.btn-light {
  background: var(--cream);
  color: var(--navy-deep);
  box-shadow: 0 8px 28px rgba(15, 24, 41, 0.2);
}

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

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--cream);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
  box-shadow: none;
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
  box-shadow: none;
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--cream);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1.1rem 1.75rem;
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0 0;
  pointer-events: none;
}

.header-shell {
  pointer-events: auto;
  width: min(100% - 1.5rem, calc(var(--max) + 2rem));
  margin-inline: auto;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(232, 232, 232, 0.9);
  border-radius: 999px;
  box-shadow: var(--shadow-float);
}

.site-header.is-scrolled .header-shell {
  box-shadow: 0 14px 40px rgba(15, 24, 41, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 60px;
  padding-block: 0.3rem;
  width: 100%;
}

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

.logo:hover {
  color: var(--navy);
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(200px, 38vw);
  object-fit: contain;
}

.logo-sub-affil {
  display: none;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  white-space: nowrap;
  border-left: 1px solid rgba(43, 43, 43, 0.15);
  padding-left: 0.75rem;
  line-height: 1.2;
  max-width: 7.5rem;
}

.nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.1rem;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
}

.nav-list a:hover {
  background: rgba(43, 43, 43, 0.06);
  color: var(--navy);
}

.header-phone {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.4rem 0.5rem;
}

.header-phone:hover {
  color: var(--gold-hover);
}

.header-cta {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  margin-right: 0.2rem;
}

.nav-mobile-actions {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: 0.25rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Split editorial hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-copy .eyebrow {
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy-deep);
  max-width: 14ch;
}

.hero-sub {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-portrait-frame {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-portrait-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(transparent, rgba(26, 26, 26, 0.88));
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-portrait-name {
  font-weight: 750;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.hero-portrait-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Credibility strip */
.credibility {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 1.35rem 0;
}

.credibility-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.credibility-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.credibility-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.credibility-value {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--white);
  line-height: 1.3;
  text-decoration: none;
  word-break: break-word;
}

a.credibility-value:hover {
  color: var(--gold-soft);
}

/* Paths */
.paths {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--cream-soft);
}

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

.path-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.15rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.path-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.path-card-accent {
  border-color: #2b2b2b;
}

.path-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.path-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.03em;
  font-weight: 750;
}

.path-lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.benefit-list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.benefit-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.4rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--navy);
}

.path-cta {
  align-self: flex-start;
}

/* CTA bands */
.cta-band {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: linear-gradient(160deg, #1a1a1a 0%, #2b2b2b 55%, #3a3a3a 100%);
  color: var(--cream);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band-copy h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
  font-weight: 750;
}

.cta-band-copy p {
  margin: 0;
  color: rgba(245, 245, 245, 0.75);
  font-size: 1rem;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Listings */
.listings {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--white);
}

.listings-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 2rem;
  padding: 0.3rem;
  width: fit-content;
  max-width: 100%;
  background: var(--cream);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.listings-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.listings-tab:hover {
  color: var(--navy);
}

.listings-tab.is-active {
  background: var(--navy);
  color: var(--white);
}

.listings-panel[hidden] {
  display: none;
}

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

.listing-card {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.listing-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.listing-card-link:hover {
  color: inherit;
}

.listing-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #3a3a3a 0%, #1a1a1a 55%, #2b2b2b 100%);
  overflow: hidden;
}

.listing-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.listing-badge-active {
  background: rgba(43, 43, 43, 0.92);
  color: #fff;
}

.listing-badge-sold {
  background: rgba(26, 26, 26, 0.92);
  color: #d4d4d4;
  border-color: rgba(176, 176, 176, 0.45);
}

.listing-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.listing-price {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.listing-body h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
  font-weight: 700;
}

.listing-address {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.listing-specs {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.listing-specs span {
  position: relative;
}

.listing-specs span + span::before {
  content: "·";
  position: absolute;
  left: -0.55rem;
  color: var(--gold-soft);
}

.listings-cta {
  margin: 2rem 0 0;
  text-align: center;
}

.listings-disclaimer {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.listings-disclaimer a {
  color: var(--navy);
  font-weight: 600;
}

/* Home worth band */
.home-worth {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--cream);
}

.home-worth-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.home-worth-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-weight: 750;
}

.home-worth-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 28rem;
}

.worth-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

/* Why */
.why {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--white);
}

.why-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

.why-copy h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.03em;
  font-weight: 750;
}

.why-copy > p {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36rem;
}

.trust-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}

.trust-points li {
  display: grid;
  gap: 0.25rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--navy);
}

.trust-points strong {
  color: var(--navy);
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.trust-points span {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.why-card {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
}

.why-card-inner {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.15rem 1.85rem;
  box-shadow: var(--shadow);
}

.why-card-label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.why-card-name {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

.why-card-meta {
  margin: 0 0 0.2rem;
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.95rem;
}

.why-card-phone,
.why-card-email {
  display: block;
  margin: 1rem 0 0;
  color: var(--gold-soft);
  font-weight: 600;
  word-break: break-all;
  text-decoration: none;
}

.why-card-email {
  margin-bottom: 1.5rem;
}

.why-card-phone:hover,
.why-card-email:hover {
  color: var(--white);
}

/* Steps */
.steps {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--cream-soft);
}

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 1.55rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 750;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact */
.contact {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--cream);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.75rem;
  align-items: start;
}

.contact-intro h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.03em;
  font-weight: 750;
}

.contact-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 28rem;
}

.contact-intro a {
  font-weight: 650;
  color: var(--navy);
}

.contact-address {
  margin-top: 0.75rem !important;
  font-size: 0.95rem !important;
}

.lead-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1.05rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 650;
  font-size: 0.875rem;
  color: var(--navy);
}

.req {
  color: var(--gold-hover);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background: var(--cream-soft);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #d4d4d4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(43, 43, 43, 0.12);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15);
}

.field-error {
  display: block;
  min-height: 1.1em;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--error);
}

.form-fineprint {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.form-success-inner {
  text-align: center;
  padding: 1rem 0.5rem;
}

.form-success-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.form-success-inner p {
  color: var(--text-muted);
}

.form-success-inner .btn {
  margin-top: 0.75rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 245, 245, 0.8);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-logo {
  display: block;
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.footer-affil,
.footer-market,
.footer-contact p {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-copy {
  margin: 1.1rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.55);
}

section[id] {
  scroll-margin-top: 6.5rem;
}

/* Responsive — tablet */
@media (max-width: 980px) {
  .hero-split,
  .path-grid,
  .steps-grid,
  .listings-grid,
  .why-inner,
  .contact-inner,
  .home-worth-inner {
    grid-template-columns: 1fr;
  }

  .credibility-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }

  .why-card {
    position: static;
  }

  .hero h1 {
    max-width: none;
  }

  .header-phone-desktop,
  .header-cta-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-shell {
    border-radius: 22px;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    margin: 0;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s var(--ease), opacity 0.25s var(--ease), visibility 0.25s;
  }

  .header-shell {
    position: relative;
  }

  .nav.is-open {
    max-height: 480px;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    padding: 0.85rem 0.85rem 0.5rem;
    gap: 0.1rem;
  }

  .nav-list a {
    padding: 0.85rem 1rem;
  }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.5rem 0.85rem 1.15rem;
  }

  .nav-mobile-actions .header-phone {
    text-align: center;
    padding: 0.65rem;
  }

  .nav-mobile-actions .header-cta {
    width: 100%;
    margin: 0;
    justify-content: center;
  }

  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 900px) {
  .logo-sub-affil {
    display: block;
  }
}

@media (min-width: 981px) {
  .nav {
    display: block !important;
    position: static;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none;
    border: none;
    background: transparent;
    overflow: visible;
  }

  .nav-mobile-actions {
    display: none !important;
  }
}

/* Phone */
@media (max-width: 600px) {
  .container {
    width: min(100% - 1.75rem, var(--max));
  }

  .site-header {
    padding-top: 0.55rem;
  }

  .header-shell {
    width: min(100% - 1rem, calc(var(--max) + 2rem));
    border-radius: 18px;
  }

  .logo-img {
    height: 42px;
  }

  .hero {
    padding: 1.75rem 0 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .credibility-list {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .path-cta {
    width: 100%;
    justify-content: center;
  }

  .path-card,
  .lead-form,
  .worth-form {
    padding: 1.55rem 1.25rem;
  }

  .listings-grid {
    grid-template-columns: 1fr;
  }

  .cta-band-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-band-actions .btn {
    width: 100%;
  }

  .section-intro {
    margin-bottom: 2rem;
  }
}


/* Lead form honeypot + send status */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted, #6b7280);
}
.form-send-error {
  color: #b42318;
}
