/* ==========================================================================
   EUGENIA VILLA WEBSITE STYLES
   Colors and fonts are set once, right below. Change a value here and it
   updates everywhere on both the English and Spanish pages.
   ========================================================================== */

/* Heading font, stored in the fonts folder (license: fonts/OFL.txt) */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors: HomeSmart red and navy, plus warm neutrals */
  --color-red: #c2112f;
  --color-red-dark: #9c0d26;
  --color-navy: #031f30;
  --color-navy-light: #12324a;
  --color-ink: #0b2233;
  --color-cream: #faf8f5;
  --color-stone: #f3efea;
  --color-line: #e5ded6;
  --color-muted: #55606a;
  --color-light-text: #e9e4df;

  /* Fonts */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 12px 32px rgba(3, 31, 48, 0.08);

  /* Small icons (you shouldn't need to change these) */
  --svg-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  --svg-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
  --svg-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  --svg-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  --svg-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.65 10A5.99 5.99 0 0 0 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6a5.99 5.99 0 0 0 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z'/%3E%3C/svg%3E");
  --svg-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.41 11.41l-8.83-8.83c-.37-.37-.88-.58-1.41-.58H4c-1.1 0-2 .9-2 2v7.17c0 .53.21 1.04.59 1.41l8.83 8.83c.78.78 2.05.78 2.83 0l7.17-7.17c.78-.78.78-2.04-.01-2.83zM6.5 8C5.67 8 5 7.33 5 6.5S5.67 5 6.5 5 8 5.67 8 6.5 7.33 8 6.5 8z'/%3E%3C/svg%3E");
  --svg-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
  --svg-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
  --svg-facebook: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 3h-2.5A4.5 4.5 0 0 0 8 7.5V10H5.5v4H8v7h4v-7h3l.5-4H12V7.8c0-.5.4-.8.8-.8H15z'/%3E%3C/svg%3E");
  --svg-instagram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.6' fill='black'/%3E%3C/svg%3E");
  --svg-bed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 10.78V8c0-1.65-1.35-3-3-3h-4c-.77 0-1.47.3-2 .78-.53-.48-1.23-.78-2-.78H6C4.35 5 3 6.35 3 8v2.78c-.61.55-1 1.34-1 2.22v6h2v-2h16v2h2v-6c0-.88-.39-1.67-1-2.22zM14 7h4c.55 0 1 .45 1 1v2h-6V8c0-.55.45-1 1-1zM5 8c0-.55.45-1 1-1h4c.55 0 1 .45 1 1v2H5V8zm-1 7v-2c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v2H4z'/%3E%3C/svg%3E");
  --svg-bath: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm13 6V4.83C20 3.27 18.73 2 17.17 2c-.75 0-1.47.3-2 .83l-1.25 1.25c-.16-.05-.33-.08-.51-.08-.4 0-.77.12-1.08.32l2.76 2.76c.2-.31.32-.68.32-1.08 0-.18-.03-.34-.07-.51l1.25-1.25c.15-.15.36-.24.58-.24.46 0 .83.37.83.83V13h-6.85c-.3-.21-.57-.45-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.31-.15-.65-.23-1-.23C6 10.01 5 11.01 5 12.25V13H2v6c0 1.1.9 2 2 2 0 .55.45 1 1 1h14c.55 0 1-.45 1-1 1.1 0 2-.9 2-2v-6h-2z'/%3E%3C/svg%3E");
  --svg-area: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.66 17.66l-1.06 1.06-.71-.71 1.06-1.06-1.94-1.94-1.06 1.06-.71-.71 1.06-1.06-1.94-1.94-1.06 1.06-.71-.71 1.06-1.06L9.7 9.7l-1.06 1.06-.71-.71 1.06-1.06-1.94-1.94-1.06 1.06-.71-.71 1.06-1.06L4 4v14c0 1.1.9 2 2 2h14l-2.34-2.34zM7 17v-5.76L12.76 17H7z'/%3E%3C/svg%3E");
  --svg-language: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.87 15.07l-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z'/%3E%3C/svg%3E");
}

