:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --accent: #8f1d19;
  --border: #d8e0e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: hidden;
  max-width: 100vw;
}

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

section[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  cursor: url("assets/sold-sign-cursor.svg") 16 3, auto;
  overflow-x: hidden;
  max-width: 100vw;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -48px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 80;
}

.skip-link:focus-visible {
  top: 0.75rem;
}

a,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
select,
summary,
label[for] {
  cursor: pointer;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.header-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.45rem 0;
}

.logo-showcase {
  width: 100%;
  background: transparent;
  border-bottom: 0;
  padding: 0.2rem 0;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.logo-showcase-img {
  width: min(100%, 780px);
  max-width: 100%;
  height: auto;
  max-height: none;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.08));
  clip-path: none;
  transform: scale(1.2);
  transform-origin: center center;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.95rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(143, 29, 25, 0.35);
  outline-offset: 2px;
}

.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.92);
  background-image: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(239, 242, 247, 0.93) 50%, rgba(240, 244, 248, 0.94) 100%), radial-gradient(circle at 20% 50%, rgba(143, 29, 25, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(143, 29, 25, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 0.72rem 1.1rem;
  border-radius: 0.65rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(143, 29, 25, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(143, 29, 25, 0.28);
}

.section {
  margin: 2.2rem auto;
  background: var(--surface);
  border: 1px solid rgba(216, 224, 232, 0.55);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}


.featured-property {
  margin-top: 1rem;
  border: 1px solid rgba(216, 224, 232, 0.6);
  border-radius: 16px;
  background: #fff;
  padding: 1.8rem;
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.featured-property-media {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  min-height: 200px;
}

.featured-property-media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.featured-property-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border: 0;
  display: block;
}

.featured-property-content {
  max-width: 760px;
}

.featured-eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.featured-property h3 {
  margin: 0 0 0.5rem;
}

.featured-property p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
  margin-top: 1rem;
}

.card {
  border: 1px solid rgba(216, 224, 232, 0.6);
  border-radius: 16px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.card h3 {
  margin: 0 0 0.4rem;
}

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

.mini-cta {
  display: inline-block;
  margin-top: 0.85rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.mini-cta:hover {
  text-decoration: underline;
}

.card-with-image {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px 12px 0 0;
  margin: -1.5rem -1.5rem 0.8rem -1.5rem;
  transition: transform 0.3s ease;
}

.card-with-image:hover .card-image {
  transform: scale(1.05);
}

.search-links {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.search-actions {
  margin-top: 0.8rem;
}

.chip {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(216, 224, 232, 0.75);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-weight: 600;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f8fafc;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.07);
}

.chip:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.search-embed {
  margin-top: 0.9rem;
  border: 1px solid rgba(216, 224, 232, 0.6);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.search-embed iframe {
  width: 100%;
  min-height: 620px;
  border: 0;
  display: block;
}

.search-embed-fallback {
  padding: 1rem;
}

.search-embed-fallback h3 {
  margin: 0 0 0.45rem;
}

.search-embed-fallback p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.embed-note {
  margin-top: 0.7rem;
  color: var(--muted);
}

.faq-item {
  border: 1px solid rgba(216, 224, 232, 0.7);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  background: #fff;
}

.faq-item + .faq-item {
  margin-top: 0.65rem;
}

.faq-item summary {
  font-weight: 700;
  color: var(--text);
}

.faq-item p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.connect-strip {
  margin-top: 0.9rem;
  border: 1px solid rgba(216, 224, 232, 0.7);
  border-radius: 14px;
  padding: 0.95rem;
  background: #f8fafc;
}

.connect-strip p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.connect-strip-actions {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.testimonial-carousel {
  margin-top: 1rem;
}

.testimonial-track {
  position: relative;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.is-active {
  display: block;
}

.testimonial-controls {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.testimonial-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0;
}

.testimonial-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.gallery-note {
  color: var(--muted);
}

.gallery-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.gallery-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-item.missing {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 0.75rem;
  background: #f8fafc;
}

.video-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.video-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.video-card video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 320px;
  background: #000;
}

.contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
  max-width: 680px;
}

.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, outline 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(143, 29, 25, 0.22);
  border-color: var(--accent);
}

.contact-form .cta {
  margin-top: 0.3rem;
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.form-note {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status {
  margin: 0.2rem 0 0;
  min-height: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-status.is-error {
  color: #8f1d19;
}

.form-status.is-success {
  color: #1d5d38;
}

.analysis-intro {
  color: var(--muted);
  margin-bottom: 1rem;
}

.guide-intro {
  color: var(--muted);
  margin-bottom: 1rem;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.guide-preview {
  border: 1px solid rgba(216, 224, 232, 0.7);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.guide-preview iframe {
  width: 100%;
  min-height: 720px;
  border: 0;
  display: block;
}

.guide-note {
  margin-top: 0.7rem;
  color: var(--muted);
}

.analysis-form {
  display: grid;
  gap: 0.65rem;
  max-width: 780px;
}

.analysis-form label {
  font-weight: 600;
}

.analysis-form input,
.analysis-form select,
.analysis-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, outline 0.2s ease, box-shadow 0.2s ease;
}

.analysis-form input:focus,
.analysis-form select:focus,
.analysis-form textarea:focus {
  outline: 2px solid rgba(143, 29, 25, 0.22);
  border-color: var(--accent);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.analysis-fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  display: grid;
  gap: 0.35rem;
}

.analysis-fieldset legend {
  font-weight: 700;
  padding: 0 0.3rem;
}

.analysis-fieldset label {
  font-weight: 500;
}

.analysis-fieldset input {
  width: auto;
  margin-right: 0.4rem;
}

.address-lookup-wrap {
  position: relative;
}

.address-suggestions {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  z-index: 20;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.address-suggestions button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.55rem;
  border-radius: 8px;
  cursor: pointer;
}

.address-suggestions button:hover {
  background: #eef2f7;
}

.agent-card {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  background: #fff;
}

.agent-headshot-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 220px;
  background: #f8fafc;
}

.agent-headshot-wrap.prominent {
  min-height: 320px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.agent-headshot {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.agent-headshot-wrap.missing {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 0.75rem;
}

.agent-details h3 {
  margin: 0 0 0.35rem;
}

.agent-details p {
  margin: 0;
  color: var(--muted);
}

.chatbot-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.footer-meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.chatbot {
  position: fixed;
  right: 1rem;
  bottom: 4.3rem;
  z-index: 35;
  width: min(360px, calc(100% - 2rem));
  border: 1px solid rgba(216, 224, 232, 0.8);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  overflow: hidden;
  overscroll-behavior: contain;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.2);
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(216, 224, 232, 0.8);
  background: rgba(255, 255, 255, 0.95);
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1rem;
}

.chatbot-header button {
  border: 1px solid rgba(216, 224, 232, 0.85);
  background: #f8fafc;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  min-width: 3.5rem;
  height: 2rem;
  padding: 0 0.62rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.chatbot-header button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chatbot-messages {
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 0.85rem;
  display: grid;
  gap: 0.45rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.75) 0%, rgba(237, 242, 247, 0.7) 100%);
}

body.chatbot-open {
  position: fixed;
  overflow: hidden;
  width: 100%;
  overscroll-behavior: none;
}

.chatbot-msg {
  width: fit-content;
  max-width: 85%;
  padding: 0.56rem 0.66rem 0.3rem;
  border-radius: 16px;
  border: 0;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  position: relative;
}

.chatbot-msg.user {
  margin-left: auto;
  background: #8f1d19;
  color: #fff;
}

.chatbot-msg::after {
  content: '';
  position: absolute;
  left: -4px;
  bottom: 9px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-bottom-right-radius: 10px;
  transform: rotate(45deg);
}

.chatbot-msg.user::after {
  left: auto;
  right: -4px;
  background: #8f1d19;
}

.chatbot-msg-text {
  margin: 0;
  line-height: 1.35;
  white-space: pre-wrap;
}

.chatbot-msg-time {
  display: inline-block;
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.74;
}

.chatbot-msg-meta {
  margin-top: 0.16rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.36rem;
}

.chatbot-msg-status {
  font-size: 0.68rem;
  line-height: 1;
  opacity: 0.86;
  font-weight: 600;
}

.chatbot-msg.bot .chatbot-msg-status {
  display: none;
}

.chatbot-msg.user .chatbot-msg-time,
.chatbot-msg.user .chatbot-msg-status {
  color: rgba(255, 255, 255, 0.9);
}

.chatbot-quick-actions {
  padding: 0.2rem 0.75rem 0.36rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.chatbot-quick-actions-hidden {
  display: none;
}

.chatbot-quick-actions::before {
  content: 'Try asking:';
  width: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #667085;
  margin-bottom: 0.05rem;
}

.chatbot-quick-actions button {
  border: 1px solid rgba(216, 224, 232, 0.9);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-radius: 999px;
  padding: 0.28rem 0.64rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.chatbot-quick-actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f8fafc;
}

.chatbot-quick-actions button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.chatbot-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem 0.58rem;
  border-top: 1px solid rgba(216, 224, 232, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

.chatbot-label {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.1;
}

.chatbot-input-wrap input {
  width: 100%;
  border: 1px solid rgba(216, 224, 232, 0.9);
  border-radius: 999px;
  padding: 0.5rem 0.6rem;
  font: inherit;
}

.chatbot-input-wrap button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.chatbot-msg.typing .chatbot-msg-text {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.typing-dot {
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 999px;
  background: #6b7280;
  opacity: 0.35;
  animation: chatbot-dot-pulse 1.15s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.14s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes chatbot-dot-pulse {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }

  40% {
    transform: translateY(-2px);
    opacity: 0.95;
  }
}

@media (max-width: 760px) {
  .header-wrap {
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0;
  }

  nav {
    width: 100%;
    gap: 0.25rem 0.7rem;
  }

  nav a {
    font-size: 0.94rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.7rem 0 2.15rem;
  }

  .hero p {
    font-size: 1.02rem;
  }

  .hero-actions {
    gap: 0.45rem;
  }

  .section {
    margin: 0.95rem auto;
    padding: 1rem;
    border-radius: 14px;
  }

  .logo-showcase-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    clip-path: none;
    transform: scale(1.3);
  }

  .agent-headshot-wrap.prominent {
    min-height: 250px;
    max-width: 360px;
  }

  .agent-card {
    grid-template-columns: 1fr;
  }

  .featured-property {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0.8rem;
  }

  .featured-property-media iframe {
    min-height: 190px;
  }

  .search-embed iframe {
    min-height: 500px;
  }

  .guide-preview iframe {
    min-height: 500px;
  }

  .testimonial-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .video-card video {
    max-height: 250px;
  }

  .chatbot {
    right: 0.6rem;
    bottom: 3.6rem;
    width: min(300px, calc(100% - 1.2rem));
    max-height: 58vh;
  }

  .chatbot-messages {
    max-height: 180px;
  }

  .chatbot-toggle {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  html {
    scroll-padding-top: 112px;
  }

  section[id] {
    scroll-margin-top: 112px;
  }
}

@media (max-width: 380px) {
  .container {
    width: 94%;
  }

  nav {
    gap: 0.2rem 0.55rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .section {
    padding: 0.95rem;
  }

  .guide-preview iframe {
    min-height: 420px;
  }

  .cta,
  .contact-form .cta {
    width: 100%;
    text-align: center;
  }

  .chatbot {
    right: 0.5rem;
    bottom: 3.6rem;
    width: min(290px, calc(100% - 1rem));
    max-height: 55vh;
  }

  .chatbot-toggle {
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.62rem 0.88rem;
    font-size: 0.92rem;
  }

  .chatbot-input-wrap {
    grid-template-columns: 1fr;
  }
}


/* Visual refresh inspired by precisehomepros.com */
:root {
  --bg: #edf2f8;
  --surface: #ffffff;
  --text: #0e2237;
  --muted: #41566f;
  --accent: #0f4c81;
  --accent-dark: #0a3560;
  --border: #d3dfeb;
}

body {
  font-family: 'Source Sans 3', Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(circle at 6% 14%, rgba(15, 76, 129, 0.08), transparent 38%),
    radial-gradient(circle at 90% 92%, rgba(191, 117, 47, 0.09), transparent 32%),
    var(--bg);
  cursor: auto;
}

h1,
h2,
h3,
.cta,
.header-cta,
nav a {
  font-family: 'Montserrat', Segoe UI, Arial, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 42;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(211, 223, 235, 0.9);
  box-shadow: 0 10px 30px rgba(14, 34, 55, 0.08);
  backdrop-filter: blur(10px);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.5rem;
  width: 100%;
  max-width: none;
  margin: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: auto;
  height: 64px;
  max-width: 160px;
  max-height: 64px;
  display: block;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(14, 34, 55, 0.1);
  object-fit: contain;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 0.35rem 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 0 1rem;
}

nav a {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 0.1rem;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.58rem 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.22);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.header-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.logo-showcase {
  display: none;
}

.hero {
  padding: 4.5rem 0 5rem;
  background-color: #0a3560 !important;
  background-image:
    linear-gradient(120deg, rgba(8, 30, 55, 0.65) 0%, rgba(10, 53, 96, 0.45) 62%),
    url('pic/farm-house-barns-street-view.jpg?v=2') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

.hero::before {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  display: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.hero-content {
  text-align: left;
  margin: 0;
  max-width: 780px;
}

.hero .hero-actions {
  justify-content: flex-start;
}

.hero-kicker {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.76rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.7vw, 3.45rem);
  white-space: nowrap;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  font-size: 1.08rem;
}

.hero-highlights {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.34rem 0.75rem;
  color: #f6f9fc;
  background: rgba(10, 33, 57, 0.3);
  font-weight: 600;
  font-size: 0.86rem;
}

.hero-panel {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 24px 44px rgba(7, 32, 58, 0.24);
  transform: translateY(0);
  animation: hero-panel-rise 460ms ease-out;
}

.hero-panel h2 {
  margin: 0;
  font-size: 1.2rem;
}

.hero-panel p {
  color: var(--muted);
  margin: 0.5rem 0 0.7rem;
}

.hero-panel ul {
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
  color: var(--text);
}

.hero-panel li + li {
  margin-top: 0.32rem;
}

.trust-strip {
  margin: 2rem 0 1.5rem;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.trust-item {
  border: 1px solid rgba(178, 196, 215, 0.8);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 8px 18px rgba(14, 34, 55, 0.07);
}

.trust-item strong {
  display: block;
  color: var(--accent-dark);
  font-family: 'Montserrat', Segoe UI, Arial, sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.trust-item span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

@keyframes hero-panel-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  border-radius: 20px;
  border: 1px solid rgba(211, 223, 235, 0.75);
  box-shadow: 0 14px 34px rgba(14, 34, 55, 0.08);
}

.cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 10px 24px rgba(10, 53, 96, 0.3);
}

.chip {
  border-color: rgba(181, 199, 219, 0.9);
}

@media (max-width: 720px) {
  .header-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-mark {
    width: auto;
    justify-content: flex-start;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
  }

  .hero h1 {
    max-width: none;
  }

  .hero p {
    margin-inline: auto;
  }

  .hero-highlights {
    justify-content: center;
  }

  .trust-strip {
    margin-top: 0.5rem;
  }

  .trust-strip-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .brand-mark img {
    height: 52px;
    max-width: 130px;
    max-height: 52px;
  }

  nav a {
    font-size: 0.9rem;
  }

  .hero {
    padding: 3.2rem 0 2.8rem;
  }

  .hero h1 {
    white-space: normal;
    font-size: clamp(1.7rem, 7vw, 2.4rem);
    line-height: 1.15;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero .hero-actions {
    justify-content: center;
  }

  .header-cta {
    width: 100%;
    text-align: center;
  }

  .container {
    width: 92%;
  }

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

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding: 1.3rem 0;
  color: var(--muted);
  background: #fff;
}

/* === HEADER OVERRIDE - DO NOT EDIT ABOVE === */
.site-header { padding: 0 !important; }
.site-header .header-wrap,
.header-wrap {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.4rem 1.25rem !important;
  gap: 0.75rem !important;
}
.header-wrap > .brand-mark {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
}
.header-wrap > .brand-mark img {
  height: 44px !important;
  max-height: 44px !important;
  max-width: 120px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 4px !important;
}
.header-wrap > nav {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-evenly !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 1.5rem !important;
  width: auto !important;
}
.header-wrap > nav a {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
.header-wrap > .header-cta {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  .header-wrap {
    flex-wrap: wrap !important;
    justify-content: space-between !important;
  }
  .header-wrap > nav {
    order: 3;
    width: 100% !important;
    padding: 0.3rem 0 !important;
  }
}


/* === HAMBURGER MENU === */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 9px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  border-radius: 8px;
  transition: background-color 0.18s ease;
}
.nav-toggle:hover { background: rgba(15, 76, 129, 0.08); }
.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--accent-dark, #0a3560);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex !important;
    order: 2;
  }
  .header-wrap > .brand-mark { order: 1 !important; }
  .header-wrap > .header-cta { display: none !important; }
  .header-wrap > nav {
    order: 5 !important;
    width: 100% !important;
    flex-basis: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    border-top: 1px solid rgba(211, 223, 235, 0.9);
    margin-top: 0.4rem !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .header-wrap > nav.is-open {
    max-height: 600px;
    padding: 0.3rem 0 0.6rem !important;
  }
  .header-wrap > nav a {
    padding: 0.7rem 1rem !important;
    border-bottom: 1px solid rgba(211, 223, 235, 0.55);
    width: 100% !important;
    display: block !important;
    font-size: 1rem !important;
  }
  .header-wrap > nav a:last-child { border-bottom: 0; }
  .header-wrap {
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    padding: 0.5rem 1rem !important;
  }
}
