/* =========================================
   Sierra Property Advisor - Main Stylesheet
   ========================================= */

/* --- Google Fonts --- */
@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;6..96,500;6..96,600;6..96,700&family=Outfit:wght@300;400;500;600&display=swap");

/* --- CSS Custom Properties --- */
:root {
  /* Sierra Property Advisor - Brand Colors */
  --ms-primary: #2c3e50; /* In the Navy - SW 9178 */
  --ms-secondary: #c8a45d; /* Warm Gold - accent */
  --ms-accent: #6b7d8a; /* Distance - SW 6243 (Slate) */
  --ms-light: #eef1f2; /* Tinted white from Tradewind */
  --ms-gray: #6b7d8a; /* Distance / Slate */
  --ms-dark: #1e2d3d; /* Deeper Navy */
  --ms-white: #ffffff;
  --ms-border: #d5dcde; /* Light border from Tradewind family */
  --ms-silver: #bec8c9; /* Tradewind - SW 6218 */
  --ms-slate: #6b7d8a; /* Distance - SW 6243 */
  --ms-navy: #2c3e50; /* In the Navy - SW 9178 */

  /* FL Realty Investments - Broker Colors (restricted use) */
  --flr-green: #369970;
  --flr-blue: #1a73e8;
  --flr-dark: #32373c;

  /* Typography */
  --font-heading: "Bodoni Moda", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
}

/* =========================================
   LOADER
   ========================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--ms-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.loader.loader--hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__logo {
  max-width: 120px;
  height: auto;
  animation: loaderPulse 1.8s ease-in-out infinite;
  filter: brightness(0) invert(1);
}

.loader__bar {
  width: 120px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.loader__progress {
  height: 100%;
  width: 0%;
  background-color: var(--ms-secondary);
  animation: loaderFill 1.5s ease-out forwards;
}

@keyframes loaderPulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes loaderFill {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ms-dark);
  background-color: var(--ms-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul,
ol {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--ms-primary);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}
h3 {
  font-size: 1.5rem;
  font-weight: 500;
}
h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--ms-primary);
  letter-spacing: 0.01em;
  line-height: 1.7;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ms-secondary);
  margin-bottom: var(--space-xs);
}

.section-description {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: var(--ms-gray);
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background-color: var(--ms-navy);
  color: var(--ms-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--ms-primary);
  border: 1.5px solid var(--ms-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 32px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--ms-primary);
  color: var(--ms-white);
}

.btn-white {
  display: inline-block;
  background-color: var(--ms-white);
  color: var(--ms-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-white:hover {
  background-color: var(--ms-silver);
}

/* =========================================
   LOGO
   ========================================= */
.ms-logo {
  display: inline-flex;
  align-items: center;
}

.ms-logo__img {
  height: 120px;
  width: auto;
}

.ms-logo__img--footer {
  height: 60px;
  filter: brightness(0) invert(1);
}

.ms-logo__mark {
  width: 52px;
  height: 52px;
  border: 2px solid var(--ms-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.ms-logo__mark::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid var(--ms-secondary);
}

.ms-logo__initials {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.15em;
  color: var(--ms-primary);
}

.ms-logo__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ms-logo__name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ms-primary);
  line-height: 1;
  white-space: nowrap;
}

.ms-logo__divider {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--ms-secondary);
}

.ms-logo__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ms-gray);
  text-transform: uppercase;
  line-height: 1;
}

/* Logo - Light version (for dark backgrounds) */
.ms-logo--light .ms-logo__initials,
.ms-logo--light .ms-logo__name {
  color: var(--ms-white);
}

.ms-logo--light .ms-logo__title {
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   TOP BAR
   ========================================= */
.top-bar {
  background-color: var(--ms-primary);
  padding: 8px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar__contact {
  display: flex;
  gap: var(--space-md);
}

.top-bar__contact a {
  color: rgba(255, 255, 255, 0.7);
}

.top-bar__contact a:hover {
  color: var(--ms-secondary);
}

.top-bar__lang {
  display: flex;
  gap: 4px;
}

.top-bar__lang button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.6);
  padding: 2px 10px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.top-bar__lang button.active,
.top-bar__lang button:hover {
  background-color: var(--ms-secondary);
  border-color: var(--ms-secondary);
  color: var(--ms-white);
}

/* =========================================
   HEADER / NAVIGATION
   ========================================= */
.header {
  background-color: var(--ms-white);
  padding: var(--space-xs) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(27, 42, 74, 0.06);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__left,
.nav__right {
  flex: 1;
}

.nav__left {
  display: flex;
  justify-content: flex-end;
  padding-right: var(--space-xl);
}

.nav__right {
  display: flex;
  justify-content: flex-start;
  padding-left: var(--space-xl);
}

.ms-logo {
  flex-shrink: 0;
}

.nav__list {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ms-dark);
  position: relative;
  padding-bottom: 4px;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--ms-secondary);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--ms-primary);
}

