/*
 Theme Name:   RealHomes Child
 Theme URI:    https://loctor.realtor
 Description:  The Loctor Family of REALTORS — Modern Archivist Edition
 Author:       The Loctor Family
 Template:     realhomes
 Version:      2.0.0
 Text Domain:  realhomes-child
*/

/* ============================================================
   GOOGLE FONTS IMPORT
   Noto Serif (editorial headlines) + Inter (body/UI)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS — "The Modern Archivist"
   ============================================================ */
:root {
  /* Brand */
  --lf-primary:         #750000;
  --lf-primary-dark:    #500000;
  --lf-primary-light:   #a00000;

  /* Surface hierarchy — no-line rule */
  --lf-surface-0:       #ffffff;   /* base canvas */
  --lf-surface-1:       #f9f9f9;   /* page bg */
  --lf-surface-2:       #f2f4f4;   /* secondary zones */
  --lf-surface-3:       #dde4e5;   /* prominent elements */

  /* Typography */
  --lf-on-surface:      #2d3435;   /* charcoal ink, not pure black */
  --lf-on-surface-var:  #596061;   /* muted body text */
  --lf-outline-var:     #acb3b4;   /* ghost borders */

  /* Fonts */
  --lf-serif:           'Noto Serif', Georgia, serif;
  --lf-sans:            'Inter', system-ui, sans-serif;

  /* Spacing */
  --lf-space-xs:        0.5rem;
  --lf-space-sm:        1rem;
  --lf-space-md:        2rem;
  --lf-space-lg:        4rem;
  --lf-space-xl:        6rem;
  --lf-space-2xl:       8rem;

  /* Radii — generous, editorial */
  --lf-radius-sm:       0.75rem;
  --lf-radius-md:       1.25rem;
  --lf-radius-lg:       2rem;
  --lf-radius-xl:       3rem;
  --lf-radius-pill:     9999px;

  /* Shadows — ambient only, max 6% opacity */
  --lf-shadow-sm:       0 4px 16px rgba(45, 52, 53, 0.05);
  --lf-shadow-md:       0 20px 40px rgba(45, 52, 53, 0.06);
  --lf-shadow-lg:       0 32px 64px rgba(45, 52, 53, 0.08);

  /* Transitions */
  --lf-transition:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--lf-sans);
  color: var(--lf-on-surface);
  background-color: var(--lf-surface-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

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

a { color: var(--lf-primary); text-decoration: none; transition: var(--lf-transition); }
a:hover { color: var(--lf-primary-light); }

ul[role="list"] { list-style: none; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.lf-main { overflow-x: hidden; }

.lf-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

/* ============================================================
   TYPOGRAPHY SYSTEM
   ============================================================ */
.lf-section-label {
  font-family: var(--lf-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lf-primary);
  opacity: 0.65;
  margin-bottom: 1rem;
}

.lf-section-headline {
  font-family: var(--lf-serif);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--lf-on-surface);
  margin-bottom: var(--lf-space-md);
}

.lf-section-headline em {
  font-style: italic;
  font-weight: 400;
}

.lf-eyebrow {
  display: block;
  font-family: var(--lf-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.lf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--lf-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--lf-radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--lf-transition);
  text-decoration: none;
  white-space: nowrap;
}

.lf-btn:active { transform: scale(0.97); }

/* Primary — deep red */
.lf-btn--primary {
  background-color: var(--lf-primary);
  color: #ffffff;
}
.lf-btn--primary:hover {
  background-color: var(--lf-primary-dark);
  color: #ffffff;
}

/* Ghost — text with arrow */
.lf-btn--ghost {
  background: transparent;
  color: var(--lf-primary);
  padding-left: 0;
  padding-right: 0;
}
.lf-btn--ghost:hover { gap: 14px; color: var(--lf-primary-dark); }

/* Dark — near-black */
.lf-btn--dark {
  background-color: var(--lf-on-surface);
  color: #ffffff;
}
.lf-btn--dark:hover { background-color: #1a1c1c; color: #ffffff; }

/* White — for dark backgrounds */
.lf-btn--white {
  background-color: #ffffff;
  color: var(--lf-on-surface);
}
.lf-btn--white:hover { background-color: #f0f0f0; color: var(--lf-on-surface); }

/* ============================================================
   INPUT FIELDS
   ============================================================ */
.lf-input {
  font-family: var(--lf-serif);
  font-size: 0.95rem;
  color: var(--lf-on-surface);
  background: var(--lf-surface-2);
  border: none;
  outline: none;
  width: 100%;
  transition: var(--lf-transition);
}

.lf-input--pill {
  padding: 0.9rem 1.5rem;
  border-radius: var(--lf-radius-pill);
}

.lf-input--pill:focus {
  box-shadow: 0 0 0 2px var(--lf-primary);
  background: var(--lf-surface-0);
}

.lf-input::placeholder { color: var(--lf-outline-var); }

/* ============================================================
   HEADER
   ============================================================ */
.lf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(249, 249, 249, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 72px;
}

.lf-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.lf-header__logo img { height: 44px; width: auto; }

.lf-header__logo-text {
  font-family: var(--lf-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--lf-on-surface);
  letter-spacing: -0.01em;
}

.lf-header__nav { display: flex; align-items: center; }

.lf-header__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.lf-header__menu a {
  font-family: var(--lf-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lf-on-surface-var);
  transition: var(--lf-transition);
}

.lf-header__menu a:hover,
.lf-header__menu .current-menu-item a {
  color: var(--lf-primary);
}

.lf-header__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.lf-header__text-link {
  font-family: var(--lf-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lf-on-surface-var);
}
.lf-header__text-link:hover { color: var(--lf-primary); }

.lf-header__cta {
  font-size: 0.8rem;
  padding: 0.6rem 1.25rem;
}

/* Hamburger */
.lf-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.lf-header__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--lf-on-surface);
  transition: var(--lf-transition);
}

/* Mobile drawer */
.lf-header__mobile-menu {
  display: none;
  padding: 1.5rem 2rem 2rem;
  background: var(--lf-surface-0);
}

.lf-header__mobile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.lf-header__mobile-list a {
  font-family: var(--lf-serif);
  font-size: 1.1rem;
  color: var(--lf-on-surface);
}

.lf-header__mobile-phone {
  font-family: var(--lf-sans);
  font-size: 0.875rem;
  color: var(--lf-primary);
  font-weight: 600;
}

/* ============================================================
   HERO
   ============================================================ */
.lf-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  overflow: hidden;
}

