/* Nestled Homebuyers — teal brand system matched to the house logo */

:root {
  --ink: #0a2f38;
  --ink-soft: #3d5f68;
  /* Primary teal scale (logo-aligned) */
  --moss: #2a9eb0;
  --moss-deep: #1b7486;
  --sage: #4db8c9;
  --leaf: #67d4df;
  --mist: #e8f5f7;
  --cream: #f4fafb;
  --sand: #d3e6ea;
  --white: #ffffff;
  --focus: #67d4df;
  --error: #9b2c2c;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(10, 47, 56, 0.14);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--moss-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Brand mark (footer + hero) */

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 2px 10px rgba(32, 138, 158, 0.35);
}

.brand-mark--hero {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--white) 25%, transparent),
    0 10px 28px rgba(10, 47, 56, 0.35);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--sage), var(--moss-deep));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(32, 138, 158, 0.35);
}

.btn-primary:hover {
  background: var(--moss-deep);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: var(--sand);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--sage);
  background: var(--mist);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: color-mix(in srgb, var(--white) 45%, transparent);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--white) 12%, transparent);
  color: var(--white);
  border-color: var(--white);
}

/* Hero */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 70% at 50% 55%, #38a7ba 0%, #208a9e 55%, #166a7a 100%);
  transform: none;
  animation: none;
}

.hero-media::after {
  display: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(10, 47, 56, 0.28) 0%,
      rgba(10, 47, 56, 0.08) 45%,
      rgba(10, 47, 56, 0.4) 100%
    );
}

/* Top row: logo left, brand + links center (spacer balances grid) */
.hero-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 3.25rem 1fr 3.25rem;
  align-items: start;
  column-gap: 1rem;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 1rem auto 0;
  animation: rise-in 0.8s var(--ease) both;
}

.hero-frame .brand-mark--hero {
  justify-self: start;
  margin-top: 0.15rem;
}

.hero-brand-center {
  display: grid;
  justify-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
  min-width: 0;
  width: 100%;
}

.hero-frame-spacer {
  width: 3.25rem;
}

.brand-lockup {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
  text-align: center;
  width: 100%;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0;
  padding-inline: 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.hero-nav a {
  color: color-mix(in srgb, var(--white) 78%, var(--leaf));
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.hero-nav a:hover {
  color: var(--white);
  border-bottom-color: color-mix(in srgb, var(--leaf) 70%, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2.5rem));
  max-width: 720px;
  justify-self: center;
  align-self: start;
  text-align: center;
  margin: clamp(1.75rem, 7vh, 4rem) auto 3rem;
  padding: 0;
  animation: rise-in 0.9s var(--ease) 0.08s both;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 560px) {
  .hero-frame {
    grid-template-columns: 1fr;
    justify-items: center;
    width: min(1120px, calc(100% - 1.1rem));
    margin: 0.85rem auto 0;
  }

  .hero-frame .brand-mark--hero {
    justify-self: center;
    margin: 0 0 0.35rem;
  }

  .hero-frame-spacer {
    display: none;
  }

  .brand-mark--hero {
    width: 2.75rem;
    height: 2.75rem;
  }

  .hero-content {
    margin-top: 1rem;
    width: min(720px, calc(100% - 1.1rem));
    align-items: center;
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 36ch;
  margin-inline: auto;
  color: color-mix(in srgb, var(--white) 88%, var(--leaf));
  margin-bottom: 1.35rem;
}

/* Landing-page offer cards (address → phone → done) */
.offer-cards {
  width: min(100%, 36rem);
  margin: 0 auto 1.35rem;
  text-align: center;
}

.offer-card {
  background: color-mix(in srgb, var(--white) 96%, transparent);
  color: var(--ink);
  border-radius: 20px;
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow:
    0 22px 48px rgba(8, 30, 36, 0.28),
    0 0 0 1px color-mix(in srgb, var(--white) 35%, transparent);
  animation: rise-in 0.45s var(--ease) both;
  text-align: center;
}

.offer-card[hidden] {
  display: none !important;
}

.offer-card-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss-deep);
  text-align: center;
}