.nav__link.btn-primary {
  color: var(--ms-white);
  padding: 10px 24px;
}

.nav__link.btn-primary:hover {
  color: var(--ms-white);
}

.nav__link.btn-primary::after {
  display: none;
}

/* Hide mobile-only cloned items on desktop */
.mobile-only {
  display: none;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ms-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  height: 85vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--ms-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: var(--ms-white);
}

.hero__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ms-secondary);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 400;
  color: var(--ms-white);
  margin-bottom: var(--space-md);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.hero__description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* =========================================
   BANNER STRIP
   ========================================= */
.banner-strip {
  background-color: var(--ms-secondary);
  padding: var(--space-md) 0;
  text-align: center;
}

.banner-strip__text {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  letter-spacing: 0.06em;
  color: var(--ms-white);
  margin-bottom: 0;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
  padding: var(--space-3xl) 0;
  background-color: var(--ms-white);
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* Image side - layered composition */
.about__image-side {
  position: relative;
  min-height: 550px;
}

.about__color-block {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 65%;
  background-color: var(--ms-silver);
  z-index: 0;
}

.about__photo-card {
  position: relative;
  z-index: 1;
  width: 80%;
  margin-top: 40px;
  box-shadow: 12px 12px 40px rgba(44, 62, 80, 0.15);
}

.about__photo {
  width: 100%;
  height: auto;
  display: block;
}

/* Decorative diamonds */
.about__decorative {
  position: absolute;
  bottom: 30px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.about__decorative span {
  display: block;
  width: 24px;
  height: 24px;
  background-color: var(--ms-navy);
  transform: rotate(45deg);
}

.about__decorative span:first-child {
  opacity: 0.4;
  margin-left: -18px;
}

.about__decorative span:nth-child(2) {
  background-color: var(--ms-secondary);
  margin-left: 18px;
}

.about__decorative span:last-child {
  opacity: 0.6;
  margin-left: -8px;
}

/* Content side */
.about__content {
  padding-left: var(--space-md);
}

.about__text {
  margin-bottom: var(--space-md);
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 992px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about__image-side {
    min-height: 450px;
    max-width: 500px;
    margin: 0 auto;
  }

  .about__content {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .about__image-side {
    min-height: 380px;
    max-width: 350px;
  }

  .about__decorative {
    display: none;
  }
}

/* =========================================
   PROCESS SECTION
   ========================================= */
.process {
  padding: var(--space-3xl) 0;
  background-color: var(--ms-light);
}

.process__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.process__timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.process__timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--ms-border);
}

.process__step {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  position: relative;
}

.process__step:last-child {
  margin-bottom: 0;
}

.process__number {
  width: 56px;
  height: 56px;
  border: 2px solid var(--ms-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ms-navy);
  background-color: var(--ms-light);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process__content {
  padding-top: 8px;
}

.process__title {
  margin-bottom: 6px;
  color: var(--ms-navy);
}

.process__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ms-slate);
}

@media (max-width: 768px) {
  .process__timeline::before {
    left: 24px;
  }

  .process__number {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services {
  padding: var(--space-3xl) 0;
  background-color: var(--ms-light);
}

.services__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background-color: var(--ms-white);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--ms-border);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(44, 41, 38, 0.08);
}

.service-card__icon {
  font-size: 2rem;
  color: var(--ms-secondary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--ms-border);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--ms-secondary);
  stroke-width: 1.5;
  fill: none;
}

.service-card__title {
  margin-bottom: var(--space-sm);
}

.service-card__text {
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card__broker-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-sm);
  padding: 8px 16px;
  background-color: #f7f9fa;
  border-left: 3px solid var(--flr-green);
  font-size: 0.78rem;
  color: var(--ms-gray);
}

/* =========================================
   NEW CONSTRUCTION SECTION
   ========================================= */
.new-construction {
  padding: var(--space-3xl) 0;
  background-color: var(--ms-white);
}