.lf-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lf-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(0.92);
}

/* Editorial gradient overlay — fades to white at bottom */
.lf-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0.0) 40%,
    rgba(249,249,249,0.7) 85%,
    rgba(249,249,249,1) 100%
  );
}

.lf-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  width: 100%;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.lf-hero__headline {
  font-family: var(--lf-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--lf-on-surface);
}

.lf-hero__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--lf-primary);
}

.lf-hero__subhead {
  font-family: var(--lf-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--lf-on-surface-var);
  max-width: 560px;
  line-height: 1.7;
  font-style: italic;
}

/* Glassmorphism pill search */
.lf-hero__search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--lf-radius-pill);
  padding: 6px 6px 6px 1.5rem;
  width: 100%;
  max-width: 620px;
  box-shadow: var(--lf-shadow-md);
  /* Ghost border — felt not seen */
  outline: 1px solid rgba(172, 179, 180, 0.25);
}

.lf-hero__search-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.lf-hero__search-icon { color: var(--lf-outline-var); flex-shrink: 0; }

.lf-hero__search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--lf-serif);
  font-size: 0.95rem;
  color: var(--lf-on-surface);
  padding: 0.5rem 0;
}

.lf-hero__search-input::placeholder { color: var(--lf-outline-var); }

.lf-hero__search-btn {
  flex-shrink: 0;
  padding: 0.85rem 1.75rem;
  font-size: 0.875rem;
}

/* Quick nav below search */
.lf-hero__quicknav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lf-hero__quicklink {
  font-family: var(--lf-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--lf-on-surface-var);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: var(--lf-transition);
}