.offer-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--ink);
  text-align: center;
}

.offer-card-copy {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
}

.offer-card-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.offer-card .hero-offer-search {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.offer-card .hero-search-hint {
  text-align: center;
  color: var(--ink-soft);
}

.offer-card .hero-search-hint[data-kind="ok"] {
  color: var(--moss-deep);
}

.offer-card .hero-search-hint[data-kind="warn"] {
  color: #8a4b1a;
}

.offer-card .hero-search-bar {
  background: var(--cream);
  box-shadow: none;
  border: 1px solid var(--sand);
}

.offer-back {
  margin-top: 0.85rem;
  border: 0;
  background: transparent;
  color: var(--moss-deep);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  display: block;
  width: 100%;
  text-align: center;
}

.offer-back:hover {
  color: var(--ink);
}

.offer-estimate {
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--mist);
  color: var(--moss-deep);
  font-weight: 600;
  font-size: 0.95rem;
}

.offer-card--success .btn {
  width: 100%;
}

/* Hero cash-offer search bar (inside cards) */
.hero-offer-search {
  width: min(100%, 34rem);
  margin: 0 auto;
  text-align: center;
}

.hero-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--white) 96%, transparent);
  box-shadow:
    0 18px 40px rgba(8, 30, 36, 0.28),
    0 0 0 1px color-mix(in srgb, var(--white) 35%, transparent);
  position: relative;
}

.hero-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--moss-deep);
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
  width: 1.25rem;
  height: 1.25rem;
}

.hero-search-bar input {
  flex: 1 1 12rem;
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 0;
  width: auto;
  height: 3rem;
  min-height: 3rem;
  max-height: 3rem;
  border: none;
  background: transparent;
  padding: 0 0.75rem 0 2.65rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
  outline: none;
  resize: none;
  box-sizing: border-box;
}

.hero-search-bar input::placeholder {
  color: color-mix(in srgb, var(--ink-soft) 80%, transparent);
  line-height: 1.25;
}

.hero-search-btn {
  flex: 0 0 auto;
  height: 3rem;
  min-height: 3rem;
  margin: 0;
  border-radius: 12px;
  padding-inline: 1.15rem;
  white-space: nowrap;
}

.hero-search-hint {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  text-align: center;
  color: color-mix(in srgb, var(--white) 82%, var(--leaf));
  line-height: 1.4;
}

.hero-search-hint[data-kind="ok"] {
  color: color-mix(in srgb, var(--leaf) 75%, var(--white));
}

.hero-search-hint[data-kind="warn"] {
  color: #ffe2b8;
}

@media (max-width: 560px) {
  .hero-search-bar {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .hero-search-icon {
    top: calc(0.45rem + 1.5rem);
    transform: translateY(-50%);
    left: 1.05rem;
  }

  .hero-search-bar input {
    flex: 0 0 auto;
    width: 100%;
    height: 3rem;
    min-height: 3rem;
    max-height: 3rem;
  }

  .hero-search-btn {
    width: 100%;
    flex: 0 0 auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 0.75rem;
}

.section h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  max-width: 18ch;
}

.section-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.02em;
  color: var(--moss-deep);
  margin: -0.15rem 0 0.85rem;
  max-width: 28ch;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 52ch;
  font-size: 1.08rem;
}

/* How it works */

.how {
  background:
    radial-gradient(circle at 50% 0%, var(--leaf) 0, transparent 32%),
    linear-gradient(180deg, var(--mist), var(--cream) 55%);
  text-align: center;
}

.how .shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.how .eyebrow,
.how h2,
.how .section-kicker,
.how .section-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.how h2 {
  max-width: none;
  white-space: nowrap;
}

.how .section-lead {
  max-width: 40ch;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .how h2 {
    white-space: normal;
    max-width: 14ch;
  }
}

.steps {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  width: 100%;
  text-align: center;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.25rem;
  }
}