/* ----- Basics ----- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-ink);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw + 1rem, 3.7rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.7rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-red);
}

a[href^="tel:"] {
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
}

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--color-ink);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Icons: add class "has-icon" plus one icon class, e.g. "has-icon icon-phone" */
.icon-phone { --icon: var(--svg-phone); }
.icon-mail { --icon: var(--svg-mail); }
.icon-home { --icon: var(--svg-home); }
.icon-star { --icon: var(--svg-star); }
.icon-facebook { --icon: var(--svg-facebook); }
.icon-instagram { --icon: var(--svg-instagram); }
.icon-language { --icon: var(--svg-language); }
.icon-pin { --icon: var(--svg-pin); }
.icon-bed { --icon: var(--svg-bed); }
.icon-bath { --icon: var(--svg-bath); }
.icon-area { --icon: var(--svg-area); }

.has-icon::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 1.2em;
  height: 1.2em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* ----- Her name next to the brokerage name -----
   Texas rule: the brokerage name must be at least half the size of her name.
   The brokerage text below is tied to the name size, so they stay in proportion. */

.agent-id {
  --name-size: 1.35rem;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.agent-name {
  font-family: var(--font-heading);
  font-size: var(--name-size);
  font-weight: 600;
  color: var(--color-ink);
}

.agent-meta,
.brokerage {
  font-size: calc(var(--name-size) * 0.62);
}

.agent-meta {
  color: var(--color-muted);
}

.brokerage {
  font-weight: 700;
  color: var(--color-ink);
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-red-dark);
}

.btn--dark {
  background: var(--color-ink);
  color: #fff;
}

.btn--dark:hover {
  background: var(--color-navy);
}

.btn--outline {
  border-color: var(--color-ink);
  color: var(--color-ink);
  background: transparent;
}

.btn--outline:hover {
  background: var(--color-ink);
  color: #fff;
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
}

.btn--outline-light:hover {
  background: #fff;
  color: var(--color-ink);
}

.btn--small {
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* ----- Header ----- */

.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--color-line);
}

@media (min-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: auto;
  height: 42px;
  margin-right: -0.35rem;
}

.brand-divider {
  width: 1px;
  align-self: stretch;
  background: var(--color-line);
}

.brand-logo {
  width: auto;
  height: 34px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

@media (max-width: 767px) {
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
}

.header-phone:hover {
  color: var(--color-red);
}

@media (max-width: 479px) {
  .header-phone {
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-line);
    border-radius: 50%;
  }

  .header-phone .phone-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.lang-switch a {
  padding: 0.15rem 0;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.lang-switch a:hover {
  color: var(--color-ink);
}

.lang-switch a[aria-current="page"] {
  color: var(--color-ink);
  border-bottom-color: var(--color-red);
}

/* Phones: keep the header to two rows (name and logo, then buttons) */
@media (max-width: 479px) {
  .header-actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .header-actions .lang-switch {
    gap: 0.35rem;
    font-size: 0.9rem;
  }

  .header-actions .btn--small {
    padding-inline: 0.9rem;
  }
}

@media (max-width: 359px) {
  .brand {
    gap: 0.75rem;
  }

  .brand .agent-id {
    --name-size: 1.2rem;
  }

  .brand-logo {
    height: 30px;
  }

  .header-phone {
    width: 40px;
    height: 40px;
  }

  .header-actions .lang-switch {
    font-size: 0.85rem;
  }

  .header-actions .btn--small {
    padding-inline: 0.75rem;
    font-size: 0.9rem;
  }
}

/* ----- Hero (top banner) ----- */

.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6.5rem);
  color: #fff;
  background:
    linear-gradient(100deg, rgba(3, 31, 48, 0.95) 0%, rgba(3, 31, 48, 0.86) 45%, rgba(3, 31, 48, 0.62) 100%),
    url("../images/hero.jpg") center / cover no-repeat,
    var(--color-navy);
}

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero h1 {
  color: #fff;
  text-wrap: balance;
}