.lf-hero__quicklink:hover,
.lf-hero__quicklink--active {
  color: var(--lf-on-surface);
  border-bottom-color: var(--lf-primary);
}

/* ============================================================
   SERVICES — BENTO GRID
   ============================================================ */
.lf-services {
  padding: var(--lf-space-2xl) 0;
  background: var(--lf-surface-0);
}

.lf-services .lf-section-label,
.lf-services .lf-section-headline {
  text-align: left;
}

.lf-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1.25rem;
  margin-top: var(--lf-space-lg);
}

/* Large card: col-span 8 */
.lf-bento__card--large { grid-column: span 8; }

/* Small cards: col-span 4 */
.lf-bento__card--small { grid-column: span 4; }

/* Wide card: col-span 12 */
.lf-bento__card--wide { grid-column: span 12; }

.lf-bento__card {
  border-radius: var(--lf-radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 380px;
  transition: var(--lf-transition);
}

/* Surface variants */
.lf-bento__card--surface { background: var(--lf-surface-2); }
.lf-bento__card--muted   { background: var(--lf-surface-3); }
.lf-bento__card--white   { background: var(--lf-surface-0); box-shadow: var(--lf-shadow-sm); }
.lf-bento__card--primary {
  background: var(--lf-primary);
  color: #ffffff;
}

.lf-bento__card-title {
  font-family: var(--lf-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lf-bento__card--primary .lf-bento__card-title { color: #ffffff; }

.lf-bento__card-body {
  font-family: var(--lf-sans);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--lf-on-surface-var);
  max-width: 38ch;
}

.lf-bento__card--primary .lf-bento__card-body { color: rgba(255,255,255,0.75); }

/* Large card: text left, image floats right */
.lf-bento__card--large { flex-direction: row; align-items: flex-end; gap: 2rem; }
.lf-bento__card-text { flex: 1; display: flex; flex-direction: column; gap: 1rem; z-index: 1; }
.lf-bento__card-img-wrap {
  position: absolute;
  right: -8%;
  bottom: -8%;
  width: 55%;
  height: 75%;
  border-radius: var(--lf-radius-md);
  overflow: hidden;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.lf-bento__card--large:hover .lf-bento__card-img-wrap { transform: scale(1.04); }
.lf-bento__card-img { width: 100%; height: 100%; object-fit: cover; }

/* Icon for small card */
.lf-bento__card-icon {
  width: 52px;
  height: 52px;
  background: var(--lf-surface-0);
  border-radius: var(--lf-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lf-primary);
  box-shadow: var(--lf-shadow-sm);
}

/* Large italic number watermark */
.lf-bento__card-number {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-family: var(--lf-serif);
  font-size: 5rem;
  font-style: italic;
  font-weight: 700;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  pointer-events: none;
}

/* Wide CTA card */
.lf-bento__card--wide { flex-direction: row; align-items: center; gap: 3rem; min-height: 300px; }
.lf-bento__cta-text { flex: 1.2; display: flex; flex-direction: column; gap: 1.25rem; }
.lf-bento__cta-img {
  flex: 0.8;
  height: 240px;
  border-radius: var(--lf-radius-md);
  overflow: hidden;
  filter: grayscale(20%);
}
.lf-bento__cta-img img { width: 100%; height: 100%; object-fit: cover; }

.lf-bento__cta-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  max-width: 500px;
}
.lf-bento__cta-form .lf-input { flex: 1; min-width: 180px; }

/* ============================================================
   THE LOCTOR METHOD — Curator's Tray
   ============================================================ */
.lf-method {
  padding: var(--lf-space-2xl) 0;
  background: var(--lf-surface-2);
}

.lf-method__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: var(--lf-space-lg);
}

.lf-method__quote {
  font-family: var(--lf-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--lf-on-surface-var);
  line-height: 1.7;
  max-width: 30ch;
  border: none;
  padding: 0;
}

/* Horizontally scrolling tray */
.lf-tray {
  display: flex;
  overflow-x: auto;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.lf-tray::-webkit-scrollbar { display: none; }

.lf-tray__card {
  flex: 0 0 340px;
  background: var(--lf-surface-0);
  border-radius: var(--lf-radius-lg);
  padding: 2.5rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: var(--lf-shadow-sm);
}

.lf-tray__number {
  font-family: var(--lf-serif);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--lf-primary);
  opacity: 0.1;
  line-height: 1;
}

.lf-tray__title {
  font-family: var(--lf-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lf-on-surface);
  margin-bottom: 0.5rem;
}

.lf-tray__body {
  font-family: var(--lf-sans);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--lf-on-surface-var);
}

/* ============================================================
   WHY WORK WITH US
   ============================================================ */
.lf-why {
  padding: var(--lf-space-2xl) 0;
  background: var(--lf-surface-0);
}

.lf-why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.lf-why__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lf-why__body {
  font-family: var(--lf-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--lf-on-surface-var);
  max-width: 44ch;
}

.lf-why__list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lf-why__list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--lf-sans);
  font-size: 0.9rem;
  color: var(--lf-on-surface-var);
}