@media (min-width: 1060px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

.steps li {
  position: relative;
  padding-top: 0.25rem;
  animation: rise-in 0.8s var(--ease) both;
  max-width: 28ch;
  margin-inline: auto;
}

.steps li:nth-child(2) {
  animation-delay: 0.06s;
}

.steps li:nth-child(3) {
  animation-delay: 0.12s;
}

.steps li:nth-child(4) {
  animation-delay: 0.18s;
}

.steps li:nth-child(5) {
  animation-delay: 0.24s;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 0.85rem;
}

.steps h3 {
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
}

.steps p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Recently purchased homes showcase */

.recent-homes {
  background:
    radial-gradient(ellipse 70% 55% at 80% 20%, color-mix(in srgb, var(--leaf) 45%, transparent), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 45%, var(--mist) 100%);
  text-align: center;
}

.recent-homes-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.recent-homes h2 {
  max-width: none;
  margin-inline: auto;
}

.recent-homes .section-lead {
  margin-inline: auto;
  max-width: 42ch;
  text-align: center;
}

.home-grid {
  width: 100%;
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}

.home-card {
  text-align: left;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--sand) 70%, transparent);
  box-shadow: 0 14px 36px rgba(10, 47, 56, 0.08);
  animation: rise-in 0.75s var(--ease) both;
}

.home-card:nth-child(2) {
  animation-delay: 0.08s;
}

.home-card:nth-child(3) {
  animation-delay: 0.16s;
}

.home-card-media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(180deg, transparent 45%, rgba(10, 47, 56, 0.35) 100%),
    var(--home-img) center / cover no-repeat;
  background-color: var(--mist);
}

.home-card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.3rem;
}

.home-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.home-card-meta {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--moss-deep);
}

.home-card-note {
  margin: 0.25rem 0 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.recent-homes-footnote {
  margin: 1.35rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Why */

.why {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(103, 212, 223, 0.22), transparent 55%),
    linear-gradient(160deg, #208a9e 0%, #166a7a 45%, #0a2f38 100%);
  color: var(--cream);
}

.why .eyebrow {
  color: var(--leaf);
}

.why .section-lead {
  color: color-mix(in srgb, var(--cream) 78%, var(--sage));
}

.why-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .why-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
    gap: 4rem;
  }
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
}

.why-list li {
  display: grid;
  gap: 0.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
}

.why-list strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.why-list span {
  color: color-mix(in srgb, var(--cream) 72%, var(--sage));
  font-size: 0.98rem;
}

/* Offer form */

.offer {
  background:
    linear-gradient(180deg, var(--cream), var(--mist) 40%, var(--cream));
}

.offer-shell {
  display: grid;
  gap: 1.5rem;
  max-width: 40rem;
  margin-inline: auto;
}

.offer-intro {
  text-align: center;
}

.offer-intro h2 {
  max-width: none;
  margin-bottom: 0;
}

.form-panel {
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--sand) 80%, transparent);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  animation: rise-in 0.75s var(--ease) both;
}

.progress {
  height: 4px;
  background: var(--mist);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--leaf), var(--moss-deep));
  border-radius: inherit;
  transition: width 0.4s var(--ease);
}

.form-step-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.form-step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.form-step[hidden] {
  display: none !important;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.optional {
  font-weight: 500;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--sand);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--moss);
  background: var(--white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 35%, transparent);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: var(--error);
}

.address-wrap {
  position: relative;
}

.address-wrap .address-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--moss);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.address-wrap input {
  padding-left: 2.55rem;
}

.address-status {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.address-status[data-kind="ok"] {
  color: var(--moss-deep);
}

.address-status[data-kind="warn"] {
  color: #8a4b1a;
}

/* Custom Places suggestions (replaces Google pac-container icons) */
.places-field {
  position: relative;
}

.places-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 10050;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 16rem;
  overflow: auto;
  text-align: left;
}

.hero-search-bar.places-field .places-suggest,
.hero-offer-search .places-suggest {
  left: 0.45rem;
  right: 0.45rem;
  top: calc(100% + 0.25rem);
}