.hero-tagline {
  max-width: 34rem;
  font-size: 1.2rem;
  color: var(--color-light-text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--color-red);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-photo {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 360px;
  margin: 0;
}

@media (min-width: 900px) {
  .hero-photo {
    max-width: 410px;
  }
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 220px 220px var(--radius) var(--radius);
  border: 6px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.hero-photo figcaption {
  position: absolute;
  left: 50%;
  bottom: -1.6rem;
  transform: translateX(-50%);
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  white-space: nowrap;
}

.agent-id--card {
  --name-size: 1.25rem;
  align-items: center;
}

/* ----- Sections ----- */

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section--stone {
  background: var(--color-stone);
}

.section--dark {
  background: var(--color-navy-light);
  color: var(--color-light-text);
}

.section--dark h2 {
  color: #fff;
}

.section-heading {
  max-width: 44rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section-heading .intro {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-red);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-red);
}

.eyebrow--light {
  color: var(--color-light-text);
}

/* ----- Buying, selling & leasing ----- */

.service-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--color-stone);
}

.service-icon::before {
  content: "";
  width: 28px;
  height: 28px;
  background: var(--color-red);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.service-icon--buy { --icon: var(--svg-key); }
.service-icon--sell { --icon: var(--svg-tag); }
.service-icon--lease { --icon: var(--svg-home); }

.service-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

@media (max-width: 359px) {
  .card-actions .btn,
  .listing-buttons .btn {
    padding-inline: 1.1rem;
  }
}

.card-note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.card-note a {
  font-weight: 600;
}

.check-list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.9rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--color-red);
  -webkit-mask: var(--svg-check) center / contain no-repeat;
  mask: var(--svg-check) center / contain no-repeat;
}

/* ----- About me ----- */

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

.about-photo {
  justify-self: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.placeholder-text {
  padding: 0.75rem 1rem;
  border: 2px dashed #c9a227;
  border-radius: 8px;
  background: #fff6d6;
  color: #5c4a00;
  font-size: 0.95rem;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.highlights li {
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ----- Testimonials -----
   data-show="no" on a section (testimonials or featured listings) hides it. */

[data-show="no"] {
  display: none !important;
}

.testimonial-grid {
  display: grid;
  gap: 1.25rem;
}

/* Wider screens: the first review runs full width, the rest sit below it */
@media (min-width: 700px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid .testimonial:first-child,
  .testimonial-grid .testimonial:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }

  .testimonial-grid .testimonial:first-child {
    align-items: center;
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
  }

  .testimonial-grid .testimonial:first-child blockquote {
    max-width: 50rem;
  }

  .testimonial-grid .testimonial:first-child blockquote p {
    text-wrap: pretty;
  }
}

@media (min-width: 1100px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-grid .testimonial:last-child:nth-child(even) {
    grid-column: auto;
  }
}

/* Phones: reviews sit side by side in one row that visitors swipe */
.swipe-hint {
  display: none;
}

@media (max-width: 699px) {
  .testimonial-grid {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-inline: -1.25rem;
    padding: 0.25rem 1.25rem 1.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    scrollbar-width: none;
  }

  .testimonial-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial-grid:focus-visible {
    outline: 3px solid var(--color-red);
    outline-offset: -3px;
  }

  .testimonial-grid .testimonial {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .testimonial-grid .testimonial:only-child {
    flex-basis: 100%;
  }

  .swipe-hint {
    display: block;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-muted);
  }

  .testimonial-grid:has(> .testimonial:only-child) + .swipe-hint {
    display: none;
  }
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 1.75rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.testimonial::before {
  content: "\201C";
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--color-red);
}

.testimonial blockquote {
  margin: 0;
}

.testimonial blockquote p {
  margin: 0;
}

.testimonial figcaption {
  margin-top: auto;
  font-weight: 700;
}

.testimonial figcaption::before {
  content: "\2014\00a0";
}

/* ----- Areas ----- */

.area-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .area-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .area-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.area-card {
  padding: 1.75rem;
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.area-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
}

.area-card h3::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--color-red);
  -webkit-mask: var(--svg-pin) center / contain no-repeat;
  mask: var(--svg-pin) center / contain no-repeat;
}

.area-card p {
  margin: 0;
  color: var(--color-muted);
}

.areas-note {
  margin: 2rem 0 0;
  text-align: center;
}