.new-construction__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Partnership Banner */
.partnership-banner {
  background-color: #f7f9fa;
  border-left: 4px solid var(--flr-green);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.broker-badge {
  background-color: var(--flr-dark);
  padding: 12px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.broker-badge__text {
  color: var(--ms-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.broker-badge__text span {
  display: block;
  color: var(--flr-green);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.partnership-text {
  font-size: 0.9rem;
  color: var(--ms-gray);
  line-height: 1.6;
}

.partnership-text strong {
  color: var(--ms-dark);
}

.broker-link {
  color: var(--flr-green);
  font-size: 0.8rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.broker-link:hover {
  border-bottom-color: var(--flr-green);
  color: var(--flr-green);
}

/* Benefits Grid */
.nc-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.nc-benefit {
  text-align: center;
  padding: var(--space-lg);
}

.nc-benefit__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ms-secondary);
}

.nc-benefit__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--ms-secondary);
  stroke-width: 1.5;
  fill: none;
}

.nc-benefit__title {
  margin-bottom: var(--space-xs);
}

.nc-benefit__text {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* NC CTA */
.nc-cta {
  text-align: center;
  padding: var(--space-2xl);
  background-color: var(--ms-light);
}

.nc-cta__title {
  margin-bottom: var(--space-sm);
}

.nc-cta__text {
  margin-bottom: var(--space-md);
  color: var(--ms-gray);
}

/* =========================================
   LISTINGS / PROPERTIES SECTION
   ========================================= */
.listings {
  padding: var(--space-3xl) 0;
  background-color: var(--ms-light);
}

.listings__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.listings__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.listing-card {
  background-color: var(--ms-white);
  border: 1px solid var(--ms-border);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.listing-card:hover {
  box-shadow: 0 4px 20px rgba(44, 41, 38, 0.08);
}

.listing-card__image {
  width: 100%;
  height: 220px;
  background-color: var(--ms-border);
  background-size: cover;
  background-position: center;
  position: relative;
}

.listing-card__tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background-color: var(--ms-navy);
  color: var(--ms-white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
}

.listing-card__tag--new {
  background-color: var(--flr-green);
}

.listing-card__body {
  padding: var(--space-md);
}

.listing-card__price {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ms-primary);
  margin-bottom: 4px;
}

.listing-card__address {
  font-size: 0.875rem;
  color: var(--ms-gray);
  margin-bottom: var(--space-sm);
}

.listing-card__details {
  display: flex;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--ms-border);
  font-size: 0.8rem;
  color: var(--ms-gray);
}

.listing-card__detail {
  display: flex;
  align-items: center;
  gap: 4px;
}

.listing-card__detail svg {
  width: 16px;
  height: 16px;
  stroke: var(--ms-gray);
  stroke-width: 1.5;
  fill: none;
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials {
  padding: var(--space-3xl) 0;
  background-color: var(--ms-navy);
}

.testimonials__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.testimonials__header h2 {
  color: var(--ms-white);
}

.testimonials__header .section-subtitle {
  color: var(--ms-secondary);
}

.testimonials__slider {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  min-height: 200px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-lg);
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.testimonials__dot.active {
  background-color: var(--ms-secondary);
}

.testimonial-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--ms-secondary);
  color: var(--ms-navy);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}

.testimonial-card__quote {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.testimonial-card__author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ms-white);
}

.testimonial-card__role {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

/* =========================================
   SERVICE AREA SECTION
   ========================================= */
.service-area {
  padding: var(--space-3xl) 0;
  background-color: var(--ms-light);
}

.service-area__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.service-area__content {
  padding-right: var(--space-lg);
}

.service-area__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ms-slate);
  margin-bottom: var(--space-md);
}

.service-area__map {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-area__map img {
  max-width: 380px;
  width: 100%;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.service-area__map img:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .service-area__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-area__content {
    padding-right: 0;
  }

  .service-area__map img {
    max-width: 260px;
  }
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
  padding: var(--space-3xl) 0;
  background-color: var(--ms-white);
}

.contact__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.contact__info {
  padding-top: var(--space-md);
}

.contact__item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.contact__item-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ms-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--ms-secondary);
  stroke-width: 1.5;
  fill: none;
}

.contact__item-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ms-gray);
  margin-bottom: 2px;
}

.contact__item-value {
  font-size: 1rem;
  color: var(--ms-dark);
  margin-bottom: 0;
}

.contact__item-value a {
  color: var(--ms-primary);
}