.lf-why__list-item svg { color: var(--lf-primary); flex-shrink: 0; }

/* Image panel */
.lf-why__media { position: relative; }

.lf-why__img-tilt {
  border-radius: var(--lf-radius-lg);
  overflow: hidden;
  transform: rotate(2deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--lf-shadow-lg);
}

.lf-why__media:hover .lf-why__img-tilt { transform: rotate(0deg); }

.lf-why__img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* Stats badge */
.lf-why__badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--lf-primary);
  color: #ffffff;
  padding: 1.25rem 1.75rem;
  border-radius: var(--lf-radius-md);
  box-shadow: var(--lf-shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lf-why__badge-num {
  font-family: var(--lf-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.lf-why__badge-label {
  font-family: var(--lf-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Ambient glow blobs */
.lf-why__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.lf-why__blob--1 {
  width: 200px; height: 200px;
  background: rgba(117, 0, 0, 0.06);
  top: -3rem; right: -3rem;
}

.lf-why__blob--2 {
  width: 280px; height: 280px;
  background: rgba(117, 0, 0, 0.04);
  bottom: -4rem; left: -4rem;
}

/* ============================================================
   CONTACT — Dark Rounded Section
   ============================================================ */
.lf-contact {
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  padding-bottom: var(--lf-space-xl);
  background: var(--lf-surface-1);
}

.lf-contact__inner {
  background: var(--lf-on-surface);
  border-radius: var(--lf-radius-xl);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  position: relative;
}

.lf-contact__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--lf-space-lg);
}

.lf-contact__headline {
  font-family: var(--lf-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.lf-contact__sub {
  font-family: var(--lf-serif);
  font-style: italic;
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  line-height: 1.6;
}

.lf-contact__body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

/* Contact info */
.lf-contact__info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.lf-contact__agent {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lf-contact__agent-label {
  font-family: var(--lf-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lf-primary-light);
}

.lf-contact__agent-name {
  font-family: var(--lf-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.lf-contact__agent-brokerage {
  font-family: var(--lf-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.lf-contact__agent-phone {
  font-family: var(--lf-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: var(--lf-transition);
}
.lf-contact__agent-phone:hover { color: #ffffff; }

.lf-contact__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.lf-contact__action {
  font-family: var(--lf-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
  transition: var(--lf-transition);
}
.lf-contact__action:hover { color: #ffffff; border-bottom-color: rgba(255,255,255,0.6); }

/* HubSpot form overrides */
.lf-contact__form .hs-form-field label {
  font-family: var(--lf-sans) !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.4) !important;
  margin-bottom: 0.5rem !important;
}

.lf-contact__form .hs-input {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: var(--lf-radius-pill) !important;
  padding: 0.9rem 1.5rem !important;
  color: #ffffff !important;
  font-family: var(--lf-serif) !important;
  width: 100% !important;
  outline: none !important;
  transition: var(--lf-transition) !important;
}

.lf-contact__form .hs-input:focus {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.25) !important;
}

.lf-contact__form .hs-button {
  background: #ffffff !important;
  color: var(--lf-on-surface) !important;
  border: none !important;
  border-radius: var(--lf-radius-pill) !important;
  padding: 1rem 2.5rem !important;
  font-family: var(--lf-sans) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: var(--lf-transition) !important;
  width: 100% !important;
}
.lf-contact__form .hs-button:hover {
  background: rgba(255,255,255,0.88) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.lf-footer {
  background: var(--lf-surface-2);
  padding: var(--lf-space-xl) 0 0;
}

.lf-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
  padding-bottom: var(--lf-space-lg);
}

.lf-footer__brand { max-width: 320px; display: flex; flex-direction: column; gap: 1.25rem; }

.lf-footer__brand-name {
  font-family: var(--lf-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--lf-on-surface);
}

.lf-footer__tagline {
  font-family: var(--lf-sans);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--lf-on-surface-var);
}

.lf-footer__social {
  display: flex;
  gap: 1rem;
}

.lf-footer__social a {
  color: var(--lf-outline-var);
  transition: var(--lf-transition);
}
.lf-footer__social a:hover { color: var(--lf-primary); }

.lf-footer__links { display: flex; gap: 3rem; flex-wrap: wrap; }

.lf-footer__col { display: flex; flex-direction: column; gap: 1rem; }

.lf-footer__col-title {
  font-family: var(--lf-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lf-on-surface);
}

.lf-footer__col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lf-footer__col-list a {
  font-family: var(--lf-sans);
  font-size: 0.875rem;
  color: var(--lf-on-surface-var);
}
.lf-footer__col-list a:hover { color: var(--lf-primary); }

.lf-footer__bottom {
  border-top: 1px solid rgba(172, 179, 180, 0.2);
  padding: 1.75rem 0;
}

.lf-footer__bottom .lf-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lf-footer__copy {
  font-family: var(--lf-sans);
  font-size: 0.78rem;
  color: var(--lf-on-surface-var);
}

.lf-footer__equal img { opacity: 0.5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .lf-bento__card--large { grid-column: span 12; min-height: 460px; }
  .lf-bento__card--small { grid-column: span 6; }
  .lf-bento__card--wide  { grid-column: span 12; flex-direction: column; }
  .lf-bento__cta-img     { height: 200px; width: 100%; }
  .lf-why__inner         { grid-template-columns: 1fr; gap: 3rem; }
  .lf-why__badge         { left: 1rem; bottom: -1rem; }
  .lf-method__header     { grid-template-columns: 1fr; }
  .lf-contact__body      { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .lf-header__nav,
  .lf-header__actions .lf-header__text-link { display: none; }
  .lf-header__hamburger  { display: flex; }

  .lf-hero__headline     { font-size: clamp(2.5rem, 10vw, 4rem); }
  .lf-hero__search       { flex-direction: column; border-radius: var(--lf-radius-xl); padding: 1rem; }
  .lf-hero__search-btn   { width: 100%; justify-content: center; }

  .lf-bento__card--large { grid-column: span 12; flex-direction: column; min-height: auto; }
  .lf-bento__card--small { grid-column: span 12; }
  .lf-bento__card-img-wrap { position: relative; right: auto; bottom: auto; width: 100%; height: 220px; }

  .lf-tray__card         { flex: 0 0 280px; }

  .lf-contact__inner     { border-radius: var(--lf-radius-lg); }
  .lf-contact__body      { grid-template-columns: 1fr; }

  .lf-footer__inner      { flex-direction: column; gap: 2.5rem; }
  .lf-footer__brand      { max-width: 100%; }
}

/* ============================================================
   MOBILE MENU — JS TOGGLE
   ============================================================ */
.lf-header.is-menu-open .lf-header__mobile-menu { display: block; }
.lf-header.is-menu-open .lf-header__hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.lf-header.is-menu-open .lf-header__hamburger span:nth-child(2) { opacity: 0; }
.lf-header.is-menu-open .lf-header__hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   REALHOMES OVERRIDE — remove conflicting demo styles
   ============================================================ */
.lf-main .rh-page-wrapper,
.lf-main .page-wrap,
.lf-main #content { all: unset; display: contents; }