/* ----- Relocating ----- */

.relocate-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .relocate-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.relocate-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.relocate-list li {
  position: relative;
  padding: 1.1rem 1.25rem 1.1rem 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.relocate-list li::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 1.35rem;
  width: 1.25rem;
  height: 1.25rem;
  background: #fff;
  -webkit-mask: var(--svg-check) center / contain no-repeat;
  mask: var(--svg-check) center / contain no-repeat;
}

.relocate-list strong {
  color: #fff;
}

/* ----- Featured listings ----- */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 370px));
  justify-content: center;
  gap: 1.5rem;
}

.listing-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.listing-photo {
  position: relative;
}

.listing-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.listing-status {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--color-red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.listing-status--rent {
  background: var(--color-ink);
}

.listing-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.4rem 1.5rem;
}

.listing-price {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: lining-nums;
  line-height: 1.2;
  color: var(--color-ink);
}

.listing-price span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-muted);
}

.listing-address {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
}

.listing-city {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.listing-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--color-line);
  list-style: none;
  font-size: 0.95rem;
}

.listing-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.listing-facts .has-icon::before {
  background-color: var(--color-red);
}

.listing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: auto;
}

.listing-link {
  font-weight: 600;
  color: var(--color-ink);
}

.listings-more {
  max-width: 46rem;
  margin: 2.5rem auto 0;
  text-align: center;
}

.listings-more p {
  color: var(--color-muted);
}

.listing-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ----- Contact ----- */

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
  }
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list li::before {
  color: var(--color-red);
}

.contact-list a {
  color: var(--color-ink);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--color-red);
  text-decoration: underline;
}

.agent-id--block {
  --name-size: 1.3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  column-gap: 1rem;
}

@media (min-width: 600px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.field label,
.choice-group legend {
  font-size: 0.95rem;
  font-weight: 600;
}

.req {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #cdc4ba;
  border-radius: 10px;
  background: var(--color-cream);
  color: var(--color-ink);
  font: inherit;
  font-size: 1rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-ink);
  background: #fff;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.choice-group {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 0.5rem;
  padding: 0;
}

.choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.choice-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.choice-options input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--color-red);
}

.hidden-field {
  display: none;
}

.form-status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  font-weight: 600;
}

.form-status.is-success {
  color: #1d6b3a;
}

.form-status.is-error {
  color: var(--color-red-dark);
}

.form-privacy {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ----- Texas Real Estate Commission notices -----
   Texas requires these links in at least 10-point text (about 14px).
   Do not make them smaller. */

.trec-notices {
  padding-block: 1.75rem;
  border-top: 1px solid var(--color-line);
  background: #fff;
}

.trec-title {
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.trec-notices ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trec-notices a {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trec-notices a:hover {
  color: var(--color-red);
}

.trec-note {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* ----- Footer ----- */

.site-footer {
  padding-block: 3rem 1.5rem;
  background: var(--color-navy);
  color: var(--color-light-text);
  font-size: 0.975rem;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.logo-tile {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: #fff;
}

.logo-tile img {
  width: auto;
  height: 38px;
}

.agent-id--footer {
  --name-size: 1.5rem;
  margin-bottom: 1rem;
}

.agent-id--footer .agent-name,
.agent-id--footer .brokerage {
  color: #fff;
}

.agent-id--footer .agent-meta {
  color: var(--color-light-text);
}

.footer-heading {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-links span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.eho {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eho img {
  width: 40px;
  height: 40px;
}

.site-footer .lang-switch,
.site-footer .lang-switch a {
  color: var(--color-light-text);
}

.footer-legal {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  color: var(--color-light-text);
  opacity: 0.85;
}

/* ----- Page not found (404.html) ----- */

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  text-align: center;
}

.not-found .container {
  max-width: 40rem;
}

.not-found .brand-mark {
  height: 64px;
  margin: 0 auto 1.5rem;
}

.not-found-es {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-line);
}

.not-found-contact {
  margin-top: 2.5rem;
  color: var(--color-muted);
}

.site-footer .lang-switch a[aria-current="page"] {
  color: #fff;
}