.contact__item-value a:hover {
  color: var(--ms-slate);
}

.contact__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.contact__social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ms-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact__social-link:hover {
  background-color: var(--ms-primary);
  border-color: var(--ms-primary);
}

.contact__social-link:hover svg {
  stroke: var(--ms-white);
}

.contact__social-link svg {
  width: 18px;
  height: 18px;
  stroke: var(--ms-gray);
  stroke-width: 1.5;
  fill: none;
}

/* Contact Form */
.contact__form {
  background-color: var(--ms-light);
  padding: var(--space-xl);
}

.form__group {
  margin-bottom: var(--space-md);
}

.form__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ms-gray);
  margin-bottom: var(--space-xs);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ms-dark);
  background-color: var(--ms-white);
  border: 1px solid var(--ms-border);
  transition: border-color 0.3s ease;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--ms-secondary);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background-color: var(--ms-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2xl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.footer__about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: var(--space-sm);
}

.footer__heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ms-white);
  margin-bottom: var(--space-md);
}

.footer__links li {
  margin-bottom: var(--space-xs);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer__contact-item {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--ms-secondary);
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Footer Broker Disclosure Bar */
.footer__broker-bar {
  background-color: #242220;
  padding: var(--space-sm) 0;
  margin-top: var(--space-lg);
}

.footer__broker-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__broker-badge {
  background-color: var(--flr-dark);
  padding: 6px 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.footer__broker-badge-text {
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ms-white);
  line-height: 1.2;
}

.footer__broker-badge-text span {
  display: block;
  color: var(--flr-green);
  font-size: 0.55rem;
  font-weight: 500;
}

.footer__broker-inner a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
}

.footer__broker-inner a:hover {
  color: var(--flr-green);
}

/* Footer Bottom */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-sm) 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xs);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer__legal {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-xs);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
}

.footer__attribution {
  margin-top: var(--space-sm);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
}

.footer__attribution a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

.footer__attribution a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* =========================================
   LANGUAGE TOGGLE CONTENT
   ========================================= */
/* --- Language Toggle: hide/show by lang attribute --- */
[data-lang="es"] {
  display: none !important;
}

body.lang-es [data-lang="en"] {
  display: none !important;
}