.places-suggest__item {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  color: var(--ink);
  border: 0;
  background: transparent;
}

.places-suggest__item:hover,
.places-suggest__item:focus {
  background: var(--mist);
}

.places-suggest__main {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.places-suggest__secondary {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

.places-service-anchor {
  width: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
  left: -9999px;
}

/* Hide any leftover Google widget icon styling if it appears */
.pac-container {
  display: none !important;
}

.field-row {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .field-row:has(.field:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
  }
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0.25rem 0 0.5rem;
  cursor: pointer;
}

.field-hint {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.check input {
  margin-top: 0.25rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--moss);
  flex-shrink: 0;
}

.field--sms {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.95rem 1rem 1rem;
  background: var(--mist);
  border-radius: 12px;
}

.field--sms .check {
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}

.sms-legal {
  margin: 0.65rem 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.field--sms .field-hint a,
.sms-legal a,
.legal-wrap a {
  color: var(--moss-deep);
  font-weight: 600;
}

/* Privacy / legal pages */

.legal-page {
  background: var(--cream);
  min-height: 100vh;
}

.legal-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 0 0;
}

.legal-top a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
}

.legal-top a:hover {
  color: var(--moss-deep);
}

.legal-wrap {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.legal-wrap h1 {
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  margin: 1.5rem 0 0.4rem;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.legal-wrap h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.55rem;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--ink-soft);
}

.legal-wrap ul {
  padding-left: 1.2rem;
}

.legal-callout {
  background: var(--mist);
  border-left: 4px solid var(--moss);
  padding: 1rem 1.1rem;
  border-radius: 0 12px 12px 0;
  margin: 1.25rem 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.form-error {
  color: var(--error);
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
  min-width: 8.5rem;
}

/* Result */

.result {
  animation: rise-in 0.55s var(--ease) both;
}

.result-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--moss-deep);
  margin: 0.25rem 0 0.75rem;
}

