/* ==========================================================================
   KW Lanier Partners Español — stylesheet
   Palette sampled directly from the official logo file.
   ========================================================================== */

:root {
  --color-red: #cd011e;
  --color-red-dark: #a4001a;
  --color-charcoal: #1a1a1a;
  --color-charcoal-soft: #3a3a3a;
  --color-white: #ffffff;
  --color-warm-gray: #f7f5f2;
  --color-warm-gray-dark: #ece8e2;
  --color-border: #e2ddd4;
  --color-text: var(--color-charcoal);
  --color-text-muted: #5c5852;

  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container-width: 1180px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.06), 0 1px 3px rgba(26, 26, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 26, 26, 0.1);

  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

section {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 32px;
  }
}

.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;
  top: -100px;
  left: 12px;
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 12px 18px;
  border-radius: 6px;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

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

.section-heading {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-charcoal);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--color-red-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-charcoal);
  border-color: var(--color-charcoal);
}

.btn--outline:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
}

/* For use on dark/photo backgrounds (hero, agent band) — white text/border
   so it stays readable, unlike .btn--outline which is charcoal-on-charcoal
   and disappears against a dark image. */
.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn--outline-light:hover {
  background: var(--color-white);
  color: var(--color-charcoal);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn--nav {
  padding: 13px 22px;
  font-size: 0.92rem;
  min-height: 44px;
}

.btn--block {
  width: 100%;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  max-width: var(--container-width);
  margin-inline: auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 20px;
}

@media (min-width: 640px) {
  .nav {
    padding-inline: 32px;
  }
}

.nav__logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo {
  height: 44px;
  width: auto;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  align-items: center;
}

.nav__toggle-bar {
  width: 24px;
  height: 2.5px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav[aria-hidden] {
  display: none;
}

.nav__menu {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.nav__menu.is-open {
  transform: translateX(0);
}

.nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.25rem;
  font-weight: 600;
}

.nav__links a {
  display: block;
  padding: 12px 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* Segmented pill control — deliberately higher-contrast than plain text
   links so it reads as an obvious, clickable language switch. */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--color-charcoal);
  border-radius: 999px;
  padding: 3px;
  background: var(--color-white);
}

.lang-toggle__btn {
  background: none;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 44px;
  min-width: 44px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--color-charcoal);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-toggle__btn[aria-pressed="true"] {
  background: var(--color-red);
  color: var(--color-white);
}

/* Compact version that sits in the always-visible top bar on mobile,
   next to the hamburger, so the language switch never requires opening
   the menu. Hidden on desktop, where the full-size control in the nav
   row already does the job. */
.lang-toggle--topbar {
  margin-inline-start: auto;
  margin-inline-end: 12px;
}

@media (min-width: 860px) {
  .lang-toggle--topbar {
    display: none;
  }
}

.lang-toggle--menu {
  display: none;
}

@media (min-width: 860px) {
  .lang-toggle--menu {
    display: flex;
  }
}

body.nav-open,
body.lang-modal-open {
  overflow: hidden;
}

/* ---------- Language choice modal (first visit) ---------- */
.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lang-modal[hidden] {
  display: none;
}

.lang-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
}

.lang-modal__card {
  position: relative;
  background: var(--color-white);
  border-radius: 16px;
  padding: 36px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.lang-modal__heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 24px;
  line-height: 1.4;
}

.lang-modal__divider {
  color: var(--color-text-muted);
  margin-inline: 6px;
  font-weight: 400;
}

.lang-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lang-modal__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 16px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-warm-gray);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lang-modal__btn:hover,
.lang-modal__btn:focus-visible {
  border-color: var(--color-red);
  background: var(--color-white);
}

.lang-modal__btn-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-charcoal);
}

.lang-modal__btn-sub {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

@media (min-width: 860px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    transform: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    padding: 0;
    gap: 36px;
    background: transparent;
    overflow: visible;
  }

  .nav__links {
    flex-direction: row;
    gap: 32px;
    font-size: 0.98rem;
    margin-inline-start: 48px;
  }

  .nav__actions {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  color: var(--color-white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.55) 0%, rgba(26, 26, 26, 0.35) 35%, rgba(26, 26, 26, 0.85) 100%);
}

.hero__content {
  position: relative;
  padding-block: 64px 56px;
  max-width: 760px;
}

.hero__eyebrow {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-white);
  opacity: 0.9;
  margin-bottom: 16px;
}