body.lang-es [data-lang="es"] {
  display: revert !important;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.875rem;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about__content {
    padding-left: 0;
  }

  .services__grid,
  .nc-benefits,
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .listings__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  .top-bar__contact {
    display: none;
  }

  .nav__left {
    display: none;
  }

  .nav__right {
    padding-left: 0;
  }

  .nav__right .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--ms-white);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    box-shadow: 0 8px 24px rgba(27, 42, 74, 0.1);
  }

  .nav__right .nav__list.nav--open {
    display: flex;
  }

  /* Add hidden left nav items into mobile menu */
  .nav__right .nav__list.nav--open::before {
    content: none;
  }

  .mobile-only {
    display: list-item;
  }

  .nav__toggle {
    display: block;
  }

  .header__inner {
    position: relative;
    justify-content: space-between;
  }

  .hero {
    height: auto;
    min-height: 500px;
    padding: var(--space-3xl) 0;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .services__grid,
  .nc-benefits,
  .testimonials__grid,
  .listings__grid {
    grid-template-columns: 1fr;
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .partnership-banner {
    flex-direction: column;
    text-align: center;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__broker-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xs);
  }

  .ms-logo__img {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .hero__buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-white {
    text-align: center;
    width: 100%;
  }

  .about__stats {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */

/* Cards / staggered items - slide up + fade */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Block elements - fade up */
.reveal-block {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-block.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Process steps - slide in from left + fade */
.reveal-step {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-step.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Full-width button modifier (replaces inline width:100%) */
.btn--full {
  width: 100%;
}

/* =========================================
   FEATURED LISTINGS (illustrative — placeholder for future MLS plugin)
   ========================================= */
.listings {
  padding: var(--space-3xl) 0;
  background-color: var(--ms-white);
}

.listings__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.listings__header h2 {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.listings__disclaimer {
  font-size: 0.85rem;
  color: var(--ms-gray);
  font-style: italic;
  max-width: 640px;
  margin: 0 auto;
}

.listings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.listings__cta {
  text-align: center;
}

.listing-card {
  background: var(--ms-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(44, 62, 80, 0.14);
}

.listing-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.listing-card:hover .listing-card__media img {
  transform: scale(1.05);
}

.listing-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.listing-card__badge--available {
  background: rgba(16, 185, 129, 0.92);
}

.listing-card__badge--pending {
  background: rgba(234, 88, 12, 0.92);
}

.listing-card__badge--preconstruction {
  background: rgba(139, 92, 246, 0.92);
}

.listing-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(44, 62, 80, 0.85);
  color: var(--ms-secondary);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.listing-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing-card__price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ms-primary);
  margin-bottom: 4px;
  line-height: 1.1;
}

.listing-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ms-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-card__location {
  font-size: 0.85rem;
  color: var(--ms-gray);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.listing-card__location::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ms-secondary);
}

.listing-card__stats {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  border-top: 1px solid var(--ms-border);
  padding-top: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.85rem;
  color: var(--ms-dark);
  flex-wrap: wrap;
}

.listing-card__stats li {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.listing-card__stats strong {
  font-weight: 700;
  color: var(--ms-primary);
}

.listing-card__cta {
  display: inline-block;
  margin-top: auto;
  padding: 10px 18px;
  background: var(--ms-primary);
  color: var(--ms-white);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.2s ease;
}

.listing-card__cta:hover {
  background: var(--ms-secondary);
  color: var(--ms-primary);
}

@media (max-width: 480px) {
  .listing-card__stats {
    gap: var(--space-xs);
    font-size: 0.8rem;
  }
}

/* =========================================
   PAGE HEADER (used on listings.html and similar inner pages)
   ========================================= */
.page-header {
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
  background: linear-gradient(180deg, var(--ms-light) 0%, var(--ms-white) 100%);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-md);
}

.page-header__lead {
  max-width: 720px;
  margin: 0 auto var(--space-md);
  color: var(--ms-gray);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-header .listings__disclaimer {
  margin-top: var(--space-sm);
}

.listings--page {
  padding-top: var(--space-xl);
}

/* =========================================
   FLOATING CONTACT CTA
   ========================================= */
.contact-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--ms-primary);
  color: var(--ms-white);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.contact-fab:hover,
.contact-fab:focus-visible {
  background: var(--ms-secondary);
  color: var(--ms-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(44, 62, 80, 0.32);
  outline: none;
}

.contact-fab svg {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .contact-fab {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
    font-size: 0.78rem;
  }

  .contact-fab__label {
    display: none;
  }

  .contact-fab svg {
    width: 22px;
    height: 22px;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-item,
  .reveal-block,
  .reveal-step {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .loader__logo,
  .loader__progress {
    animation: none;
  }

  .hero__bg {
    display: none;
  }
}

/* =========================================
   PROPERTY LISTINGS PLUGIN OVERRIDES
   ========================================= */

/* Mount point holds whatever the plugin injects. No min-height: avoids
   reserving phantom space when the plugin renders quickly. */
.listings__plugin-mount {
  /* intentionally empty */
}

/* Browse-all CTA needs breathing room from the listings grid above it,
   on both the homepage (after the featured grid) and the listings page
   (after the full grid). Plugin doesn't add bottom margin to its own
   section so we own the spacing here. */
.listings__cta {
  margin-top: var(--space-xl);
}

/* Hide the plugin's centered title + underline. Sierra's page-header
   ("All Listings / Find Your Next Home in Florida") and homepage section
   header ("Featured Properties / Currently on the Market") already
   provide the heading; the plugin's "Properties" h2 would duplicate it. */
#property-listings-mount #nxw-property-listings > div > h2:first-child,
#property-listings-mount #nxw-property-listings > div > h2:first-child + div {
  display: none;
}

/* Tighten the plugin's vertical padding inside our section so it doesn't
   double-up on the section padding Sierra already applies. */
#property-listings-mount #nxw-property-listings {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent !important;
}

/* Featured grid (homepage). The plugin renders its own centered title +
   gold underline above the grid, but Sierra's section header
   ("Featured Properties / Currently on the Market") already covers
   that. Hide the duplicate. Also kill the section's outer padding so
   the spacing matches the rest of the page. */
#nxw-pl-featured {
  padding: 0 !important;
  background: transparent !important;
}
#nxw-pl-featured > div:first-child {
  display: none;
}

/* Constrain featured cards: with featured_count ≤ 3 we never want a
   single card stretching full-bleed. Cap each card at ~380px and let
   them center when there are fewer than 3. */
#nxw-pl-featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px)) !important;
  justify-content: center;
}