.result-copy {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.result-disclaimer {
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--mist);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.result-actions .btn-ghost {
  color: var(--ink);
  border-color: var(--sand);
}

.result-actions .btn-ghost:hover {
  background: var(--mist);
  border-color: var(--sage);
  color: var(--ink);
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--cream) 75%, transparent);
  padding: 2.5rem 0 2.75rem;
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
  max-width: 52ch;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.footer-meta {
  font-size: 0.88rem;
  opacity: 0.75;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: var(--leaf);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* —— Mobile-first phone improvements (most traffic) —— */

@media (max-width: 768px) {
  .shell {
    width: min(1120px, calc(100% - 1.35rem));
  }

  .section {
    padding: clamp(2.5rem, 8vw, 3.75rem) 0;
  }

  .hero {
    min-height: auto;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .hero-frame {
    grid-template-columns: 1fr;
    justify-items: center;
    width: min(1120px, calc(100% - 1.1rem));
    margin: 0.85rem auto 0;
    column-gap: 0;
  }

  .hero-frame .brand-mark--hero {
    justify-self: center;
    margin: 0 0 0.4rem;
  }

  .hero-frame-spacer {
    display: none;
  }

  .brand-mark--hero {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
  }

  .brand-lockup {
    font-size: clamp(1.25rem, 5.8vw, 1.7rem);
    max-width: 100%;
    text-align: center;
  }

  .hero-brand-center {
    gap: 0.45rem;
    width: 100%;
    justify-items: center;
  }

  .hero-nav {
    gap: 0.35rem 0.85rem;
    font-size: 0.8rem;
    justify-content: center;
    width: 100%;
  }

  .hero-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.25rem 0.35rem;
  }

  .hero-content {
    width: min(720px, calc(100% - 1.1rem));
    margin: 1.1rem auto 2rem;
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.45rem);
    margin-bottom: 0.55rem;
  }

  .hero-lead {
    font-size: 0.98rem;
    max-width: 34ch;
    margin-bottom: 1.1rem;
  }

  .offer-cards {
    width: 100%;
    margin-bottom: 1.1rem;
  }

  .offer-card {
    padding: 1.05rem 0.95rem 1.15rem;
    border-radius: 16px;
  }

  .offer-card-title {
    font-size: 1.2rem;
  }

  .offer-card-copy {
    font-size: 0.92rem;
  }

  .hero-search-bar {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .hero-search-icon {
    /* Sit mid-line of the single-line input row only */
    top: calc(0.5rem + 1.5rem);
    transform: translateY(-50%);
    left: 1.05rem;
  }

  .hero-search-bar input {
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    width: 100%;
    height: 3rem !important;
    min-height: 3rem !important;
    max-height: 3rem !important;
    font-size: 16px; /* prevents iOS zoom-on-focus */
    padding: 0 0.75rem 0 2.55rem;
    line-height: 3rem;
  }

  .hero-search-btn {
    width: 100%;
    flex: 0 0 auto;
    height: 3rem;
    min-height: 3rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .hero-search-hint {
    font-size: 0.84rem;
    text-align: center;
  }

  .offer-back {
    min-height: 2.5rem;
    text-align: center;
  }

  .offer-card {
    text-align: center;
  }

  .offer-card-kicker,
  .offer-card-title,
  .offer-card-copy {
    text-align: center;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 3rem;
  }

  .how h2 {
    white-space: normal;
    max-width: 12ch;
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .how .section-lead {
    max-width: 32ch;
    font-size: 1rem;
  }

  .steps {
    margin-top: 2rem;
    gap: 1.5rem;
  }

  .steps li {
    max-width: 32ch;
  }

  .home-grid {
    margin-top: 1.75rem;
    gap: 1rem;
  }

  .home-card-body {
    padding: 1rem 1rem 1.1rem;
  }

  .help-actions {
    width: 100%;
    flex-direction: column;
    margin-top: 1.5rem;
  }

  .help-actions .btn {
    width: 100%;
    min-height: 3rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .why h2 {
    font-size: clamp(1.7rem, 7vw, 2.35rem);
    max-width: 14ch;
  }

  .offer-shell {
    max-width: none;
    gap: 1.15rem;
  }

  .offer-intro h2 {
    font-size: clamp(1.55rem, 6.5vw, 2.1rem);
  }

  .form-panel {
    padding: 1.1rem 0.95rem 1.25rem;
    border-radius: 14px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px; /* prevents iOS zoom-on-focus */
    min-height: 3.05rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-actions {
    flex-direction: column-reverse;
    gap: 0.6rem;
  }

  .form-actions .btn-primary,
  .form-actions .btn-secondary {
    width: 100%;
    min-width: 0;
    min-height: 3.1rem;
  }

  .places-suggest {
    max-height: 40vh;
    left: 0;
    right: 0;
  }

  .hero-search-bar.places-field .places-suggest,
  .hero-offer-search .places-suggest {
    left: 0.35rem;
    right: 0.35rem;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn {
    width: 100%;
    min-height: 3rem;
  }

  .site-footer {
    padding: 2rem 1rem 2.5rem;
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-inner {
    max-width: none;
  }

  .btn {
    min-height: 3rem;
  }
}

@media (max-width: 380px) {
  .hero-nav {
    gap: 0.1rem 0.55rem;
    font-size: 0.76rem;
  }

  .brand-lockup {
    font-size: 1.2rem;
  }
}

/* GHL chat widget: Nestled teal + stay above page UI */
chat-widget {
  --chat-widget-primary-color: #2a9eb0;
  --chat-widget-active-color: #1b7486;
  --chat-widget-bubble-color: #2a9eb0;
  --chat-widget-header-background-color: #1b7486;
}

iframe[src*="leadconnectorhq"],
iframe[src*="msgsndr"],
div[id*="chat-widget"],
div[class*="lc_text-widget"],
#chat-widget-container,
chat-widget {
  z-index: 2147483000 !important;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media,
  .hero-content,
  .steps li,
  .form-panel,
  .result {
    animation: none;
  }

  .hero-media {
    transform: none;
  }
}