.hero__headline {
  font-size: clamp(2.25rem, 1.7rem + 3vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero__headline span {
  display: block;
}

.hero__headline span:nth-child(2) {
  color: #ff5a68;
}

.hero__support {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  max-width: 46ch;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero__tertiary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 10px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--color-white);
  opacity: 0.9;
}

.hero__tertiary:hover {
  opacity: 1;
}

@media (min-width: 860px) {
  .hero {
    min-height: 92vh;
  }
}

/* ---------- Simple path ---------- */
.path {
  padding-block: 72px;
  background: var(--color-white);
}

.path .section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.path__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .path__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.path__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-warm-gray);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.path__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-red);
}

.path__icon {
  width: 48px;
  height: 48px;
  color: var(--color-red);
}

.path__card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.path__card p {
  color: var(--color-text-muted);
  line-height: 1.5;
}

.path__link {
  margin-top: auto;
  font-weight: 700;
  color: var(--color-red);
}

.path__link::after {
  content: " →";
}

/* ---------- Split sections (image + content) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
}

.split__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.split__content {
  display: flex;
  align-items: center;
  background: var(--color-warm-gray);
}

.split__inner {
  padding: 48px 24px;
  max-width: 560px;
  margin-inline: auto;
}

.split__subheading {
  font-weight: 700;
  color: var(--color-red);
  margin-top: 6px;
  font-size: 1.05rem;
}

.split__body {
  margin-top: 16px;
  margin-bottom: 28px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
  }

  .split__media {
    aspect-ratio: auto;
    height: 100%;
  }

  .split--reverse {
    direction: rtl;
  }

  .split--reverse .split__content {
    direction: ltr;
  }

  .split__inner {
    padding: 48px 56px;
    margin-inline: 0;
  }
}

/* ---------- Banner (first-time buyer) ---------- */
.banner {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding-block: 80px;
}

.banner__inner {
  max-width: 680px;
  text-align: center;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.banner .section-heading {
  color: var(--color-white);
}

.banner__body {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Contact ---------- */
.contact {
  padding-block: 80px;
  background: var(--color-warm-gray);
}

.contact__intro {
  max-width: 620px;
  margin-bottom: 40px;
}

.contact__support {
  margin-top: 14px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.contact__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: 1.6fr 1fr;
  }
}

.contact__form-wrap {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact__loading {
  padding: 24px;
  text-align: center;
  color: var(--color-text-muted);
}

.contact__iframe {
  width: 100%;
  height: 720px; /* fallback if the resize handler can't load; overridden inline by jotformEmbedHandler */
  min-height: 480px;
  border: none;
  display: block;
}

.contact__fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.contact__fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
  font-weight: 700;
  color: var(--color-red);
  margin-left: 6px;
}

.contact__direct {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact__direct-label,
.contact__list-label {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-charcoal);
}

.contact__list a:hover {
  color: var(--color-red);
}

.contact__offices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact__offices strong {
  display: block;
  color: var(--color-charcoal);
  font-size: 1rem;
  margin-bottom: 2px;
}

/* ---------- Agent opportunity (secondary, quieter) ---------- */
.agent {
  background: var(--color-charcoal-soft);
  color: var(--color-white);
  padding-block: 40px;
}

.agent__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.agent__heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.agent__body {
  color: rgba(255, 255, 255, 0.75);
  max-width: 60ch;
  line-height: 1.5;
  font-size: 0.98rem;
}

@media (min-width: 760px) {
  .agent__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}

/* ---------- Footer ----------
   Note: the footer stays light so the official logo file can be used
   exactly as provided, with no color inversion or stylizing applied. */
.site-footer {
  background: var(--color-warm-gray);
  color: var(--color-text-muted);
  padding-block: 56px 28px;
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer__logo {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
}

.footer__brokerage {
  font-weight: 600;
  color: var(--color-text-muted);
}

.footer__col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 14px;
}

.footer__col p {
  margin-bottom: 4px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
}

.footer__col a:hover {
  color: var(--color-red);
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-block: 4px;
  font-weight: 600;
}

.footer__legal {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer__fair-housing {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-charcoal);
  font-weight: 600;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.footer__links a:hover {
  color: var(--color-red);
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(26, 26, 26, 0.08);
}

@media (min-width: 860px) {
  .sticky-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (max-width: 859px) {
  body {
    padding-bottom: 76px;
  }
}
